diff --git a/google-api-grpc/grpc-google-cloud-talent-v4beta1/pom.xml b/google-api-grpc/grpc-google-cloud-talent-v4beta1/pom.xml new file mode 100644 index 000000000000..3f5aa22be136 --- /dev/null +++ b/google-api-grpc/grpc-google-cloud-talent-v4beta1/pom.xml @@ -0,0 +1,31 @@ + + 4.0.0 + grpc-google-cloud-talent-v4beta1 + 0.0.1-beta-SNAPSHOT + grpc-google-cloud-talent-v4beta1 + GRPC library for grpc-google-cloud-talent-v4beta1 + + com.google.api.grpc + google-api-grpc + 0.48.1-SNAPSHOT + + + + io.grpc + grpc-stub + compile + + + io.grpc + grpc-protobuf + compile + + + com.google.api.grpc + proto-google-cloud-talent-v4beta1 + compile + + + \ No newline at end of file diff --git a/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceGrpc.java b/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceGrpc.java new file mode 100644 index 000000000000..d0a04f2d0e1e --- /dev/null +++ b/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceGrpc.java @@ -0,0 +1,859 @@ +package com.google.cloud.talent.v4beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; +import static io.grpc.stub.ClientCalls.asyncUnaryCall; +import static io.grpc.stub.ClientCalls.blockingUnaryCall; +import static io.grpc.stub.ClientCalls.futureUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; + +/** + * + * + *
+ * A service that handles company management, including CRUD and enumeration.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.10.0)", + comments = "Source: google/cloud/talent/v4beta1/company_service.proto") +public final class CompanyServiceGrpc { + + private CompanyServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.talent.v4beta1.CompanyService"; + + // Static method descriptors that strictly reflect the proto. + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getCreateCompanyMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateCompanyRequest, + com.google.cloud.talent.v4beta1.Company> + METHOD_CREATE_COMPANY = getCreateCompanyMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateCompanyRequest, + com.google.cloud.talent.v4beta1.Company> + getCreateCompanyMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateCompanyRequest, + com.google.cloud.talent.v4beta1.Company> + getCreateCompanyMethod() { + return getCreateCompanyMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateCompanyRequest, + com.google.cloud.talent.v4beta1.Company> + getCreateCompanyMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateCompanyRequest, + com.google.cloud.talent.v4beta1.Company> + getCreateCompanyMethod; + if ((getCreateCompanyMethod = CompanyServiceGrpc.getCreateCompanyMethod) == null) { + synchronized (CompanyServiceGrpc.class) { + if ((getCreateCompanyMethod = CompanyServiceGrpc.getCreateCompanyMethod) == null) { + CompanyServiceGrpc.getCreateCompanyMethod = + getCreateCompanyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.CompanyService", "CreateCompany")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.CreateCompanyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.Company.getDefaultInstance())) + .setSchemaDescriptor( + new CompanyServiceMethodDescriptorSupplier("CreateCompany")) + .build(); + } + } + } + return getCreateCompanyMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getGetCompanyMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.GetCompanyRequest, + com.google.cloud.talent.v4beta1.Company> + METHOD_GET_COMPANY = getGetCompanyMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.GetCompanyRequest, + com.google.cloud.talent.v4beta1.Company> + getGetCompanyMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.GetCompanyRequest, + com.google.cloud.talent.v4beta1.Company> + getGetCompanyMethod() { + return getGetCompanyMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.GetCompanyRequest, + com.google.cloud.talent.v4beta1.Company> + getGetCompanyMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.GetCompanyRequest, + com.google.cloud.talent.v4beta1.Company> + getGetCompanyMethod; + if ((getGetCompanyMethod = CompanyServiceGrpc.getGetCompanyMethod) == null) { + synchronized (CompanyServiceGrpc.class) { + if ((getGetCompanyMethod = CompanyServiceGrpc.getGetCompanyMethod) == null) { + CompanyServiceGrpc.getGetCompanyMethod = + getGetCompanyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.CompanyService", "GetCompany")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.GetCompanyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.Company.getDefaultInstance())) + .setSchemaDescriptor(new CompanyServiceMethodDescriptorSupplier("GetCompany")) + .build(); + } + } + } + return getGetCompanyMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getUpdateCompanyMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.UpdateCompanyRequest, + com.google.cloud.talent.v4beta1.Company> + METHOD_UPDATE_COMPANY = getUpdateCompanyMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.UpdateCompanyRequest, + com.google.cloud.talent.v4beta1.Company> + getUpdateCompanyMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.UpdateCompanyRequest, + com.google.cloud.talent.v4beta1.Company> + getUpdateCompanyMethod() { + return getUpdateCompanyMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.UpdateCompanyRequest, + com.google.cloud.talent.v4beta1.Company> + getUpdateCompanyMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.UpdateCompanyRequest, + com.google.cloud.talent.v4beta1.Company> + getUpdateCompanyMethod; + if ((getUpdateCompanyMethod = CompanyServiceGrpc.getUpdateCompanyMethod) == null) { + synchronized (CompanyServiceGrpc.class) { + if ((getUpdateCompanyMethod = CompanyServiceGrpc.getUpdateCompanyMethod) == null) { + CompanyServiceGrpc.getUpdateCompanyMethod = + getUpdateCompanyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.CompanyService", "UpdateCompany")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.UpdateCompanyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.Company.getDefaultInstance())) + .setSchemaDescriptor( + new CompanyServiceMethodDescriptorSupplier("UpdateCompany")) + .build(); + } + } + } + return getUpdateCompanyMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getDeleteCompanyMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.DeleteCompanyRequest, com.google.protobuf.Empty> + METHOD_DELETE_COMPANY = getDeleteCompanyMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.DeleteCompanyRequest, com.google.protobuf.Empty> + getDeleteCompanyMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.DeleteCompanyRequest, com.google.protobuf.Empty> + getDeleteCompanyMethod() { + return getDeleteCompanyMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.DeleteCompanyRequest, com.google.protobuf.Empty> + getDeleteCompanyMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.DeleteCompanyRequest, com.google.protobuf.Empty> + getDeleteCompanyMethod; + if ((getDeleteCompanyMethod = CompanyServiceGrpc.getDeleteCompanyMethod) == null) { + synchronized (CompanyServiceGrpc.class) { + if ((getDeleteCompanyMethod = CompanyServiceGrpc.getDeleteCompanyMethod) == null) { + CompanyServiceGrpc.getDeleteCompanyMethod = + getDeleteCompanyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.CompanyService", "DeleteCompany")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.DeleteCompanyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new CompanyServiceMethodDescriptorSupplier("DeleteCompany")) + .build(); + } + } + } + return getDeleteCompanyMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getListCompaniesMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ListCompaniesRequest, + com.google.cloud.talent.v4beta1.ListCompaniesResponse> + METHOD_LIST_COMPANIES = getListCompaniesMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ListCompaniesRequest, + com.google.cloud.talent.v4beta1.ListCompaniesResponse> + getListCompaniesMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ListCompaniesRequest, + com.google.cloud.talent.v4beta1.ListCompaniesResponse> + getListCompaniesMethod() { + return getListCompaniesMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ListCompaniesRequest, + com.google.cloud.talent.v4beta1.ListCompaniesResponse> + getListCompaniesMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ListCompaniesRequest, + com.google.cloud.talent.v4beta1.ListCompaniesResponse> + getListCompaniesMethod; + if ((getListCompaniesMethod = CompanyServiceGrpc.getListCompaniesMethod) == null) { + synchronized (CompanyServiceGrpc.class) { + if ((getListCompaniesMethod = CompanyServiceGrpc.getListCompaniesMethod) == null) { + CompanyServiceGrpc.getListCompaniesMethod = + getListCompaniesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.CompanyService", "ListCompanies")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.ListCompaniesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.ListCompaniesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new CompanyServiceMethodDescriptorSupplier("ListCompanies")) + .build(); + } + } + } + return getListCompaniesMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static CompanyServiceStub newStub(io.grpc.Channel channel) { + return new CompanyServiceStub(channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static CompanyServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + return new CompanyServiceBlockingStub(channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static CompanyServiceFutureStub newFutureStub(io.grpc.Channel channel) { + return new CompanyServiceFutureStub(channel); + } + + /** + * + * + *
+   * A service that handles company management, including CRUD and enumeration.
+   * 
+ */ + public abstract static class CompanyServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Creates a new company entity.
+     * 
+ */ + public void createCompany( + com.google.cloud.talent.v4beta1.CreateCompanyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getCreateCompanyMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Retrieves specified company.
+     * 
+ */ + public void getCompany( + com.google.cloud.talent.v4beta1.GetCompanyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetCompanyMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Updates specified company.
+     * 
+ */ + public void updateCompany( + com.google.cloud.talent.v4beta1.UpdateCompanyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getUpdateCompanyMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Deletes specified company.
+     * Prerequisite: The company has no jobs associated with it.
+     * 
+ */ + public void deleteCompany( + com.google.cloud.talent.v4beta1.DeleteCompanyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getDeleteCompanyMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Lists all companies associated with the project.
+     * 
+ */ + public void listCompanies( + com.google.cloud.talent.v4beta1.ListCompaniesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getListCompaniesMethodHelper(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateCompanyMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.CreateCompanyRequest, + com.google.cloud.talent.v4beta1.Company>(this, METHODID_CREATE_COMPANY))) + .addMethod( + getGetCompanyMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.GetCompanyRequest, + com.google.cloud.talent.v4beta1.Company>(this, METHODID_GET_COMPANY))) + .addMethod( + getUpdateCompanyMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.UpdateCompanyRequest, + com.google.cloud.talent.v4beta1.Company>(this, METHODID_UPDATE_COMPANY))) + .addMethod( + getDeleteCompanyMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.DeleteCompanyRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_COMPANY))) + .addMethod( + getListCompaniesMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.ListCompaniesRequest, + com.google.cloud.talent.v4beta1.ListCompaniesResponse>( + this, METHODID_LIST_COMPANIES))) + .build(); + } + } + + /** + * + * + *
+   * A service that handles company management, including CRUD and enumeration.
+   * 
+ */ + public static final class CompanyServiceStub + extends io.grpc.stub.AbstractStub { + private CompanyServiceStub(io.grpc.Channel channel) { + super(channel); + } + + private CompanyServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CompanyServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CompanyServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new company entity.
+     * 
+ */ + public void createCompany( + com.google.cloud.talent.v4beta1.CreateCompanyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getCreateCompanyMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieves specified company.
+     * 
+ */ + public void getCompany( + com.google.cloud.talent.v4beta1.GetCompanyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetCompanyMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates specified company.
+     * 
+ */ + public void updateCompany( + com.google.cloud.talent.v4beta1.UpdateCompanyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getUpdateCompanyMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes specified company.
+     * Prerequisite: The company has no jobs associated with it.
+     * 
+ */ + public void deleteCompany( + com.google.cloud.talent.v4beta1.DeleteCompanyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getDeleteCompanyMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists all companies associated with the project.
+     * 
+ */ + public void listCompanies( + com.google.cloud.talent.v4beta1.ListCompaniesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getListCompaniesMethodHelper(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * A service that handles company management, including CRUD and enumeration.
+   * 
+ */ + public static final class CompanyServiceBlockingStub + extends io.grpc.stub.AbstractStub { + private CompanyServiceBlockingStub(io.grpc.Channel channel) { + super(channel); + } + + private CompanyServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CompanyServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CompanyServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new company entity.
+     * 
+ */ + public com.google.cloud.talent.v4beta1.Company createCompany( + com.google.cloud.talent.v4beta1.CreateCompanyRequest request) { + return blockingUnaryCall( + getChannel(), getCreateCompanyMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieves specified company.
+     * 
+ */ + public com.google.cloud.talent.v4beta1.Company getCompany( + com.google.cloud.talent.v4beta1.GetCompanyRequest request) { + return blockingUnaryCall( + getChannel(), getGetCompanyMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates specified company.
+     * 
+ */ + public com.google.cloud.talent.v4beta1.Company updateCompany( + com.google.cloud.talent.v4beta1.UpdateCompanyRequest request) { + return blockingUnaryCall( + getChannel(), getUpdateCompanyMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes specified company.
+     * Prerequisite: The company has no jobs associated with it.
+     * 
+ */ + public com.google.protobuf.Empty deleteCompany( + com.google.cloud.talent.v4beta1.DeleteCompanyRequest request) { + return blockingUnaryCall( + getChannel(), getDeleteCompanyMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists all companies associated with the project.
+     * 
+ */ + public com.google.cloud.talent.v4beta1.ListCompaniesResponse listCompanies( + com.google.cloud.talent.v4beta1.ListCompaniesRequest request) { + return blockingUnaryCall( + getChannel(), getListCompaniesMethodHelper(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * A service that handles company management, including CRUD and enumeration.
+   * 
+ */ + public static final class CompanyServiceFutureStub + extends io.grpc.stub.AbstractStub { + private CompanyServiceFutureStub(io.grpc.Channel channel) { + super(channel); + } + + private CompanyServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CompanyServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CompanyServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new company entity.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.talent.v4beta1.Company> + createCompany(com.google.cloud.talent.v4beta1.CreateCompanyRequest request) { + return futureUnaryCall( + getChannel().newCall(getCreateCompanyMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieves specified company.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.talent.v4beta1.Company> + getCompany(com.google.cloud.talent.v4beta1.GetCompanyRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetCompanyMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates specified company.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.talent.v4beta1.Company> + updateCompany(com.google.cloud.talent.v4beta1.UpdateCompanyRequest request) { + return futureUnaryCall( + getChannel().newCall(getUpdateCompanyMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes specified company.
+     * Prerequisite: The company has no jobs associated with it.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteCompany(com.google.cloud.talent.v4beta1.DeleteCompanyRequest request) { + return futureUnaryCall( + getChannel().newCall(getDeleteCompanyMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists all companies associated with the project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.talent.v4beta1.ListCompaniesResponse> + listCompanies(com.google.cloud.talent.v4beta1.ListCompaniesRequest request) { + return futureUnaryCall( + getChannel().newCall(getListCompaniesMethodHelper(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_COMPANY = 0; + private static final int METHODID_GET_COMPANY = 1; + private static final int METHODID_UPDATE_COMPANY = 2; + private static final int METHODID_DELETE_COMPANY = 3; + private static final int METHODID_LIST_COMPANIES = 4; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final CompanyServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(CompanyServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_COMPANY: + serviceImpl.createCompany( + (com.google.cloud.talent.v4beta1.CreateCompanyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_COMPANY: + serviceImpl.getCompany( + (com.google.cloud.talent.v4beta1.GetCompanyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_COMPANY: + serviceImpl.updateCompany( + (com.google.cloud.talent.v4beta1.UpdateCompanyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_COMPANY: + serviceImpl.deleteCompany( + (com.google.cloud.talent.v4beta1.DeleteCompanyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_COMPANIES: + serviceImpl.listCompanies( + (com.google.cloud.talent.v4beta1.ListCompaniesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class CompanyServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + CompanyServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("CompanyService"); + } + } + + private static final class CompanyServiceFileDescriptorSupplier + extends CompanyServiceBaseDescriptorSupplier { + CompanyServiceFileDescriptorSupplier() {} + } + + private static final class CompanyServiceMethodDescriptorSupplier + extends CompanyServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + CompanyServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (CompanyServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new CompanyServiceFileDescriptorSupplier()) + .addMethod(getCreateCompanyMethodHelper()) + .addMethod(getGetCompanyMethodHelper()) + .addMethod(getUpdateCompanyMethodHelper()) + .addMethod(getDeleteCompanyMethodHelper()) + .addMethod(getListCompaniesMethodHelper()) + .build(); + } + } + } + return result; + } +} diff --git a/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompletionGrpc.java b/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompletionGrpc.java new file mode 100644 index 000000000000..a0c84bbe8f4c --- /dev/null +++ b/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompletionGrpc.java @@ -0,0 +1,352 @@ +package com.google.cloud.talent.v4beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; +import static io.grpc.stub.ClientCalls.asyncUnaryCall; +import static io.grpc.stub.ClientCalls.blockingUnaryCall; +import static io.grpc.stub.ClientCalls.futureUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; + +/** + * + * + *
+ * A service handles auto completion.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.10.0)", + comments = "Source: google/cloud/talent/v4beta1/completion_service.proto") +public final class CompletionGrpc { + + private CompletionGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.talent.v4beta1.Completion"; + + // Static method descriptors that strictly reflect the proto. + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getCompleteQueryMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CompleteQueryRequest, + com.google.cloud.talent.v4beta1.CompleteQueryResponse> + METHOD_COMPLETE_QUERY = getCompleteQueryMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CompleteQueryRequest, + com.google.cloud.talent.v4beta1.CompleteQueryResponse> + getCompleteQueryMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CompleteQueryRequest, + com.google.cloud.talent.v4beta1.CompleteQueryResponse> + getCompleteQueryMethod() { + return getCompleteQueryMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CompleteQueryRequest, + com.google.cloud.talent.v4beta1.CompleteQueryResponse> + getCompleteQueryMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CompleteQueryRequest, + com.google.cloud.talent.v4beta1.CompleteQueryResponse> + getCompleteQueryMethod; + if ((getCompleteQueryMethod = CompletionGrpc.getCompleteQueryMethod) == null) { + synchronized (CompletionGrpc.class) { + if ((getCompleteQueryMethod = CompletionGrpc.getCompleteQueryMethod) == null) { + CompletionGrpc.getCompleteQueryMethod = + getCompleteQueryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.Completion", "CompleteQuery")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.CompleteQueryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.CompleteQueryResponse + .getDefaultInstance())) + .setSchemaDescriptor(new CompletionMethodDescriptorSupplier("CompleteQuery")) + .build(); + } + } + } + return getCompleteQueryMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static CompletionStub newStub(io.grpc.Channel channel) { + return new CompletionStub(channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static CompletionBlockingStub newBlockingStub(io.grpc.Channel channel) { + return new CompletionBlockingStub(channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static CompletionFutureStub newFutureStub(io.grpc.Channel channel) { + return new CompletionFutureStub(channel); + } + + /** + * + * + *
+   * A service handles auto completion.
+   * 
+ */ + public abstract static class CompletionImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Completes the specified prefix with keyword suggestions.
+     * Intended for use by a job search auto-complete search box.
+     * 
+ */ + public void completeQuery( + com.google.cloud.talent.v4beta1.CompleteQueryRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getCompleteQueryMethodHelper(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCompleteQueryMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.CompleteQueryRequest, + com.google.cloud.talent.v4beta1.CompleteQueryResponse>( + this, METHODID_COMPLETE_QUERY))) + .build(); + } + } + + /** + * + * + *
+   * A service handles auto completion.
+   * 
+ */ + public static final class CompletionStub extends io.grpc.stub.AbstractStub { + private CompletionStub(io.grpc.Channel channel) { + super(channel); + } + + private CompletionStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CompletionStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CompletionStub(channel, callOptions); + } + + /** + * + * + *
+     * Completes the specified prefix with keyword suggestions.
+     * Intended for use by a job search auto-complete search box.
+     * 
+ */ + public void completeQuery( + com.google.cloud.talent.v4beta1.CompleteQueryRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getCompleteQueryMethodHelper(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * A service handles auto completion.
+   * 
+ */ + public static final class CompletionBlockingStub + extends io.grpc.stub.AbstractStub { + private CompletionBlockingStub(io.grpc.Channel channel) { + super(channel); + } + + private CompletionBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CompletionBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CompletionBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Completes the specified prefix with keyword suggestions.
+     * Intended for use by a job search auto-complete search box.
+     * 
+ */ + public com.google.cloud.talent.v4beta1.CompleteQueryResponse completeQuery( + com.google.cloud.talent.v4beta1.CompleteQueryRequest request) { + return blockingUnaryCall( + getChannel(), getCompleteQueryMethodHelper(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * A service handles auto completion.
+   * 
+ */ + public static final class CompletionFutureStub + extends io.grpc.stub.AbstractStub { + private CompletionFutureStub(io.grpc.Channel channel) { + super(channel); + } + + private CompletionFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CompletionFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CompletionFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Completes the specified prefix with keyword suggestions.
+     * Intended for use by a job search auto-complete search box.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.talent.v4beta1.CompleteQueryResponse> + completeQuery(com.google.cloud.talent.v4beta1.CompleteQueryRequest request) { + return futureUnaryCall( + getChannel().newCall(getCompleteQueryMethodHelper(), getCallOptions()), request); + } + } + + private static final int METHODID_COMPLETE_QUERY = 0; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final CompletionImplBase serviceImpl; + private final int methodId; + + MethodHandlers(CompletionImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_COMPLETE_QUERY: + serviceImpl.completeQuery( + (com.google.cloud.talent.v4beta1.CompleteQueryRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class CompletionBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + CompletionBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.talent.v4beta1.CompletionServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Completion"); + } + } + + private static final class CompletionFileDescriptorSupplier + extends CompletionBaseDescriptorSupplier { + CompletionFileDescriptorSupplier() {} + } + + private static final class CompletionMethodDescriptorSupplier + extends CompletionBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + CompletionMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (CompletionGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new CompletionFileDescriptorSupplier()) + .addMethod(getCompleteQueryMethodHelper()) + .build(); + } + } + } + return result; + } +} diff --git a/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EventServiceGrpc.java b/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EventServiceGrpc.java new file mode 100644 index 000000000000..fa25e76d5772 --- /dev/null +++ b/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EventServiceGrpc.java @@ -0,0 +1,371 @@ +package com.google.cloud.talent.v4beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; +import static io.grpc.stub.ClientCalls.asyncUnaryCall; +import static io.grpc.stub.ClientCalls.blockingUnaryCall; +import static io.grpc.stub.ClientCalls.futureUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; + +/** + * + * + *
+ * A service handles client event report.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.10.0)", + comments = "Source: google/cloud/talent/v4beta1/event_service.proto") +public final class EventServiceGrpc { + + private EventServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.talent.v4beta1.EventService"; + + // Static method descriptors that strictly reflect the proto. + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getCreateClientEventMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateClientEventRequest, + com.google.cloud.talent.v4beta1.ClientEvent> + METHOD_CREATE_CLIENT_EVENT = getCreateClientEventMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateClientEventRequest, + com.google.cloud.talent.v4beta1.ClientEvent> + getCreateClientEventMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateClientEventRequest, + com.google.cloud.talent.v4beta1.ClientEvent> + getCreateClientEventMethod() { + return getCreateClientEventMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateClientEventRequest, + com.google.cloud.talent.v4beta1.ClientEvent> + getCreateClientEventMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateClientEventRequest, + com.google.cloud.talent.v4beta1.ClientEvent> + getCreateClientEventMethod; + if ((getCreateClientEventMethod = EventServiceGrpc.getCreateClientEventMethod) == null) { + synchronized (EventServiceGrpc.class) { + if ((getCreateClientEventMethod = EventServiceGrpc.getCreateClientEventMethod) == null) { + EventServiceGrpc.getCreateClientEventMethod = + getCreateClientEventMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.EventService", "CreateClientEvent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.CreateClientEventRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.ClientEvent.getDefaultInstance())) + .setSchemaDescriptor( + new EventServiceMethodDescriptorSupplier("CreateClientEvent")) + .build(); + } + } + } + return getCreateClientEventMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static EventServiceStub newStub(io.grpc.Channel channel) { + return new EventServiceStub(channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static EventServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + return new EventServiceBlockingStub(channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static EventServiceFutureStub newFutureStub(io.grpc.Channel channel) { + return new EventServiceFutureStub(channel); + } + + /** + * + * + *
+   * A service handles client event report.
+   * 
+ */ + public abstract static class EventServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Report events issued when end user interacts with customer's application
+     * that uses Cloud Talent Solution. You may inspect the created events in
+     * [self service
+     * tools](https://console.cloud.google.com/talent-solution/overview).
+     * [Learn
+     * more](https://cloud.google.com/talent-solution/docs/management-tools)
+     * about self service tools.
+     * 
+ */ + public void createClientEvent( + com.google.cloud.talent.v4beta1.CreateClientEventRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getCreateClientEventMethodHelper(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateClientEventMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.CreateClientEventRequest, + com.google.cloud.talent.v4beta1.ClientEvent>( + this, METHODID_CREATE_CLIENT_EVENT))) + .build(); + } + } + + /** + * + * + *
+   * A service handles client event report.
+   * 
+ */ + public static final class EventServiceStub extends io.grpc.stub.AbstractStub { + private EventServiceStub(io.grpc.Channel channel) { + super(channel); + } + + private EventServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected EventServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EventServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Report events issued when end user interacts with customer's application
+     * that uses Cloud Talent Solution. You may inspect the created events in
+     * [self service
+     * tools](https://console.cloud.google.com/talent-solution/overview).
+     * [Learn
+     * more](https://cloud.google.com/talent-solution/docs/management-tools)
+     * about self service tools.
+     * 
+ */ + public void createClientEvent( + com.google.cloud.talent.v4beta1.CreateClientEventRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getCreateClientEventMethodHelper(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * A service handles client event report.
+   * 
+ */ + public static final class EventServiceBlockingStub + extends io.grpc.stub.AbstractStub { + private EventServiceBlockingStub(io.grpc.Channel channel) { + super(channel); + } + + private EventServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected EventServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EventServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Report events issued when end user interacts with customer's application
+     * that uses Cloud Talent Solution. You may inspect the created events in
+     * [self service
+     * tools](https://console.cloud.google.com/talent-solution/overview).
+     * [Learn
+     * more](https://cloud.google.com/talent-solution/docs/management-tools)
+     * about self service tools.
+     * 
+ */ + public com.google.cloud.talent.v4beta1.ClientEvent createClientEvent( + com.google.cloud.talent.v4beta1.CreateClientEventRequest request) { + return blockingUnaryCall( + getChannel(), getCreateClientEventMethodHelper(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * A service handles client event report.
+   * 
+ */ + public static final class EventServiceFutureStub + extends io.grpc.stub.AbstractStub { + private EventServiceFutureStub(io.grpc.Channel channel) { + super(channel); + } + + private EventServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected EventServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EventServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Report events issued when end user interacts with customer's application
+     * that uses Cloud Talent Solution. You may inspect the created events in
+     * [self service
+     * tools](https://console.cloud.google.com/talent-solution/overview).
+     * [Learn
+     * more](https://cloud.google.com/talent-solution/docs/management-tools)
+     * about self service tools.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.talent.v4beta1.ClientEvent> + createClientEvent(com.google.cloud.talent.v4beta1.CreateClientEventRequest request) { + return futureUnaryCall( + getChannel().newCall(getCreateClientEventMethodHelper(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_CLIENT_EVENT = 0; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final EventServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(EventServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_CLIENT_EVENT: + serviceImpl.createClientEvent( + (com.google.cloud.talent.v4beta1.CreateClientEventRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class EventServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + EventServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.talent.v4beta1.EventServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("EventService"); + } + } + + private static final class EventServiceFileDescriptorSupplier + extends EventServiceBaseDescriptorSupplier { + EventServiceFileDescriptorSupplier() {} + } + + private static final class EventServiceMethodDescriptorSupplier + extends EventServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + EventServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (EventServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new EventServiceFileDescriptorSupplier()) + .addMethod(getCreateClientEventMethodHelper()) + .build(); + } + } + } + return result; + } +} diff --git a/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobServiceGrpc.java b/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobServiceGrpc.java new file mode 100644 index 000000000000..02d22f4f18f1 --- /dev/null +++ b/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobServiceGrpc.java @@ -0,0 +1,1287 @@ +package com.google.cloud.talent.v4beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; +import static io.grpc.stub.ClientCalls.asyncUnaryCall; +import static io.grpc.stub.ClientCalls.blockingUnaryCall; +import static io.grpc.stub.ClientCalls.futureUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; + +/** + * + * + *
+ * A service handles job management, including job CRUD, enumeration and search.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.10.0)", + comments = "Source: google/cloud/talent/v4beta1/job_service.proto") +public final class JobServiceGrpc { + + private JobServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.talent.v4beta1.JobService"; + + // Static method descriptors that strictly reflect the proto. + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getCreateJobMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateJobRequest, com.google.cloud.talent.v4beta1.Job> + METHOD_CREATE_JOB = getCreateJobMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateJobRequest, com.google.cloud.talent.v4beta1.Job> + getCreateJobMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateJobRequest, com.google.cloud.talent.v4beta1.Job> + getCreateJobMethod() { + return getCreateJobMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateJobRequest, com.google.cloud.talent.v4beta1.Job> + getCreateJobMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateJobRequest, com.google.cloud.talent.v4beta1.Job> + getCreateJobMethod; + if ((getCreateJobMethod = JobServiceGrpc.getCreateJobMethod) == null) { + synchronized (JobServiceGrpc.class) { + if ((getCreateJobMethod = JobServiceGrpc.getCreateJobMethod) == null) { + JobServiceGrpc.getCreateJobMethod = + getCreateJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.JobService", "CreateJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.CreateJobRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.Job.getDefaultInstance())) + .setSchemaDescriptor(new JobServiceMethodDescriptorSupplier("CreateJob")) + .build(); + } + } + } + return getCreateJobMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getGetJobMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.GetJobRequest, com.google.cloud.talent.v4beta1.Job> + METHOD_GET_JOB = getGetJobMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.GetJobRequest, com.google.cloud.talent.v4beta1.Job> + getGetJobMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.GetJobRequest, com.google.cloud.talent.v4beta1.Job> + getGetJobMethod() { + return getGetJobMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.GetJobRequest, com.google.cloud.talent.v4beta1.Job> + getGetJobMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.GetJobRequest, com.google.cloud.talent.v4beta1.Job> + getGetJobMethod; + if ((getGetJobMethod = JobServiceGrpc.getGetJobMethod) == null) { + synchronized (JobServiceGrpc.class) { + if ((getGetJobMethod = JobServiceGrpc.getGetJobMethod) == null) { + JobServiceGrpc.getGetJobMethod = + getGetJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.JobService", "GetJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.GetJobRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.Job.getDefaultInstance())) + .setSchemaDescriptor(new JobServiceMethodDescriptorSupplier("GetJob")) + .build(); + } + } + } + return getGetJobMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getUpdateJobMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.UpdateJobRequest, com.google.cloud.talent.v4beta1.Job> + METHOD_UPDATE_JOB = getUpdateJobMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.UpdateJobRequest, com.google.cloud.talent.v4beta1.Job> + getUpdateJobMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.UpdateJobRequest, com.google.cloud.talent.v4beta1.Job> + getUpdateJobMethod() { + return getUpdateJobMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.UpdateJobRequest, com.google.cloud.talent.v4beta1.Job> + getUpdateJobMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.UpdateJobRequest, com.google.cloud.talent.v4beta1.Job> + getUpdateJobMethod; + if ((getUpdateJobMethod = JobServiceGrpc.getUpdateJobMethod) == null) { + synchronized (JobServiceGrpc.class) { + if ((getUpdateJobMethod = JobServiceGrpc.getUpdateJobMethod) == null) { + JobServiceGrpc.getUpdateJobMethod = + getUpdateJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.JobService", "UpdateJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.UpdateJobRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.Job.getDefaultInstance())) + .setSchemaDescriptor(new JobServiceMethodDescriptorSupplier("UpdateJob")) + .build(); + } + } + } + return getUpdateJobMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getDeleteJobMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.DeleteJobRequest, com.google.protobuf.Empty> + METHOD_DELETE_JOB = getDeleteJobMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.DeleteJobRequest, com.google.protobuf.Empty> + getDeleteJobMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.DeleteJobRequest, com.google.protobuf.Empty> + getDeleteJobMethod() { + return getDeleteJobMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.DeleteJobRequest, com.google.protobuf.Empty> + getDeleteJobMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.DeleteJobRequest, com.google.protobuf.Empty> + getDeleteJobMethod; + if ((getDeleteJobMethod = JobServiceGrpc.getDeleteJobMethod) == null) { + synchronized (JobServiceGrpc.class) { + if ((getDeleteJobMethod = JobServiceGrpc.getDeleteJobMethod) == null) { + JobServiceGrpc.getDeleteJobMethod = + getDeleteJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.JobService", "DeleteJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.DeleteJobRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new JobServiceMethodDescriptorSupplier("DeleteJob")) + .build(); + } + } + } + return getDeleteJobMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getListJobsMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ListJobsRequest, + com.google.cloud.talent.v4beta1.ListJobsResponse> + METHOD_LIST_JOBS = getListJobsMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ListJobsRequest, + com.google.cloud.talent.v4beta1.ListJobsResponse> + getListJobsMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ListJobsRequest, + com.google.cloud.talent.v4beta1.ListJobsResponse> + getListJobsMethod() { + return getListJobsMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ListJobsRequest, + com.google.cloud.talent.v4beta1.ListJobsResponse> + getListJobsMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ListJobsRequest, + com.google.cloud.talent.v4beta1.ListJobsResponse> + getListJobsMethod; + if ((getListJobsMethod = JobServiceGrpc.getListJobsMethod) == null) { + synchronized (JobServiceGrpc.class) { + if ((getListJobsMethod = JobServiceGrpc.getListJobsMethod) == null) { + JobServiceGrpc.getListJobsMethod = + getListJobsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.JobService", "ListJobs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.ListJobsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.ListJobsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new JobServiceMethodDescriptorSupplier("ListJobs")) + .build(); + } + } + } + return getListJobsMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getBatchDeleteJobsMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest, com.google.protobuf.Empty> + METHOD_BATCH_DELETE_JOBS = getBatchDeleteJobsMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest, com.google.protobuf.Empty> + getBatchDeleteJobsMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest, com.google.protobuf.Empty> + getBatchDeleteJobsMethod() { + return getBatchDeleteJobsMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest, com.google.protobuf.Empty> + getBatchDeleteJobsMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest, com.google.protobuf.Empty> + getBatchDeleteJobsMethod; + if ((getBatchDeleteJobsMethod = JobServiceGrpc.getBatchDeleteJobsMethod) == null) { + synchronized (JobServiceGrpc.class) { + if ((getBatchDeleteJobsMethod = JobServiceGrpc.getBatchDeleteJobsMethod) == null) { + JobServiceGrpc.getBatchDeleteJobsMethod = + getBatchDeleteJobsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.JobService", "BatchDeleteJobs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new JobServiceMethodDescriptorSupplier("BatchDeleteJobs")) + .build(); + } + } + } + return getBatchDeleteJobsMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getSearchJobsMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.SearchJobsRequest, + com.google.cloud.talent.v4beta1.SearchJobsResponse> + METHOD_SEARCH_JOBS = getSearchJobsMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.SearchJobsRequest, + com.google.cloud.talent.v4beta1.SearchJobsResponse> + getSearchJobsMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.SearchJobsRequest, + com.google.cloud.talent.v4beta1.SearchJobsResponse> + getSearchJobsMethod() { + return getSearchJobsMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.SearchJobsRequest, + com.google.cloud.talent.v4beta1.SearchJobsResponse> + getSearchJobsMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.SearchJobsRequest, + com.google.cloud.talent.v4beta1.SearchJobsResponse> + getSearchJobsMethod; + if ((getSearchJobsMethod = JobServiceGrpc.getSearchJobsMethod) == null) { + synchronized (JobServiceGrpc.class) { + if ((getSearchJobsMethod = JobServiceGrpc.getSearchJobsMethod) == null) { + JobServiceGrpc.getSearchJobsMethod = + getSearchJobsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.JobService", "SearchJobs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.SearchJobsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.SearchJobsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new JobServiceMethodDescriptorSupplier("SearchJobs")) + .build(); + } + } + } + return getSearchJobsMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getSearchJobsForAlertMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.SearchJobsRequest, + com.google.cloud.talent.v4beta1.SearchJobsResponse> + METHOD_SEARCH_JOBS_FOR_ALERT = getSearchJobsForAlertMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.SearchJobsRequest, + com.google.cloud.talent.v4beta1.SearchJobsResponse> + getSearchJobsForAlertMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.SearchJobsRequest, + com.google.cloud.talent.v4beta1.SearchJobsResponse> + getSearchJobsForAlertMethod() { + return getSearchJobsForAlertMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.SearchJobsRequest, + com.google.cloud.talent.v4beta1.SearchJobsResponse> + getSearchJobsForAlertMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.SearchJobsRequest, + com.google.cloud.talent.v4beta1.SearchJobsResponse> + getSearchJobsForAlertMethod; + if ((getSearchJobsForAlertMethod = JobServiceGrpc.getSearchJobsForAlertMethod) == null) { + synchronized (JobServiceGrpc.class) { + if ((getSearchJobsForAlertMethod = JobServiceGrpc.getSearchJobsForAlertMethod) == null) { + JobServiceGrpc.getSearchJobsForAlertMethod = + getSearchJobsForAlertMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.JobService", "SearchJobsForAlert")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.SearchJobsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.SearchJobsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new JobServiceMethodDescriptorSupplier("SearchJobsForAlert")) + .build(); + } + } + } + return getSearchJobsForAlertMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static JobServiceStub newStub(io.grpc.Channel channel) { + return new JobServiceStub(channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static JobServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + return new JobServiceBlockingStub(channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static JobServiceFutureStub newFutureStub(io.grpc.Channel channel) { + return new JobServiceFutureStub(channel); + } + + /** + * + * + *
+   * A service handles job management, including job CRUD, enumeration and search.
+   * 
+ */ + public abstract static class JobServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Creates a new job.
+     * Typically, the job becomes searchable within 10 seconds, but it may take
+     * up to 5 minutes.
+     * 
+ */ + public void createJob( + com.google.cloud.talent.v4beta1.CreateJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getCreateJobMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Retrieves the specified job, whose status is OPEN or recently EXPIRED
+     * within the last 90 days.
+     * 
+ */ + public void getJob( + com.google.cloud.talent.v4beta1.GetJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetJobMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Updates specified job.
+     * Typically, updated contents become visible in search results within 10
+     * seconds, but it may take up to 5 minutes.
+     * 
+ */ + public void updateJob( + com.google.cloud.talent.v4beta1.UpdateJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getUpdateJobMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Deletes the specified job.
+     * Typically, the job becomes unsearchable within 10 seconds, but it may take
+     * up to 5 minutes.
+     * 
+ */ + public void deleteJob( + com.google.cloud.talent.v4beta1.DeleteJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getDeleteJobMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Lists jobs by filter.
+     * 
+ */ + public void listJobs( + com.google.cloud.talent.v4beta1.ListJobsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getListJobsMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Deletes a list of [Job][google.cloud.talent.v4beta1.Job]s by filter.
+     * 
+ */ + public void batchDeleteJobs( + com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getBatchDeleteJobsMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Searches for jobs using the provided
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * This call constrains the
+     * [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs present in
+     * the database, and only returns jobs that the caller has permission to
+     * search against.
+     * 
+ */ + public void searchJobs( + com.google.cloud.talent.v4beta1.SearchJobsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getSearchJobsMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Searches for jobs using the provided
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * This API call is intended for the use case of targeting passive job
+     * seekers (for example, job seekers who have signed up to receive email
+     * alerts about potential job opportunities), and has different algorithmic
+     * adjustments that are targeted to passive job seekers.
+     * This call constrains the
+     * [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs present in
+     * the database, and only returns jobs the caller has permission to search
+     * against.
+     * 
+ */ + public void searchJobsForAlert( + com.google.cloud.talent.v4beta1.SearchJobsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getSearchJobsForAlertMethodHelper(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateJobMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.CreateJobRequest, + com.google.cloud.talent.v4beta1.Job>(this, METHODID_CREATE_JOB))) + .addMethod( + getGetJobMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.GetJobRequest, + com.google.cloud.talent.v4beta1.Job>(this, METHODID_GET_JOB))) + .addMethod( + getUpdateJobMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.UpdateJobRequest, + com.google.cloud.talent.v4beta1.Job>(this, METHODID_UPDATE_JOB))) + .addMethod( + getDeleteJobMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.DeleteJobRequest, com.google.protobuf.Empty>( + this, METHODID_DELETE_JOB))) + .addMethod( + getListJobsMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.ListJobsRequest, + com.google.cloud.talent.v4beta1.ListJobsResponse>(this, METHODID_LIST_JOBS))) + .addMethod( + getBatchDeleteJobsMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest, + com.google.protobuf.Empty>(this, METHODID_BATCH_DELETE_JOBS))) + .addMethod( + getSearchJobsMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.SearchJobsRequest, + com.google.cloud.talent.v4beta1.SearchJobsResponse>( + this, METHODID_SEARCH_JOBS))) + .addMethod( + getSearchJobsForAlertMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.SearchJobsRequest, + com.google.cloud.talent.v4beta1.SearchJobsResponse>( + this, METHODID_SEARCH_JOBS_FOR_ALERT))) + .build(); + } + } + + /** + * + * + *
+   * A service handles job management, including job CRUD, enumeration and search.
+   * 
+ */ + public static final class JobServiceStub extends io.grpc.stub.AbstractStub { + private JobServiceStub(io.grpc.Channel channel) { + super(channel); + } + + private JobServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected JobServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new JobServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new job.
+     * Typically, the job becomes searchable within 10 seconds, but it may take
+     * up to 5 minutes.
+     * 
+ */ + public void createJob( + com.google.cloud.talent.v4beta1.CreateJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getCreateJobMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieves the specified job, whose status is OPEN or recently EXPIRED
+     * within the last 90 days.
+     * 
+ */ + public void getJob( + com.google.cloud.talent.v4beta1.GetJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetJobMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates specified job.
+     * Typically, updated contents become visible in search results within 10
+     * seconds, but it may take up to 5 minutes.
+     * 
+ */ + public void updateJob( + com.google.cloud.talent.v4beta1.UpdateJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getUpdateJobMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes the specified job.
+     * Typically, the job becomes unsearchable within 10 seconds, but it may take
+     * up to 5 minutes.
+     * 
+ */ + public void deleteJob( + com.google.cloud.talent.v4beta1.DeleteJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getDeleteJobMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists jobs by filter.
+     * 
+ */ + public void listJobs( + com.google.cloud.talent.v4beta1.ListJobsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getListJobsMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a list of [Job][google.cloud.talent.v4beta1.Job]s by filter.
+     * 
+ */ + public void batchDeleteJobs( + com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getBatchDeleteJobsMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Searches for jobs using the provided
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * This call constrains the
+     * [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs present in
+     * the database, and only returns jobs that the caller has permission to
+     * search against.
+     * 
+ */ + public void searchJobs( + com.google.cloud.talent.v4beta1.SearchJobsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getSearchJobsMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Searches for jobs using the provided
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * This API call is intended for the use case of targeting passive job
+     * seekers (for example, job seekers who have signed up to receive email
+     * alerts about potential job opportunities), and has different algorithmic
+     * adjustments that are targeted to passive job seekers.
+     * This call constrains the
+     * [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs present in
+     * the database, and only returns jobs the caller has permission to search
+     * against.
+     * 
+ */ + public void searchJobsForAlert( + com.google.cloud.talent.v4beta1.SearchJobsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getSearchJobsForAlertMethodHelper(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * A service handles job management, including job CRUD, enumeration and search.
+   * 
+ */ + public static final class JobServiceBlockingStub + extends io.grpc.stub.AbstractStub { + private JobServiceBlockingStub(io.grpc.Channel channel) { + super(channel); + } + + private JobServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected JobServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new JobServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new job.
+     * Typically, the job becomes searchable within 10 seconds, but it may take
+     * up to 5 minutes.
+     * 
+ */ + public com.google.cloud.talent.v4beta1.Job createJob( + com.google.cloud.talent.v4beta1.CreateJobRequest request) { + return blockingUnaryCall(getChannel(), getCreateJobMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieves the specified job, whose status is OPEN or recently EXPIRED
+     * within the last 90 days.
+     * 
+ */ + public com.google.cloud.talent.v4beta1.Job getJob( + com.google.cloud.talent.v4beta1.GetJobRequest request) { + return blockingUnaryCall(getChannel(), getGetJobMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates specified job.
+     * Typically, updated contents become visible in search results within 10
+     * seconds, but it may take up to 5 minutes.
+     * 
+ */ + public com.google.cloud.talent.v4beta1.Job updateJob( + com.google.cloud.talent.v4beta1.UpdateJobRequest request) { + return blockingUnaryCall(getChannel(), getUpdateJobMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes the specified job.
+     * Typically, the job becomes unsearchable within 10 seconds, but it may take
+     * up to 5 minutes.
+     * 
+ */ + public com.google.protobuf.Empty deleteJob( + com.google.cloud.talent.v4beta1.DeleteJobRequest request) { + return blockingUnaryCall(getChannel(), getDeleteJobMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists jobs by filter.
+     * 
+ */ + public com.google.cloud.talent.v4beta1.ListJobsResponse listJobs( + com.google.cloud.talent.v4beta1.ListJobsRequest request) { + return blockingUnaryCall(getChannel(), getListJobsMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a list of [Job][google.cloud.talent.v4beta1.Job]s by filter.
+     * 
+ */ + public com.google.protobuf.Empty batchDeleteJobs( + com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest request) { + return blockingUnaryCall( + getChannel(), getBatchDeleteJobsMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Searches for jobs using the provided
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * This call constrains the
+     * [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs present in
+     * the database, and only returns jobs that the caller has permission to
+     * search against.
+     * 
+ */ + public com.google.cloud.talent.v4beta1.SearchJobsResponse searchJobs( + com.google.cloud.talent.v4beta1.SearchJobsRequest request) { + return blockingUnaryCall( + getChannel(), getSearchJobsMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Searches for jobs using the provided
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * This API call is intended for the use case of targeting passive job
+     * seekers (for example, job seekers who have signed up to receive email
+     * alerts about potential job opportunities), and has different algorithmic
+     * adjustments that are targeted to passive job seekers.
+     * This call constrains the
+     * [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs present in
+     * the database, and only returns jobs the caller has permission to search
+     * against.
+     * 
+ */ + public com.google.cloud.talent.v4beta1.SearchJobsResponse searchJobsForAlert( + com.google.cloud.talent.v4beta1.SearchJobsRequest request) { + return blockingUnaryCall( + getChannel(), getSearchJobsForAlertMethodHelper(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * A service handles job management, including job CRUD, enumeration and search.
+   * 
+ */ + public static final class JobServiceFutureStub + extends io.grpc.stub.AbstractStub { + private JobServiceFutureStub(io.grpc.Channel channel) { + super(channel); + } + + private JobServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected JobServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new JobServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new job.
+     * Typically, the job becomes searchable within 10 seconds, but it may take
+     * up to 5 minutes.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createJob(com.google.cloud.talent.v4beta1.CreateJobRequest request) { + return futureUnaryCall( + getChannel().newCall(getCreateJobMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieves the specified job, whose status is OPEN or recently EXPIRED
+     * within the last 90 days.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getJob(com.google.cloud.talent.v4beta1.GetJobRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetJobMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates specified job.
+     * Typically, updated contents become visible in search results within 10
+     * seconds, but it may take up to 5 minutes.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateJob(com.google.cloud.talent.v4beta1.UpdateJobRequest request) { + return futureUnaryCall( + getChannel().newCall(getUpdateJobMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes the specified job.
+     * Typically, the job becomes unsearchable within 10 seconds, but it may take
+     * up to 5 minutes.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteJob( + com.google.cloud.talent.v4beta1.DeleteJobRequest request) { + return futureUnaryCall( + getChannel().newCall(getDeleteJobMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists jobs by filter.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.talent.v4beta1.ListJobsResponse> + listJobs(com.google.cloud.talent.v4beta1.ListJobsRequest request) { + return futureUnaryCall( + getChannel().newCall(getListJobsMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a list of [Job][google.cloud.talent.v4beta1.Job]s by filter.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + batchDeleteJobs(com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest request) { + return futureUnaryCall( + getChannel().newCall(getBatchDeleteJobsMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Searches for jobs using the provided
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * This call constrains the
+     * [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs present in
+     * the database, and only returns jobs that the caller has permission to
+     * search against.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.talent.v4beta1.SearchJobsResponse> + searchJobs(com.google.cloud.talent.v4beta1.SearchJobsRequest request) { + return futureUnaryCall( + getChannel().newCall(getSearchJobsMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Searches for jobs using the provided
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * This API call is intended for the use case of targeting passive job
+     * seekers (for example, job seekers who have signed up to receive email
+     * alerts about potential job opportunities), and has different algorithmic
+     * adjustments that are targeted to passive job seekers.
+     * This call constrains the
+     * [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs present in
+     * the database, and only returns jobs the caller has permission to search
+     * against.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.talent.v4beta1.SearchJobsResponse> + searchJobsForAlert(com.google.cloud.talent.v4beta1.SearchJobsRequest request) { + return futureUnaryCall( + getChannel().newCall(getSearchJobsForAlertMethodHelper(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_JOB = 0; + private static final int METHODID_GET_JOB = 1; + private static final int METHODID_UPDATE_JOB = 2; + private static final int METHODID_DELETE_JOB = 3; + private static final int METHODID_LIST_JOBS = 4; + private static final int METHODID_BATCH_DELETE_JOBS = 5; + private static final int METHODID_SEARCH_JOBS = 6; + private static final int METHODID_SEARCH_JOBS_FOR_ALERT = 7; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final JobServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(JobServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_JOB: + serviceImpl.createJob( + (com.google.cloud.talent.v4beta1.CreateJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_JOB: + serviceImpl.getJob( + (com.google.cloud.talent.v4beta1.GetJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_JOB: + serviceImpl.updateJob( + (com.google.cloud.talent.v4beta1.UpdateJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_JOB: + serviceImpl.deleteJob( + (com.google.cloud.talent.v4beta1.DeleteJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_JOBS: + serviceImpl.listJobs( + (com.google.cloud.talent.v4beta1.ListJobsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_BATCH_DELETE_JOBS: + serviceImpl.batchDeleteJobs( + (com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SEARCH_JOBS: + serviceImpl.searchJobs( + (com.google.cloud.talent.v4beta1.SearchJobsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_SEARCH_JOBS_FOR_ALERT: + serviceImpl.searchJobsForAlert( + (com.google.cloud.talent.v4beta1.SearchJobsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class JobServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + JobServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("JobService"); + } + } + + private static final class JobServiceFileDescriptorSupplier + extends JobServiceBaseDescriptorSupplier { + JobServiceFileDescriptorSupplier() {} + } + + private static final class JobServiceMethodDescriptorSupplier + extends JobServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + JobServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (JobServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new JobServiceFileDescriptorSupplier()) + .addMethod(getCreateJobMethodHelper()) + .addMethod(getGetJobMethodHelper()) + .addMethod(getUpdateJobMethodHelper()) + .addMethod(getDeleteJobMethodHelper()) + .addMethod(getListJobsMethodHelper()) + .addMethod(getBatchDeleteJobsMethodHelper()) + .addMethod(getSearchJobsMethodHelper()) + .addMethod(getSearchJobsForAlertMethodHelper()) + .build(); + } + } + } + return result; + } +} diff --git a/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceGrpc.java b/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceGrpc.java new file mode 100644 index 000000000000..c26c22568a10 --- /dev/null +++ b/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceGrpc.java @@ -0,0 +1,1012 @@ +package com.google.cloud.talent.v4beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; +import static io.grpc.stub.ClientCalls.asyncUnaryCall; +import static io.grpc.stub.ClientCalls.blockingUnaryCall; +import static io.grpc.stub.ClientCalls.futureUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; + +/** + * + * + *
+ * A service that handles profile management, including profile CRUD,
+ * enumeration and search.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.10.0)", + comments = "Source: google/cloud/talent/v4beta1/profile_service.proto") +public final class ProfileServiceGrpc { + + private ProfileServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.talent.v4beta1.ProfileService"; + + // Static method descriptors that strictly reflect the proto. + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getListProfilesMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ListProfilesRequest, + com.google.cloud.talent.v4beta1.ListProfilesResponse> + METHOD_LIST_PROFILES = getListProfilesMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ListProfilesRequest, + com.google.cloud.talent.v4beta1.ListProfilesResponse> + getListProfilesMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ListProfilesRequest, + com.google.cloud.talent.v4beta1.ListProfilesResponse> + getListProfilesMethod() { + return getListProfilesMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ListProfilesRequest, + com.google.cloud.talent.v4beta1.ListProfilesResponse> + getListProfilesMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ListProfilesRequest, + com.google.cloud.talent.v4beta1.ListProfilesResponse> + getListProfilesMethod; + if ((getListProfilesMethod = ProfileServiceGrpc.getListProfilesMethod) == null) { + synchronized (ProfileServiceGrpc.class) { + if ((getListProfilesMethod = ProfileServiceGrpc.getListProfilesMethod) == null) { + ProfileServiceGrpc.getListProfilesMethod = + getListProfilesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.ProfileService", "ListProfiles")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.ListProfilesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.ListProfilesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new ProfileServiceMethodDescriptorSupplier("ListProfiles")) + .build(); + } + } + } + return getListProfilesMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getCreateProfileMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateProfileRequest, + com.google.cloud.talent.v4beta1.Profile> + METHOD_CREATE_PROFILE = getCreateProfileMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateProfileRequest, + com.google.cloud.talent.v4beta1.Profile> + getCreateProfileMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateProfileRequest, + com.google.cloud.talent.v4beta1.Profile> + getCreateProfileMethod() { + return getCreateProfileMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateProfileRequest, + com.google.cloud.talent.v4beta1.Profile> + getCreateProfileMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateProfileRequest, + com.google.cloud.talent.v4beta1.Profile> + getCreateProfileMethod; + if ((getCreateProfileMethod = ProfileServiceGrpc.getCreateProfileMethod) == null) { + synchronized (ProfileServiceGrpc.class) { + if ((getCreateProfileMethod = ProfileServiceGrpc.getCreateProfileMethod) == null) { + ProfileServiceGrpc.getCreateProfileMethod = + getCreateProfileMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.ProfileService", "CreateProfile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.CreateProfileRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.Profile.getDefaultInstance())) + .setSchemaDescriptor( + new ProfileServiceMethodDescriptorSupplier("CreateProfile")) + .build(); + } + } + } + return getCreateProfileMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getGetProfileMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.GetProfileRequest, + com.google.cloud.talent.v4beta1.Profile> + METHOD_GET_PROFILE = getGetProfileMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.GetProfileRequest, + com.google.cloud.talent.v4beta1.Profile> + getGetProfileMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.GetProfileRequest, + com.google.cloud.talent.v4beta1.Profile> + getGetProfileMethod() { + return getGetProfileMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.GetProfileRequest, + com.google.cloud.talent.v4beta1.Profile> + getGetProfileMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.GetProfileRequest, + com.google.cloud.talent.v4beta1.Profile> + getGetProfileMethod; + if ((getGetProfileMethod = ProfileServiceGrpc.getGetProfileMethod) == null) { + synchronized (ProfileServiceGrpc.class) { + if ((getGetProfileMethod = ProfileServiceGrpc.getGetProfileMethod) == null) { + ProfileServiceGrpc.getGetProfileMethod = + getGetProfileMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.ProfileService", "GetProfile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.GetProfileRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.Profile.getDefaultInstance())) + .setSchemaDescriptor(new ProfileServiceMethodDescriptorSupplier("GetProfile")) + .build(); + } + } + } + return getGetProfileMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getUpdateProfileMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.UpdateProfileRequest, + com.google.cloud.talent.v4beta1.Profile> + METHOD_UPDATE_PROFILE = getUpdateProfileMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.UpdateProfileRequest, + com.google.cloud.talent.v4beta1.Profile> + getUpdateProfileMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.UpdateProfileRequest, + com.google.cloud.talent.v4beta1.Profile> + getUpdateProfileMethod() { + return getUpdateProfileMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.UpdateProfileRequest, + com.google.cloud.talent.v4beta1.Profile> + getUpdateProfileMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.UpdateProfileRequest, + com.google.cloud.talent.v4beta1.Profile> + getUpdateProfileMethod; + if ((getUpdateProfileMethod = ProfileServiceGrpc.getUpdateProfileMethod) == null) { + synchronized (ProfileServiceGrpc.class) { + if ((getUpdateProfileMethod = ProfileServiceGrpc.getUpdateProfileMethod) == null) { + ProfileServiceGrpc.getUpdateProfileMethod = + getUpdateProfileMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.ProfileService", "UpdateProfile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.UpdateProfileRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.Profile.getDefaultInstance())) + .setSchemaDescriptor( + new ProfileServiceMethodDescriptorSupplier("UpdateProfile")) + .build(); + } + } + } + return getUpdateProfileMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getDeleteProfileMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.DeleteProfileRequest, com.google.protobuf.Empty> + METHOD_DELETE_PROFILE = getDeleteProfileMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.DeleteProfileRequest, com.google.protobuf.Empty> + getDeleteProfileMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.DeleteProfileRequest, com.google.protobuf.Empty> + getDeleteProfileMethod() { + return getDeleteProfileMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.DeleteProfileRequest, com.google.protobuf.Empty> + getDeleteProfileMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.DeleteProfileRequest, com.google.protobuf.Empty> + getDeleteProfileMethod; + if ((getDeleteProfileMethod = ProfileServiceGrpc.getDeleteProfileMethod) == null) { + synchronized (ProfileServiceGrpc.class) { + if ((getDeleteProfileMethod = ProfileServiceGrpc.getDeleteProfileMethod) == null) { + ProfileServiceGrpc.getDeleteProfileMethod = + getDeleteProfileMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.ProfileService", "DeleteProfile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.DeleteProfileRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new ProfileServiceMethodDescriptorSupplier("DeleteProfile")) + .build(); + } + } + } + return getDeleteProfileMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getSearchProfilesMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.SearchProfilesRequest, + com.google.cloud.talent.v4beta1.SearchProfilesResponse> + METHOD_SEARCH_PROFILES = getSearchProfilesMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.SearchProfilesRequest, + com.google.cloud.talent.v4beta1.SearchProfilesResponse> + getSearchProfilesMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.SearchProfilesRequest, + com.google.cloud.talent.v4beta1.SearchProfilesResponse> + getSearchProfilesMethod() { + return getSearchProfilesMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.SearchProfilesRequest, + com.google.cloud.talent.v4beta1.SearchProfilesResponse> + getSearchProfilesMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.SearchProfilesRequest, + com.google.cloud.talent.v4beta1.SearchProfilesResponse> + getSearchProfilesMethod; + if ((getSearchProfilesMethod = ProfileServiceGrpc.getSearchProfilesMethod) == null) { + synchronized (ProfileServiceGrpc.class) { + if ((getSearchProfilesMethod = ProfileServiceGrpc.getSearchProfilesMethod) == null) { + ProfileServiceGrpc.getSearchProfilesMethod = + getSearchProfilesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.ProfileService", "SearchProfiles")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.SearchProfilesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.SearchProfilesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new ProfileServiceMethodDescriptorSupplier("SearchProfiles")) + .build(); + } + } + } + return getSearchProfilesMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static ProfileServiceStub newStub(io.grpc.Channel channel) { + return new ProfileServiceStub(channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ProfileServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + return new ProfileServiceBlockingStub(channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static ProfileServiceFutureStub newFutureStub(io.grpc.Channel channel) { + return new ProfileServiceFutureStub(channel); + } + + /** + * + * + *
+   * A service that handles profile management, including profile CRUD,
+   * enumeration and search.
+   * 
+ */ + public abstract static class ProfileServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Lists profiles by filter. The order is unspecified.
+     * 
+ */ + public void listProfiles( + com.google.cloud.talent.v4beta1.ListProfilesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getListProfilesMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Creates and returns a new profile.
+     * 
+ */ + public void createProfile( + com.google.cloud.talent.v4beta1.CreateProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getCreateProfileMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Gets the specified profile.
+     * 
+ */ + public void getProfile( + com.google.cloud.talent.v4beta1.GetProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetProfileMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Updates the specified profile and returns the updated result.
+     * 
+ */ + public void updateProfile( + com.google.cloud.talent.v4beta1.UpdateProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getUpdateProfileMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Deletes the specified profile.
+     * 
+ */ + public void deleteProfile( + com.google.cloud.talent.v4beta1.DeleteProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getDeleteProfileMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Searches for profiles within a tenant.
+     * For example, search by raw queries "software engineer in Mountain View" or
+     * search by structured filters (location filter, education filter, etc.).
+     * See
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest]
+     * for more information.
+     * 
+ */ + public void searchProfiles( + com.google.cloud.talent.v4beta1.SearchProfilesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getSearchProfilesMethodHelper(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListProfilesMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.ListProfilesRequest, + com.google.cloud.talent.v4beta1.ListProfilesResponse>( + this, METHODID_LIST_PROFILES))) + .addMethod( + getCreateProfileMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.CreateProfileRequest, + com.google.cloud.talent.v4beta1.Profile>(this, METHODID_CREATE_PROFILE))) + .addMethod( + getGetProfileMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.GetProfileRequest, + com.google.cloud.talent.v4beta1.Profile>(this, METHODID_GET_PROFILE))) + .addMethod( + getUpdateProfileMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.UpdateProfileRequest, + com.google.cloud.talent.v4beta1.Profile>(this, METHODID_UPDATE_PROFILE))) + .addMethod( + getDeleteProfileMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.DeleteProfileRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_PROFILE))) + .addMethod( + getSearchProfilesMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.SearchProfilesRequest, + com.google.cloud.talent.v4beta1.SearchProfilesResponse>( + this, METHODID_SEARCH_PROFILES))) + .build(); + } + } + + /** + * + * + *
+   * A service that handles profile management, including profile CRUD,
+   * enumeration and search.
+   * 
+ */ + public static final class ProfileServiceStub + extends io.grpc.stub.AbstractStub { + private ProfileServiceStub(io.grpc.Channel channel) { + super(channel); + } + + private ProfileServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ProfileServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ProfileServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists profiles by filter. The order is unspecified.
+     * 
+ */ + public void listProfiles( + com.google.cloud.talent.v4beta1.ListProfilesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getListProfilesMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates and returns a new profile.
+     * 
+ */ + public void createProfile( + com.google.cloud.talent.v4beta1.CreateProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getCreateProfileMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets the specified profile.
+     * 
+ */ + public void getProfile( + com.google.cloud.talent.v4beta1.GetProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetProfileMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the specified profile and returns the updated result.
+     * 
+ */ + public void updateProfile( + com.google.cloud.talent.v4beta1.UpdateProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getUpdateProfileMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes the specified profile.
+     * 
+ */ + public void deleteProfile( + com.google.cloud.talent.v4beta1.DeleteProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getDeleteProfileMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Searches for profiles within a tenant.
+     * For example, search by raw queries "software engineer in Mountain View" or
+     * search by structured filters (location filter, education filter, etc.).
+     * See
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest]
+     * for more information.
+     * 
+ */ + public void searchProfiles( + com.google.cloud.talent.v4beta1.SearchProfilesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getSearchProfilesMethodHelper(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * A service that handles profile management, including profile CRUD,
+   * enumeration and search.
+   * 
+ */ + public static final class ProfileServiceBlockingStub + extends io.grpc.stub.AbstractStub { + private ProfileServiceBlockingStub(io.grpc.Channel channel) { + super(channel); + } + + private ProfileServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ProfileServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ProfileServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists profiles by filter. The order is unspecified.
+     * 
+ */ + public com.google.cloud.talent.v4beta1.ListProfilesResponse listProfiles( + com.google.cloud.talent.v4beta1.ListProfilesRequest request) { + return blockingUnaryCall( + getChannel(), getListProfilesMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates and returns a new profile.
+     * 
+ */ + public com.google.cloud.talent.v4beta1.Profile createProfile( + com.google.cloud.talent.v4beta1.CreateProfileRequest request) { + return blockingUnaryCall( + getChannel(), getCreateProfileMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the specified profile.
+     * 
+ */ + public com.google.cloud.talent.v4beta1.Profile getProfile( + com.google.cloud.talent.v4beta1.GetProfileRequest request) { + return blockingUnaryCall( + getChannel(), getGetProfileMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the specified profile and returns the updated result.
+     * 
+ */ + public com.google.cloud.talent.v4beta1.Profile updateProfile( + com.google.cloud.talent.v4beta1.UpdateProfileRequest request) { + return blockingUnaryCall( + getChannel(), getUpdateProfileMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes the specified profile.
+     * 
+ */ + public com.google.protobuf.Empty deleteProfile( + com.google.cloud.talent.v4beta1.DeleteProfileRequest request) { + return blockingUnaryCall( + getChannel(), getDeleteProfileMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Searches for profiles within a tenant.
+     * For example, search by raw queries "software engineer in Mountain View" or
+     * search by structured filters (location filter, education filter, etc.).
+     * See
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest]
+     * for more information.
+     * 
+ */ + public com.google.cloud.talent.v4beta1.SearchProfilesResponse searchProfiles( + com.google.cloud.talent.v4beta1.SearchProfilesRequest request) { + return blockingUnaryCall( + getChannel(), getSearchProfilesMethodHelper(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * A service that handles profile management, including profile CRUD,
+   * enumeration and search.
+   * 
+ */ + public static final class ProfileServiceFutureStub + extends io.grpc.stub.AbstractStub { + private ProfileServiceFutureStub(io.grpc.Channel channel) { + super(channel); + } + + private ProfileServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ProfileServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ProfileServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists profiles by filter. The order is unspecified.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.talent.v4beta1.ListProfilesResponse> + listProfiles(com.google.cloud.talent.v4beta1.ListProfilesRequest request) { + return futureUnaryCall( + getChannel().newCall(getListProfilesMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates and returns a new profile.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.talent.v4beta1.Profile> + createProfile(com.google.cloud.talent.v4beta1.CreateProfileRequest request) { + return futureUnaryCall( + getChannel().newCall(getCreateProfileMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets the specified profile.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.talent.v4beta1.Profile> + getProfile(com.google.cloud.talent.v4beta1.GetProfileRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetProfileMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the specified profile and returns the updated result.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.talent.v4beta1.Profile> + updateProfile(com.google.cloud.talent.v4beta1.UpdateProfileRequest request) { + return futureUnaryCall( + getChannel().newCall(getUpdateProfileMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes the specified profile.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteProfile(com.google.cloud.talent.v4beta1.DeleteProfileRequest request) { + return futureUnaryCall( + getChannel().newCall(getDeleteProfileMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Searches for profiles within a tenant.
+     * For example, search by raw queries "software engineer in Mountain View" or
+     * search by structured filters (location filter, education filter, etc.).
+     * See
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest]
+     * for more information.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.talent.v4beta1.SearchProfilesResponse> + searchProfiles(com.google.cloud.talent.v4beta1.SearchProfilesRequest request) { + return futureUnaryCall( + getChannel().newCall(getSearchProfilesMethodHelper(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_PROFILES = 0; + private static final int METHODID_CREATE_PROFILE = 1; + private static final int METHODID_GET_PROFILE = 2; + private static final int METHODID_UPDATE_PROFILE = 3; + private static final int METHODID_DELETE_PROFILE = 4; + private static final int METHODID_SEARCH_PROFILES = 5; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final ProfileServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(ProfileServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_PROFILES: + serviceImpl.listProfiles( + (com.google.cloud.talent.v4beta1.ListProfilesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_PROFILE: + serviceImpl.createProfile( + (com.google.cloud.talent.v4beta1.CreateProfileRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_PROFILE: + serviceImpl.getProfile( + (com.google.cloud.talent.v4beta1.GetProfileRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_PROFILE: + serviceImpl.updateProfile( + (com.google.cloud.talent.v4beta1.UpdateProfileRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_PROFILE: + serviceImpl.deleteProfile( + (com.google.cloud.talent.v4beta1.DeleteProfileRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SEARCH_PROFILES: + serviceImpl.searchProfiles( + (com.google.cloud.talent.v4beta1.SearchProfilesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class ProfileServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ProfileServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("ProfileService"); + } + } + + private static final class ProfileServiceFileDescriptorSupplier + extends ProfileServiceBaseDescriptorSupplier { + ProfileServiceFileDescriptorSupplier() {} + } + + private static final class ProfileServiceMethodDescriptorSupplier + extends ProfileServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + ProfileServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (ProfileServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ProfileServiceFileDescriptorSupplier()) + .addMethod(getListProfilesMethodHelper()) + .addMethod(getCreateProfileMethodHelper()) + .addMethod(getGetProfileMethodHelper()) + .addMethod(getUpdateProfileMethodHelper()) + .addMethod(getDeleteProfileMethodHelper()) + .addMethod(getSearchProfilesMethodHelper()) + .build(); + } + } + } + return result; + } +} diff --git a/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResumeServiceGrpc.java b/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResumeServiceGrpc.java new file mode 100644 index 000000000000..c512ae904c03 --- /dev/null +++ b/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResumeServiceGrpc.java @@ -0,0 +1,441 @@ +package com.google.cloud.talent.v4beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; +import static io.grpc.stub.ClientCalls.asyncUnaryCall; +import static io.grpc.stub.ClientCalls.blockingUnaryCall; +import static io.grpc.stub.ClientCalls.futureUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; + +/** + * + * + *
+ * A service that handles resume parsing.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.10.0)", + comments = "Source: google/cloud/talent/v4beta1/resume_service.proto") +public final class ResumeServiceGrpc { + + private ResumeServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.talent.v4beta1.ResumeService"; + + // Static method descriptors that strictly reflect the proto. + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getParseResumeMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ParseResumeRequest, + com.google.cloud.talent.v4beta1.ParseResumeResponse> + METHOD_PARSE_RESUME = getParseResumeMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ParseResumeRequest, + com.google.cloud.talent.v4beta1.ParseResumeResponse> + getParseResumeMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ParseResumeRequest, + com.google.cloud.talent.v4beta1.ParseResumeResponse> + getParseResumeMethod() { + return getParseResumeMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ParseResumeRequest, + com.google.cloud.talent.v4beta1.ParseResumeResponse> + getParseResumeMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ParseResumeRequest, + com.google.cloud.talent.v4beta1.ParseResumeResponse> + getParseResumeMethod; + if ((getParseResumeMethod = ResumeServiceGrpc.getParseResumeMethod) == null) { + synchronized (ResumeServiceGrpc.class) { + if ((getParseResumeMethod = ResumeServiceGrpc.getParseResumeMethod) == null) { + ResumeServiceGrpc.getParseResumeMethod = + getParseResumeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.ResumeService", "ParseResume")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.ParseResumeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.ParseResumeResponse + .getDefaultInstance())) + .setSchemaDescriptor(new ResumeServiceMethodDescriptorSupplier("ParseResume")) + .build(); + } + } + } + return getParseResumeMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static ResumeServiceStub newStub(io.grpc.Channel channel) { + return new ResumeServiceStub(channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ResumeServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + return new ResumeServiceBlockingStub(channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static ResumeServiceFutureStub newFutureStub(io.grpc.Channel channel) { + return new ResumeServiceFutureStub(channel); + } + + /** + * + * + *
+   * A service that handles resume parsing.
+   * 
+ */ + public abstract static class ResumeServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Parses a resume into a [Profile][google.cloud.talent.v4beta1.Profile]. The
+     * API attempts to fill out the following profile fields if present within the
+     * resume:
+     * * personNames
+     * * addresses
+     * * emailAddress
+     * * phoneNumbers
+     * * personalUris
+     * * employmentRecords
+     * * educationRecords
+     * * skills
+     * Note that some attributes in these fields may not be populated if they're
+     * not present within the resume or unrecognizable by the resume parser.
+     * This API does not save the resume or profile. To create a profile from this
+     * resume, clients need to call the CreateProfile method again with the
+     * profile returned.
+     * The following list of formats are supported:
+     * * PDF
+     * * TXT
+     * * DOC
+     * * RTF
+     * * DOCX
+     * * PNG (only when [ParseResumeRequest.enable_ocr][] is set to `true`,
+     * otherwise an error is thrown)
+     * 
+ */ + public void parseResume( + com.google.cloud.talent.v4beta1.ParseResumeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getParseResumeMethodHelper(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getParseResumeMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.ParseResumeRequest, + com.google.cloud.talent.v4beta1.ParseResumeResponse>( + this, METHODID_PARSE_RESUME))) + .build(); + } + } + + /** + * + * + *
+   * A service that handles resume parsing.
+   * 
+ */ + public static final class ResumeServiceStub extends io.grpc.stub.AbstractStub { + private ResumeServiceStub(io.grpc.Channel channel) { + super(channel); + } + + private ResumeServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ResumeServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ResumeServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Parses a resume into a [Profile][google.cloud.talent.v4beta1.Profile]. The
+     * API attempts to fill out the following profile fields if present within the
+     * resume:
+     * * personNames
+     * * addresses
+     * * emailAddress
+     * * phoneNumbers
+     * * personalUris
+     * * employmentRecords
+     * * educationRecords
+     * * skills
+     * Note that some attributes in these fields may not be populated if they're
+     * not present within the resume or unrecognizable by the resume parser.
+     * This API does not save the resume or profile. To create a profile from this
+     * resume, clients need to call the CreateProfile method again with the
+     * profile returned.
+     * The following list of formats are supported:
+     * * PDF
+     * * TXT
+     * * DOC
+     * * RTF
+     * * DOCX
+     * * PNG (only when [ParseResumeRequest.enable_ocr][] is set to `true`,
+     * otherwise an error is thrown)
+     * 
+ */ + public void parseResume( + com.google.cloud.talent.v4beta1.ParseResumeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getParseResumeMethodHelper(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * A service that handles resume parsing.
+   * 
+ */ + public static final class ResumeServiceBlockingStub + extends io.grpc.stub.AbstractStub { + private ResumeServiceBlockingStub(io.grpc.Channel channel) { + super(channel); + } + + private ResumeServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ResumeServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ResumeServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Parses a resume into a [Profile][google.cloud.talent.v4beta1.Profile]. The
+     * API attempts to fill out the following profile fields if present within the
+     * resume:
+     * * personNames
+     * * addresses
+     * * emailAddress
+     * * phoneNumbers
+     * * personalUris
+     * * employmentRecords
+     * * educationRecords
+     * * skills
+     * Note that some attributes in these fields may not be populated if they're
+     * not present within the resume or unrecognizable by the resume parser.
+     * This API does not save the resume or profile. To create a profile from this
+     * resume, clients need to call the CreateProfile method again with the
+     * profile returned.
+     * The following list of formats are supported:
+     * * PDF
+     * * TXT
+     * * DOC
+     * * RTF
+     * * DOCX
+     * * PNG (only when [ParseResumeRequest.enable_ocr][] is set to `true`,
+     * otherwise an error is thrown)
+     * 
+ */ + public com.google.cloud.talent.v4beta1.ParseResumeResponse parseResume( + com.google.cloud.talent.v4beta1.ParseResumeRequest request) { + return blockingUnaryCall( + getChannel(), getParseResumeMethodHelper(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * A service that handles resume parsing.
+   * 
+ */ + public static final class ResumeServiceFutureStub + extends io.grpc.stub.AbstractStub { + private ResumeServiceFutureStub(io.grpc.Channel channel) { + super(channel); + } + + private ResumeServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ResumeServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ResumeServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Parses a resume into a [Profile][google.cloud.talent.v4beta1.Profile]. The
+     * API attempts to fill out the following profile fields if present within the
+     * resume:
+     * * personNames
+     * * addresses
+     * * emailAddress
+     * * phoneNumbers
+     * * personalUris
+     * * employmentRecords
+     * * educationRecords
+     * * skills
+     * Note that some attributes in these fields may not be populated if they're
+     * not present within the resume or unrecognizable by the resume parser.
+     * This API does not save the resume or profile. To create a profile from this
+     * resume, clients need to call the CreateProfile method again with the
+     * profile returned.
+     * The following list of formats are supported:
+     * * PDF
+     * * TXT
+     * * DOC
+     * * RTF
+     * * DOCX
+     * * PNG (only when [ParseResumeRequest.enable_ocr][] is set to `true`,
+     * otherwise an error is thrown)
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.talent.v4beta1.ParseResumeResponse> + parseResume(com.google.cloud.talent.v4beta1.ParseResumeRequest request) { + return futureUnaryCall( + getChannel().newCall(getParseResumeMethodHelper(), getCallOptions()), request); + } + } + + private static final int METHODID_PARSE_RESUME = 0; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final ResumeServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(ResumeServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_PARSE_RESUME: + serviceImpl.parseResume( + (com.google.cloud.talent.v4beta1.ParseResumeRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class ResumeServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ResumeServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.talent.v4beta1.ResumeServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("ResumeService"); + } + } + + private static final class ResumeServiceFileDescriptorSupplier + extends ResumeServiceBaseDescriptorSupplier { + ResumeServiceFileDescriptorSupplier() {} + } + + private static final class ResumeServiceMethodDescriptorSupplier + extends ResumeServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + ResumeServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (ResumeServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ResumeServiceFileDescriptorSupplier()) + .addMethod(getParseResumeMethodHelper()) + .build(); + } + } + } + return result; + } +} diff --git a/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceGrpc.java b/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceGrpc.java new file mode 100644 index 000000000000..bdc534067ece --- /dev/null +++ b/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceGrpc.java @@ -0,0 +1,848 @@ +package com.google.cloud.talent.v4beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; +import static io.grpc.stub.ClientCalls.asyncUnaryCall; +import static io.grpc.stub.ClientCalls.blockingUnaryCall; +import static io.grpc.stub.ClientCalls.futureUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; + +/** + * + * + *
+ * A service that handles tenant management, including CRUD and enumeration.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.10.0)", + comments = "Source: google/cloud/talent/v4beta1/tenant_service.proto") +public final class TenantServiceGrpc { + + private TenantServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.talent.v4beta1.TenantService"; + + // Static method descriptors that strictly reflect the proto. + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getCreateTenantMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateTenantRequest, + com.google.cloud.talent.v4beta1.Tenant> + METHOD_CREATE_TENANT = getCreateTenantMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateTenantRequest, + com.google.cloud.talent.v4beta1.Tenant> + getCreateTenantMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateTenantRequest, + com.google.cloud.talent.v4beta1.Tenant> + getCreateTenantMethod() { + return getCreateTenantMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateTenantRequest, + com.google.cloud.talent.v4beta1.Tenant> + getCreateTenantMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateTenantRequest, + com.google.cloud.talent.v4beta1.Tenant> + getCreateTenantMethod; + if ((getCreateTenantMethod = TenantServiceGrpc.getCreateTenantMethod) == null) { + synchronized (TenantServiceGrpc.class) { + if ((getCreateTenantMethod = TenantServiceGrpc.getCreateTenantMethod) == null) { + TenantServiceGrpc.getCreateTenantMethod = + getCreateTenantMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.TenantService", "CreateTenant")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.CreateTenantRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.Tenant.getDefaultInstance())) + .setSchemaDescriptor( + new TenantServiceMethodDescriptorSupplier("CreateTenant")) + .build(); + } + } + } + return getCreateTenantMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getGetTenantMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.GetTenantRequest, com.google.cloud.talent.v4beta1.Tenant> + METHOD_GET_TENANT = getGetTenantMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.GetTenantRequest, com.google.cloud.talent.v4beta1.Tenant> + getGetTenantMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.GetTenantRequest, com.google.cloud.talent.v4beta1.Tenant> + getGetTenantMethod() { + return getGetTenantMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.GetTenantRequest, com.google.cloud.talent.v4beta1.Tenant> + getGetTenantMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.GetTenantRequest, + com.google.cloud.talent.v4beta1.Tenant> + getGetTenantMethod; + if ((getGetTenantMethod = TenantServiceGrpc.getGetTenantMethod) == null) { + synchronized (TenantServiceGrpc.class) { + if ((getGetTenantMethod = TenantServiceGrpc.getGetTenantMethod) == null) { + TenantServiceGrpc.getGetTenantMethod = + getGetTenantMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.TenantService", "GetTenant")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.GetTenantRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.Tenant.getDefaultInstance())) + .setSchemaDescriptor(new TenantServiceMethodDescriptorSupplier("GetTenant")) + .build(); + } + } + } + return getGetTenantMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getUpdateTenantMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.UpdateTenantRequest, + com.google.cloud.talent.v4beta1.Tenant> + METHOD_UPDATE_TENANT = getUpdateTenantMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.UpdateTenantRequest, + com.google.cloud.talent.v4beta1.Tenant> + getUpdateTenantMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.UpdateTenantRequest, + com.google.cloud.talent.v4beta1.Tenant> + getUpdateTenantMethod() { + return getUpdateTenantMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.UpdateTenantRequest, + com.google.cloud.talent.v4beta1.Tenant> + getUpdateTenantMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.UpdateTenantRequest, + com.google.cloud.talent.v4beta1.Tenant> + getUpdateTenantMethod; + if ((getUpdateTenantMethod = TenantServiceGrpc.getUpdateTenantMethod) == null) { + synchronized (TenantServiceGrpc.class) { + if ((getUpdateTenantMethod = TenantServiceGrpc.getUpdateTenantMethod) == null) { + TenantServiceGrpc.getUpdateTenantMethod = + getUpdateTenantMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.TenantService", "UpdateTenant")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.UpdateTenantRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.Tenant.getDefaultInstance())) + .setSchemaDescriptor( + new TenantServiceMethodDescriptorSupplier("UpdateTenant")) + .build(); + } + } + } + return getUpdateTenantMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getDeleteTenantMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.DeleteTenantRequest, com.google.protobuf.Empty> + METHOD_DELETE_TENANT = getDeleteTenantMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.DeleteTenantRequest, com.google.protobuf.Empty> + getDeleteTenantMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.DeleteTenantRequest, com.google.protobuf.Empty> + getDeleteTenantMethod() { + return getDeleteTenantMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.DeleteTenantRequest, com.google.protobuf.Empty> + getDeleteTenantMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.DeleteTenantRequest, com.google.protobuf.Empty> + getDeleteTenantMethod; + if ((getDeleteTenantMethod = TenantServiceGrpc.getDeleteTenantMethod) == null) { + synchronized (TenantServiceGrpc.class) { + if ((getDeleteTenantMethod = TenantServiceGrpc.getDeleteTenantMethod) == null) { + TenantServiceGrpc.getDeleteTenantMethod = + getDeleteTenantMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.TenantService", "DeleteTenant")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.DeleteTenantRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new TenantServiceMethodDescriptorSupplier("DeleteTenant")) + .build(); + } + } + } + return getDeleteTenantMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getListTenantsMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ListTenantsRequest, + com.google.cloud.talent.v4beta1.ListTenantsResponse> + METHOD_LIST_TENANTS = getListTenantsMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ListTenantsRequest, + com.google.cloud.talent.v4beta1.ListTenantsResponse> + getListTenantsMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ListTenantsRequest, + com.google.cloud.talent.v4beta1.ListTenantsResponse> + getListTenantsMethod() { + return getListTenantsMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ListTenantsRequest, + com.google.cloud.talent.v4beta1.ListTenantsResponse> + getListTenantsMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ListTenantsRequest, + com.google.cloud.talent.v4beta1.ListTenantsResponse> + getListTenantsMethod; + if ((getListTenantsMethod = TenantServiceGrpc.getListTenantsMethod) == null) { + synchronized (TenantServiceGrpc.class) { + if ((getListTenantsMethod = TenantServiceGrpc.getListTenantsMethod) == null) { + TenantServiceGrpc.getListTenantsMethod = + getListTenantsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.talent.v4beta1.TenantService", "ListTenants")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.ListTenantsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.talent.v4beta1.ListTenantsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new TenantServiceMethodDescriptorSupplier("ListTenants")) + .build(); + } + } + } + return getListTenantsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static TenantServiceStub newStub(io.grpc.Channel channel) { + return new TenantServiceStub(channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static TenantServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + return new TenantServiceBlockingStub(channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static TenantServiceFutureStub newFutureStub(io.grpc.Channel channel) { + return new TenantServiceFutureStub(channel); + } + + /** + * + * + *
+   * A service that handles tenant management, including CRUD and enumeration.
+   * 
+ */ + public abstract static class TenantServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Creates a new tenant entity.
+     * 
+ */ + public void createTenant( + com.google.cloud.talent.v4beta1.CreateTenantRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getCreateTenantMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Retrieves specified tenant.
+     * 
+ */ + public void getTenant( + com.google.cloud.talent.v4beta1.GetTenantRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetTenantMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Updates specified tenant.
+     * 
+ */ + public void updateTenant( + com.google.cloud.talent.v4beta1.UpdateTenantRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getUpdateTenantMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Deletes specified tenant.
+     * 
+ */ + public void deleteTenant( + com.google.cloud.talent.v4beta1.DeleteTenantRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getDeleteTenantMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Lists all tenants associated with the project.
+     * 
+ */ + public void listTenants( + com.google.cloud.talent.v4beta1.ListTenantsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getListTenantsMethodHelper(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateTenantMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.CreateTenantRequest, + com.google.cloud.talent.v4beta1.Tenant>(this, METHODID_CREATE_TENANT))) + .addMethod( + getGetTenantMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.GetTenantRequest, + com.google.cloud.talent.v4beta1.Tenant>(this, METHODID_GET_TENANT))) + .addMethod( + getUpdateTenantMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.UpdateTenantRequest, + com.google.cloud.talent.v4beta1.Tenant>(this, METHODID_UPDATE_TENANT))) + .addMethod( + getDeleteTenantMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.DeleteTenantRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_TENANT))) + .addMethod( + getListTenantsMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.ListTenantsRequest, + com.google.cloud.talent.v4beta1.ListTenantsResponse>( + this, METHODID_LIST_TENANTS))) + .build(); + } + } + + /** + * + * + *
+   * A service that handles tenant management, including CRUD and enumeration.
+   * 
+ */ + public static final class TenantServiceStub extends io.grpc.stub.AbstractStub { + private TenantServiceStub(io.grpc.Channel channel) { + super(channel); + } + + private TenantServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TenantServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TenantServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new tenant entity.
+     * 
+ */ + public void createTenant( + com.google.cloud.talent.v4beta1.CreateTenantRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getCreateTenantMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieves specified tenant.
+     * 
+ */ + public void getTenant( + com.google.cloud.talent.v4beta1.GetTenantRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetTenantMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates specified tenant.
+     * 
+ */ + public void updateTenant( + com.google.cloud.talent.v4beta1.UpdateTenantRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getUpdateTenantMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes specified tenant.
+     * 
+ */ + public void deleteTenant( + com.google.cloud.talent.v4beta1.DeleteTenantRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getDeleteTenantMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists all tenants associated with the project.
+     * 
+ */ + public void listTenants( + com.google.cloud.talent.v4beta1.ListTenantsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getListTenantsMethodHelper(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * A service that handles tenant management, including CRUD and enumeration.
+   * 
+ */ + public static final class TenantServiceBlockingStub + extends io.grpc.stub.AbstractStub { + private TenantServiceBlockingStub(io.grpc.Channel channel) { + super(channel); + } + + private TenantServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TenantServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TenantServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new tenant entity.
+     * 
+ */ + public com.google.cloud.talent.v4beta1.Tenant createTenant( + com.google.cloud.talent.v4beta1.CreateTenantRequest request) { + return blockingUnaryCall( + getChannel(), getCreateTenantMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieves specified tenant.
+     * 
+ */ + public com.google.cloud.talent.v4beta1.Tenant getTenant( + com.google.cloud.talent.v4beta1.GetTenantRequest request) { + return blockingUnaryCall(getChannel(), getGetTenantMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates specified tenant.
+     * 
+ */ + public com.google.cloud.talent.v4beta1.Tenant updateTenant( + com.google.cloud.talent.v4beta1.UpdateTenantRequest request) { + return blockingUnaryCall( + getChannel(), getUpdateTenantMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes specified tenant.
+     * 
+ */ + public com.google.protobuf.Empty deleteTenant( + com.google.cloud.talent.v4beta1.DeleteTenantRequest request) { + return blockingUnaryCall( + getChannel(), getDeleteTenantMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists all tenants associated with the project.
+     * 
+ */ + public com.google.cloud.talent.v4beta1.ListTenantsResponse listTenants( + com.google.cloud.talent.v4beta1.ListTenantsRequest request) { + return blockingUnaryCall( + getChannel(), getListTenantsMethodHelper(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * A service that handles tenant management, including CRUD and enumeration.
+   * 
+ */ + public static final class TenantServiceFutureStub + extends io.grpc.stub.AbstractStub { + private TenantServiceFutureStub(io.grpc.Channel channel) { + super(channel); + } + + private TenantServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TenantServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TenantServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new tenant entity.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.talent.v4beta1.Tenant> + createTenant(com.google.cloud.talent.v4beta1.CreateTenantRequest request) { + return futureUnaryCall( + getChannel().newCall(getCreateTenantMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieves specified tenant.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.talent.v4beta1.Tenant> + getTenant(com.google.cloud.talent.v4beta1.GetTenantRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetTenantMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates specified tenant.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.talent.v4beta1.Tenant> + updateTenant(com.google.cloud.talent.v4beta1.UpdateTenantRequest request) { + return futureUnaryCall( + getChannel().newCall(getUpdateTenantMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes specified tenant.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteTenant(com.google.cloud.talent.v4beta1.DeleteTenantRequest request) { + return futureUnaryCall( + getChannel().newCall(getDeleteTenantMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists all tenants associated with the project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.talent.v4beta1.ListTenantsResponse> + listTenants(com.google.cloud.talent.v4beta1.ListTenantsRequest request) { + return futureUnaryCall( + getChannel().newCall(getListTenantsMethodHelper(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_TENANT = 0; + private static final int METHODID_GET_TENANT = 1; + private static final int METHODID_UPDATE_TENANT = 2; + private static final int METHODID_DELETE_TENANT = 3; + private static final int METHODID_LIST_TENANTS = 4; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final TenantServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(TenantServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_TENANT: + serviceImpl.createTenant( + (com.google.cloud.talent.v4beta1.CreateTenantRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_TENANT: + serviceImpl.getTenant( + (com.google.cloud.talent.v4beta1.GetTenantRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_TENANT: + serviceImpl.updateTenant( + (com.google.cloud.talent.v4beta1.UpdateTenantRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_TENANT: + serviceImpl.deleteTenant( + (com.google.cloud.talent.v4beta1.DeleteTenantRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_TENANTS: + serviceImpl.listTenants( + (com.google.cloud.talent.v4beta1.ListTenantsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class TenantServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + TenantServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.talent.v4beta1.TenantServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("TenantService"); + } + } + + private static final class TenantServiceFileDescriptorSupplier + extends TenantServiceBaseDescriptorSupplier { + TenantServiceFileDescriptorSupplier() {} + } + + private static final class TenantServiceMethodDescriptorSupplier + extends TenantServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + TenantServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (TenantServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new TenantServiceFileDescriptorSupplier()) + .addMethod(getCreateTenantMethodHelper()) + .addMethod(getGetTenantMethodHelper()) + .addMethod(getUpdateTenantMethodHelper()) + .addMethod(getDeleteTenantMethodHelper()) + .addMethod(getListTenantsMethodHelper()) + .build(); + } + } + } + return result; + } +} diff --git a/google-api-grpc/pom.xml b/google-api-grpc/pom.xml index ea4922559385..e30114d2aa84 100644 --- a/google-api-grpc/pom.xml +++ b/google-api-grpc/pom.xml @@ -694,6 +694,16 @@ grpc-google-cloud-iamcredentials-v1 0.10.1-alpha-SNAPSHOT + + com.google.api.grpc + proto-google-cloud-talent-v4beta1 + 0.0.1-beta-SNAPSHOT + + + com.google.api.grpc + grpc-google-cloud-talent-v4beta1 + 0.0.1-beta-SNAPSHOT + @@ -735,6 +745,7 @@ grpc-google-cloud-speech-v1 grpc-google-cloud-speech-v1beta1 grpc-google-cloud-speech-v1p1beta1 + grpc-google-cloud-talent-v4beta1 grpc-google-cloud-tasks-v2beta2 grpc-google-cloud-tasks-v2beta3 grpc-google-cloud-texttospeech-v1 @@ -792,6 +803,7 @@ proto-google-cloud-speech-v1 proto-google-cloud-speech-v1beta1 proto-google-cloud-speech-v1p1beta1 + proto-google-cloud-talent-v4beta1 proto-google-cloud-tasks-v2beta2 proto-google-cloud-tasks-v2beta3 proto-google-cloud-texttospeech-v1 diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/pom.xml b/google-api-grpc/proto-google-cloud-talent-v4beta1/pom.xml new file mode 100644 index 000000000000..0063b2d5b067 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/pom.xml @@ -0,0 +1,36 @@ + + 4.0.0 + proto-google-cloud-talent-v4beta1 + 0.0.1-beta-SNAPSHOT + proto-google-cloud-talent-v4beta1 + PROTO library for proto-google-cloud-talent-v4beta1 + + com.google.api.grpc + google-api-grpc + 0.48.1-SNAPSHOT + + + + com.google.protobuf + protobuf-java + compile + + + com.google.api + api-common + compile + + + com.google.api.grpc + proto-google-common-protos + compile + + + com.google.api.grpc + proto-google-iam-v1 + compile + + + \ No newline at end of file diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Activity.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Activity.java new file mode 100644 index 000000000000..2208d5f3e757 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Activity.java @@ -0,0 +1,2943 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Resource that represents an individual or collaborative activity participated
+ * in by a candidate, for example, an open-source project, a class assignment,
+ * etc.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Activity} + */ +public final class Activity extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Activity) + ActivityOrBuilder { + private static final long serialVersionUID = 0L; + // Use Activity.newBuilder() to construct. + private Activity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Activity() { + displayName_ = ""; + description_ = ""; + uri_ = ""; + teamMembers_ = com.google.protobuf.LazyStringArrayList.EMPTY; + skillsUsed_ = java.util.Collections.emptyList(); + activityNameSnippet_ = ""; + activityDescriptionSnippet_ = ""; + skillsUsedSnippet_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Activity( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + uri_ = s; + break; + } + case 34: + { + com.google.type.Date.Builder subBuilder = null; + if (createDate_ != null) { + subBuilder = createDate_.toBuilder(); + } + createDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createDate_); + createDate_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + com.google.type.Date.Builder subBuilder = null; + if (updateDate_ != null) { + subBuilder = updateDate_.toBuilder(); + } + updateDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateDate_); + updateDate_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + teamMembers_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000020; + } + teamMembers_.add(s); + break; + } + case 58: + { + if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + skillsUsed_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000040; + } + skillsUsed_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.Skill.parser(), extensionRegistry)); + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + + activityNameSnippet_ = s; + break; + } + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + + activityDescriptionSnippet_ = s; + break; + } + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + skillsUsedSnippet_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000200; + } + skillsUsedSnippet_.add(s); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + teamMembers_ = teamMembers_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + skillsUsed_ = java.util.Collections.unmodifiableList(skillsUsed_); + } + if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + skillsUsedSnippet_ = skillsUsedSnippet_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Activity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Activity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Activity.class, + com.google.cloud.talent.v4beta1.Activity.Builder.class); + } + + private int bitField0_; + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object displayName_; + /** + * + * + *
+   * Optional.
+   * Activity display name.
+   * Number of characters allowed is 100.
+   * 
+ * + * string display_name = 1; + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * Activity display name.
+   * Number of characters allowed is 100.
+   * 
+ * + * string display_name = 1; + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + private volatile java.lang.Object description_; + /** + * + * + *
+   * Optional.
+   * Activity description.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string description = 2; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * Activity description.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string description = 2; + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int URI_FIELD_NUMBER = 3; + private volatile java.lang.Object uri_; + /** + * + * + *
+   * Optional.
+   * Activity URI.
+   * Number of characters allowed is 4,000.
+   * 
+ * + * string uri = 3; + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + 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(); + uri_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * Activity URI.
+   * Number of characters allowed is 4,000.
+   * 
+ * + * string uri = 3; + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_DATE_FIELD_NUMBER = 4; + private com.google.type.Date createDate_; + /** + * + * + *
+   * Optional.
+   * The first creation date of the activity.
+   * 
+ * + * .google.type.Date create_date = 4; + */ + public boolean hasCreateDate() { + return createDate_ != null; + } + /** + * + * + *
+   * Optional.
+   * The first creation date of the activity.
+   * 
+ * + * .google.type.Date create_date = 4; + */ + public com.google.type.Date getCreateDate() { + return createDate_ == null ? com.google.type.Date.getDefaultInstance() : createDate_; + } + /** + * + * + *
+   * Optional.
+   * The first creation date of the activity.
+   * 
+ * + * .google.type.Date create_date = 4; + */ + public com.google.type.DateOrBuilder getCreateDateOrBuilder() { + return getCreateDate(); + } + + public static final int UPDATE_DATE_FIELD_NUMBER = 5; + private com.google.type.Date updateDate_; + /** + * + * + *
+   * Optional.
+   * The last update date of the activity.
+   * 
+ * + * .google.type.Date update_date = 5; + */ + public boolean hasUpdateDate() { + return updateDate_ != null; + } + /** + * + * + *
+   * Optional.
+   * The last update date of the activity.
+   * 
+ * + * .google.type.Date update_date = 5; + */ + public com.google.type.Date getUpdateDate() { + return updateDate_ == null ? com.google.type.Date.getDefaultInstance() : updateDate_; + } + /** + * + * + *
+   * Optional.
+   * The last update date of the activity.
+   * 
+ * + * .google.type.Date update_date = 5; + */ + public com.google.type.DateOrBuilder getUpdateDateOrBuilder() { + return getUpdateDate(); + } + + public static final int TEAM_MEMBERS_FIELD_NUMBER = 6; + private com.google.protobuf.LazyStringList teamMembers_; + /** + * + * + *
+   * Optional.
+   * A list of team members involved in this activity.
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string team_members = 6; + */ + public com.google.protobuf.ProtocolStringList getTeamMembersList() { + return teamMembers_; + } + /** + * + * + *
+   * Optional.
+   * A list of team members involved in this activity.
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string team_members = 6; + */ + public int getTeamMembersCount() { + return teamMembers_.size(); + } + /** + * + * + *
+   * Optional.
+   * A list of team members involved in this activity.
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string team_members = 6; + */ + public java.lang.String getTeamMembers(int index) { + return teamMembers_.get(index); + } + /** + * + * + *
+   * Optional.
+   * A list of team members involved in this activity.
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string team_members = 6; + */ + public com.google.protobuf.ByteString getTeamMembersBytes(int index) { + return teamMembers_.getByteString(index); + } + + public static final int SKILLS_USED_FIELD_NUMBER = 7; + private java.util.List skillsUsed_; + /** + * + * + *
+   * Optional.
+   * A list of skills used in this activity.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public java.util.List getSkillsUsedList() { + return skillsUsed_; + } + /** + * + * + *
+   * Optional.
+   * A list of skills used in this activity.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public java.util.List + getSkillsUsedOrBuilderList() { + return skillsUsed_; + } + /** + * + * + *
+   * Optional.
+   * A list of skills used in this activity.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public int getSkillsUsedCount() { + return skillsUsed_.size(); + } + /** + * + * + *
+   * Optional.
+   * A list of skills used in this activity.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public com.google.cloud.talent.v4beta1.Skill getSkillsUsed(int index) { + return skillsUsed_.get(index); + } + /** + * + * + *
+   * Optional.
+   * A list of skills used in this activity.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public com.google.cloud.talent.v4beta1.SkillOrBuilder getSkillsUsedOrBuilder(int index) { + return skillsUsed_.get(index); + } + + public static final int ACTIVITY_NAME_SNIPPET_FIELD_NUMBER = 8; + private volatile java.lang.Object activityNameSnippet_; + /** + * + * + *
+   * Output only. Activity name snippet shows how the
+   * [display_name][google.cloud.talent.v4beta1.Activity.display_name] is
+   * related to a search query. It's empty if the
+   * [display_name][google.cloud.talent.v4beta1.Activity.display_name] isn't
+   * related to the search query.
+   * 
+ * + * string activity_name_snippet = 8; + */ + public java.lang.String getActivityNameSnippet() { + java.lang.Object ref = activityNameSnippet_; + 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(); + activityNameSnippet_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Activity name snippet shows how the
+   * [display_name][google.cloud.talent.v4beta1.Activity.display_name] is
+   * related to a search query. It's empty if the
+   * [display_name][google.cloud.talent.v4beta1.Activity.display_name] isn't
+   * related to the search query.
+   * 
+ * + * string activity_name_snippet = 8; + */ + public com.google.protobuf.ByteString getActivityNameSnippetBytes() { + java.lang.Object ref = activityNameSnippet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + activityNameSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACTIVITY_DESCRIPTION_SNIPPET_FIELD_NUMBER = 9; + private volatile java.lang.Object activityDescriptionSnippet_; + /** + * + * + *
+   * Output only. Activity description snippet shows how the
+   * [description][google.cloud.talent.v4beta1.Activity.description] is related
+   * to a search query. It's empty if the
+   * [description][google.cloud.talent.v4beta1.Activity.description] isn't
+   * related to the search query.
+   * 
+ * + * string activity_description_snippet = 9; + */ + public java.lang.String getActivityDescriptionSnippet() { + java.lang.Object ref = activityDescriptionSnippet_; + 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(); + activityDescriptionSnippet_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Activity description snippet shows how the
+   * [description][google.cloud.talent.v4beta1.Activity.description] is related
+   * to a search query. It's empty if the
+   * [description][google.cloud.talent.v4beta1.Activity.description] isn't
+   * related to the search query.
+   * 
+ * + * string activity_description_snippet = 9; + */ + public com.google.protobuf.ByteString getActivityDescriptionSnippetBytes() { + java.lang.Object ref = activityDescriptionSnippet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + activityDescriptionSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SKILLS_USED_SNIPPET_FIELD_NUMBER = 10; + private com.google.protobuf.LazyStringList skillsUsedSnippet_; + /** + * + * + *
+   * Output only. Skill used snippet shows how the corresponding
+   * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related
+   * to a search query. It's empty if the corresponding
+   * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not
+   * related to the search query.
+   * 
+ * + * repeated string skills_used_snippet = 10; + */ + public com.google.protobuf.ProtocolStringList getSkillsUsedSnippetList() { + return skillsUsedSnippet_; + } + /** + * + * + *
+   * Output only. Skill used snippet shows how the corresponding
+   * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related
+   * to a search query. It's empty if the corresponding
+   * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not
+   * related to the search query.
+   * 
+ * + * repeated string skills_used_snippet = 10; + */ + public int getSkillsUsedSnippetCount() { + return skillsUsedSnippet_.size(); + } + /** + * + * + *
+   * Output only. Skill used snippet shows how the corresponding
+   * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related
+   * to a search query. It's empty if the corresponding
+   * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not
+   * related to the search query.
+   * 
+ * + * repeated string skills_used_snippet = 10; + */ + public java.lang.String getSkillsUsedSnippet(int index) { + return skillsUsedSnippet_.get(index); + } + /** + * + * + *
+   * Output only. Skill used snippet shows how the corresponding
+   * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related
+   * to a search query. It's empty if the corresponding
+   * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not
+   * related to the search query.
+   * 
+ * + * repeated string skills_used_snippet = 10; + */ + public com.google.protobuf.ByteString getSkillsUsedSnippetBytes(int index) { + return skillsUsedSnippet_.getByteString(index); + } + + 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 (!getDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); + } + if (!getUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, uri_); + } + if (createDate_ != null) { + output.writeMessage(4, getCreateDate()); + } + if (updateDate_ != null) { + output.writeMessage(5, getUpdateDate()); + } + for (int i = 0; i < teamMembers_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, teamMembers_.getRaw(i)); + } + for (int i = 0; i < skillsUsed_.size(); i++) { + output.writeMessage(7, skillsUsed_.get(i)); + } + if (!getActivityNameSnippetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, activityNameSnippet_); + } + if (!getActivityDescriptionSnippetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, activityDescriptionSnippet_); + } + for (int i = 0; i < skillsUsedSnippet_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, skillsUsedSnippet_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); + } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); + } + if (!getUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uri_); + } + if (createDate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateDate()); + } + if (updateDate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateDate()); + } + { + int dataSize = 0; + for (int i = 0; i < teamMembers_.size(); i++) { + dataSize += computeStringSizeNoTag(teamMembers_.getRaw(i)); + } + size += dataSize; + size += 1 * getTeamMembersList().size(); + } + for (int i = 0; i < skillsUsed_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, skillsUsed_.get(i)); + } + if (!getActivityNameSnippetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, activityNameSnippet_); + } + if (!getActivityDescriptionSnippetBytes().isEmpty()) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(9, activityDescriptionSnippet_); + } + { + int dataSize = 0; + for (int i = 0; i < skillsUsedSnippet_.size(); i++) { + dataSize += computeStringSizeNoTag(skillsUsedSnippet_.getRaw(i)); + } + size += dataSize; + size += 1 * getSkillsUsedSnippetList().size(); + } + size += unknownFields.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.cloud.talent.v4beta1.Activity)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Activity other = (com.google.cloud.talent.v4beta1.Activity) obj; + + boolean result = true; + result = result && getDisplayName().equals(other.getDisplayName()); + result = result && getDescription().equals(other.getDescription()); + result = result && getUri().equals(other.getUri()); + result = result && (hasCreateDate() == other.hasCreateDate()); + if (hasCreateDate()) { + result = result && getCreateDate().equals(other.getCreateDate()); + } + result = result && (hasUpdateDate() == other.hasUpdateDate()); + if (hasUpdateDate()) { + result = result && getUpdateDate().equals(other.getUpdateDate()); + } + result = result && getTeamMembersList().equals(other.getTeamMembersList()); + result = result && getSkillsUsedList().equals(other.getSkillsUsedList()); + result = result && getActivityNameSnippet().equals(other.getActivityNameSnippet()); + result = + result && getActivityDescriptionSnippet().equals(other.getActivityDescriptionSnippet()); + result = result && getSkillsUsedSnippetList().equals(other.getSkillsUsedSnippetList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + if (hasCreateDate()) { + hash = (37 * hash) + CREATE_DATE_FIELD_NUMBER; + hash = (53 * hash) + getCreateDate().hashCode(); + } + if (hasUpdateDate()) { + hash = (37 * hash) + UPDATE_DATE_FIELD_NUMBER; + hash = (53 * hash) + getUpdateDate().hashCode(); + } + if (getTeamMembersCount() > 0) { + hash = (37 * hash) + TEAM_MEMBERS_FIELD_NUMBER; + hash = (53 * hash) + getTeamMembersList().hashCode(); + } + if (getSkillsUsedCount() > 0) { + hash = (37 * hash) + SKILLS_USED_FIELD_NUMBER; + hash = (53 * hash) + getSkillsUsedList().hashCode(); + } + hash = (37 * hash) + ACTIVITY_NAME_SNIPPET_FIELD_NUMBER; + hash = (53 * hash) + getActivityNameSnippet().hashCode(); + hash = (37 * hash) + ACTIVITY_DESCRIPTION_SNIPPET_FIELD_NUMBER; + hash = (53 * hash) + getActivityDescriptionSnippet().hashCode(); + if (getSkillsUsedSnippetCount() > 0) { + hash = (37 * hash) + SKILLS_USED_SNIPPET_FIELD_NUMBER; + hash = (53 * hash) + getSkillsUsedSnippetList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Activity parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Activity parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Activity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Activity 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.cloud.talent.v4beta1.Activity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Activity parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Activity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Activity 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.cloud.talent.v4beta1.Activity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Activity 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.cloud.talent.v4beta1.Activity parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Activity 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.cloud.talent.v4beta1.Activity 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; + } + /** + * + * + *
+   * Resource that represents an individual or collaborative activity participated
+   * in by a candidate, for example, an open-source project, a class assignment,
+   * etc.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Activity} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Activity) + com.google.cloud.talent.v4beta1.ActivityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Activity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Activity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Activity.class, + com.google.cloud.talent.v4beta1.Activity.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Activity.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSkillsUsedFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + displayName_ = ""; + + description_ = ""; + + uri_ = ""; + + if (createDateBuilder_ == null) { + createDate_ = null; + } else { + createDate_ = null; + createDateBuilder_ = null; + } + if (updateDateBuilder_ == null) { + updateDate_ = null; + } else { + updateDate_ = null; + updateDateBuilder_ = null; + } + teamMembers_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000020); + if (skillsUsedBuilder_ == null) { + skillsUsed_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + } else { + skillsUsedBuilder_.clear(); + } + activityNameSnippet_ = ""; + + activityDescriptionSnippet_ = ""; + + skillsUsedSnippet_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000200); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Activity_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Activity getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Activity.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Activity build() { + com.google.cloud.talent.v4beta1.Activity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Activity buildPartial() { + com.google.cloud.talent.v4beta1.Activity result = + new com.google.cloud.talent.v4beta1.Activity(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.displayName_ = displayName_; + result.description_ = description_; + result.uri_ = uri_; + if (createDateBuilder_ == null) { + result.createDate_ = createDate_; + } else { + result.createDate_ = createDateBuilder_.build(); + } + if (updateDateBuilder_ == null) { + result.updateDate_ = updateDate_; + } else { + result.updateDate_ = updateDateBuilder_.build(); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + teamMembers_ = teamMembers_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.teamMembers_ = teamMembers_; + if (skillsUsedBuilder_ == null) { + if (((bitField0_ & 0x00000040) == 0x00000040)) { + skillsUsed_ = java.util.Collections.unmodifiableList(skillsUsed_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.skillsUsed_ = skillsUsed_; + } else { + result.skillsUsed_ = skillsUsedBuilder_.build(); + } + result.activityNameSnippet_ = activityNameSnippet_; + result.activityDescriptionSnippet_ = activityDescriptionSnippet_; + if (((bitField0_ & 0x00000200) == 0x00000200)) { + skillsUsedSnippet_ = skillsUsedSnippet_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.skillsUsedSnippet_ = skillsUsedSnippet_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Activity) { + return mergeFrom((com.google.cloud.talent.v4beta1.Activity) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Activity other) { + if (other == com.google.cloud.talent.v4beta1.Activity.getDefaultInstance()) return this; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + onChanged(); + } + if (other.hasCreateDate()) { + mergeCreateDate(other.getCreateDate()); + } + if (other.hasUpdateDate()) { + mergeUpdateDate(other.getUpdateDate()); + } + if (!other.teamMembers_.isEmpty()) { + if (teamMembers_.isEmpty()) { + teamMembers_ = other.teamMembers_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureTeamMembersIsMutable(); + teamMembers_.addAll(other.teamMembers_); + } + onChanged(); + } + if (skillsUsedBuilder_ == null) { + if (!other.skillsUsed_.isEmpty()) { + if (skillsUsed_.isEmpty()) { + skillsUsed_ = other.skillsUsed_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureSkillsUsedIsMutable(); + skillsUsed_.addAll(other.skillsUsed_); + } + onChanged(); + } + } else { + if (!other.skillsUsed_.isEmpty()) { + if (skillsUsedBuilder_.isEmpty()) { + skillsUsedBuilder_.dispose(); + skillsUsedBuilder_ = null; + skillsUsed_ = other.skillsUsed_; + bitField0_ = (bitField0_ & ~0x00000040); + skillsUsedBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSkillsUsedFieldBuilder() + : null; + } else { + skillsUsedBuilder_.addAllMessages(other.skillsUsed_); + } + } + } + if (!other.getActivityNameSnippet().isEmpty()) { + activityNameSnippet_ = other.activityNameSnippet_; + onChanged(); + } + if (!other.getActivityDescriptionSnippet().isEmpty()) { + activityDescriptionSnippet_ = other.activityDescriptionSnippet_; + onChanged(); + } + if (!other.skillsUsedSnippet_.isEmpty()) { + if (skillsUsedSnippet_.isEmpty()) { + skillsUsedSnippet_ = other.skillsUsedSnippet_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureSkillsUsedSnippetIsMutable(); + skillsUsedSnippet_.addAll(other.skillsUsedSnippet_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.Activity parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.Activity) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Optional.
+     * Activity display name.
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Activity display name.
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Activity display name.
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Activity display name.
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Activity display name.
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * Optional.
+     * Activity description.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 2; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Activity description.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 2; + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Activity description.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 2; + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Activity description.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 2; + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Activity description.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 2; + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private java.lang.Object uri_ = ""; + /** + * + * + *
+     * Optional.
+     * Activity URI.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string uri = 3; + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Activity URI.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string uri = 3; + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Activity URI.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string uri = 3; + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + uri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Activity URI.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string uri = 3; + */ + public Builder clearUri() { + + uri_ = getDefaultInstance().getUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Activity URI.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string uri = 3; + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uri_ = value; + onChanged(); + return this; + } + + private com.google.type.Date createDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + createDateBuilder_; + /** + * + * + *
+     * Optional.
+     * The first creation date of the activity.
+     * 
+ * + * .google.type.Date create_date = 4; + */ + public boolean hasCreateDate() { + return createDateBuilder_ != null || createDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * The first creation date of the activity.
+     * 
+ * + * .google.type.Date create_date = 4; + */ + public com.google.type.Date getCreateDate() { + if (createDateBuilder_ == null) { + return createDate_ == null ? com.google.type.Date.getDefaultInstance() : createDate_; + } else { + return createDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The first creation date of the activity.
+     * 
+ * + * .google.type.Date create_date = 4; + */ + public Builder setCreateDate(com.google.type.Date value) { + if (createDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createDate_ = value; + onChanged(); + } else { + createDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The first creation date of the activity.
+     * 
+ * + * .google.type.Date create_date = 4; + */ + public Builder setCreateDate(com.google.type.Date.Builder builderForValue) { + if (createDateBuilder_ == null) { + createDate_ = builderForValue.build(); + onChanged(); + } else { + createDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The first creation date of the activity.
+     * 
+ * + * .google.type.Date create_date = 4; + */ + public Builder mergeCreateDate(com.google.type.Date value) { + if (createDateBuilder_ == null) { + if (createDate_ != null) { + createDate_ = + com.google.type.Date.newBuilder(createDate_).mergeFrom(value).buildPartial(); + } else { + createDate_ = value; + } + onChanged(); + } else { + createDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The first creation date of the activity.
+     * 
+ * + * .google.type.Date create_date = 4; + */ + public Builder clearCreateDate() { + if (createDateBuilder_ == null) { + createDate_ = null; + onChanged(); + } else { + createDate_ = null; + createDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The first creation date of the activity.
+     * 
+ * + * .google.type.Date create_date = 4; + */ + public com.google.type.Date.Builder getCreateDateBuilder() { + + onChanged(); + return getCreateDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The first creation date of the activity.
+     * 
+ * + * .google.type.Date create_date = 4; + */ + public com.google.type.DateOrBuilder getCreateDateOrBuilder() { + if (createDateBuilder_ != null) { + return createDateBuilder_.getMessageOrBuilder(); + } else { + return createDate_ == null ? com.google.type.Date.getDefaultInstance() : createDate_; + } + } + /** + * + * + *
+     * Optional.
+     * The first creation date of the activity.
+     * 
+ * + * .google.type.Date create_date = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getCreateDateFieldBuilder() { + if (createDateBuilder_ == null) { + createDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getCreateDate(), getParentForChildren(), isClean()); + createDate_ = null; + } + return createDateBuilder_; + } + + private com.google.type.Date updateDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + updateDateBuilder_; + /** + * + * + *
+     * Optional.
+     * The last update date of the activity.
+     * 
+ * + * .google.type.Date update_date = 5; + */ + public boolean hasUpdateDate() { + return updateDateBuilder_ != null || updateDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * The last update date of the activity.
+     * 
+ * + * .google.type.Date update_date = 5; + */ + public com.google.type.Date getUpdateDate() { + if (updateDateBuilder_ == null) { + return updateDate_ == null ? com.google.type.Date.getDefaultInstance() : updateDate_; + } else { + return updateDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The last update date of the activity.
+     * 
+ * + * .google.type.Date update_date = 5; + */ + public Builder setUpdateDate(com.google.type.Date value) { + if (updateDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateDate_ = value; + onChanged(); + } else { + updateDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The last update date of the activity.
+     * 
+ * + * .google.type.Date update_date = 5; + */ + public Builder setUpdateDate(com.google.type.Date.Builder builderForValue) { + if (updateDateBuilder_ == null) { + updateDate_ = builderForValue.build(); + onChanged(); + } else { + updateDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The last update date of the activity.
+     * 
+ * + * .google.type.Date update_date = 5; + */ + public Builder mergeUpdateDate(com.google.type.Date value) { + if (updateDateBuilder_ == null) { + if (updateDate_ != null) { + updateDate_ = + com.google.type.Date.newBuilder(updateDate_).mergeFrom(value).buildPartial(); + } else { + updateDate_ = value; + } + onChanged(); + } else { + updateDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The last update date of the activity.
+     * 
+ * + * .google.type.Date update_date = 5; + */ + public Builder clearUpdateDate() { + if (updateDateBuilder_ == null) { + updateDate_ = null; + onChanged(); + } else { + updateDate_ = null; + updateDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The last update date of the activity.
+     * 
+ * + * .google.type.Date update_date = 5; + */ + public com.google.type.Date.Builder getUpdateDateBuilder() { + + onChanged(); + return getUpdateDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The last update date of the activity.
+     * 
+ * + * .google.type.Date update_date = 5; + */ + public com.google.type.DateOrBuilder getUpdateDateOrBuilder() { + if (updateDateBuilder_ != null) { + return updateDateBuilder_.getMessageOrBuilder(); + } else { + return updateDate_ == null ? com.google.type.Date.getDefaultInstance() : updateDate_; + } + } + /** + * + * + *
+     * Optional.
+     * The last update date of the activity.
+     * 
+ * + * .google.type.Date update_date = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getUpdateDateFieldBuilder() { + if (updateDateBuilder_ == null) { + updateDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getUpdateDate(), getParentForChildren(), isClean()); + updateDate_ = null; + } + return updateDateBuilder_; + } + + private com.google.protobuf.LazyStringList teamMembers_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureTeamMembersIsMutable() { + if (!((bitField0_ & 0x00000020) == 0x00000020)) { + teamMembers_ = new com.google.protobuf.LazyStringArrayList(teamMembers_); + bitField0_ |= 0x00000020; + } + } + /** + * + * + *
+     * Optional.
+     * A list of team members involved in this activity.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string team_members = 6; + */ + public com.google.protobuf.ProtocolStringList getTeamMembersList() { + return teamMembers_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional.
+     * A list of team members involved in this activity.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string team_members = 6; + */ + public int getTeamMembersCount() { + return teamMembers_.size(); + } + /** + * + * + *
+     * Optional.
+     * A list of team members involved in this activity.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string team_members = 6; + */ + public java.lang.String getTeamMembers(int index) { + return teamMembers_.get(index); + } + /** + * + * + *
+     * Optional.
+     * A list of team members involved in this activity.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string team_members = 6; + */ + public com.google.protobuf.ByteString getTeamMembersBytes(int index) { + return teamMembers_.getByteString(index); + } + /** + * + * + *
+     * Optional.
+     * A list of team members involved in this activity.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string team_members = 6; + */ + public Builder setTeamMembers(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTeamMembersIsMutable(); + teamMembers_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of team members involved in this activity.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string team_members = 6; + */ + public Builder addTeamMembers(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTeamMembersIsMutable(); + teamMembers_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of team members involved in this activity.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string team_members = 6; + */ + public Builder addAllTeamMembers(java.lang.Iterable values) { + ensureTeamMembersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, teamMembers_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of team members involved in this activity.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string team_members = 6; + */ + public Builder clearTeamMembers() { + teamMembers_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of team members involved in this activity.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string team_members = 6; + */ + public Builder addTeamMembersBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTeamMembersIsMutable(); + teamMembers_.add(value); + onChanged(); + return this; + } + + private java.util.List skillsUsed_ = + java.util.Collections.emptyList(); + + private void ensureSkillsUsedIsMutable() { + if (!((bitField0_ & 0x00000040) == 0x00000040)) { + skillsUsed_ = new java.util.ArrayList(skillsUsed_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Skill, + com.google.cloud.talent.v4beta1.Skill.Builder, + com.google.cloud.talent.v4beta1.SkillOrBuilder> + skillsUsedBuilder_; + + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public java.util.List getSkillsUsedList() { + if (skillsUsedBuilder_ == null) { + return java.util.Collections.unmodifiableList(skillsUsed_); + } else { + return skillsUsedBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public int getSkillsUsedCount() { + if (skillsUsedBuilder_ == null) { + return skillsUsed_.size(); + } else { + return skillsUsedBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public com.google.cloud.talent.v4beta1.Skill getSkillsUsed(int index) { + if (skillsUsedBuilder_ == null) { + return skillsUsed_.get(index); + } else { + return skillsUsedBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public Builder setSkillsUsed(int index, com.google.cloud.talent.v4beta1.Skill value) { + if (skillsUsedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillsUsedIsMutable(); + skillsUsed_.set(index, value); + onChanged(); + } else { + skillsUsedBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public Builder setSkillsUsed( + int index, com.google.cloud.talent.v4beta1.Skill.Builder builderForValue) { + if (skillsUsedBuilder_ == null) { + ensureSkillsUsedIsMutable(); + skillsUsed_.set(index, builderForValue.build()); + onChanged(); + } else { + skillsUsedBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public Builder addSkillsUsed(com.google.cloud.talent.v4beta1.Skill value) { + if (skillsUsedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillsUsedIsMutable(); + skillsUsed_.add(value); + onChanged(); + } else { + skillsUsedBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public Builder addSkillsUsed(int index, com.google.cloud.talent.v4beta1.Skill value) { + if (skillsUsedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillsUsedIsMutable(); + skillsUsed_.add(index, value); + onChanged(); + } else { + skillsUsedBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public Builder addSkillsUsed(com.google.cloud.talent.v4beta1.Skill.Builder builderForValue) { + if (skillsUsedBuilder_ == null) { + ensureSkillsUsedIsMutable(); + skillsUsed_.add(builderForValue.build()); + onChanged(); + } else { + skillsUsedBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public Builder addSkillsUsed( + int index, com.google.cloud.talent.v4beta1.Skill.Builder builderForValue) { + if (skillsUsedBuilder_ == null) { + ensureSkillsUsedIsMutable(); + skillsUsed_.add(index, builderForValue.build()); + onChanged(); + } else { + skillsUsedBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public Builder addAllSkillsUsed( + java.lang.Iterable values) { + if (skillsUsedBuilder_ == null) { + ensureSkillsUsedIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, skillsUsed_); + onChanged(); + } else { + skillsUsedBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public Builder clearSkillsUsed() { + if (skillsUsedBuilder_ == null) { + skillsUsed_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + skillsUsedBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public Builder removeSkillsUsed(int index) { + if (skillsUsedBuilder_ == null) { + ensureSkillsUsedIsMutable(); + skillsUsed_.remove(index); + onChanged(); + } else { + skillsUsedBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public com.google.cloud.talent.v4beta1.Skill.Builder getSkillsUsedBuilder(int index) { + return getSkillsUsedFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public com.google.cloud.talent.v4beta1.SkillOrBuilder getSkillsUsedOrBuilder(int index) { + if (skillsUsedBuilder_ == null) { + return skillsUsed_.get(index); + } else { + return skillsUsedBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public java.util.List + getSkillsUsedOrBuilderList() { + if (skillsUsedBuilder_ != null) { + return skillsUsedBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(skillsUsed_); + } + } + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public com.google.cloud.talent.v4beta1.Skill.Builder addSkillsUsedBuilder() { + return getSkillsUsedFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.Skill.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public com.google.cloud.talent.v4beta1.Skill.Builder addSkillsUsedBuilder(int index) { + return getSkillsUsedFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.Skill.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * A list of skills used in this activity.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + public java.util.List + getSkillsUsedBuilderList() { + return getSkillsUsedFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Skill, + com.google.cloud.talent.v4beta1.Skill.Builder, + com.google.cloud.talent.v4beta1.SkillOrBuilder> + getSkillsUsedFieldBuilder() { + if (skillsUsedBuilder_ == null) { + skillsUsedBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Skill, + com.google.cloud.talent.v4beta1.Skill.Builder, + com.google.cloud.talent.v4beta1.SkillOrBuilder>( + skillsUsed_, + ((bitField0_ & 0x00000040) == 0x00000040), + getParentForChildren(), + isClean()); + skillsUsed_ = null; + } + return skillsUsedBuilder_; + } + + private java.lang.Object activityNameSnippet_ = ""; + /** + * + * + *
+     * Output only. Activity name snippet shows how the
+     * [display_name][google.cloud.talent.v4beta1.Activity.display_name] is
+     * related to a search query. It's empty if the
+     * [display_name][google.cloud.talent.v4beta1.Activity.display_name] isn't
+     * related to the search query.
+     * 
+ * + * string activity_name_snippet = 8; + */ + public java.lang.String getActivityNameSnippet() { + java.lang.Object ref = activityNameSnippet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + activityNameSnippet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Activity name snippet shows how the
+     * [display_name][google.cloud.talent.v4beta1.Activity.display_name] is
+     * related to a search query. It's empty if the
+     * [display_name][google.cloud.talent.v4beta1.Activity.display_name] isn't
+     * related to the search query.
+     * 
+ * + * string activity_name_snippet = 8; + */ + public com.google.protobuf.ByteString getActivityNameSnippetBytes() { + java.lang.Object ref = activityNameSnippet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + activityNameSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Activity name snippet shows how the
+     * [display_name][google.cloud.talent.v4beta1.Activity.display_name] is
+     * related to a search query. It's empty if the
+     * [display_name][google.cloud.talent.v4beta1.Activity.display_name] isn't
+     * related to the search query.
+     * 
+ * + * string activity_name_snippet = 8; + */ + public Builder setActivityNameSnippet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + activityNameSnippet_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Activity name snippet shows how the
+     * [display_name][google.cloud.talent.v4beta1.Activity.display_name] is
+     * related to a search query. It's empty if the
+     * [display_name][google.cloud.talent.v4beta1.Activity.display_name] isn't
+     * related to the search query.
+     * 
+ * + * string activity_name_snippet = 8; + */ + public Builder clearActivityNameSnippet() { + + activityNameSnippet_ = getDefaultInstance().getActivityNameSnippet(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Activity name snippet shows how the
+     * [display_name][google.cloud.talent.v4beta1.Activity.display_name] is
+     * related to a search query. It's empty if the
+     * [display_name][google.cloud.talent.v4beta1.Activity.display_name] isn't
+     * related to the search query.
+     * 
+ * + * string activity_name_snippet = 8; + */ + public Builder setActivityNameSnippetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + activityNameSnippet_ = value; + onChanged(); + return this; + } + + private java.lang.Object activityDescriptionSnippet_ = ""; + /** + * + * + *
+     * Output only. Activity description snippet shows how the
+     * [description][google.cloud.talent.v4beta1.Activity.description] is related
+     * to a search query. It's empty if the
+     * [description][google.cloud.talent.v4beta1.Activity.description] isn't
+     * related to the search query.
+     * 
+ * + * string activity_description_snippet = 9; + */ + public java.lang.String getActivityDescriptionSnippet() { + java.lang.Object ref = activityDescriptionSnippet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + activityDescriptionSnippet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Activity description snippet shows how the
+     * [description][google.cloud.talent.v4beta1.Activity.description] is related
+     * to a search query. It's empty if the
+     * [description][google.cloud.talent.v4beta1.Activity.description] isn't
+     * related to the search query.
+     * 
+ * + * string activity_description_snippet = 9; + */ + public com.google.protobuf.ByteString getActivityDescriptionSnippetBytes() { + java.lang.Object ref = activityDescriptionSnippet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + activityDescriptionSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Activity description snippet shows how the
+     * [description][google.cloud.talent.v4beta1.Activity.description] is related
+     * to a search query. It's empty if the
+     * [description][google.cloud.talent.v4beta1.Activity.description] isn't
+     * related to the search query.
+     * 
+ * + * string activity_description_snippet = 9; + */ + public Builder setActivityDescriptionSnippet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + activityDescriptionSnippet_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Activity description snippet shows how the
+     * [description][google.cloud.talent.v4beta1.Activity.description] is related
+     * to a search query. It's empty if the
+     * [description][google.cloud.talent.v4beta1.Activity.description] isn't
+     * related to the search query.
+     * 
+ * + * string activity_description_snippet = 9; + */ + public Builder clearActivityDescriptionSnippet() { + + activityDescriptionSnippet_ = getDefaultInstance().getActivityDescriptionSnippet(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Activity description snippet shows how the
+     * [description][google.cloud.talent.v4beta1.Activity.description] is related
+     * to a search query. It's empty if the
+     * [description][google.cloud.talent.v4beta1.Activity.description] isn't
+     * related to the search query.
+     * 
+ * + * string activity_description_snippet = 9; + */ + public Builder setActivityDescriptionSnippetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + activityDescriptionSnippet_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList skillsUsedSnippet_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureSkillsUsedSnippetIsMutable() { + if (!((bitField0_ & 0x00000200) == 0x00000200)) { + skillsUsedSnippet_ = new com.google.protobuf.LazyStringArrayList(skillsUsedSnippet_); + bitField0_ |= 0x00000200; + } + } + /** + * + * + *
+     * Output only. Skill used snippet shows how the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related
+     * to a search query. It's empty if the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not
+     * related to the search query.
+     * 
+ * + * repeated string skills_used_snippet = 10; + */ + public com.google.protobuf.ProtocolStringList getSkillsUsedSnippetList() { + return skillsUsedSnippet_.getUnmodifiableView(); + } + /** + * + * + *
+     * Output only. Skill used snippet shows how the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related
+     * to a search query. It's empty if the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not
+     * related to the search query.
+     * 
+ * + * repeated string skills_used_snippet = 10; + */ + public int getSkillsUsedSnippetCount() { + return skillsUsedSnippet_.size(); + } + /** + * + * + *
+     * Output only. Skill used snippet shows how the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related
+     * to a search query. It's empty if the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not
+     * related to the search query.
+     * 
+ * + * repeated string skills_used_snippet = 10; + */ + public java.lang.String getSkillsUsedSnippet(int index) { + return skillsUsedSnippet_.get(index); + } + /** + * + * + *
+     * Output only. Skill used snippet shows how the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related
+     * to a search query. It's empty if the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not
+     * related to the search query.
+     * 
+ * + * repeated string skills_used_snippet = 10; + */ + public com.google.protobuf.ByteString getSkillsUsedSnippetBytes(int index) { + return skillsUsedSnippet_.getByteString(index); + } + /** + * + * + *
+     * Output only. Skill used snippet shows how the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related
+     * to a search query. It's empty if the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not
+     * related to the search query.
+     * 
+ * + * repeated string skills_used_snippet = 10; + */ + public Builder setSkillsUsedSnippet(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillsUsedSnippetIsMutable(); + skillsUsedSnippet_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Skill used snippet shows how the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related
+     * to a search query. It's empty if the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not
+     * related to the search query.
+     * 
+ * + * repeated string skills_used_snippet = 10; + */ + public Builder addSkillsUsedSnippet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillsUsedSnippetIsMutable(); + skillsUsedSnippet_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Skill used snippet shows how the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related
+     * to a search query. It's empty if the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not
+     * related to the search query.
+     * 
+ * + * repeated string skills_used_snippet = 10; + */ + public Builder addAllSkillsUsedSnippet(java.lang.Iterable values) { + ensureSkillsUsedSnippetIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, skillsUsedSnippet_); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Skill used snippet shows how the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related
+     * to a search query. It's empty if the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not
+     * related to the search query.
+     * 
+ * + * repeated string skills_used_snippet = 10; + */ + public Builder clearSkillsUsedSnippet() { + skillsUsedSnippet_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Skill used snippet shows how the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related
+     * to a search query. It's empty if the corresponding
+     * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not
+     * related to the search query.
+     * 
+ * + * repeated string skills_used_snippet = 10; + */ + public Builder addSkillsUsedSnippetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSkillsUsedSnippetIsMutable(); + skillsUsedSnippet_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Activity) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Activity) + private static final com.google.cloud.talent.v4beta1.Activity DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Activity(); + } + + public static com.google.cloud.talent.v4beta1.Activity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Activity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Activity(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.Activity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ActivityOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ActivityOrBuilder.java new file mode 100644 index 000000000000..107b5d3896e2 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ActivityOrBuilder.java @@ -0,0 +1,374 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public interface ActivityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Activity) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * Activity display name.
+   * Number of characters allowed is 100.
+   * 
+ * + * string display_name = 1; + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Optional.
+   * Activity display name.
+   * Number of characters allowed is 100.
+   * 
+ * + * string display_name = 1; + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Optional.
+   * Activity description.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string description = 2; + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Optional.
+   * Activity description.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string description = 2; + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Optional.
+   * Activity URI.
+   * Number of characters allowed is 4,000.
+   * 
+ * + * string uri = 3; + */ + java.lang.String getUri(); + /** + * + * + *
+   * Optional.
+   * Activity URI.
+   * Number of characters allowed is 4,000.
+   * 
+ * + * string uri = 3; + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
+   * Optional.
+   * The first creation date of the activity.
+   * 
+ * + * .google.type.Date create_date = 4; + */ + boolean hasCreateDate(); + /** + * + * + *
+   * Optional.
+   * The first creation date of the activity.
+   * 
+ * + * .google.type.Date create_date = 4; + */ + com.google.type.Date getCreateDate(); + /** + * + * + *
+   * Optional.
+   * The first creation date of the activity.
+   * 
+ * + * .google.type.Date create_date = 4; + */ + com.google.type.DateOrBuilder getCreateDateOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The last update date of the activity.
+   * 
+ * + * .google.type.Date update_date = 5; + */ + boolean hasUpdateDate(); + /** + * + * + *
+   * Optional.
+   * The last update date of the activity.
+   * 
+ * + * .google.type.Date update_date = 5; + */ + com.google.type.Date getUpdateDate(); + /** + * + * + *
+   * Optional.
+   * The last update date of the activity.
+   * 
+ * + * .google.type.Date update_date = 5; + */ + com.google.type.DateOrBuilder getUpdateDateOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * A list of team members involved in this activity.
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string team_members = 6; + */ + java.util.List getTeamMembersList(); + /** + * + * + *
+   * Optional.
+   * A list of team members involved in this activity.
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string team_members = 6; + */ + int getTeamMembersCount(); + /** + * + * + *
+   * Optional.
+   * A list of team members involved in this activity.
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string team_members = 6; + */ + java.lang.String getTeamMembers(int index); + /** + * + * + *
+   * Optional.
+   * A list of team members involved in this activity.
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string team_members = 6; + */ + com.google.protobuf.ByteString getTeamMembersBytes(int index); + + /** + * + * + *
+   * Optional.
+   * A list of skills used in this activity.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + java.util.List getSkillsUsedList(); + /** + * + * + *
+   * Optional.
+   * A list of skills used in this activity.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + com.google.cloud.talent.v4beta1.Skill getSkillsUsed(int index); + /** + * + * + *
+   * Optional.
+   * A list of skills used in this activity.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + int getSkillsUsedCount(); + /** + * + * + *
+   * Optional.
+   * A list of skills used in this activity.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + java.util.List + getSkillsUsedOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * A list of skills used in this activity.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; + */ + com.google.cloud.talent.v4beta1.SkillOrBuilder getSkillsUsedOrBuilder(int index); + + /** + * + * + *
+   * Output only. Activity name snippet shows how the
+   * [display_name][google.cloud.talent.v4beta1.Activity.display_name] is
+   * related to a search query. It's empty if the
+   * [display_name][google.cloud.talent.v4beta1.Activity.display_name] isn't
+   * related to the search query.
+   * 
+ * + * string activity_name_snippet = 8; + */ + java.lang.String getActivityNameSnippet(); + /** + * + * + *
+   * Output only. Activity name snippet shows how the
+   * [display_name][google.cloud.talent.v4beta1.Activity.display_name] is
+   * related to a search query. It's empty if the
+   * [display_name][google.cloud.talent.v4beta1.Activity.display_name] isn't
+   * related to the search query.
+   * 
+ * + * string activity_name_snippet = 8; + */ + com.google.protobuf.ByteString getActivityNameSnippetBytes(); + + /** + * + * + *
+   * Output only. Activity description snippet shows how the
+   * [description][google.cloud.talent.v4beta1.Activity.description] is related
+   * to a search query. It's empty if the
+   * [description][google.cloud.talent.v4beta1.Activity.description] isn't
+   * related to the search query.
+   * 
+ * + * string activity_description_snippet = 9; + */ + java.lang.String getActivityDescriptionSnippet(); + /** + * + * + *
+   * Output only. Activity description snippet shows how the
+   * [description][google.cloud.talent.v4beta1.Activity.description] is related
+   * to a search query. It's empty if the
+   * [description][google.cloud.talent.v4beta1.Activity.description] isn't
+   * related to the search query.
+   * 
+ * + * string activity_description_snippet = 9; + */ + com.google.protobuf.ByteString getActivityDescriptionSnippetBytes(); + + /** + * + * + *
+   * Output only. Skill used snippet shows how the corresponding
+   * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related
+   * to a search query. It's empty if the corresponding
+   * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not
+   * related to the search query.
+   * 
+ * + * repeated string skills_used_snippet = 10; + */ + java.util.List getSkillsUsedSnippetList(); + /** + * + * + *
+   * Output only. Skill used snippet shows how the corresponding
+   * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related
+   * to a search query. It's empty if the corresponding
+   * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not
+   * related to the search query.
+   * 
+ * + * repeated string skills_used_snippet = 10; + */ + int getSkillsUsedSnippetCount(); + /** + * + * + *
+   * Output only. Skill used snippet shows how the corresponding
+   * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related
+   * to a search query. It's empty if the corresponding
+   * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not
+   * related to the search query.
+   * 
+ * + * repeated string skills_used_snippet = 10; + */ + java.lang.String getSkillsUsedSnippet(int index); + /** + * + * + *
+   * Output only. Skill used snippet shows how the corresponding
+   * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related
+   * to a search query. It's empty if the corresponding
+   * [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not
+   * related to the search query.
+   * 
+ * + * repeated string skills_used_snippet = 10; + */ + com.google.protobuf.ByteString getSkillsUsedSnippetBytes(int index); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AdditionalContactInfo.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AdditionalContactInfo.java new file mode 100644 index 000000000000..548ff5329f07 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AdditionalContactInfo.java @@ -0,0 +1,940 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Resource that represents contact information other than phone, email,
+ * URI and addresses.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.AdditionalContactInfo} + */ +public final class AdditionalContactInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.AdditionalContactInfo) + AdditionalContactInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use AdditionalContactInfo.newBuilder() to construct. + private AdditionalContactInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AdditionalContactInfo() { + usage_ = 0; + name_ = ""; + contactId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AdditionalContactInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + usage_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + contactId_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_AdditionalContactInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_AdditionalContactInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.AdditionalContactInfo.class, + com.google.cloud.talent.v4beta1.AdditionalContactInfo.Builder.class); + } + + public static final int USAGE_FIELD_NUMBER = 1; + private int usage_; + /** + * + * + *
+   * Optional.
+   * The usage of this contact method. For example, SCHOOL, WORK, PERSONAL.
+   * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public int getUsageValue() { + return usage_; + } + /** + * + * + *
+   * Optional.
+   * The usage of this contact method. For example, SCHOOL, WORK, PERSONAL.
+   * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public com.google.cloud.talent.v4beta1.ContactInfoUsage getUsage() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.ContactInfoUsage result = + com.google.cloud.talent.v4beta1.ContactInfoUsage.valueOf(usage_); + return result == null ? com.google.cloud.talent.v4beta1.ContactInfoUsage.UNRECOGNIZED : result; + } + + public static final int NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Optional.
+   * The name of the contact method.
+   * For example, "hangout", "skype".
+   * Number of characters allowed is 100.
+   * 
+ * + * string name = 2; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The name of the contact method.
+   * For example, "hangout", "skype".
+   * Number of characters allowed is 100.
+   * 
+ * + * string name = 2; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTACT_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object contactId_; + /** + * + * + *
+   * Optional.
+   * The contact id.
+   * Number of characters allowed is 100.
+   * 
+ * + * string contact_id = 3; + */ + public java.lang.String getContactId() { + java.lang.Object ref = contactId_; + 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(); + contactId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The contact id.
+   * Number of characters allowed is 100.
+   * 
+ * + * string contact_id = 3; + */ + public com.google.protobuf.ByteString getContactIdBytes() { + java.lang.Object ref = contactId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + contactId_ = 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 (usage_ + != com.google.cloud.talent.v4beta1.ContactInfoUsage.CONTACT_INFO_USAGE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, usage_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + if (!getContactIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, contactId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (usage_ + != com.google.cloud.talent.v4beta1.ContactInfoUsage.CONTACT_INFO_USAGE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, usage_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + } + if (!getContactIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, contactId_); + } + size += unknownFields.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.cloud.talent.v4beta1.AdditionalContactInfo)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.AdditionalContactInfo other = + (com.google.cloud.talent.v4beta1.AdditionalContactInfo) obj; + + boolean result = true; + result = result && usage_ == other.usage_; + result = result && getName().equals(other.getName()); + result = result && getContactId().equals(other.getContactId()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USAGE_FIELD_NUMBER; + hash = (53 * hash) + usage_; + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + CONTACT_ID_FIELD_NUMBER; + hash = (53 * hash) + getContactId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.AdditionalContactInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.AdditionalContactInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.AdditionalContactInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.AdditionalContactInfo 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.cloud.talent.v4beta1.AdditionalContactInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.AdditionalContactInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.AdditionalContactInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.AdditionalContactInfo 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.cloud.talent.v4beta1.AdditionalContactInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.AdditionalContactInfo 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.cloud.talent.v4beta1.AdditionalContactInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.AdditionalContactInfo 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.cloud.talent.v4beta1.AdditionalContactInfo 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; + } + /** + * + * + *
+   * Resource that represents contact information other than phone, email,
+   * URI and addresses.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.AdditionalContactInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.AdditionalContactInfo) + com.google.cloud.talent.v4beta1.AdditionalContactInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_AdditionalContactInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_AdditionalContactInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.AdditionalContactInfo.class, + com.google.cloud.talent.v4beta1.AdditionalContactInfo.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.AdditionalContactInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + usage_ = 0; + + name_ = ""; + + contactId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_AdditionalContactInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.AdditionalContactInfo getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.AdditionalContactInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.AdditionalContactInfo build() { + com.google.cloud.talent.v4beta1.AdditionalContactInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.AdditionalContactInfo buildPartial() { + com.google.cloud.talent.v4beta1.AdditionalContactInfo result = + new com.google.cloud.talent.v4beta1.AdditionalContactInfo(this); + result.usage_ = usage_; + result.name_ = name_; + result.contactId_ = contactId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.AdditionalContactInfo) { + return mergeFrom((com.google.cloud.talent.v4beta1.AdditionalContactInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.AdditionalContactInfo other) { + if (other == com.google.cloud.talent.v4beta1.AdditionalContactInfo.getDefaultInstance()) + return this; + if (other.usage_ != 0) { + setUsageValue(other.getUsageValue()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getContactId().isEmpty()) { + contactId_ = other.contactId_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.AdditionalContactInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.AdditionalContactInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int usage_ = 0; + /** + * + * + *
+     * Optional.
+     * The usage of this contact method. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public int getUsageValue() { + return usage_; + } + /** + * + * + *
+     * Optional.
+     * The usage of this contact method. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public Builder setUsageValue(int value) { + usage_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The usage of this contact method. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public com.google.cloud.talent.v4beta1.ContactInfoUsage getUsage() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.ContactInfoUsage result = + com.google.cloud.talent.v4beta1.ContactInfoUsage.valueOf(usage_); + return result == null + ? com.google.cloud.talent.v4beta1.ContactInfoUsage.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional.
+     * The usage of this contact method. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public Builder setUsage(com.google.cloud.talent.v4beta1.ContactInfoUsage value) { + if (value == null) { + throw new NullPointerException(); + } + + usage_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The usage of this contact method. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public Builder clearUsage() { + + usage_ = 0; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Optional.
+     * The name of the contact method.
+     * For example, "hangout", "skype".
+     * Number of characters allowed is 100.
+     * 
+ * + * string name = 2; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The name of the contact method.
+     * For example, "hangout", "skype".
+     * Number of characters allowed is 100.
+     * 
+ * + * string name = 2; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The name of the contact method.
+     * For example, "hangout", "skype".
+     * Number of characters allowed is 100.
+     * 
+ * + * string name = 2; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The name of the contact method.
+     * For example, "hangout", "skype".
+     * Number of characters allowed is 100.
+     * 
+ * + * string name = 2; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The name of the contact method.
+     * For example, "hangout", "skype".
+     * Number of characters allowed is 100.
+     * 
+ * + * string name = 2; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object contactId_ = ""; + /** + * + * + *
+     * Optional.
+     * The contact id.
+     * Number of characters allowed is 100.
+     * 
+ * + * string contact_id = 3; + */ + public java.lang.String getContactId() { + java.lang.Object ref = contactId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contactId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The contact id.
+     * Number of characters allowed is 100.
+     * 
+ * + * string contact_id = 3; + */ + public com.google.protobuf.ByteString getContactIdBytes() { + java.lang.Object ref = contactId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + contactId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The contact id.
+     * Number of characters allowed is 100.
+     * 
+ * + * string contact_id = 3; + */ + public Builder setContactId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + contactId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The contact id.
+     * Number of characters allowed is 100.
+     * 
+ * + * string contact_id = 3; + */ + public Builder clearContactId() { + + contactId_ = getDefaultInstance().getContactId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The contact id.
+     * Number of characters allowed is 100.
+     * 
+ * + * string contact_id = 3; + */ + public Builder setContactIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + contactId_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.AdditionalContactInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.AdditionalContactInfo) + private static final com.google.cloud.talent.v4beta1.AdditionalContactInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.AdditionalContactInfo(); + } + + public static com.google.cloud.talent.v4beta1.AdditionalContactInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdditionalContactInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AdditionalContactInfo(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.AdditionalContactInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AdditionalContactInfoOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AdditionalContactInfoOrBuilder.java new file mode 100644 index 000000000000..748996afaf36 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AdditionalContactInfoOrBuilder.java @@ -0,0 +1,85 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public interface AdditionalContactInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.AdditionalContactInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * The usage of this contact method. For example, SCHOOL, WORK, PERSONAL.
+   * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + int getUsageValue(); + /** + * + * + *
+   * Optional.
+   * The usage of this contact method. For example, SCHOOL, WORK, PERSONAL.
+   * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + com.google.cloud.talent.v4beta1.ContactInfoUsage getUsage(); + + /** + * + * + *
+   * Optional.
+   * The name of the contact method.
+   * For example, "hangout", "skype".
+   * Number of characters allowed is 100.
+   * 
+ * + * string name = 2; + */ + java.lang.String getName(); + /** + * + * + *
+   * Optional.
+   * The name of the contact method.
+   * For example, "hangout", "skype".
+   * Number of characters allowed is 100.
+   * 
+ * + * string name = 2; + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional.
+   * The contact id.
+   * Number of characters allowed is 100.
+   * 
+ * + * string contact_id = 3; + */ + java.lang.String getContactId(); + /** + * + * + *
+   * Optional.
+   * The contact id.
+   * Number of characters allowed is 100.
+   * 
+ * + * string contact_id = 3; + */ + com.google.protobuf.ByteString getContactIdBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Address.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Address.java new file mode 100644 index 000000000000..c2e59e26a78d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Address.java @@ -0,0 +1,1441 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Resource that represents a address.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Address} + */ +public final class Address extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Address) + AddressOrBuilder { + private static final long serialVersionUID = 0L; + // Use Address.newBuilder() to construct. + private Address(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Address() { + usage_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Address( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + usage_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + addressCase_ = 2; + address_ = s; + break; + } + case 26: + { + com.google.type.PostalAddress.Builder subBuilder = null; + if (addressCase_ == 3) { + subBuilder = ((com.google.type.PostalAddress) address_).toBuilder(); + } + address_ = + input.readMessage(com.google.type.PostalAddress.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.type.PostalAddress) address_); + address_ = subBuilder.buildPartial(); + } + addressCase_ = 3; + break; + } + case 34: + { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (isCurrent_ != null) { + subBuilder = isCurrent_.toBuilder(); + } + isCurrent_ = + input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(isCurrent_); + isCurrent_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Address_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Address_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Address.class, + com.google.cloud.talent.v4beta1.Address.Builder.class); + } + + private int addressCase_ = 0; + private java.lang.Object address_; + + public enum AddressCase implements com.google.protobuf.Internal.EnumLite { + UNSTRUCTURED_ADDRESS(2), + STRUCTURED_ADDRESS(3), + ADDRESS_NOT_SET(0); + private final int value; + + private AddressCase(int value) { + this.value = value; + } + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static AddressCase valueOf(int value) { + return forNumber(value); + } + + public static AddressCase forNumber(int value) { + switch (value) { + case 2: + return UNSTRUCTURED_ADDRESS; + case 3: + return STRUCTURED_ADDRESS; + case 0: + return ADDRESS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public AddressCase getAddressCase() { + return AddressCase.forNumber(addressCase_); + } + + public static final int USAGE_FIELD_NUMBER = 1; + private int usage_; + /** + * + * + *
+   * Optional.
+   * The usage of the address. For example, SCHOOL, WORK, PERSONAL.
+   * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public int getUsageValue() { + return usage_; + } + /** + * + * + *
+   * Optional.
+   * The usage of the address. For example, SCHOOL, WORK, PERSONAL.
+   * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public com.google.cloud.talent.v4beta1.ContactInfoUsage getUsage() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.ContactInfoUsage result = + com.google.cloud.talent.v4beta1.ContactInfoUsage.valueOf(usage_); + return result == null ? com.google.cloud.talent.v4beta1.ContactInfoUsage.UNRECOGNIZED : result; + } + + public static final int UNSTRUCTURED_ADDRESS_FIELD_NUMBER = 2; + /** + * + * + *
+   * Optional.
+   * Unstructured address.
+   * For example, "1600 Amphitheatre Pkwy, Mountain View, CA 94043",
+   * "Sunnyvale, California".
+   * Number of characters allowed is 100.
+   * 
+ * + * string unstructured_address = 2; + */ + public java.lang.String getUnstructuredAddress() { + java.lang.Object ref = ""; + if (addressCase_ == 2) { + ref = address_; + } + 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(); + if (addressCase_ == 2) { + address_ = s; + } + return s; + } + } + /** + * + * + *
+   * Optional.
+   * Unstructured address.
+   * For example, "1600 Amphitheatre Pkwy, Mountain View, CA 94043",
+   * "Sunnyvale, California".
+   * Number of characters allowed is 100.
+   * 
+ * + * string unstructured_address = 2; + */ + public com.google.protobuf.ByteString getUnstructuredAddressBytes() { + java.lang.Object ref = ""; + if (addressCase_ == 2) { + ref = address_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (addressCase_ == 2) { + address_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STRUCTURED_ADDRESS_FIELD_NUMBER = 3; + /** + * + * + *
+   * Optional.
+   * Structured address that contains street address, city, state, country,
+   * etc.
+   * 
+ * + * .google.type.PostalAddress structured_address = 3; + */ + public boolean hasStructuredAddress() { + return addressCase_ == 3; + } + /** + * + * + *
+   * Optional.
+   * Structured address that contains street address, city, state, country,
+   * etc.
+   * 
+ * + * .google.type.PostalAddress structured_address = 3; + */ + public com.google.type.PostalAddress getStructuredAddress() { + if (addressCase_ == 3) { + return (com.google.type.PostalAddress) address_; + } + return com.google.type.PostalAddress.getDefaultInstance(); + } + /** + * + * + *
+   * Optional.
+   * Structured address that contains street address, city, state, country,
+   * etc.
+   * 
+ * + * .google.type.PostalAddress structured_address = 3; + */ + public com.google.type.PostalAddressOrBuilder getStructuredAddressOrBuilder() { + if (addressCase_ == 3) { + return (com.google.type.PostalAddress) address_; + } + return com.google.type.PostalAddress.getDefaultInstance(); + } + + public static final int IS_CURRENT_FIELD_NUMBER = 4; + private com.google.protobuf.BoolValue isCurrent_; + /** + * + * + *
+   * Optional.
+   * Indicates if it's the person's current address.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 4; + */ + public boolean hasIsCurrent() { + return isCurrent_ != null; + } + /** + * + * + *
+   * Optional.
+   * Indicates if it's the person's current address.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 4; + */ + public com.google.protobuf.BoolValue getIsCurrent() { + return isCurrent_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isCurrent_; + } + /** + * + * + *
+   * Optional.
+   * Indicates if it's the person's current address.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 4; + */ + public com.google.protobuf.BoolValueOrBuilder getIsCurrentOrBuilder() { + return getIsCurrent(); + } + + 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 (usage_ + != com.google.cloud.talent.v4beta1.ContactInfoUsage.CONTACT_INFO_USAGE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, usage_); + } + if (addressCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, address_); + } + if (addressCase_ == 3) { + output.writeMessage(3, (com.google.type.PostalAddress) address_); + } + if (isCurrent_ != null) { + output.writeMessage(4, getIsCurrent()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (usage_ + != com.google.cloud.talent.v4beta1.ContactInfoUsage.CONTACT_INFO_USAGE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, usage_); + } + if (addressCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, address_); + } + if (addressCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.type.PostalAddress) address_); + } + if (isCurrent_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getIsCurrent()); + } + size += unknownFields.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.cloud.talent.v4beta1.Address)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Address other = (com.google.cloud.talent.v4beta1.Address) obj; + + boolean result = true; + result = result && usage_ == other.usage_; + result = result && (hasIsCurrent() == other.hasIsCurrent()); + if (hasIsCurrent()) { + result = result && getIsCurrent().equals(other.getIsCurrent()); + } + result = result && getAddressCase().equals(other.getAddressCase()); + if (!result) return false; + switch (addressCase_) { + case 2: + result = result && getUnstructuredAddress().equals(other.getUnstructuredAddress()); + break; + case 3: + result = result && getStructuredAddress().equals(other.getStructuredAddress()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USAGE_FIELD_NUMBER; + hash = (53 * hash) + usage_; + if (hasIsCurrent()) { + hash = (37 * hash) + IS_CURRENT_FIELD_NUMBER; + hash = (53 * hash) + getIsCurrent().hashCode(); + } + switch (addressCase_) { + case 2: + hash = (37 * hash) + UNSTRUCTURED_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getUnstructuredAddress().hashCode(); + break; + case 3: + hash = (37 * hash) + STRUCTURED_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getStructuredAddress().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Address parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Address parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Address parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Address 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.cloud.talent.v4beta1.Address parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Address parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Address parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Address 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.cloud.talent.v4beta1.Address parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Address 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.cloud.talent.v4beta1.Address parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Address 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.cloud.talent.v4beta1.Address 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; + } + /** + * + * + *
+   * Resource that represents a address.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Address} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Address) + com.google.cloud.talent.v4beta1.AddressOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Address_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Address_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Address.class, + com.google.cloud.talent.v4beta1.Address.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Address.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + usage_ = 0; + + if (isCurrentBuilder_ == null) { + isCurrent_ = null; + } else { + isCurrent_ = null; + isCurrentBuilder_ = null; + } + addressCase_ = 0; + address_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Address_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Address getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Address.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Address build() { + com.google.cloud.talent.v4beta1.Address result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Address buildPartial() { + com.google.cloud.talent.v4beta1.Address result = + new com.google.cloud.talent.v4beta1.Address(this); + result.usage_ = usage_; + if (addressCase_ == 2) { + result.address_ = address_; + } + if (addressCase_ == 3) { + if (structuredAddressBuilder_ == null) { + result.address_ = address_; + } else { + result.address_ = structuredAddressBuilder_.build(); + } + } + if (isCurrentBuilder_ == null) { + result.isCurrent_ = isCurrent_; + } else { + result.isCurrent_ = isCurrentBuilder_.build(); + } + result.addressCase_ = addressCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Address) { + return mergeFrom((com.google.cloud.talent.v4beta1.Address) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Address other) { + if (other == com.google.cloud.talent.v4beta1.Address.getDefaultInstance()) return this; + if (other.usage_ != 0) { + setUsageValue(other.getUsageValue()); + } + if (other.hasIsCurrent()) { + mergeIsCurrent(other.getIsCurrent()); + } + switch (other.getAddressCase()) { + case UNSTRUCTURED_ADDRESS: + { + addressCase_ = 2; + address_ = other.address_; + onChanged(); + break; + } + case STRUCTURED_ADDRESS: + { + mergeStructuredAddress(other.getStructuredAddress()); + break; + } + case ADDRESS_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.Address parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.Address) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int addressCase_ = 0; + private java.lang.Object address_; + + public AddressCase getAddressCase() { + return AddressCase.forNumber(addressCase_); + } + + public Builder clearAddress() { + addressCase_ = 0; + address_ = null; + onChanged(); + return this; + } + + private int usage_ = 0; + /** + * + * + *
+     * Optional.
+     * The usage of the address. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public int getUsageValue() { + return usage_; + } + /** + * + * + *
+     * Optional.
+     * The usage of the address. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public Builder setUsageValue(int value) { + usage_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The usage of the address. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public com.google.cloud.talent.v4beta1.ContactInfoUsage getUsage() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.ContactInfoUsage result = + com.google.cloud.talent.v4beta1.ContactInfoUsage.valueOf(usage_); + return result == null + ? com.google.cloud.talent.v4beta1.ContactInfoUsage.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional.
+     * The usage of the address. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public Builder setUsage(com.google.cloud.talent.v4beta1.ContactInfoUsage value) { + if (value == null) { + throw new NullPointerException(); + } + + usage_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The usage of the address. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public Builder clearUsage() { + + usage_ = 0; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional.
+     * Unstructured address.
+     * For example, "1600 Amphitheatre Pkwy, Mountain View, CA 94043",
+     * "Sunnyvale, California".
+     * Number of characters allowed is 100.
+     * 
+ * + * string unstructured_address = 2; + */ + public java.lang.String getUnstructuredAddress() { + java.lang.Object ref = ""; + if (addressCase_ == 2) { + ref = address_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (addressCase_ == 2) { + address_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Unstructured address.
+     * For example, "1600 Amphitheatre Pkwy, Mountain View, CA 94043",
+     * "Sunnyvale, California".
+     * Number of characters allowed is 100.
+     * 
+ * + * string unstructured_address = 2; + */ + public com.google.protobuf.ByteString getUnstructuredAddressBytes() { + java.lang.Object ref = ""; + if (addressCase_ == 2) { + ref = address_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (addressCase_ == 2) { + address_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Unstructured address.
+     * For example, "1600 Amphitheatre Pkwy, Mountain View, CA 94043",
+     * "Sunnyvale, California".
+     * Number of characters allowed is 100.
+     * 
+ * + * string unstructured_address = 2; + */ + public Builder setUnstructuredAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + addressCase_ = 2; + address_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Unstructured address.
+     * For example, "1600 Amphitheatre Pkwy, Mountain View, CA 94043",
+     * "Sunnyvale, California".
+     * Number of characters allowed is 100.
+     * 
+ * + * string unstructured_address = 2; + */ + public Builder clearUnstructuredAddress() { + if (addressCase_ == 2) { + addressCase_ = 0; + address_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Unstructured address.
+     * For example, "1600 Amphitheatre Pkwy, Mountain View, CA 94043",
+     * "Sunnyvale, California".
+     * Number of characters allowed is 100.
+     * 
+ * + * string unstructured_address = 2; + */ + public Builder setUnstructuredAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + addressCase_ = 2; + address_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.PostalAddress, + com.google.type.PostalAddress.Builder, + com.google.type.PostalAddressOrBuilder> + structuredAddressBuilder_; + /** + * + * + *
+     * Optional.
+     * Structured address that contains street address, city, state, country,
+     * etc.
+     * 
+ * + * .google.type.PostalAddress structured_address = 3; + */ + public boolean hasStructuredAddress() { + return addressCase_ == 3; + } + /** + * + * + *
+     * Optional.
+     * Structured address that contains street address, city, state, country,
+     * etc.
+     * 
+ * + * .google.type.PostalAddress structured_address = 3; + */ + public com.google.type.PostalAddress getStructuredAddress() { + if (structuredAddressBuilder_ == null) { + if (addressCase_ == 3) { + return (com.google.type.PostalAddress) address_; + } + return com.google.type.PostalAddress.getDefaultInstance(); + } else { + if (addressCase_ == 3) { + return structuredAddressBuilder_.getMessage(); + } + return com.google.type.PostalAddress.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional.
+     * Structured address that contains street address, city, state, country,
+     * etc.
+     * 
+ * + * .google.type.PostalAddress structured_address = 3; + */ + public Builder setStructuredAddress(com.google.type.PostalAddress value) { + if (structuredAddressBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + address_ = value; + onChanged(); + } else { + structuredAddressBuilder_.setMessage(value); + } + addressCase_ = 3; + return this; + } + /** + * + * + *
+     * Optional.
+     * Structured address that contains street address, city, state, country,
+     * etc.
+     * 
+ * + * .google.type.PostalAddress structured_address = 3; + */ + public Builder setStructuredAddress(com.google.type.PostalAddress.Builder builderForValue) { + if (structuredAddressBuilder_ == null) { + address_ = builderForValue.build(); + onChanged(); + } else { + structuredAddressBuilder_.setMessage(builderForValue.build()); + } + addressCase_ = 3; + return this; + } + /** + * + * + *
+     * Optional.
+     * Structured address that contains street address, city, state, country,
+     * etc.
+     * 
+ * + * .google.type.PostalAddress structured_address = 3; + */ + public Builder mergeStructuredAddress(com.google.type.PostalAddress value) { + if (structuredAddressBuilder_ == null) { + if (addressCase_ == 3 && address_ != com.google.type.PostalAddress.getDefaultInstance()) { + address_ = + com.google.type.PostalAddress.newBuilder((com.google.type.PostalAddress) address_) + .mergeFrom(value) + .buildPartial(); + } else { + address_ = value; + } + onChanged(); + } else { + if (addressCase_ == 3) { + structuredAddressBuilder_.mergeFrom(value); + } + structuredAddressBuilder_.setMessage(value); + } + addressCase_ = 3; + return this; + } + /** + * + * + *
+     * Optional.
+     * Structured address that contains street address, city, state, country,
+     * etc.
+     * 
+ * + * .google.type.PostalAddress structured_address = 3; + */ + public Builder clearStructuredAddress() { + if (structuredAddressBuilder_ == null) { + if (addressCase_ == 3) { + addressCase_ = 0; + address_ = null; + onChanged(); + } + } else { + if (addressCase_ == 3) { + addressCase_ = 0; + address_ = null; + } + structuredAddressBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Structured address that contains street address, city, state, country,
+     * etc.
+     * 
+ * + * .google.type.PostalAddress structured_address = 3; + */ + public com.google.type.PostalAddress.Builder getStructuredAddressBuilder() { + return getStructuredAddressFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * Structured address that contains street address, city, state, country,
+     * etc.
+     * 
+ * + * .google.type.PostalAddress structured_address = 3; + */ + public com.google.type.PostalAddressOrBuilder getStructuredAddressOrBuilder() { + if ((addressCase_ == 3) && (structuredAddressBuilder_ != null)) { + return structuredAddressBuilder_.getMessageOrBuilder(); + } else { + if (addressCase_ == 3) { + return (com.google.type.PostalAddress) address_; + } + return com.google.type.PostalAddress.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional.
+     * Structured address that contains street address, city, state, country,
+     * etc.
+     * 
+ * + * .google.type.PostalAddress structured_address = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.PostalAddress, + com.google.type.PostalAddress.Builder, + com.google.type.PostalAddressOrBuilder> + getStructuredAddressFieldBuilder() { + if (structuredAddressBuilder_ == null) { + if (!(addressCase_ == 3)) { + address_ = com.google.type.PostalAddress.getDefaultInstance(); + } + structuredAddressBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.PostalAddress, + com.google.type.PostalAddress.Builder, + com.google.type.PostalAddressOrBuilder>( + (com.google.type.PostalAddress) address_, getParentForChildren(), isClean()); + address_ = null; + } + addressCase_ = 3; + onChanged(); + ; + return structuredAddressBuilder_; + } + + private com.google.protobuf.BoolValue isCurrent_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + isCurrentBuilder_; + /** + * + * + *
+     * Optional.
+     * Indicates if it's the person's current address.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 4; + */ + public boolean hasIsCurrent() { + return isCurrentBuilder_ != null || isCurrent_ != null; + } + /** + * + * + *
+     * Optional.
+     * Indicates if it's the person's current address.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 4; + */ + public com.google.protobuf.BoolValue getIsCurrent() { + if (isCurrentBuilder_ == null) { + return isCurrent_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isCurrent_; + } else { + return isCurrentBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * Indicates if it's the person's current address.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 4; + */ + public Builder setIsCurrent(com.google.protobuf.BoolValue value) { + if (isCurrentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + isCurrent_ = value; + onChanged(); + } else { + isCurrentBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Indicates if it's the person's current address.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 4; + */ + public Builder setIsCurrent(com.google.protobuf.BoolValue.Builder builderForValue) { + if (isCurrentBuilder_ == null) { + isCurrent_ = builderForValue.build(); + onChanged(); + } else { + isCurrentBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Indicates if it's the person's current address.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 4; + */ + public Builder mergeIsCurrent(com.google.protobuf.BoolValue value) { + if (isCurrentBuilder_ == null) { + if (isCurrent_ != null) { + isCurrent_ = + com.google.protobuf.BoolValue.newBuilder(isCurrent_).mergeFrom(value).buildPartial(); + } else { + isCurrent_ = value; + } + onChanged(); + } else { + isCurrentBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Indicates if it's the person's current address.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 4; + */ + public Builder clearIsCurrent() { + if (isCurrentBuilder_ == null) { + isCurrent_ = null; + onChanged(); + } else { + isCurrent_ = null; + isCurrentBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Indicates if it's the person's current address.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 4; + */ + public com.google.protobuf.BoolValue.Builder getIsCurrentBuilder() { + + onChanged(); + return getIsCurrentFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * Indicates if it's the person's current address.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 4; + */ + public com.google.protobuf.BoolValueOrBuilder getIsCurrentOrBuilder() { + if (isCurrentBuilder_ != null) { + return isCurrentBuilder_.getMessageOrBuilder(); + } else { + return isCurrent_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isCurrent_; + } + } + /** + * + * + *
+     * Optional.
+     * Indicates if it's the person's current address.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getIsCurrentFieldBuilder() { + if (isCurrentBuilder_ == null) { + isCurrentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getIsCurrent(), getParentForChildren(), isClean()); + isCurrent_ = null; + } + return isCurrentBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Address) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Address) + private static final com.google.cloud.talent.v4beta1.Address DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Address(); + } + + public static com.google.cloud.talent.v4beta1.Address getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser
PARSER = + new com.google.protobuf.AbstractParser
() { + @java.lang.Override + public Address parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Address(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.Address getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AddressOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AddressOrBuilder.java new file mode 100644 index 000000000000..b802c5c1fdfa --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AddressOrBuilder.java @@ -0,0 +1,135 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public interface AddressOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Address) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * The usage of the address. For example, SCHOOL, WORK, PERSONAL.
+   * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + int getUsageValue(); + /** + * + * + *
+   * Optional.
+   * The usage of the address. For example, SCHOOL, WORK, PERSONAL.
+   * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + com.google.cloud.talent.v4beta1.ContactInfoUsage getUsage(); + + /** + * + * + *
+   * Optional.
+   * Unstructured address.
+   * For example, "1600 Amphitheatre Pkwy, Mountain View, CA 94043",
+   * "Sunnyvale, California".
+   * Number of characters allowed is 100.
+   * 
+ * + * string unstructured_address = 2; + */ + java.lang.String getUnstructuredAddress(); + /** + * + * + *
+   * Optional.
+   * Unstructured address.
+   * For example, "1600 Amphitheatre Pkwy, Mountain View, CA 94043",
+   * "Sunnyvale, California".
+   * Number of characters allowed is 100.
+   * 
+ * + * string unstructured_address = 2; + */ + com.google.protobuf.ByteString getUnstructuredAddressBytes(); + + /** + * + * + *
+   * Optional.
+   * Structured address that contains street address, city, state, country,
+   * etc.
+   * 
+ * + * .google.type.PostalAddress structured_address = 3; + */ + boolean hasStructuredAddress(); + /** + * + * + *
+   * Optional.
+   * Structured address that contains street address, city, state, country,
+   * etc.
+   * 
+ * + * .google.type.PostalAddress structured_address = 3; + */ + com.google.type.PostalAddress getStructuredAddress(); + /** + * + * + *
+   * Optional.
+   * Structured address that contains street address, city, state, country,
+   * etc.
+   * 
+ * + * .google.type.PostalAddress structured_address = 3; + */ + com.google.type.PostalAddressOrBuilder getStructuredAddressOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * Indicates if it's the person's current address.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 4; + */ + boolean hasIsCurrent(); + /** + * + * + *
+   * Optional.
+   * Indicates if it's the person's current address.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 4; + */ + com.google.protobuf.BoolValue getIsCurrent(); + /** + * + * + *
+   * Optional.
+   * Indicates if it's the person's current address.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 4; + */ + com.google.protobuf.BoolValueOrBuilder getIsCurrentOrBuilder(); + + public com.google.cloud.talent.v4beta1.Address.AddressCase getAddressCase(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationDateFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationDateFilter.java new file mode 100644 index 000000000000..f3ca6aafe601 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationDateFilter.java @@ -0,0 +1,1000 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Application Date Range Filter.
+ * The API matches profiles with
+ * [JobApplication.application_date][google.cloud.talent.v4beta1.JobApplication.application_date]
+ * between start date and end date (both boundaries are inclusive). The filter
+ * is ignored if both
+ * [start_date][google.cloud.talent.v4beta1.ApplicationDateFilter.start_date]
+ * and [end_date][google.cloud.talent.v4beta1.ApplicationDateFilter.end_date]
+ * are missing.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ApplicationDateFilter} + */ +public final class ApplicationDateFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ApplicationDateFilter) + ApplicationDateFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use ApplicationDateFilter.newBuilder() to construct. + private ApplicationDateFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ApplicationDateFilter() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ApplicationDateFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.type.Date.Builder subBuilder = null; + if (startDate_ != null) { + subBuilder = startDate_.toBuilder(); + } + startDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startDate_); + startDate_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.type.Date.Builder subBuilder = null; + if (endDate_ != null) { + subBuilder = endDate_.toBuilder(); + } + endDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endDate_); + endDate_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationDateFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationDateFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ApplicationDateFilter.class, + com.google.cloud.talent.v4beta1.ApplicationDateFilter.Builder.class); + } + + public static final int START_DATE_FIELD_NUMBER = 1; + private com.google.type.Date startDate_; + /** + * + * + *
+   * Optional.
+   * Start date. If it's missing, The API matches profiles with application date
+   * not after the end date.
+   * 
+ * + * .google.type.Date start_date = 1; + */ + public boolean hasStartDate() { + return startDate_ != null; + } + /** + * + * + *
+   * Optional.
+   * Start date. If it's missing, The API matches profiles with application date
+   * not after the end date.
+   * 
+ * + * .google.type.Date start_date = 1; + */ + public com.google.type.Date getStartDate() { + return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; + } + /** + * + * + *
+   * Optional.
+   * Start date. If it's missing, The API matches profiles with application date
+   * not after the end date.
+   * 
+ * + * .google.type.Date start_date = 1; + */ + public com.google.type.DateOrBuilder getStartDateOrBuilder() { + return getStartDate(); + } + + public static final int END_DATE_FIELD_NUMBER = 2; + private com.google.type.Date endDate_; + /** + * + * + *
+   * Optional.
+   * End date. If it's missing, The API matches profiles with application date
+   * not before the start date.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + public boolean hasEndDate() { + return endDate_ != null; + } + /** + * + * + *
+   * Optional.
+   * End date. If it's missing, The API matches profiles with application date
+   * not before the start date.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + public com.google.type.Date getEndDate() { + return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; + } + /** + * + * + *
+   * Optional.
+   * End date. If it's missing, The API matches profiles with application date
+   * not before the start date.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + public com.google.type.DateOrBuilder getEndDateOrBuilder() { + return getEndDate(); + } + + 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 (startDate_ != null) { + output.writeMessage(1, getStartDate()); + } + if (endDate_ != null) { + output.writeMessage(2, getEndDate()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (startDate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartDate()); + } + if (endDate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndDate()); + } + size += unknownFields.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.cloud.talent.v4beta1.ApplicationDateFilter)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ApplicationDateFilter other = + (com.google.cloud.talent.v4beta1.ApplicationDateFilter) obj; + + boolean result = true; + result = result && (hasStartDate() == other.hasStartDate()); + if (hasStartDate()) { + result = result && getStartDate().equals(other.getStartDate()); + } + result = result && (hasEndDate() == other.hasEndDate()); + if (hasEndDate()) { + result = result && getEndDate().equals(other.getEndDate()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStartDate()) { + hash = (37 * hash) + START_DATE_FIELD_NUMBER; + hash = (53 * hash) + getStartDate().hashCode(); + } + if (hasEndDate()) { + hash = (37 * hash) + END_DATE_FIELD_NUMBER; + hash = (53 * hash) + getEndDate().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ApplicationDateFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ApplicationDateFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationDateFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ApplicationDateFilter 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.cloud.talent.v4beta1.ApplicationDateFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ApplicationDateFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationDateFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ApplicationDateFilter 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.cloud.talent.v4beta1.ApplicationDateFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ApplicationDateFilter 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.cloud.talent.v4beta1.ApplicationDateFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ApplicationDateFilter 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.cloud.talent.v4beta1.ApplicationDateFilter 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; + } + /** + * + * + *
+   * Input only.
+   * Application Date Range Filter.
+   * The API matches profiles with
+   * [JobApplication.application_date][google.cloud.talent.v4beta1.JobApplication.application_date]
+   * between start date and end date (both boundaries are inclusive). The filter
+   * is ignored if both
+   * [start_date][google.cloud.talent.v4beta1.ApplicationDateFilter.start_date]
+   * and [end_date][google.cloud.talent.v4beta1.ApplicationDateFilter.end_date]
+   * are missing.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ApplicationDateFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ApplicationDateFilter) + com.google.cloud.talent.v4beta1.ApplicationDateFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationDateFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationDateFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ApplicationDateFilter.class, + com.google.cloud.talent.v4beta1.ApplicationDateFilter.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ApplicationDateFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (startDateBuilder_ == null) { + startDate_ = null; + } else { + startDate_ = null; + startDateBuilder_ = null; + } + if (endDateBuilder_ == null) { + endDate_ = null; + } else { + endDate_ = null; + endDateBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationDateFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationDateFilter getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ApplicationDateFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationDateFilter build() { + com.google.cloud.talent.v4beta1.ApplicationDateFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationDateFilter buildPartial() { + com.google.cloud.talent.v4beta1.ApplicationDateFilter result = + new com.google.cloud.talent.v4beta1.ApplicationDateFilter(this); + if (startDateBuilder_ == null) { + result.startDate_ = startDate_; + } else { + result.startDate_ = startDateBuilder_.build(); + } + if (endDateBuilder_ == null) { + result.endDate_ = endDate_; + } else { + result.endDate_ = endDateBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ApplicationDateFilter) { + return mergeFrom((com.google.cloud.talent.v4beta1.ApplicationDateFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ApplicationDateFilter other) { + if (other == com.google.cloud.talent.v4beta1.ApplicationDateFilter.getDefaultInstance()) + return this; + if (other.hasStartDate()) { + mergeStartDate(other.getStartDate()); + } + if (other.hasEndDate()) { + mergeEndDate(other.getEndDate()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.ApplicationDateFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.ApplicationDateFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.type.Date startDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + startDateBuilder_; + /** + * + * + *
+     * Optional.
+     * Start date. If it's missing, The API matches profiles with application date
+     * not after the end date.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public boolean hasStartDate() { + return startDateBuilder_ != null || startDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * Start date. If it's missing, The API matches profiles with application date
+     * not after the end date.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public com.google.type.Date getStartDate() { + if (startDateBuilder_ == null) { + return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; + } else { + return startDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * Start date. If it's missing, The API matches profiles with application date
+     * not after the end date.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public Builder setStartDate(com.google.type.Date value) { + if (startDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startDate_ = value; + onChanged(); + } else { + startDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Start date. If it's missing, The API matches profiles with application date
+     * not after the end date.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public Builder setStartDate(com.google.type.Date.Builder builderForValue) { + if (startDateBuilder_ == null) { + startDate_ = builderForValue.build(); + onChanged(); + } else { + startDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Start date. If it's missing, The API matches profiles with application date
+     * not after the end date.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public Builder mergeStartDate(com.google.type.Date value) { + if (startDateBuilder_ == null) { + if (startDate_ != null) { + startDate_ = com.google.type.Date.newBuilder(startDate_).mergeFrom(value).buildPartial(); + } else { + startDate_ = value; + } + onChanged(); + } else { + startDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Start date. If it's missing, The API matches profiles with application date
+     * not after the end date.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public Builder clearStartDate() { + if (startDateBuilder_ == null) { + startDate_ = null; + onChanged(); + } else { + startDate_ = null; + startDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Start date. If it's missing, The API matches profiles with application date
+     * not after the end date.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public com.google.type.Date.Builder getStartDateBuilder() { + + onChanged(); + return getStartDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * Start date. If it's missing, The API matches profiles with application date
+     * not after the end date.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public com.google.type.DateOrBuilder getStartDateOrBuilder() { + if (startDateBuilder_ != null) { + return startDateBuilder_.getMessageOrBuilder(); + } else { + return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; + } + } + /** + * + * + *
+     * Optional.
+     * Start date. If it's missing, The API matches profiles with application date
+     * not after the end date.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getStartDateFieldBuilder() { + if (startDateBuilder_ == null) { + startDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getStartDate(), getParentForChildren(), isClean()); + startDate_ = null; + } + return startDateBuilder_; + } + + private com.google.type.Date endDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + endDateBuilder_; + /** + * + * + *
+     * Optional.
+     * End date. If it's missing, The API matches profiles with application date
+     * not before the start date.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public boolean hasEndDate() { + return endDateBuilder_ != null || endDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * End date. If it's missing, The API matches profiles with application date
+     * not before the start date.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public com.google.type.Date getEndDate() { + if (endDateBuilder_ == null) { + return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; + } else { + return endDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * End date. If it's missing, The API matches profiles with application date
+     * not before the start date.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public Builder setEndDate(com.google.type.Date value) { + if (endDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endDate_ = value; + onChanged(); + } else { + endDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * End date. If it's missing, The API matches profiles with application date
+     * not before the start date.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public Builder setEndDate(com.google.type.Date.Builder builderForValue) { + if (endDateBuilder_ == null) { + endDate_ = builderForValue.build(); + onChanged(); + } else { + endDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * End date. If it's missing, The API matches profiles with application date
+     * not before the start date.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public Builder mergeEndDate(com.google.type.Date value) { + if (endDateBuilder_ == null) { + if (endDate_ != null) { + endDate_ = com.google.type.Date.newBuilder(endDate_).mergeFrom(value).buildPartial(); + } else { + endDate_ = value; + } + onChanged(); + } else { + endDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * End date. If it's missing, The API matches profiles with application date
+     * not before the start date.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public Builder clearEndDate() { + if (endDateBuilder_ == null) { + endDate_ = null; + onChanged(); + } else { + endDate_ = null; + endDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * End date. If it's missing, The API matches profiles with application date
+     * not before the start date.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public com.google.type.Date.Builder getEndDateBuilder() { + + onChanged(); + return getEndDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * End date. If it's missing, The API matches profiles with application date
+     * not before the start date.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public com.google.type.DateOrBuilder getEndDateOrBuilder() { + if (endDateBuilder_ != null) { + return endDateBuilder_.getMessageOrBuilder(); + } else { + return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; + } + } + /** + * + * + *
+     * Optional.
+     * End date. If it's missing, The API matches profiles with application date
+     * not before the start date.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getEndDateFieldBuilder() { + if (endDateBuilder_ == null) { + endDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getEndDate(), getParentForChildren(), isClean()); + endDate_ = null; + } + return endDateBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ApplicationDateFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ApplicationDateFilter) + private static final com.google.cloud.talent.v4beta1.ApplicationDateFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ApplicationDateFilter(); + } + + public static com.google.cloud.talent.v4beta1.ApplicationDateFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApplicationDateFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ApplicationDateFilter(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.ApplicationDateFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationDateFilterOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationDateFilterOrBuilder.java new file mode 100644 index 000000000000..9729fd3f8ca9 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationDateFilterOrBuilder.java @@ -0,0 +1,84 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +public interface ApplicationDateFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ApplicationDateFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * Start date. If it's missing, The API matches profiles with application date
+   * not after the end date.
+   * 
+ * + * .google.type.Date start_date = 1; + */ + boolean hasStartDate(); + /** + * + * + *
+   * Optional.
+   * Start date. If it's missing, The API matches profiles with application date
+   * not after the end date.
+   * 
+ * + * .google.type.Date start_date = 1; + */ + com.google.type.Date getStartDate(); + /** + * + * + *
+   * Optional.
+   * Start date. If it's missing, The API matches profiles with application date
+   * not after the end date.
+   * 
+ * + * .google.type.Date start_date = 1; + */ + com.google.type.DateOrBuilder getStartDateOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * End date. If it's missing, The API matches profiles with application date
+   * not before the start date.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + boolean hasEndDate(); + /** + * + * + *
+   * Optional.
+   * End date. If it's missing, The API matches profiles with application date
+   * not before the start date.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + com.google.type.Date getEndDate(); + /** + * + * + *
+   * Optional.
+   * End date. If it's missing, The API matches profiles with application date
+   * not before the start date.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + com.google.type.DateOrBuilder getEndDateOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationJobFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationJobFilter.java new file mode 100644 index 000000000000..c5b2ed70d139 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationJobFilter.java @@ -0,0 +1,1099 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Filter on the job information of Application.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ApplicationJobFilter} + */ +public final class ApplicationJobFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ApplicationJobFilter) + ApplicationJobFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use ApplicationJobFilter.newBuilder() to construct. + private ApplicationJobFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ApplicationJobFilter() { + jobName_ = ""; + jobRequisitionId_ = ""; + jobTitle_ = ""; + negated_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ApplicationJobFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + jobName_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + jobRequisitionId_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + jobTitle_ = s; + break; + } + case 32: + { + negated_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationJobFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationJobFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ApplicationJobFilter.class, + com.google.cloud.talent.v4beta1.ApplicationJobFilter.Builder.class); + } + + public static final int JOB_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object jobName_; + /** + * + * + *
+   * Optional.
+   * The job resource name in the application. The API does an exact match on
+   * the [Job.name][google.cloud.talent.v4beta1.Job.name] of
+   * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+   * profiles.
+   * 
+ * + * string job_name = 1; + */ + public java.lang.String getJobName() { + java.lang.Object ref = jobName_; + 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(); + jobName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The job resource name in the application. The API does an exact match on
+   * the [Job.name][google.cloud.talent.v4beta1.Job.name] of
+   * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+   * profiles.
+   * 
+ * + * string job_name = 1; + */ + public com.google.protobuf.ByteString getJobNameBytes() { + java.lang.Object ref = jobName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int JOB_REQUISITION_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object jobRequisitionId_; + /** + * + * + *
+   * Optional.
+   * The job requisition id in the application. The API does an exact match on
+   * the [Job.requisistion_id][] of
+   * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+   * profiles.
+   * 
+ * + * string job_requisition_id = 2; + */ + public java.lang.String getJobRequisitionId() { + java.lang.Object ref = jobRequisitionId_; + 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(); + jobRequisitionId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The job requisition id in the application. The API does an exact match on
+   * the [Job.requisistion_id][] of
+   * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+   * profiles.
+   * 
+ * + * string job_requisition_id = 2; + */ + public com.google.protobuf.ByteString getJobRequisitionIdBytes() { + java.lang.Object ref = jobRequisitionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobRequisitionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int JOB_TITLE_FIELD_NUMBER = 3; + private volatile java.lang.Object jobTitle_; + /** + * + * + *
+   * Optional.
+   * The job title in the application. The API does an exact match on the
+   * [Job.title][google.cloud.talent.v4beta1.Job.title] of
+   * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+   * profiles.
+   * 
+ * + * string job_title = 3; + */ + public java.lang.String getJobTitle() { + java.lang.Object ref = jobTitle_; + 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(); + jobTitle_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The job title in the application. The API does an exact match on the
+   * [Job.title][google.cloud.talent.v4beta1.Job.title] of
+   * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+   * profiles.
+   * 
+ * + * string job_title = 3; + */ + public com.google.protobuf.ByteString getJobTitleBytes() { + java.lang.Object ref = jobTitle_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobTitle_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NEGATED_FIELD_NUMBER = 4; + private boolean negated_; + /** + * + * + *
+   * Optional.
+   * If true, the API excludes all profiles with any
+   * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job]
+   * matching the filters.
+   * 
+ * + * bool negated = 4; + */ + public boolean getNegated() { + return negated_; + } + + 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 (!getJobNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, jobName_); + } + if (!getJobRequisitionIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, jobRequisitionId_); + } + if (!getJobTitleBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, jobTitle_); + } + if (negated_ != false) { + output.writeBool(4, negated_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getJobNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, jobName_); + } + if (!getJobRequisitionIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, jobRequisitionId_); + } + if (!getJobTitleBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, jobTitle_); + } + if (negated_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, negated_); + } + size += unknownFields.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.cloud.talent.v4beta1.ApplicationJobFilter)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ApplicationJobFilter other = + (com.google.cloud.talent.v4beta1.ApplicationJobFilter) obj; + + boolean result = true; + result = result && getJobName().equals(other.getJobName()); + result = result && getJobRequisitionId().equals(other.getJobRequisitionId()); + result = result && getJobTitle().equals(other.getJobTitle()); + result = result && (getNegated() == other.getNegated()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + JOB_NAME_FIELD_NUMBER; + hash = (53 * hash) + getJobName().hashCode(); + hash = (37 * hash) + JOB_REQUISITION_ID_FIELD_NUMBER; + hash = (53 * hash) + getJobRequisitionId().hashCode(); + hash = (37 * hash) + JOB_TITLE_FIELD_NUMBER; + hash = (53 * hash) + getJobTitle().hashCode(); + hash = (37 * hash) + NEGATED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNegated()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ApplicationJobFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ApplicationJobFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationJobFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ApplicationJobFilter 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.cloud.talent.v4beta1.ApplicationJobFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ApplicationJobFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationJobFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ApplicationJobFilter 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.cloud.talent.v4beta1.ApplicationJobFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ApplicationJobFilter 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.cloud.talent.v4beta1.ApplicationJobFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ApplicationJobFilter 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.cloud.talent.v4beta1.ApplicationJobFilter 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; + } + /** + * + * + *
+   * Input only.
+   * Filter on the job information of Application.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ApplicationJobFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ApplicationJobFilter) + com.google.cloud.talent.v4beta1.ApplicationJobFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationJobFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationJobFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ApplicationJobFilter.class, + com.google.cloud.talent.v4beta1.ApplicationJobFilter.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ApplicationJobFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + jobName_ = ""; + + jobRequisitionId_ = ""; + + jobTitle_ = ""; + + negated_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationJobFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationJobFilter getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ApplicationJobFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationJobFilter build() { + com.google.cloud.talent.v4beta1.ApplicationJobFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationJobFilter buildPartial() { + com.google.cloud.talent.v4beta1.ApplicationJobFilter result = + new com.google.cloud.talent.v4beta1.ApplicationJobFilter(this); + result.jobName_ = jobName_; + result.jobRequisitionId_ = jobRequisitionId_; + result.jobTitle_ = jobTitle_; + result.negated_ = negated_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ApplicationJobFilter) { + return mergeFrom((com.google.cloud.talent.v4beta1.ApplicationJobFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ApplicationJobFilter other) { + if (other == com.google.cloud.talent.v4beta1.ApplicationJobFilter.getDefaultInstance()) + return this; + if (!other.getJobName().isEmpty()) { + jobName_ = other.jobName_; + onChanged(); + } + if (!other.getJobRequisitionId().isEmpty()) { + jobRequisitionId_ = other.jobRequisitionId_; + onChanged(); + } + if (!other.getJobTitle().isEmpty()) { + jobTitle_ = other.jobTitle_; + onChanged(); + } + if (other.getNegated() != false) { + setNegated(other.getNegated()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.ApplicationJobFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.ApplicationJobFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object jobName_ = ""; + /** + * + * + *
+     * Optional.
+     * The job resource name in the application. The API does an exact match on
+     * the [Job.name][google.cloud.talent.v4beta1.Job.name] of
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+     * profiles.
+     * 
+ * + * string job_name = 1; + */ + public java.lang.String getJobName() { + java.lang.Object ref = jobName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The job resource name in the application. The API does an exact match on
+     * the [Job.name][google.cloud.talent.v4beta1.Job.name] of
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+     * profiles.
+     * 
+ * + * string job_name = 1; + */ + public com.google.protobuf.ByteString getJobNameBytes() { + java.lang.Object ref = jobName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The job resource name in the application. The API does an exact match on
+     * the [Job.name][google.cloud.talent.v4beta1.Job.name] of
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+     * profiles.
+     * 
+ * + * string job_name = 1; + */ + public Builder setJobName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jobName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The job resource name in the application. The API does an exact match on
+     * the [Job.name][google.cloud.talent.v4beta1.Job.name] of
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+     * profiles.
+     * 
+ * + * string job_name = 1; + */ + public Builder clearJobName() { + + jobName_ = getDefaultInstance().getJobName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The job resource name in the application. The API does an exact match on
+     * the [Job.name][google.cloud.talent.v4beta1.Job.name] of
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+     * profiles.
+     * 
+ * + * string job_name = 1; + */ + public Builder setJobNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jobName_ = value; + onChanged(); + return this; + } + + private java.lang.Object jobRequisitionId_ = ""; + /** + * + * + *
+     * Optional.
+     * The job requisition id in the application. The API does an exact match on
+     * the [Job.requisistion_id][] of
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+     * profiles.
+     * 
+ * + * string job_requisition_id = 2; + */ + public java.lang.String getJobRequisitionId() { + java.lang.Object ref = jobRequisitionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobRequisitionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The job requisition id in the application. The API does an exact match on
+     * the [Job.requisistion_id][] of
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+     * profiles.
+     * 
+ * + * string job_requisition_id = 2; + */ + public com.google.protobuf.ByteString getJobRequisitionIdBytes() { + java.lang.Object ref = jobRequisitionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobRequisitionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The job requisition id in the application. The API does an exact match on
+     * the [Job.requisistion_id][] of
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+     * profiles.
+     * 
+ * + * string job_requisition_id = 2; + */ + public Builder setJobRequisitionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jobRequisitionId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The job requisition id in the application. The API does an exact match on
+     * the [Job.requisistion_id][] of
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+     * profiles.
+     * 
+ * + * string job_requisition_id = 2; + */ + public Builder clearJobRequisitionId() { + + jobRequisitionId_ = getDefaultInstance().getJobRequisitionId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The job requisition id in the application. The API does an exact match on
+     * the [Job.requisistion_id][] of
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+     * profiles.
+     * 
+ * + * string job_requisition_id = 2; + */ + public Builder setJobRequisitionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jobRequisitionId_ = value; + onChanged(); + return this; + } + + private java.lang.Object jobTitle_ = ""; + /** + * + * + *
+     * Optional.
+     * The job title in the application. The API does an exact match on the
+     * [Job.title][google.cloud.talent.v4beta1.Job.title] of
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+     * profiles.
+     * 
+ * + * string job_title = 3; + */ + public java.lang.String getJobTitle() { + java.lang.Object ref = jobTitle_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobTitle_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The job title in the application. The API does an exact match on the
+     * [Job.title][google.cloud.talent.v4beta1.Job.title] of
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+     * profiles.
+     * 
+ * + * string job_title = 3; + */ + public com.google.protobuf.ByteString getJobTitleBytes() { + java.lang.Object ref = jobTitle_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobTitle_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The job title in the application. The API does an exact match on the
+     * [Job.title][google.cloud.talent.v4beta1.Job.title] of
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+     * profiles.
+     * 
+ * + * string job_title = 3; + */ + public Builder setJobTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jobTitle_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The job title in the application. The API does an exact match on the
+     * [Job.title][google.cloud.talent.v4beta1.Job.title] of
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+     * profiles.
+     * 
+ * + * string job_title = 3; + */ + public Builder clearJobTitle() { + + jobTitle_ = getDefaultInstance().getJobTitle(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The job title in the application. The API does an exact match on the
+     * [Job.title][google.cloud.talent.v4beta1.Job.title] of
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+     * profiles.
+     * 
+ * + * string job_title = 3; + */ + public Builder setJobTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jobTitle_ = value; + onChanged(); + return this; + } + + private boolean negated_; + /** + * + * + *
+     * Optional.
+     * If true, the API excludes all profiles with any
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job]
+     * matching the filters.
+     * 
+ * + * bool negated = 4; + */ + public boolean getNegated() { + return negated_; + } + /** + * + * + *
+     * Optional.
+     * If true, the API excludes all profiles with any
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job]
+     * matching the filters.
+     * 
+ * + * bool negated = 4; + */ + public Builder setNegated(boolean value) { + + negated_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * If true, the API excludes all profiles with any
+     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job]
+     * matching the filters.
+     * 
+ * + * bool negated = 4; + */ + public Builder clearNegated() { + + negated_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ApplicationJobFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ApplicationJobFilter) + private static final com.google.cloud.talent.v4beta1.ApplicationJobFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ApplicationJobFilter(); + } + + public static com.google.cloud.talent.v4beta1.ApplicationJobFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApplicationJobFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ApplicationJobFilter(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.ApplicationJobFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationJobFilterOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationJobFilterOrBuilder.java new file mode 100644 index 000000000000..c923b7e12bc8 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationJobFilterOrBuilder.java @@ -0,0 +1,111 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +public interface ApplicationJobFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ApplicationJobFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * The job resource name in the application. The API does an exact match on
+   * the [Job.name][google.cloud.talent.v4beta1.Job.name] of
+   * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+   * profiles.
+   * 
+ * + * string job_name = 1; + */ + java.lang.String getJobName(); + /** + * + * + *
+   * Optional.
+   * The job resource name in the application. The API does an exact match on
+   * the [Job.name][google.cloud.talent.v4beta1.Job.name] of
+   * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+   * profiles.
+   * 
+ * + * string job_name = 1; + */ + com.google.protobuf.ByteString getJobNameBytes(); + + /** + * + * + *
+   * Optional.
+   * The job requisition id in the application. The API does an exact match on
+   * the [Job.requisistion_id][] of
+   * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+   * profiles.
+   * 
+ * + * string job_requisition_id = 2; + */ + java.lang.String getJobRequisitionId(); + /** + * + * + *
+   * Optional.
+   * The job requisition id in the application. The API does an exact match on
+   * the [Job.requisistion_id][] of
+   * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+   * profiles.
+   * 
+ * + * string job_requisition_id = 2; + */ + com.google.protobuf.ByteString getJobRequisitionIdBytes(); + + /** + * + * + *
+   * Optional.
+   * The job title in the application. The API does an exact match on the
+   * [Job.title][google.cloud.talent.v4beta1.Job.title] of
+   * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+   * profiles.
+   * 
+ * + * string job_title = 3; + */ + java.lang.String getJobTitle(); + /** + * + * + *
+   * Optional.
+   * The job title in the application. The API does an exact match on the
+   * [Job.title][google.cloud.talent.v4beta1.Job.title] of
+   * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in
+   * profiles.
+   * 
+ * + * string job_title = 3; + */ + com.google.protobuf.ByteString getJobTitleBytes(); + + /** + * + * + *
+   * Optional.
+   * If true, the API excludes all profiles with any
+   * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job]
+   * matching the filters.
+   * 
+ * + * bool negated = 4; + */ + boolean getNegated(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationLastStageFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationLastStageFilter.java new file mode 100644 index 000000000000..9bdf0518b7aa --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationLastStageFilter.java @@ -0,0 +1,722 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Filter on Last Stage of Application.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ApplicationLastStageFilter} + */ +public final class ApplicationLastStageFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ApplicationLastStageFilter) + ApplicationLastStageFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use ApplicationLastStageFilter.newBuilder() to construct. + private ApplicationLastStageFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ApplicationLastStageFilter() { + lastStage_ = ""; + negated_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ApplicationLastStageFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + lastStage_ = s; + break; + } + case 16: + { + negated_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationLastStageFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationLastStageFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.class, + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.Builder.class); + } + + public static final int LAST_STAGE_FIELD_NUMBER = 1; + private volatile java.lang.Object lastStage_; + /** + * + * + *
+   * Required.
+   * User entered or selected last stage the candidate reached in the
+   * application. The API does an exact match on the
+   * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage]
+   * in profiles.
+   * 
+ * + * string last_stage = 1; + */ + public java.lang.String getLastStage() { + java.lang.Object ref = lastStage_; + 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(); + lastStage_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * User entered or selected last stage the candidate reached in the
+   * application. The API does an exact match on the
+   * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage]
+   * in profiles.
+   * 
+ * + * string last_stage = 1; + */ + public com.google.protobuf.ByteString getLastStageBytes() { + java.lang.Object ref = lastStage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + lastStage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NEGATED_FIELD_NUMBER = 2; + private boolean negated_; + /** + * + * + *
+   * Optional.
+   * If true, The API excludes all candidates with any
+   * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage]
+   * matching the last stage specified in the filter.
+   * 
+ * + * bool negated = 2; + */ + public boolean getNegated() { + return negated_; + } + + 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 (!getLastStageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, lastStage_); + } + if (negated_ != false) { + output.writeBool(2, negated_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getLastStageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, lastStage_); + } + if (negated_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, negated_); + } + size += unknownFields.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.cloud.talent.v4beta1.ApplicationLastStageFilter)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter other = + (com.google.cloud.talent.v4beta1.ApplicationLastStageFilter) obj; + + boolean result = true; + result = result && getLastStage().equals(other.getLastStage()); + result = result && (getNegated() == other.getNegated()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LAST_STAGE_FIELD_NUMBER; + hash = (53 * hash) + getLastStage().hashCode(); + hash = (37 * hash) + NEGATED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNegated()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ApplicationLastStageFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ApplicationLastStageFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationLastStageFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ApplicationLastStageFilter 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.cloud.talent.v4beta1.ApplicationLastStageFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ApplicationLastStageFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationLastStageFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ApplicationLastStageFilter 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.cloud.talent.v4beta1.ApplicationLastStageFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ApplicationLastStageFilter 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.cloud.talent.v4beta1.ApplicationLastStageFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ApplicationLastStageFilter 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.cloud.talent.v4beta1.ApplicationLastStageFilter 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; + } + /** + * + * + *
+   * Input only.
+   * Filter on Last Stage of Application.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ApplicationLastStageFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ApplicationLastStageFilter) + com.google.cloud.talent.v4beta1.ApplicationLastStageFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationLastStageFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationLastStageFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.class, + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + lastStage_ = ""; + + negated_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationLastStageFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationLastStageFilter getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationLastStageFilter build() { + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationLastStageFilter buildPartial() { + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter result = + new com.google.cloud.talent.v4beta1.ApplicationLastStageFilter(this); + result.lastStage_ = lastStage_; + result.negated_ = negated_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ApplicationLastStageFilter) { + return mergeFrom((com.google.cloud.talent.v4beta1.ApplicationLastStageFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ApplicationLastStageFilter other) { + if (other == com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.getDefaultInstance()) + return this; + if (!other.getLastStage().isEmpty()) { + lastStage_ = other.lastStage_; + onChanged(); + } + if (other.getNegated() != false) { + setNegated(other.getNegated()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.ApplicationLastStageFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object lastStage_ = ""; + /** + * + * + *
+     * Required.
+     * User entered or selected last stage the candidate reached in the
+     * application. The API does an exact match on the
+     * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage]
+     * in profiles.
+     * 
+ * + * string last_stage = 1; + */ + public java.lang.String getLastStage() { + java.lang.Object ref = lastStage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + lastStage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * User entered or selected last stage the candidate reached in the
+     * application. The API does an exact match on the
+     * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage]
+     * in profiles.
+     * 
+ * + * string last_stage = 1; + */ + public com.google.protobuf.ByteString getLastStageBytes() { + java.lang.Object ref = lastStage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + lastStage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * User entered or selected last stage the candidate reached in the
+     * application. The API does an exact match on the
+     * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage]
+     * in profiles.
+     * 
+ * + * string last_stage = 1; + */ + public Builder setLastStage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + lastStage_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * User entered or selected last stage the candidate reached in the
+     * application. The API does an exact match on the
+     * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage]
+     * in profiles.
+     * 
+ * + * string last_stage = 1; + */ + public Builder clearLastStage() { + + lastStage_ = getDefaultInstance().getLastStage(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * User entered or selected last stage the candidate reached in the
+     * application. The API does an exact match on the
+     * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage]
+     * in profiles.
+     * 
+ * + * string last_stage = 1; + */ + public Builder setLastStageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + lastStage_ = value; + onChanged(); + return this; + } + + private boolean negated_; + /** + * + * + *
+     * Optional.
+     * If true, The API excludes all candidates with any
+     * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage]
+     * matching the last stage specified in the filter.
+     * 
+ * + * bool negated = 2; + */ + public boolean getNegated() { + return negated_; + } + /** + * + * + *
+     * Optional.
+     * If true, The API excludes all candidates with any
+     * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage]
+     * matching the last stage specified in the filter.
+     * 
+ * + * bool negated = 2; + */ + public Builder setNegated(boolean value) { + + negated_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * If true, The API excludes all candidates with any
+     * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage]
+     * matching the last stage specified in the filter.
+     * 
+ * + * bool negated = 2; + */ + public Builder clearNegated() { + + negated_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ApplicationLastStageFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ApplicationLastStageFilter) + private static final com.google.cloud.talent.v4beta1.ApplicationLastStageFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ApplicationLastStageFilter(); + } + + public static com.google.cloud.talent.v4beta1.ApplicationLastStageFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApplicationLastStageFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ApplicationLastStageFilter(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.ApplicationLastStageFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationLastStageFilterOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationLastStageFilterOrBuilder.java new file mode 100644 index 000000000000..5c20e2464c28 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationLastStageFilterOrBuilder.java @@ -0,0 +1,53 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +public interface ApplicationLastStageFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ApplicationLastStageFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * User entered or selected last stage the candidate reached in the
+   * application. The API does an exact match on the
+   * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage]
+   * in profiles.
+   * 
+ * + * string last_stage = 1; + */ + java.lang.String getLastStage(); + /** + * + * + *
+   * Required.
+   * User entered or selected last stage the candidate reached in the
+   * application. The API does an exact match on the
+   * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage]
+   * in profiles.
+   * 
+ * + * string last_stage = 1; + */ + com.google.protobuf.ByteString getLastStageBytes(); + + /** + * + * + *
+   * Optional.
+   * If true, The API excludes all candidates with any
+   * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage]
+   * matching the last stage specified in the filter.
+   * 
+ * + * bool negated = 2; + */ + boolean getNegated(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationOutcomeReasonFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationOutcomeReasonFilter.java new file mode 100644 index 000000000000..a8cd281335c5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationOutcomeReasonFilter.java @@ -0,0 +1,722 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Outcome Reason Filter.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter} + */ +public final class ApplicationOutcomeReasonFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter) + ApplicationOutcomeReasonFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use ApplicationOutcomeReasonFilter.newBuilder() to construct. + private ApplicationOutcomeReasonFilter( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ApplicationOutcomeReasonFilter() { + outcomeReason_ = ""; + negated_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ApplicationOutcomeReasonFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + outcomeReason_ = s; + break; + } + case 16: + { + negated_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeReasonFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeReasonFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.class, + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.Builder.class); + } + + public static final int OUTCOME_REASON_FIELD_NUMBER = 1; + private volatile java.lang.Object outcomeReason_; + /** + * + * + *
+   * Required.
+   * User entered or selected outcome reason. The API does an exact match on the
+   * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+   * in profiles.
+   * 
+ * + * string outcome_reason = 1; + */ + public java.lang.String getOutcomeReason() { + java.lang.Object ref = outcomeReason_; + 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(); + outcomeReason_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * User entered or selected outcome reason. The API does an exact match on the
+   * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+   * in profiles.
+   * 
+ * + * string outcome_reason = 1; + */ + public com.google.protobuf.ByteString getOutcomeReasonBytes() { + java.lang.Object ref = outcomeReason_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outcomeReason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NEGATED_FIELD_NUMBER = 2; + private boolean negated_; + /** + * + * + *
+   * Optional.
+   * If true, The API excludes all candidates with any
+   * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+   * matching the outcome reason specified in the filter.
+   * 
+ * + * bool negated = 2; + */ + public boolean getNegated() { + return negated_; + } + + 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 (!getOutcomeReasonBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outcomeReason_); + } + if (negated_ != false) { + output.writeBool(2, negated_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getOutcomeReasonBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, outcomeReason_); + } + if (negated_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, negated_); + } + size += unknownFields.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.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter other = + (com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter) obj; + + boolean result = true; + result = result && getOutcomeReason().equals(other.getOutcomeReason()); + result = result && (getNegated() == other.getNegated()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + OUTCOME_REASON_FIELD_NUMBER; + hash = (53 * hash) + getOutcomeReason().hashCode(); + hash = (37 * hash) + NEGATED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNegated()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter 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.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter 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.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter 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.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter 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.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter 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; + } + /** + * + * + *
+   * Input only.
+   * Outcome Reason Filter.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter) + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeReasonFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeReasonFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.class, + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + outcomeReason_ = ""; + + negated_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeReasonFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter + getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter build() { + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter buildPartial() { + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter result = + new com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter(this); + result.outcomeReason_ = outcomeReason_; + result.negated_ = negated_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter) { + return mergeFrom((com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter other) { + if (other + == com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.getDefaultInstance()) + return this; + if (!other.getOutcomeReason().isEmpty()) { + outcomeReason_ = other.outcomeReason_; + onChanged(); + } + if (other.getNegated() != false) { + setNegated(other.getNegated()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object outcomeReason_ = ""; + /** + * + * + *
+     * Required.
+     * User entered or selected outcome reason. The API does an exact match on the
+     * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+     * in profiles.
+     * 
+ * + * string outcome_reason = 1; + */ + public java.lang.String getOutcomeReason() { + java.lang.Object ref = outcomeReason_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outcomeReason_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * User entered or selected outcome reason. The API does an exact match on the
+     * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+     * in profiles.
+     * 
+ * + * string outcome_reason = 1; + */ + public com.google.protobuf.ByteString getOutcomeReasonBytes() { + java.lang.Object ref = outcomeReason_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outcomeReason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * User entered or selected outcome reason. The API does an exact match on the
+     * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+     * in profiles.
+     * 
+ * + * string outcome_reason = 1; + */ + public Builder setOutcomeReason(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + outcomeReason_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * User entered or selected outcome reason. The API does an exact match on the
+     * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+     * in profiles.
+     * 
+ * + * string outcome_reason = 1; + */ + public Builder clearOutcomeReason() { + + outcomeReason_ = getDefaultInstance().getOutcomeReason(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * User entered or selected outcome reason. The API does an exact match on the
+     * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+     * in profiles.
+     * 
+ * + * string outcome_reason = 1; + */ + public Builder setOutcomeReasonBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + outcomeReason_ = value; + onChanged(); + return this; + } + + private boolean negated_; + /** + * + * + *
+     * Optional.
+     * If true, The API excludes all candidates with any
+     * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+     * matching the outcome reason specified in the filter.
+     * 
+ * + * bool negated = 2; + */ + public boolean getNegated() { + return negated_; + } + /** + * + * + *
+     * Optional.
+     * If true, The API excludes all candidates with any
+     * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+     * matching the outcome reason specified in the filter.
+     * 
+ * + * bool negated = 2; + */ + public Builder setNegated(boolean value) { + + negated_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * If true, The API excludes all candidates with any
+     * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+     * matching the outcome reason specified in the filter.
+     * 
+ * + * bool negated = 2; + */ + public Builder clearNegated() { + + negated_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter) + private static final com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter(); + } + + public static com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApplicationOutcomeReasonFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ApplicationOutcomeReasonFilter(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationOutcomeReasonFilterOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationOutcomeReasonFilterOrBuilder.java new file mode 100644 index 000000000000..8bed994d6efd --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationOutcomeReasonFilterOrBuilder.java @@ -0,0 +1,51 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +public interface ApplicationOutcomeReasonFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * User entered or selected outcome reason. The API does an exact match on the
+   * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+   * in profiles.
+   * 
+ * + * string outcome_reason = 1; + */ + java.lang.String getOutcomeReason(); + /** + * + * + *
+   * Required.
+   * User entered or selected outcome reason. The API does an exact match on the
+   * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+   * in profiles.
+   * 
+ * + * string outcome_reason = 1; + */ + com.google.protobuf.ByteString getOutcomeReasonBytes(); + + /** + * + * + *
+   * Optional.
+   * If true, The API excludes all candidates with any
+   * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+   * matching the outcome reason specified in the filter.
+   * 
+ * + * bool negated = 2; + */ + boolean getNegated(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationStatusFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationStatusFilter.java new file mode 100644 index 000000000000..5ba18abb1567 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationStatusFilter.java @@ -0,0 +1,699 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Filter on status of Application.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ApplicationStatusFilter} + */ +public final class ApplicationStatusFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ApplicationStatusFilter) + ApplicationStatusFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use ApplicationStatusFilter.newBuilder() to construct. + private ApplicationStatusFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ApplicationStatusFilter() { + applicationStatus_ = 0; + negated_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ApplicationStatusFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + applicationStatus_ = rawValue; + break; + } + case 16: + { + negated_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationStatusFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationStatusFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ApplicationStatusFilter.class, + com.google.cloud.talent.v4beta1.ApplicationStatusFilter.Builder.class); + } + + public static final int APPLICATION_STATUS_FIELD_NUMBER = 1; + private int applicationStatus_; + /** + * + * + *
+   * Required.
+   * User entered or selected application status. The API does an exact match
+   * between the application status specified in this filter and the
+   * [JobApplication.status][] in profiles.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus application_status = 1; + * + */ + public int getApplicationStatusValue() { + return applicationStatus_; + } + /** + * + * + *
+   * Required.
+   * User entered or selected application status. The API does an exact match
+   * between the application status specified in this filter and the
+   * [JobApplication.status][] in profiles.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus application_status = 1; + * + */ + public com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus getApplicationStatus() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus result = + com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus.valueOf( + applicationStatus_); + return result == null + ? com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus.UNRECOGNIZED + : result; + } + + public static final int NEGATED_FIELD_NUMBER = 2; + private boolean negated_; + /** + * + * + *
+   * Optional.
+   * If true, The API excludes all candidates with any [JobApplication.status][]
+   * matching the status specified in the filter.
+   * 
+ * + * bool negated = 2; + */ + public boolean getNegated() { + return negated_; + } + + 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 (applicationStatus_ + != com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus + .APPLICATION_STATUS_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, applicationStatus_); + } + if (negated_ != false) { + output.writeBool(2, negated_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (applicationStatus_ + != com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus + .APPLICATION_STATUS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, applicationStatus_); + } + if (negated_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, negated_); + } + size += unknownFields.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.cloud.talent.v4beta1.ApplicationStatusFilter)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ApplicationStatusFilter other = + (com.google.cloud.talent.v4beta1.ApplicationStatusFilter) obj; + + boolean result = true; + result = result && applicationStatus_ == other.applicationStatus_; + result = result && (getNegated() == other.getNegated()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + APPLICATION_STATUS_FIELD_NUMBER; + hash = (53 * hash) + applicationStatus_; + hash = (37 * hash) + NEGATED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNegated()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ApplicationStatusFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ApplicationStatusFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationStatusFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ApplicationStatusFilter 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.cloud.talent.v4beta1.ApplicationStatusFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ApplicationStatusFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ApplicationStatusFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ApplicationStatusFilter 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.cloud.talent.v4beta1.ApplicationStatusFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ApplicationStatusFilter 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.cloud.talent.v4beta1.ApplicationStatusFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ApplicationStatusFilter 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.cloud.talent.v4beta1.ApplicationStatusFilter 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; + } + /** + * + * + *
+   * Input only.
+   * Filter on status of Application.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ApplicationStatusFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ApplicationStatusFilter) + com.google.cloud.talent.v4beta1.ApplicationStatusFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationStatusFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationStatusFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ApplicationStatusFilter.class, + com.google.cloud.talent.v4beta1.ApplicationStatusFilter.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ApplicationStatusFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + applicationStatus_ = 0; + + negated_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ApplicationStatusFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationStatusFilter getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ApplicationStatusFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationStatusFilter build() { + com.google.cloud.talent.v4beta1.ApplicationStatusFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ApplicationStatusFilter buildPartial() { + com.google.cloud.talent.v4beta1.ApplicationStatusFilter result = + new com.google.cloud.talent.v4beta1.ApplicationStatusFilter(this); + result.applicationStatus_ = applicationStatus_; + result.negated_ = negated_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ApplicationStatusFilter) { + return mergeFrom((com.google.cloud.talent.v4beta1.ApplicationStatusFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ApplicationStatusFilter other) { + if (other == com.google.cloud.talent.v4beta1.ApplicationStatusFilter.getDefaultInstance()) + return this; + if (other.applicationStatus_ != 0) { + setApplicationStatusValue(other.getApplicationStatusValue()); + } + if (other.getNegated() != false) { + setNegated(other.getNegated()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.ApplicationStatusFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.ApplicationStatusFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int applicationStatus_ = 0; + /** + * + * + *
+     * Required.
+     * User entered or selected application status. The API does an exact match
+     * between the application status specified in this filter and the
+     * [JobApplication.status][] in profiles.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus application_status = 1; + * + */ + public int getApplicationStatusValue() { + return applicationStatus_; + } + /** + * + * + *
+     * Required.
+     * User entered or selected application status. The API does an exact match
+     * between the application status specified in this filter and the
+     * [JobApplication.status][] in profiles.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus application_status = 1; + * + */ + public Builder setApplicationStatusValue(int value) { + applicationStatus_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * User entered or selected application status. The API does an exact match
+     * between the application status specified in this filter and the
+     * [JobApplication.status][] in profiles.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus application_status = 1; + * + */ + public com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus getApplicationStatus() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus result = + com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus.valueOf( + applicationStatus_); + return result == null + ? com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required.
+     * User entered or selected application status. The API does an exact match
+     * between the application status specified in this filter and the
+     * [JobApplication.status][] in profiles.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus application_status = 1; + * + */ + public Builder setApplicationStatus( + com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus value) { + if (value == null) { + throw new NullPointerException(); + } + + applicationStatus_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * User entered or selected application status. The API does an exact match
+     * between the application status specified in this filter and the
+     * [JobApplication.status][] in profiles.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus application_status = 1; + * + */ + public Builder clearApplicationStatus() { + + applicationStatus_ = 0; + onChanged(); + return this; + } + + private boolean negated_; + /** + * + * + *
+     * Optional.
+     * If true, The API excludes all candidates with any [JobApplication.status][]
+     * matching the status specified in the filter.
+     * 
+ * + * bool negated = 2; + */ + public boolean getNegated() { + return negated_; + } + /** + * + * + *
+     * Optional.
+     * If true, The API excludes all candidates with any [JobApplication.status][]
+     * matching the status specified in the filter.
+     * 
+ * + * bool negated = 2; + */ + public Builder setNegated(boolean value) { + + negated_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * If true, The API excludes all candidates with any [JobApplication.status][]
+     * matching the status specified in the filter.
+     * 
+ * + * bool negated = 2; + */ + public Builder clearNegated() { + + negated_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ApplicationStatusFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ApplicationStatusFilter) + private static final com.google.cloud.talent.v4beta1.ApplicationStatusFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ApplicationStatusFilter(); + } + + public static com.google.cloud.talent.v4beta1.ApplicationStatusFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApplicationStatusFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ApplicationStatusFilter(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.ApplicationStatusFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationStatusFilterOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationStatusFilterOrBuilder.java new file mode 100644 index 000000000000..4ba49edc271a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationStatusFilterOrBuilder.java @@ -0,0 +1,52 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +public interface ApplicationStatusFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ApplicationStatusFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * User entered or selected application status. The API does an exact match
+   * between the application status specified in this filter and the
+   * [JobApplication.status][] in profiles.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus application_status = 1; + * + */ + int getApplicationStatusValue(); + /** + * + * + *
+   * Required.
+   * User entered or selected application status. The API does an exact match
+   * between the application status specified in this filter and the
+   * [JobApplication.status][] in profiles.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus application_status = 1; + * + */ + com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus getApplicationStatus(); + + /** + * + * + *
+   * Optional.
+   * If true, The API excludes all candidates with any [JobApplication.status][]
+   * matching the status specified in the filter.
+   * 
+ * + * bool negated = 2; + */ + boolean getNegated(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/BatchDeleteJobsRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/BatchDeleteJobsRequest.java new file mode 100644 index 000000000000..92cd60c74796 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/BatchDeleteJobsRequest.java @@ -0,0 +1,833 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Batch delete jobs request.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.BatchDeleteJobsRequest} + */ +public final class BatchDeleteJobsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.BatchDeleteJobsRequest) + BatchDeleteJobsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use BatchDeleteJobsRequest.newBuilder() to construct. + private BatchDeleteJobsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchDeleteJobsRequest() { + parent_ = ""; + filter_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private BatchDeleteJobsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_BatchDeleteJobsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_BatchDeleteJobsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest.class, + com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required.
+   * The resource name of the project under which the job is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The resource name of the project under which the job is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 2; + private volatile java.lang.Object filter_; + /** + * + * + *
+   * Required.
+   * The filter string specifies the jobs to be deleted.
+   * Supported operator: =, AND
+   * The fields eligible for filtering are:
+   * * `companyName` (Required)
+   * * `requisitionId` (Required)
+   * Sample Query: companyName = "projects/api-test-project/companies/123" AND
+   * requisitionId = "req-1"
+   * 
+ * + * string filter = 2; + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + 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(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The filter string specifies the jobs to be deleted.
+   * Supported operator: =, AND
+   * The fields eligible for filtering are:
+   * * `companyName` (Required)
+   * * `requisitionId` (Required)
+   * Sample Query: companyName = "projects/api-test-project/companies/123" AND
+   * requisitionId = "req-1"
+   * 
+ * + * string filter = 2; + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = 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 (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!getFilterBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!getFilterBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); + } + size += unknownFields.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.cloud.talent.v4beta1.BatchDeleteJobsRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest other = + (com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && getFilter().equals(other.getFilter()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest 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.cloud.talent.v4beta1.BatchDeleteJobsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest 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.cloud.talent.v4beta1.BatchDeleteJobsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest 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.cloud.talent.v4beta1.BatchDeleteJobsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest 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.cloud.talent.v4beta1.BatchDeleteJobsRequest 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; + } + /** + * + * + *
+   * Input only.
+   * Batch delete jobs request.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.BatchDeleteJobsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.BatchDeleteJobsRequest) + com.google.cloud.talent.v4beta1.BatchDeleteJobsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_BatchDeleteJobsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_BatchDeleteJobsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest.class, + com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + filter_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_BatchDeleteJobsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest build() { + com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest buildPartial() { + com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest result = + new com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest(this); + result.parent_ = parent_; + result.filter_ = filter_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest other) { + if (other == com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required.
+     * The resource name of the project under which the job is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the project under which the job is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the project under which the job is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the project under which the job is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the project under which the job is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Required.
+     * The filter string specifies the jobs to be deleted.
+     * Supported operator: =, AND
+     * The fields eligible for filtering are:
+     * * `companyName` (Required)
+     * * `requisitionId` (Required)
+     * Sample Query: companyName = "projects/api-test-project/companies/123" AND
+     * requisitionId = "req-1"
+     * 
+ * + * string filter = 2; + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The filter string specifies the jobs to be deleted.
+     * Supported operator: =, AND
+     * The fields eligible for filtering are:
+     * * `companyName` (Required)
+     * * `requisitionId` (Required)
+     * Sample Query: companyName = "projects/api-test-project/companies/123" AND
+     * requisitionId = "req-1"
+     * 
+ * + * string filter = 2; + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The filter string specifies the jobs to be deleted.
+     * Supported operator: =, AND
+     * The fields eligible for filtering are:
+     * * `companyName` (Required)
+     * * `requisitionId` (Required)
+     * Sample Query: companyName = "projects/api-test-project/companies/123" AND
+     * requisitionId = "req-1"
+     * 
+ * + * string filter = 2; + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The filter string specifies the jobs to be deleted.
+     * Supported operator: =, AND
+     * The fields eligible for filtering are:
+     * * `companyName` (Required)
+     * * `requisitionId` (Required)
+     * Sample Query: companyName = "projects/api-test-project/companies/123" AND
+     * requisitionId = "req-1"
+     * 
+ * + * string filter = 2; + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The filter string specifies the jobs to be deleted.
+     * Supported operator: =, AND
+     * The fields eligible for filtering are:
+     * * `companyName` (Required)
+     * * `requisitionId` (Required)
+     * Sample Query: companyName = "projects/api-test-project/companies/123" AND
+     * requisitionId = "req-1"
+     * 
+ * + * string filter = 2; + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filter_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.BatchDeleteJobsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.BatchDeleteJobsRequest) + private static final com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest(); + } + + public static com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchDeleteJobsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchDeleteJobsRequest(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.BatchDeleteJobsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/BatchDeleteJobsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/BatchDeleteJobsRequestOrBuilder.java new file mode 100644 index 000000000000..6a473063f72d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/BatchDeleteJobsRequestOrBuilder.java @@ -0,0 +1,72 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface BatchDeleteJobsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.BatchDeleteJobsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The resource name of the project under which the job is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required.
+   * The resource name of the project under which the job is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required.
+   * The filter string specifies the jobs to be deleted.
+   * Supported operator: =, AND
+   * The fields eligible for filtering are:
+   * * `companyName` (Required)
+   * * `requisitionId` (Required)
+   * Sample Query: companyName = "projects/api-test-project/companies/123" AND
+   * requisitionId = "req-1"
+   * 
+ * + * string filter = 2; + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Required.
+   * The filter string specifies the jobs to be deleted.
+   * Supported operator: =, AND
+   * The fields eligible for filtering are:
+   * * `companyName` (Required)
+   * * `requisitionId` (Required)
+   * Sample Query: companyName = "projects/api-test-project/companies/123" AND
+   * requisitionId = "req-1"
+   * 
+ * + * string filter = 2; + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/BatchProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/BatchProto.java new file mode 100644 index 000000000000..cce9e88a2920 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/BatchProto.java @@ -0,0 +1,57 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/batch.proto + +package com.google.cloud.talent.v4beta1; + +public final class BatchProto { + private BatchProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n\'google/cloud/talent/v4beta1/batch.prot" + + "o\022\033google.cloud.talent.v4beta1\032\034google/a" + + "pi/annotations.proto\032%google/cloud/talen" + + "t/v4beta1/job.proto\032\037google/protobuf/tim" + + "estamp.proto\032\027google/rpc/status.protoBx\n" + + "\037com.google.cloud.talent.v4beta1B\nBatchP" + + "rotoP\001ZAgoogle.golang.org/genproto/googl" + + "eapis/cloud/talent/v4beta1;talent\242\002\003CTSb" + + "\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.talent.v4beta1.JobResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }, + assigner); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.talent.v4beta1.JobResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Certification.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Certification.java new file mode 100644 index 000000000000..cc70411de259 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Certification.java @@ -0,0 +1,1485 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Resource that represents a license or certification.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Certification} + */ +public final class Certification extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Certification) + CertificationOrBuilder { + private static final long serialVersionUID = 0L; + // Use Certification.newBuilder() to construct. + private Certification(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Certification() { + displayName_ = ""; + authority_ = ""; + description_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Certification( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + case 18: + { + com.google.type.Date.Builder subBuilder = null; + if (acquireDate_ != null) { + subBuilder = acquireDate_.toBuilder(); + } + acquireDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(acquireDate_); + acquireDate_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + com.google.type.Date.Builder subBuilder = null; + if (expireDate_ != null) { + subBuilder = expireDate_.toBuilder(); + } + expireDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(expireDate_); + expireDate_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + authority_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Certification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Certification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Certification.class, + com.google.cloud.talent.v4beta1.Certification.Builder.class); + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object displayName_; + /** + * + * + *
+   * Optional.
+   * Name of license or certification.
+   * Number of characters allowed is 100.
+   * 
+ * + * string display_name = 1; + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * Name of license or certification.
+   * Number of characters allowed is 100.
+   * 
+ * + * string display_name = 1; + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACQUIRE_DATE_FIELD_NUMBER = 2; + private com.google.type.Date acquireDate_; + /** + * + * + *
+   * Optional.
+   * Acquirement date or effective date of license or certification.
+   * 
+ * + * .google.type.Date acquire_date = 2; + */ + public boolean hasAcquireDate() { + return acquireDate_ != null; + } + /** + * + * + *
+   * Optional.
+   * Acquirement date or effective date of license or certification.
+   * 
+ * + * .google.type.Date acquire_date = 2; + */ + public com.google.type.Date getAcquireDate() { + return acquireDate_ == null ? com.google.type.Date.getDefaultInstance() : acquireDate_; + } + /** + * + * + *
+   * Optional.
+   * Acquirement date or effective date of license or certification.
+   * 
+ * + * .google.type.Date acquire_date = 2; + */ + public com.google.type.DateOrBuilder getAcquireDateOrBuilder() { + return getAcquireDate(); + } + + public static final int EXPIRE_DATE_FIELD_NUMBER = 3; + private com.google.type.Date expireDate_; + /** + * + * + *
+   * Optional.
+   * Expiration date of license of certification.
+   * 
+ * + * .google.type.Date expire_date = 3; + */ + public boolean hasExpireDate() { + return expireDate_ != null; + } + /** + * + * + *
+   * Optional.
+   * Expiration date of license of certification.
+   * 
+ * + * .google.type.Date expire_date = 3; + */ + public com.google.type.Date getExpireDate() { + return expireDate_ == null ? com.google.type.Date.getDefaultInstance() : expireDate_; + } + /** + * + * + *
+   * Optional.
+   * Expiration date of license of certification.
+   * 
+ * + * .google.type.Date expire_date = 3; + */ + public com.google.type.DateOrBuilder getExpireDateOrBuilder() { + return getExpireDate(); + } + + public static final int AUTHORITY_FIELD_NUMBER = 4; + private volatile java.lang.Object authority_; + /** + * + * + *
+   * Optional.
+   * Authority of license, such as government.
+   * Number of characters allowed is 100.
+   * 
+ * + * string authority = 4; + */ + public java.lang.String getAuthority() { + java.lang.Object ref = authority_; + 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(); + authority_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * Authority of license, such as government.
+   * Number of characters allowed is 100.
+   * 
+ * + * string authority = 4; + */ + public com.google.protobuf.ByteString getAuthorityBytes() { + java.lang.Object ref = authority_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + authority_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 5; + private volatile java.lang.Object description_; + /** + * + * + *
+   * Optional.
+   * Description of license or certification.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string description = 5; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * Description of license or certification.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string description = 5; + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = 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 (!getDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); + } + if (acquireDate_ != null) { + output.writeMessage(2, getAcquireDate()); + } + if (expireDate_ != null) { + output.writeMessage(3, getExpireDate()); + } + if (!getAuthorityBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, authority_); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); + } + if (acquireDate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAcquireDate()); + } + if (expireDate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getExpireDate()); + } + if (!getAuthorityBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, authority_); + } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); + } + size += unknownFields.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.cloud.talent.v4beta1.Certification)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Certification other = + (com.google.cloud.talent.v4beta1.Certification) obj; + + boolean result = true; + result = result && getDisplayName().equals(other.getDisplayName()); + result = result && (hasAcquireDate() == other.hasAcquireDate()); + if (hasAcquireDate()) { + result = result && getAcquireDate().equals(other.getAcquireDate()); + } + result = result && (hasExpireDate() == other.hasExpireDate()); + if (hasExpireDate()) { + result = result && getExpireDate().equals(other.getExpireDate()); + } + result = result && getAuthority().equals(other.getAuthority()); + result = result && getDescription().equals(other.getDescription()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (hasAcquireDate()) { + hash = (37 * hash) + ACQUIRE_DATE_FIELD_NUMBER; + hash = (53 * hash) + getAcquireDate().hashCode(); + } + if (hasExpireDate()) { + hash = (37 * hash) + EXPIRE_DATE_FIELD_NUMBER; + hash = (53 * hash) + getExpireDate().hashCode(); + } + hash = (37 * hash) + AUTHORITY_FIELD_NUMBER; + hash = (53 * hash) + getAuthority().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Certification parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Certification parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Certification parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Certification 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.cloud.talent.v4beta1.Certification parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Certification parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Certification parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Certification 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.cloud.talent.v4beta1.Certification parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Certification 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.cloud.talent.v4beta1.Certification parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Certification 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.cloud.talent.v4beta1.Certification 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; + } + /** + * + * + *
+   * Resource that represents a license or certification.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Certification} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Certification) + com.google.cloud.talent.v4beta1.CertificationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Certification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Certification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Certification.class, + com.google.cloud.talent.v4beta1.Certification.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Certification.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + displayName_ = ""; + + if (acquireDateBuilder_ == null) { + acquireDate_ = null; + } else { + acquireDate_ = null; + acquireDateBuilder_ = null; + } + if (expireDateBuilder_ == null) { + expireDate_ = null; + } else { + expireDate_ = null; + expireDateBuilder_ = null; + } + authority_ = ""; + + description_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Certification_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Certification getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Certification.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Certification build() { + com.google.cloud.talent.v4beta1.Certification result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Certification buildPartial() { + com.google.cloud.talent.v4beta1.Certification result = + new com.google.cloud.talent.v4beta1.Certification(this); + result.displayName_ = displayName_; + if (acquireDateBuilder_ == null) { + result.acquireDate_ = acquireDate_; + } else { + result.acquireDate_ = acquireDateBuilder_.build(); + } + if (expireDateBuilder_ == null) { + result.expireDate_ = expireDate_; + } else { + result.expireDate_ = expireDateBuilder_.build(); + } + result.authority_ = authority_; + result.description_ = description_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Certification) { + return mergeFrom((com.google.cloud.talent.v4beta1.Certification) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Certification other) { + if (other == com.google.cloud.talent.v4beta1.Certification.getDefaultInstance()) return this; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (other.hasAcquireDate()) { + mergeAcquireDate(other.getAcquireDate()); + } + if (other.hasExpireDate()) { + mergeExpireDate(other.getExpireDate()); + } + if (!other.getAuthority().isEmpty()) { + authority_ = other.authority_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.Certification parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.Certification) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Optional.
+     * Name of license or certification.
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Name of license or certification.
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Name of license or certification.
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Name of license or certification.
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Name of license or certification.
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + private com.google.type.Date acquireDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + acquireDateBuilder_; + /** + * + * + *
+     * Optional.
+     * Acquirement date or effective date of license or certification.
+     * 
+ * + * .google.type.Date acquire_date = 2; + */ + public boolean hasAcquireDate() { + return acquireDateBuilder_ != null || acquireDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * Acquirement date or effective date of license or certification.
+     * 
+ * + * .google.type.Date acquire_date = 2; + */ + public com.google.type.Date getAcquireDate() { + if (acquireDateBuilder_ == null) { + return acquireDate_ == null ? com.google.type.Date.getDefaultInstance() : acquireDate_; + } else { + return acquireDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * Acquirement date or effective date of license or certification.
+     * 
+ * + * .google.type.Date acquire_date = 2; + */ + public Builder setAcquireDate(com.google.type.Date value) { + if (acquireDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + acquireDate_ = value; + onChanged(); + } else { + acquireDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Acquirement date or effective date of license or certification.
+     * 
+ * + * .google.type.Date acquire_date = 2; + */ + public Builder setAcquireDate(com.google.type.Date.Builder builderForValue) { + if (acquireDateBuilder_ == null) { + acquireDate_ = builderForValue.build(); + onChanged(); + } else { + acquireDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Acquirement date or effective date of license or certification.
+     * 
+ * + * .google.type.Date acquire_date = 2; + */ + public Builder mergeAcquireDate(com.google.type.Date value) { + if (acquireDateBuilder_ == null) { + if (acquireDate_ != null) { + acquireDate_ = + com.google.type.Date.newBuilder(acquireDate_).mergeFrom(value).buildPartial(); + } else { + acquireDate_ = value; + } + onChanged(); + } else { + acquireDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Acquirement date or effective date of license or certification.
+     * 
+ * + * .google.type.Date acquire_date = 2; + */ + public Builder clearAcquireDate() { + if (acquireDateBuilder_ == null) { + acquireDate_ = null; + onChanged(); + } else { + acquireDate_ = null; + acquireDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Acquirement date or effective date of license or certification.
+     * 
+ * + * .google.type.Date acquire_date = 2; + */ + public com.google.type.Date.Builder getAcquireDateBuilder() { + + onChanged(); + return getAcquireDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * Acquirement date or effective date of license or certification.
+     * 
+ * + * .google.type.Date acquire_date = 2; + */ + public com.google.type.DateOrBuilder getAcquireDateOrBuilder() { + if (acquireDateBuilder_ != null) { + return acquireDateBuilder_.getMessageOrBuilder(); + } else { + return acquireDate_ == null ? com.google.type.Date.getDefaultInstance() : acquireDate_; + } + } + /** + * + * + *
+     * Optional.
+     * Acquirement date or effective date of license or certification.
+     * 
+ * + * .google.type.Date acquire_date = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getAcquireDateFieldBuilder() { + if (acquireDateBuilder_ == null) { + acquireDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getAcquireDate(), getParentForChildren(), isClean()); + acquireDate_ = null; + } + return acquireDateBuilder_; + } + + private com.google.type.Date expireDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + expireDateBuilder_; + /** + * + * + *
+     * Optional.
+     * Expiration date of license of certification.
+     * 
+ * + * .google.type.Date expire_date = 3; + */ + public boolean hasExpireDate() { + return expireDateBuilder_ != null || expireDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * Expiration date of license of certification.
+     * 
+ * + * .google.type.Date expire_date = 3; + */ + public com.google.type.Date getExpireDate() { + if (expireDateBuilder_ == null) { + return expireDate_ == null ? com.google.type.Date.getDefaultInstance() : expireDate_; + } else { + return expireDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * Expiration date of license of certification.
+     * 
+ * + * .google.type.Date expire_date = 3; + */ + public Builder setExpireDate(com.google.type.Date value) { + if (expireDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expireDate_ = value; + onChanged(); + } else { + expireDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Expiration date of license of certification.
+     * 
+ * + * .google.type.Date expire_date = 3; + */ + public Builder setExpireDate(com.google.type.Date.Builder builderForValue) { + if (expireDateBuilder_ == null) { + expireDate_ = builderForValue.build(); + onChanged(); + } else { + expireDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Expiration date of license of certification.
+     * 
+ * + * .google.type.Date expire_date = 3; + */ + public Builder mergeExpireDate(com.google.type.Date value) { + if (expireDateBuilder_ == null) { + if (expireDate_ != null) { + expireDate_ = + com.google.type.Date.newBuilder(expireDate_).mergeFrom(value).buildPartial(); + } else { + expireDate_ = value; + } + onChanged(); + } else { + expireDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Expiration date of license of certification.
+     * 
+ * + * .google.type.Date expire_date = 3; + */ + public Builder clearExpireDate() { + if (expireDateBuilder_ == null) { + expireDate_ = null; + onChanged(); + } else { + expireDate_ = null; + expireDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Expiration date of license of certification.
+     * 
+ * + * .google.type.Date expire_date = 3; + */ + public com.google.type.Date.Builder getExpireDateBuilder() { + + onChanged(); + return getExpireDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * Expiration date of license of certification.
+     * 
+ * + * .google.type.Date expire_date = 3; + */ + public com.google.type.DateOrBuilder getExpireDateOrBuilder() { + if (expireDateBuilder_ != null) { + return expireDateBuilder_.getMessageOrBuilder(); + } else { + return expireDate_ == null ? com.google.type.Date.getDefaultInstance() : expireDate_; + } + } + /** + * + * + *
+     * Optional.
+     * Expiration date of license of certification.
+     * 
+ * + * .google.type.Date expire_date = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getExpireDateFieldBuilder() { + if (expireDateBuilder_ == null) { + expireDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getExpireDate(), getParentForChildren(), isClean()); + expireDate_ = null; + } + return expireDateBuilder_; + } + + private java.lang.Object authority_ = ""; + /** + * + * + *
+     * Optional.
+     * Authority of license, such as government.
+     * Number of characters allowed is 100.
+     * 
+ * + * string authority = 4; + */ + public java.lang.String getAuthority() { + java.lang.Object ref = authority_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authority_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Authority of license, such as government.
+     * Number of characters allowed is 100.
+     * 
+ * + * string authority = 4; + */ + public com.google.protobuf.ByteString getAuthorityBytes() { + java.lang.Object ref = authority_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + authority_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Authority of license, such as government.
+     * Number of characters allowed is 100.
+     * 
+ * + * string authority = 4; + */ + public Builder setAuthority(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + authority_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Authority of license, such as government.
+     * Number of characters allowed is 100.
+     * 
+ * + * string authority = 4; + */ + public Builder clearAuthority() { + + authority_ = getDefaultInstance().getAuthority(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Authority of license, such as government.
+     * Number of characters allowed is 100.
+     * 
+ * + * string authority = 4; + */ + public Builder setAuthorityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + authority_ = value; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * Optional.
+     * Description of license or certification.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 5; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Description of license or certification.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 5; + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Description of license or certification.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 5; + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Description of license or certification.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 5; + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Description of license or certification.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 5; + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Certification) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Certification) + private static final com.google.cloud.talent.v4beta1.Certification DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Certification(); + } + + public static com.google.cloud.talent.v4beta1.Certification getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Certification parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Certification(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.Certification getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CertificationOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CertificationOrBuilder.java new file mode 100644 index 000000000000..fedbadb23e35 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CertificationOrBuilder.java @@ -0,0 +1,153 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public interface CertificationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Certification) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * Name of license or certification.
+   * Number of characters allowed is 100.
+   * 
+ * + * string display_name = 1; + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Optional.
+   * Name of license or certification.
+   * Number of characters allowed is 100.
+   * 
+ * + * string display_name = 1; + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Optional.
+   * Acquirement date or effective date of license or certification.
+   * 
+ * + * .google.type.Date acquire_date = 2; + */ + boolean hasAcquireDate(); + /** + * + * + *
+   * Optional.
+   * Acquirement date or effective date of license or certification.
+   * 
+ * + * .google.type.Date acquire_date = 2; + */ + com.google.type.Date getAcquireDate(); + /** + * + * + *
+   * Optional.
+   * Acquirement date or effective date of license or certification.
+   * 
+ * + * .google.type.Date acquire_date = 2; + */ + com.google.type.DateOrBuilder getAcquireDateOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * Expiration date of license of certification.
+   * 
+ * + * .google.type.Date expire_date = 3; + */ + boolean hasExpireDate(); + /** + * + * + *
+   * Optional.
+   * Expiration date of license of certification.
+   * 
+ * + * .google.type.Date expire_date = 3; + */ + com.google.type.Date getExpireDate(); + /** + * + * + *
+   * Optional.
+   * Expiration date of license of certification.
+   * 
+ * + * .google.type.Date expire_date = 3; + */ + com.google.type.DateOrBuilder getExpireDateOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * Authority of license, such as government.
+   * Number of characters allowed is 100.
+   * 
+ * + * string authority = 4; + */ + java.lang.String getAuthority(); + /** + * + * + *
+   * Optional.
+   * Authority of license, such as government.
+   * Number of characters allowed is 100.
+   * 
+ * + * string authority = 4; + */ + com.google.protobuf.ByteString getAuthorityBytes(); + + /** + * + * + *
+   * Optional.
+   * Description of license or certification.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string description = 5; + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Optional.
+   * Description of license or certification.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string description = 5; + */ + com.google.protobuf.ByteString getDescriptionBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ClientEvent.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ClientEvent.java new file mode 100644 index 000000000000..a24c6d2e2d73 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ClientEvent.java @@ -0,0 +1,2110 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/event.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * An event issued when an end user interacts with the application that
+ * implements Cloud Talent Solution. Providing this information improves the
+ * quality of search and recommendation for the API clients, enabling the
+ * service to perform optimally. The number of events sent must be consistent
+ * with other calls, such as job searches, issued to the service by the client.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ClientEvent} + */ +public final class ClientEvent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ClientEvent) + ClientEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientEvent.newBuilder() to construct. + private ClientEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ClientEvent() { + requestId_ = ""; + eventId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ClientEvent( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + requestId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + eventId_ = s; + break; + } + case 34: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + com.google.cloud.talent.v4beta1.JobEvent.Builder subBuilder = null; + if (eventCase_ == 5) { + subBuilder = ((com.google.cloud.talent.v4beta1.JobEvent) event_).toBuilder(); + } + event_ = + input.readMessage( + com.google.cloud.talent.v4beta1.JobEvent.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.talent.v4beta1.JobEvent) event_); + event_ = subBuilder.buildPartial(); + } + eventCase_ = 5; + break; + } + case 50: + { + com.google.cloud.talent.v4beta1.ProfileEvent.Builder subBuilder = null; + if (eventCase_ == 6) { + subBuilder = ((com.google.cloud.talent.v4beta1.ProfileEvent) event_).toBuilder(); + } + event_ = + input.readMessage( + com.google.cloud.talent.v4beta1.ProfileEvent.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.talent.v4beta1.ProfileEvent) event_); + event_ = subBuilder.buildPartial(); + } + eventCase_ = 6; + break; + } + case 58: + { + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + extraInfo_ = + com.google.protobuf.MapField.newMapField( + ExtraInfoDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000020; + } + com.google.protobuf.MapEntry extraInfo__ = + input.readMessage( + ExtraInfoDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + extraInfo_.getMutableMap().put(extraInfo__.getKey(), extraInfo__.getValue()); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.EventProto + .internal_static_google_cloud_talent_v4beta1_ClientEvent_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 7: + return internalGetExtraInfo(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.EventProto + .internal_static_google_cloud_talent_v4beta1_ClientEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ClientEvent.class, + com.google.cloud.talent.v4beta1.ClientEvent.Builder.class); + } + + private int bitField0_; + private int eventCase_ = 0; + private java.lang.Object event_; + + public enum EventCase implements com.google.protobuf.Internal.EnumLite { + JOB_EVENT(5), + PROFILE_EVENT(6), + EVENT_NOT_SET(0); + private final int value; + + private EventCase(int value) { + this.value = value; + } + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static EventCase valueOf(int value) { + return forNumber(value); + } + + public static EventCase forNumber(int value) { + switch (value) { + case 5: + return JOB_EVENT; + case 6: + return PROFILE_EVENT; + case 0: + return EVENT_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EventCase getEventCase() { + return EventCase.forNumber(eventCase_); + } + + public static final int REQUEST_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object requestId_; + /** + * + * + *
+   * Required.
+   * A unique ID generated in the API responses. It can be found in
+   * [ResponseMetadata.request_id][google.cloud.talent.v4beta1.ResponseMetadata.request_id].
+   * 
+ * + * string request_id = 1; + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * A unique ID generated in the API responses. It can be found in
+   * [ResponseMetadata.request_id][google.cloud.talent.v4beta1.ResponseMetadata.request_id].
+   * 
+ * + * string request_id = 1; + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVENT_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object eventId_; + /** + * + * + *
+   * Required.
+   * A unique identifier, generated by the client application.
+   * 
+ * + * string event_id = 2; + */ + public java.lang.String getEventId() { + java.lang.Object ref = eventId_; + 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(); + eventId_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * A unique identifier, generated by the client application.
+   * 
+ * + * string event_id = 2; + */ + public com.google.protobuf.ByteString getEventIdBytes() { + java.lang.Object ref = eventId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eventId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Required.
+   * The timestamp of the event.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Required.
+   * The timestamp of the event.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Required.
+   * The timestamp of the event.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + public static final int JOB_EVENT_FIELD_NUMBER = 5; + /** + * + * + *
+   * An event issued when a job seeker interacts with the application that
+   * implements Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobEvent job_event = 5; + */ + public boolean hasJobEvent() { + return eventCase_ == 5; + } + /** + * + * + *
+   * An event issued when a job seeker interacts with the application that
+   * implements Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobEvent job_event = 5; + */ + public com.google.cloud.talent.v4beta1.JobEvent getJobEvent() { + if (eventCase_ == 5) { + return (com.google.cloud.talent.v4beta1.JobEvent) event_; + } + return com.google.cloud.talent.v4beta1.JobEvent.getDefaultInstance(); + } + /** + * + * + *
+   * An event issued when a job seeker interacts with the application that
+   * implements Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobEvent job_event = 5; + */ + public com.google.cloud.talent.v4beta1.JobEventOrBuilder getJobEventOrBuilder() { + if (eventCase_ == 5) { + return (com.google.cloud.talent.v4beta1.JobEvent) event_; + } + return com.google.cloud.talent.v4beta1.JobEvent.getDefaultInstance(); + } + + public static final int PROFILE_EVENT_FIELD_NUMBER = 6; + /** + * + * + *
+   * An event issued when a profile searcher interacts with the application
+   * that implements Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; + */ + public boolean hasProfileEvent() { + return eventCase_ == 6; + } + /** + * + * + *
+   * An event issued when a profile searcher interacts with the application
+   * that implements Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; + */ + public com.google.cloud.talent.v4beta1.ProfileEvent getProfileEvent() { + if (eventCase_ == 6) { + return (com.google.cloud.talent.v4beta1.ProfileEvent) event_; + } + return com.google.cloud.talent.v4beta1.ProfileEvent.getDefaultInstance(); + } + /** + * + * + *
+   * An event issued when a profile searcher interacts with the application
+   * that implements Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; + */ + public com.google.cloud.talent.v4beta1.ProfileEventOrBuilder getProfileEventOrBuilder() { + if (eventCase_ == 6) { + return (com.google.cloud.talent.v4beta1.ProfileEvent) event_; + } + return com.google.cloud.talent.v4beta1.ProfileEvent.getDefaultInstance(); + } + + public static final int EXTRA_INFO_FIELD_NUMBER = 7; + + private static final class ExtraInfoDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.talent.v4beta1.EventProto + .internal_static_google_cloud_talent_v4beta1_ClientEvent_ExtraInfoEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField extraInfo_; + + private com.google.protobuf.MapField internalGetExtraInfo() { + if (extraInfo_ == null) { + return com.google.protobuf.MapField.emptyMapField(ExtraInfoDefaultEntryHolder.defaultEntry); + } + return extraInfo_; + } + + public int getExtraInfoCount() { + return internalGetExtraInfo().getMap().size(); + } + /** + * + * + *
+   * Optional.
+   * Extra information about this event. Used for storing information with no
+   * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
+   * example, user application specific context or details.
+   * At most 20 keys are supported. The maximum total size of all keys and
+   * values is 2 KB.
+   * 
+ * + * map<string, string> extra_info = 7; + */ + public boolean containsExtraInfo(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetExtraInfo().getMap().containsKey(key); + } + /** Use {@link #getExtraInfoMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getExtraInfo() { + return getExtraInfoMap(); + } + /** + * + * + *
+   * Optional.
+   * Extra information about this event. Used for storing information with no
+   * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
+   * example, user application specific context or details.
+   * At most 20 keys are supported. The maximum total size of all keys and
+   * values is 2 KB.
+   * 
+ * + * map<string, string> extra_info = 7; + */ + public java.util.Map getExtraInfoMap() { + return internalGetExtraInfo().getMap(); + } + /** + * + * + *
+   * Optional.
+   * Extra information about this event. Used for storing information with no
+   * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
+   * example, user application specific context or details.
+   * At most 20 keys are supported. The maximum total size of all keys and
+   * values is 2 KB.
+   * 
+ * + * map<string, string> extra_info = 7; + */ + public java.lang.String getExtraInfoOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetExtraInfo().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Optional.
+   * Extra information about this event. Used for storing information with no
+   * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
+   * example, user application specific context or details.
+   * At most 20 keys are supported. The maximum total size of all keys and
+   * values is 2 KB.
+   * 
+ * + * map<string, string> extra_info = 7; + */ + public java.lang.String getExtraInfoOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetExtraInfo().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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 (!getRequestIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, requestId_); + } + if (!getEventIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, eventId_); + } + if (createTime_ != null) { + output.writeMessage(4, getCreateTime()); + } + if (eventCase_ == 5) { + output.writeMessage(5, (com.google.cloud.talent.v4beta1.JobEvent) event_); + } + if (eventCase_ == 6) { + output.writeMessage(6, (com.google.cloud.talent.v4beta1.ProfileEvent) event_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetExtraInfo(), ExtraInfoDefaultEntryHolder.defaultEntry, 7); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getRequestIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, requestId_); + } + if (!getEventIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, eventId_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + } + if (eventCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.talent.v4beta1.JobEvent) event_); + } + if (eventCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.cloud.talent.v4beta1.ProfileEvent) event_); + } + for (java.util.Map.Entry entry : + internalGetExtraInfo().getMap().entrySet()) { + com.google.protobuf.MapEntry extraInfo__ = + ExtraInfoDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, extraInfo__); + } + size += unknownFields.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.cloud.talent.v4beta1.ClientEvent)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ClientEvent other = + (com.google.cloud.talent.v4beta1.ClientEvent) obj; + + boolean result = true; + result = result && getRequestId().equals(other.getRequestId()); + result = result && getEventId().equals(other.getEventId()); + result = result && (hasCreateTime() == other.hasCreateTime()); + if (hasCreateTime()) { + result = result && getCreateTime().equals(other.getCreateTime()); + } + result = result && internalGetExtraInfo().equals(other.internalGetExtraInfo()); + result = result && getEventCase().equals(other.getEventCase()); + if (!result) return false; + switch (eventCase_) { + case 5: + result = result && getJobEvent().equals(other.getJobEvent()); + break; + case 6: + result = result && getProfileEvent().equals(other.getProfileEvent()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (37 * hash) + EVENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getEventId().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (!internalGetExtraInfo().getMap().isEmpty()) { + hash = (37 * hash) + EXTRA_INFO_FIELD_NUMBER; + hash = (53 * hash) + internalGetExtraInfo().hashCode(); + } + switch (eventCase_) { + case 5: + hash = (37 * hash) + JOB_EVENT_FIELD_NUMBER; + hash = (53 * hash) + getJobEvent().hashCode(); + break; + case 6: + hash = (37 * hash) + PROFILE_EVENT_FIELD_NUMBER; + hash = (53 * hash) + getProfileEvent().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ClientEvent parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ClientEvent parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ClientEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ClientEvent 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.cloud.talent.v4beta1.ClientEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ClientEvent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ClientEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ClientEvent 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.cloud.talent.v4beta1.ClientEvent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ClientEvent 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.cloud.talent.v4beta1.ClientEvent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ClientEvent 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.cloud.talent.v4beta1.ClientEvent 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; + } + /** + * + * + *
+   * An event issued when an end user interacts with the application that
+   * implements Cloud Talent Solution. Providing this information improves the
+   * quality of search and recommendation for the API clients, enabling the
+   * service to perform optimally. The number of events sent must be consistent
+   * with other calls, such as job searches, issued to the service by the client.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ClientEvent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ClientEvent) + com.google.cloud.talent.v4beta1.ClientEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.EventProto + .internal_static_google_cloud_talent_v4beta1_ClientEvent_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 7: + return internalGetExtraInfo(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 7: + return internalGetMutableExtraInfo(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.EventProto + .internal_static_google_cloud_talent_v4beta1_ClientEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ClientEvent.class, + com.google.cloud.talent.v4beta1.ClientEvent.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ClientEvent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + requestId_ = ""; + + eventId_ = ""; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + internalGetMutableExtraInfo().clear(); + eventCase_ = 0; + event_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.EventProto + .internal_static_google_cloud_talent_v4beta1_ClientEvent_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ClientEvent getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ClientEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ClientEvent build() { + com.google.cloud.talent.v4beta1.ClientEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ClientEvent buildPartial() { + com.google.cloud.talent.v4beta1.ClientEvent result = + new com.google.cloud.talent.v4beta1.ClientEvent(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.requestId_ = requestId_; + result.eventId_ = eventId_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (eventCase_ == 5) { + if (jobEventBuilder_ == null) { + result.event_ = event_; + } else { + result.event_ = jobEventBuilder_.build(); + } + } + if (eventCase_ == 6) { + if (profileEventBuilder_ == null) { + result.event_ = event_; + } else { + result.event_ = profileEventBuilder_.build(); + } + } + result.extraInfo_ = internalGetExtraInfo(); + result.extraInfo_.makeImmutable(); + result.bitField0_ = to_bitField0_; + result.eventCase_ = eventCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ClientEvent) { + return mergeFrom((com.google.cloud.talent.v4beta1.ClientEvent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ClientEvent other) { + if (other == com.google.cloud.talent.v4beta1.ClientEvent.getDefaultInstance()) return this; + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + onChanged(); + } + if (!other.getEventId().isEmpty()) { + eventId_ = other.eventId_; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + internalGetMutableExtraInfo().mergeFrom(other.internalGetExtraInfo()); + switch (other.getEventCase()) { + case JOB_EVENT: + { + mergeJobEvent(other.getJobEvent()); + break; + } + case PROFILE_EVENT: + { + mergeProfileEvent(other.getProfileEvent()); + break; + } + case EVENT_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.ClientEvent parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.ClientEvent) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int eventCase_ = 0; + private java.lang.Object event_; + + public EventCase getEventCase() { + return EventCase.forNumber(eventCase_); + } + + public Builder clearEvent() { + eventCase_ = 0; + event_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object requestId_ = ""; + /** + * + * + *
+     * Required.
+     * A unique ID generated in the API responses. It can be found in
+     * [ResponseMetadata.request_id][google.cloud.talent.v4beta1.ResponseMetadata.request_id].
+     * 
+ * + * string request_id = 1; + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * A unique ID generated in the API responses. It can be found in
+     * [ResponseMetadata.request_id][google.cloud.talent.v4beta1.ResponseMetadata.request_id].
+     * 
+ * + * string request_id = 1; + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * A unique ID generated in the API responses. It can be found in
+     * [ResponseMetadata.request_id][google.cloud.talent.v4beta1.ResponseMetadata.request_id].
+     * 
+ * + * string request_id = 1; + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + requestId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * A unique ID generated in the API responses. It can be found in
+     * [ResponseMetadata.request_id][google.cloud.talent.v4beta1.ResponseMetadata.request_id].
+     * 
+ * + * string request_id = 1; + */ + public Builder clearRequestId() { + + requestId_ = getDefaultInstance().getRequestId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * A unique ID generated in the API responses. It can be found in
+     * [ResponseMetadata.request_id][google.cloud.talent.v4beta1.ResponseMetadata.request_id].
+     * 
+ * + * string request_id = 1; + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestId_ = value; + onChanged(); + return this; + } + + private java.lang.Object eventId_ = ""; + /** + * + * + *
+     * Required.
+     * A unique identifier, generated by the client application.
+     * 
+ * + * string event_id = 2; + */ + public java.lang.String getEventId() { + java.lang.Object ref = eventId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + eventId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * A unique identifier, generated by the client application.
+     * 
+ * + * string event_id = 2; + */ + public com.google.protobuf.ByteString getEventIdBytes() { + java.lang.Object ref = eventId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eventId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * A unique identifier, generated by the client application.
+     * 
+ * + * string event_id = 2; + */ + public Builder setEventId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + eventId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * A unique identifier, generated by the client application.
+     * 
+ * + * string event_id = 2; + */ + public Builder clearEventId() { + + eventId_ = getDefaultInstance().getEventId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * A unique identifier, generated by the client application.
+     * 
+ * + * string event_id = 2; + */ + public Builder setEventIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + eventId_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Required.
+     * The timestamp of the event.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + public boolean hasCreateTime() { + return createTimeBuilder_ != null || createTime_ != null; + } + /** + * + * + *
+     * Required.
+     * The timestamp of the event.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required.
+     * The timestamp of the event.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The timestamp of the event.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The timestamp of the event.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (createTime_ != null) { + createTime_ = + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The timestamp of the event.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The timestamp of the event.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required.
+     * The timestamp of the event.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Required.
+     * The timestamp of the event.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.JobEvent, + com.google.cloud.talent.v4beta1.JobEvent.Builder, + com.google.cloud.talent.v4beta1.JobEventOrBuilder> + jobEventBuilder_; + /** + * + * + *
+     * An event issued when a job seeker interacts with the application that
+     * implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobEvent job_event = 5; + */ + public boolean hasJobEvent() { + return eventCase_ == 5; + } + /** + * + * + *
+     * An event issued when a job seeker interacts with the application that
+     * implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobEvent job_event = 5; + */ + public com.google.cloud.talent.v4beta1.JobEvent getJobEvent() { + if (jobEventBuilder_ == null) { + if (eventCase_ == 5) { + return (com.google.cloud.talent.v4beta1.JobEvent) event_; + } + return com.google.cloud.talent.v4beta1.JobEvent.getDefaultInstance(); + } else { + if (eventCase_ == 5) { + return jobEventBuilder_.getMessage(); + } + return com.google.cloud.talent.v4beta1.JobEvent.getDefaultInstance(); + } + } + /** + * + * + *
+     * An event issued when a job seeker interacts with the application that
+     * implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobEvent job_event = 5; + */ + public Builder setJobEvent(com.google.cloud.talent.v4beta1.JobEvent value) { + if (jobEventBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + event_ = value; + onChanged(); + } else { + jobEventBuilder_.setMessage(value); + } + eventCase_ = 5; + return this; + } + /** + * + * + *
+     * An event issued when a job seeker interacts with the application that
+     * implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobEvent job_event = 5; + */ + public Builder setJobEvent(com.google.cloud.talent.v4beta1.JobEvent.Builder builderForValue) { + if (jobEventBuilder_ == null) { + event_ = builderForValue.build(); + onChanged(); + } else { + jobEventBuilder_.setMessage(builderForValue.build()); + } + eventCase_ = 5; + return this; + } + /** + * + * + *
+     * An event issued when a job seeker interacts with the application that
+     * implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobEvent job_event = 5; + */ + public Builder mergeJobEvent(com.google.cloud.talent.v4beta1.JobEvent value) { + if (jobEventBuilder_ == null) { + if (eventCase_ == 5 + && event_ != com.google.cloud.talent.v4beta1.JobEvent.getDefaultInstance()) { + event_ = + com.google.cloud.talent.v4beta1.JobEvent.newBuilder( + (com.google.cloud.talent.v4beta1.JobEvent) event_) + .mergeFrom(value) + .buildPartial(); + } else { + event_ = value; + } + onChanged(); + } else { + if (eventCase_ == 5) { + jobEventBuilder_.mergeFrom(value); + } + jobEventBuilder_.setMessage(value); + } + eventCase_ = 5; + return this; + } + /** + * + * + *
+     * An event issued when a job seeker interacts with the application that
+     * implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobEvent job_event = 5; + */ + public Builder clearJobEvent() { + if (jobEventBuilder_ == null) { + if (eventCase_ == 5) { + eventCase_ = 0; + event_ = null; + onChanged(); + } + } else { + if (eventCase_ == 5) { + eventCase_ = 0; + event_ = null; + } + jobEventBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * An event issued when a job seeker interacts with the application that
+     * implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobEvent job_event = 5; + */ + public com.google.cloud.talent.v4beta1.JobEvent.Builder getJobEventBuilder() { + return getJobEventFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * An event issued when a job seeker interacts with the application that
+     * implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobEvent job_event = 5; + */ + public com.google.cloud.talent.v4beta1.JobEventOrBuilder getJobEventOrBuilder() { + if ((eventCase_ == 5) && (jobEventBuilder_ != null)) { + return jobEventBuilder_.getMessageOrBuilder(); + } else { + if (eventCase_ == 5) { + return (com.google.cloud.talent.v4beta1.JobEvent) event_; + } + return com.google.cloud.talent.v4beta1.JobEvent.getDefaultInstance(); + } + } + /** + * + * + *
+     * An event issued when a job seeker interacts with the application that
+     * implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobEvent job_event = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.JobEvent, + com.google.cloud.talent.v4beta1.JobEvent.Builder, + com.google.cloud.talent.v4beta1.JobEventOrBuilder> + getJobEventFieldBuilder() { + if (jobEventBuilder_ == null) { + if (!(eventCase_ == 5)) { + event_ = com.google.cloud.talent.v4beta1.JobEvent.getDefaultInstance(); + } + jobEventBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.JobEvent, + com.google.cloud.talent.v4beta1.JobEvent.Builder, + com.google.cloud.talent.v4beta1.JobEventOrBuilder>( + (com.google.cloud.talent.v4beta1.JobEvent) event_, + getParentForChildren(), + isClean()); + event_ = null; + } + eventCase_ = 5; + onChanged(); + ; + return jobEventBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ProfileEvent, + com.google.cloud.talent.v4beta1.ProfileEvent.Builder, + com.google.cloud.talent.v4beta1.ProfileEventOrBuilder> + profileEventBuilder_; + /** + * + * + *
+     * An event issued when a profile searcher interacts with the application
+     * that implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; + */ + public boolean hasProfileEvent() { + return eventCase_ == 6; + } + /** + * + * + *
+     * An event issued when a profile searcher interacts with the application
+     * that implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; + */ + public com.google.cloud.talent.v4beta1.ProfileEvent getProfileEvent() { + if (profileEventBuilder_ == null) { + if (eventCase_ == 6) { + return (com.google.cloud.talent.v4beta1.ProfileEvent) event_; + } + return com.google.cloud.talent.v4beta1.ProfileEvent.getDefaultInstance(); + } else { + if (eventCase_ == 6) { + return profileEventBuilder_.getMessage(); + } + return com.google.cloud.talent.v4beta1.ProfileEvent.getDefaultInstance(); + } + } + /** + * + * + *
+     * An event issued when a profile searcher interacts with the application
+     * that implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; + */ + public Builder setProfileEvent(com.google.cloud.talent.v4beta1.ProfileEvent value) { + if (profileEventBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + event_ = value; + onChanged(); + } else { + profileEventBuilder_.setMessage(value); + } + eventCase_ = 6; + return this; + } + /** + * + * + *
+     * An event issued when a profile searcher interacts with the application
+     * that implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; + */ + public Builder setProfileEvent( + com.google.cloud.talent.v4beta1.ProfileEvent.Builder builderForValue) { + if (profileEventBuilder_ == null) { + event_ = builderForValue.build(); + onChanged(); + } else { + profileEventBuilder_.setMessage(builderForValue.build()); + } + eventCase_ = 6; + return this; + } + /** + * + * + *
+     * An event issued when a profile searcher interacts with the application
+     * that implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; + */ + public Builder mergeProfileEvent(com.google.cloud.talent.v4beta1.ProfileEvent value) { + if (profileEventBuilder_ == null) { + if (eventCase_ == 6 + && event_ != com.google.cloud.talent.v4beta1.ProfileEvent.getDefaultInstance()) { + event_ = + com.google.cloud.talent.v4beta1.ProfileEvent.newBuilder( + (com.google.cloud.talent.v4beta1.ProfileEvent) event_) + .mergeFrom(value) + .buildPartial(); + } else { + event_ = value; + } + onChanged(); + } else { + if (eventCase_ == 6) { + profileEventBuilder_.mergeFrom(value); + } + profileEventBuilder_.setMessage(value); + } + eventCase_ = 6; + return this; + } + /** + * + * + *
+     * An event issued when a profile searcher interacts with the application
+     * that implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; + */ + public Builder clearProfileEvent() { + if (profileEventBuilder_ == null) { + if (eventCase_ == 6) { + eventCase_ = 0; + event_ = null; + onChanged(); + } + } else { + if (eventCase_ == 6) { + eventCase_ = 0; + event_ = null; + } + profileEventBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * An event issued when a profile searcher interacts with the application
+     * that implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; + */ + public com.google.cloud.talent.v4beta1.ProfileEvent.Builder getProfileEventBuilder() { + return getProfileEventFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * An event issued when a profile searcher interacts with the application
+     * that implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; + */ + public com.google.cloud.talent.v4beta1.ProfileEventOrBuilder getProfileEventOrBuilder() { + if ((eventCase_ == 6) && (profileEventBuilder_ != null)) { + return profileEventBuilder_.getMessageOrBuilder(); + } else { + if (eventCase_ == 6) { + return (com.google.cloud.talent.v4beta1.ProfileEvent) event_; + } + return com.google.cloud.talent.v4beta1.ProfileEvent.getDefaultInstance(); + } + } + /** + * + * + *
+     * An event issued when a profile searcher interacts with the application
+     * that implements Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ProfileEvent, + com.google.cloud.talent.v4beta1.ProfileEvent.Builder, + com.google.cloud.talent.v4beta1.ProfileEventOrBuilder> + getProfileEventFieldBuilder() { + if (profileEventBuilder_ == null) { + if (!(eventCase_ == 6)) { + event_ = com.google.cloud.talent.v4beta1.ProfileEvent.getDefaultInstance(); + } + profileEventBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ProfileEvent, + com.google.cloud.talent.v4beta1.ProfileEvent.Builder, + com.google.cloud.talent.v4beta1.ProfileEventOrBuilder>( + (com.google.cloud.talent.v4beta1.ProfileEvent) event_, + getParentForChildren(), + isClean()); + event_ = null; + } + eventCase_ = 6; + onChanged(); + ; + return profileEventBuilder_; + } + + private com.google.protobuf.MapField extraInfo_; + + private com.google.protobuf.MapField + internalGetExtraInfo() { + if (extraInfo_ == null) { + return com.google.protobuf.MapField.emptyMapField(ExtraInfoDefaultEntryHolder.defaultEntry); + } + return extraInfo_; + } + + private com.google.protobuf.MapField + internalGetMutableExtraInfo() { + onChanged(); + ; + if (extraInfo_ == null) { + extraInfo_ = + com.google.protobuf.MapField.newMapField(ExtraInfoDefaultEntryHolder.defaultEntry); + } + if (!extraInfo_.isMutable()) { + extraInfo_ = extraInfo_.copy(); + } + return extraInfo_; + } + + public int getExtraInfoCount() { + return internalGetExtraInfo().getMap().size(); + } + /** + * + * + *
+     * Optional.
+     * Extra information about this event. Used for storing information with no
+     * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
+     * example, user application specific context or details.
+     * At most 20 keys are supported. The maximum total size of all keys and
+     * values is 2 KB.
+     * 
+ * + * map<string, string> extra_info = 7; + */ + public boolean containsExtraInfo(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetExtraInfo().getMap().containsKey(key); + } + /** Use {@link #getExtraInfoMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getExtraInfo() { + return getExtraInfoMap(); + } + /** + * + * + *
+     * Optional.
+     * Extra information about this event. Used for storing information with no
+     * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
+     * example, user application specific context or details.
+     * At most 20 keys are supported. The maximum total size of all keys and
+     * values is 2 KB.
+     * 
+ * + * map<string, string> extra_info = 7; + */ + public java.util.Map getExtraInfoMap() { + return internalGetExtraInfo().getMap(); + } + /** + * + * + *
+     * Optional.
+     * Extra information about this event. Used for storing information with no
+     * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
+     * example, user application specific context or details.
+     * At most 20 keys are supported. The maximum total size of all keys and
+     * values is 2 KB.
+     * 
+ * + * map<string, string> extra_info = 7; + */ + public java.lang.String getExtraInfoOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetExtraInfo().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Optional.
+     * Extra information about this event. Used for storing information with no
+     * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
+     * example, user application specific context or details.
+     * At most 20 keys are supported. The maximum total size of all keys and
+     * values is 2 KB.
+     * 
+ * + * map<string, string> extra_info = 7; + */ + public java.lang.String getExtraInfoOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetExtraInfo().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearExtraInfo() { + internalGetMutableExtraInfo().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Extra information about this event. Used for storing information with no
+     * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
+     * example, user application specific context or details.
+     * At most 20 keys are supported. The maximum total size of all keys and
+     * values is 2 KB.
+     * 
+ * + * map<string, string> extra_info = 7; + */ + public Builder removeExtraInfo(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableExtraInfo().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableExtraInfo() { + return internalGetMutableExtraInfo().getMutableMap(); + } + /** + * + * + *
+     * Optional.
+     * Extra information about this event. Used for storing information with no
+     * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
+     * example, user application specific context or details.
+     * At most 20 keys are supported. The maximum total size of all keys and
+     * values is 2 KB.
+     * 
+ * + * map<string, string> extra_info = 7; + */ + public Builder putExtraInfo(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableExtraInfo().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * Optional.
+     * Extra information about this event. Used for storing information with no
+     * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
+     * example, user application specific context or details.
+     * At most 20 keys are supported. The maximum total size of all keys and
+     * values is 2 KB.
+     * 
+ * + * map<string, string> extra_info = 7; + */ + public Builder putAllExtraInfo(java.util.Map values) { + internalGetMutableExtraInfo().getMutableMap().putAll(values); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ClientEvent) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ClientEvent) + private static final com.google.cloud.talent.v4beta1.ClientEvent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ClientEvent(); + } + + public static com.google.cloud.talent.v4beta1.ClientEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientEvent(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.ClientEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ClientEventOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ClientEventOrBuilder.java new file mode 100644 index 000000000000..281e3bd905e1 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ClientEventOrBuilder.java @@ -0,0 +1,241 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/event.proto + +package com.google.cloud.talent.v4beta1; + +public interface ClientEventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ClientEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * A unique ID generated in the API responses. It can be found in
+   * [ResponseMetadata.request_id][google.cloud.talent.v4beta1.ResponseMetadata.request_id].
+   * 
+ * + * string request_id = 1; + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * Required.
+   * A unique ID generated in the API responses. It can be found in
+   * [ResponseMetadata.request_id][google.cloud.talent.v4beta1.ResponseMetadata.request_id].
+   * 
+ * + * string request_id = 1; + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * Required.
+   * A unique identifier, generated by the client application.
+   * 
+ * + * string event_id = 2; + */ + java.lang.String getEventId(); + /** + * + * + *
+   * Required.
+   * A unique identifier, generated by the client application.
+   * 
+ * + * string event_id = 2; + */ + com.google.protobuf.ByteString getEventIdBytes(); + + /** + * + * + *
+   * Required.
+   * The timestamp of the event.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Required.
+   * The timestamp of the event.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Required.
+   * The timestamp of the event.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * An event issued when a job seeker interacts with the application that
+   * implements Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobEvent job_event = 5; + */ + boolean hasJobEvent(); + /** + * + * + *
+   * An event issued when a job seeker interacts with the application that
+   * implements Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobEvent job_event = 5; + */ + com.google.cloud.talent.v4beta1.JobEvent getJobEvent(); + /** + * + * + *
+   * An event issued when a job seeker interacts with the application that
+   * implements Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobEvent job_event = 5; + */ + com.google.cloud.talent.v4beta1.JobEventOrBuilder getJobEventOrBuilder(); + + /** + * + * + *
+   * An event issued when a profile searcher interacts with the application
+   * that implements Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; + */ + boolean hasProfileEvent(); + /** + * + * + *
+   * An event issued when a profile searcher interacts with the application
+   * that implements Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; + */ + com.google.cloud.talent.v4beta1.ProfileEvent getProfileEvent(); + /** + * + * + *
+   * An event issued when a profile searcher interacts with the application
+   * that implements Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; + */ + com.google.cloud.talent.v4beta1.ProfileEventOrBuilder getProfileEventOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * Extra information about this event. Used for storing information with no
+   * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
+   * example, user application specific context or details.
+   * At most 20 keys are supported. The maximum total size of all keys and
+   * values is 2 KB.
+   * 
+ * + * map<string, string> extra_info = 7; + */ + int getExtraInfoCount(); + /** + * + * + *
+   * Optional.
+   * Extra information about this event. Used for storing information with no
+   * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
+   * example, user application specific context or details.
+   * At most 20 keys are supported. The maximum total size of all keys and
+   * values is 2 KB.
+   * 
+ * + * map<string, string> extra_info = 7; + */ + boolean containsExtraInfo(java.lang.String key); + /** Use {@link #getExtraInfoMap()} instead. */ + @java.lang.Deprecated + java.util.Map getExtraInfo(); + /** + * + * + *
+   * Optional.
+   * Extra information about this event. Used for storing information with no
+   * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
+   * example, user application specific context or details.
+   * At most 20 keys are supported. The maximum total size of all keys and
+   * values is 2 KB.
+   * 
+ * + * map<string, string> extra_info = 7; + */ + java.util.Map getExtraInfoMap(); + /** + * + * + *
+   * Optional.
+   * Extra information about this event. Used for storing information with no
+   * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
+   * example, user application specific context or details.
+   * At most 20 keys are supported. The maximum total size of all keys and
+   * values is 2 KB.
+   * 
+ * + * map<string, string> extra_info = 7; + */ + java.lang.String getExtraInfoOrDefault(java.lang.String key, java.lang.String defaultValue); + /** + * + * + *
+   * Optional.
+   * Extra information about this event. Used for storing information with no
+   * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
+   * example, user application specific context or details.
+   * At most 20 keys are supported. The maximum total size of all keys and
+   * values is 2 KB.
+   * 
+ * + * map<string, string> extra_info = 7; + */ + java.lang.String getExtraInfoOrThrow(java.lang.String key); + + public com.google.cloud.talent.v4beta1.ClientEvent.EventCase getEventCase(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommonProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommonProto.java new file mode 100644 index 000000000000..f97ab435d1be --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommonProto.java @@ -0,0 +1,309 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +public final class CommonProto { + private CommonProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_TimestampRange_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_TimestampRange_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Location_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Location_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_RequestMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_RequestMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ResponseMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ResponseMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_DeviceInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_DeviceInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_CustomAttribute_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_CustomAttribute_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_SpellingCorrection_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_SpellingCorrection_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_CompensationInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_CompensationInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationRange_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationRange_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n(google/cloud/talent/v4beta1/common.pro" + + "to\022\033google.cloud.talent.v4beta1\032\034google/" + + "api/annotations.proto\032\037google/protobuf/t" + + "imestamp.proto\032\036google/protobuf/wrappers" + + ".proto\032\030google/type/latlng.proto\032\027google" + + "/type/money.proto\032 google/type/postal_ad" + + "dress.proto\"n\n\016TimestampRange\022.\n\nstart_t" + + "ime\030\001 \001(\0132\032.google.protobuf.Timestamp\022,\n" + + "\010end_time\030\002 \001(\0132\032.google.protobuf.Timest" + + "amp\"\267\003\n\010Location\022I\n\rlocation_type\030\001 \001(\0162" + + "2.google.cloud.talent.v4beta1.Location.L" + + "ocationType\0222\n\016postal_address\030\002 \001(\0132\032.go" + + "ogle.type.PostalAddress\022$\n\007lat_lng\030\003 \001(\013" + + "2\023.google.type.LatLng\022\024\n\014radius_miles\030\004 " + + "\001(\001\"\357\001\n\014LocationType\022\035\n\031LOCATION_TYPE_UN" + + "SPECIFIED\020\000\022\013\n\007COUNTRY\020\001\022\027\n\023ADMINISTRATI" + + "VE_AREA\020\002\022\033\n\027SUB_ADMINISTRATIVE_AREA\020\003\022\014" + + "\n\010LOCALITY\020\004\022\017\n\013POSTAL_CODE\020\005\022\020\n\014SUB_LOC" + + "ALITY\020\006\022\022\n\016SUB_LOCALITY_1\020\007\022\022\n\016SUB_LOCAL" + + "ITY_2\020\010\022\020\n\014NEIGHBORHOOD\020\t\022\022\n\016STREET_ADDR" + + "ESS\020\n\"\237\001\n\017RequestMetadata\022\016\n\006domain\030\001 \001(" + + "\t\022\022\n\nsession_id\030\002 \001(\t\022\017\n\007user_id\030\003 \001(\t\022\031" + + "\n\021allow_missing_ids\030\004 \001(\010\022<\n\013device_info" + + "\030\005 \001(\0132\'.google.cloud.talent.v4beta1.Dev" + + "iceInfo\"&\n\020ResponseMetadata\022\022\n\nrequest_i" + + "d\030\001 \001(\t\"\317\001\n\nDeviceInfo\022G\n\013device_type\030\001 " + + "\001(\01622.google.cloud.talent.v4beta1.Device" + + "Info.DeviceType\022\n\n\002id\030\002 \001(\t\"l\n\nDeviceTyp" + + "e\022\033\n\027DEVICE_TYPE_UNSPECIFIED\020\000\022\007\n\003WEB\020\001\022" + + "\016\n\nMOBILE_WEB\020\002\022\013\n\007ANDROID\020\003\022\007\n\003IOS\020\004\022\007\n" + + "\003BOT\020\005\022\t\n\005OTHER\020\006\"Q\n\017CustomAttribute\022\025\n\r" + + "string_values\030\001 \003(\t\022\023\n\013long_values\030\002 \003(\003" + + "\022\022\n\nfilterable\030\003 \001(\010\"W\n\022SpellingCorrecti" + + "on\022\021\n\tcorrected\030\001 \001(\010\022\026\n\016corrected_text\030" + + "\002 \001(\t\022\026\n\016corrected_html\030\003 \001(\t\"\234\t\n\020Compen" + + "sationInfo\022P\n\007entries\030\001 \003(\0132?.google.clo" + + "ud.talent.v4beta1.CompensationInfo.Compe" + + "nsationEntry\022k\n\"annualized_base_compensa" + + "tion_range\030\002 \001(\0132?.google.cloud.talent.v" + + "4beta1.CompensationInfo.CompensationRang" + + "e\022l\n#annualized_total_compensation_range" + + "\030\003 \001(\0132?.google.cloud.talent.v4beta1.Com" + + "pensationInfo.CompensationRange\032\222\003\n\021Comp" + + "ensationEntry\022L\n\004type\030\001 \001(\0162>.google.clo" + + "ud.talent.v4beta1.CompensationInfo.Compe" + + "nsationType\022L\n\004unit\030\002 \001(\0162>.google.cloud" + + ".talent.v4beta1.CompensationInfo.Compens" + + "ationUnit\022$\n\006amount\030\003 \001(\0132\022.google.type." + + "MoneyH\000\022P\n\005range\030\004 \001(\0132?.google.cloud.ta" + + "lent.v4beta1.CompensationInfo.Compensati" + + "onRangeH\000\022\023\n\013description\030\005 \001(\t\022=\n\027expect" + + "ed_units_per_year\030\006 \001(\0132\034.google.protobu" + + "f.DoubleValueB\025\n\023compensation_amount\032o\n\021" + + "CompensationRange\022,\n\020max_compensation\030\002 " + + "\001(\0132\022.google.type.Money\022,\n\020min_compensat" + + "ion\030\001 \001(\0132\022.google.type.Money\"\265\001\n\020Compen" + + "sationType\022!\n\035COMPENSATION_TYPE_UNSPECIF" + + "IED\020\000\022\010\n\004BASE\020\001\022\t\n\005BONUS\020\002\022\021\n\rSIGNING_BO" + + "NUS\020\003\022\n\n\006EQUITY\020\004\022\022\n\016PROFIT_SHARING\020\005\022\017\n" + + "\013COMMISSIONS\020\006\022\010\n\004TIPS\020\007\022\033\n\027OTHER_COMPEN" + + "SATION_TYPE\020\010\"\234\001\n\020CompensationUnit\022!\n\035CO" + + "MPENSATION_UNIT_UNSPECIFIED\020\000\022\n\n\006HOURLY\020" + + "\001\022\t\n\005DAILY\020\002\022\n\n\006WEEKLY\020\003\022\013\n\007MONTHLY\020\004\022\n\n" + + "\006YEARLY\020\005\022\014\n\010ONE_TIME\020\006\022\033\n\027OTHER_COMPENS" + + "ATION_UNIT\020\007*y\n\013CompanySize\022\034\n\030COMPANY_S" + + "IZE_UNSPECIFIED\020\000\022\010\n\004MINI\020\001\022\t\n\005SMALL\020\002\022\013" + + "\n\007SMEDIUM\020\003\022\n\n\006MEDIUM\020\004\022\007\n\003BIG\020\005\022\n\n\006BIGG" + + "ER\020\006\022\t\n\005GIANT\020\007*\342\001\n\nJobBenefit\022\033\n\027JOB_BE" + + "NEFIT_UNSPECIFIED\020\000\022\016\n\nCHILD_CARE\020\001\022\n\n\006D" + + "ENTAL\020\002\022\024\n\020DOMESTIC_PARTNER\020\003\022\022\n\016FLEXIBL" + + "E_HOURS\020\004\022\013\n\007MEDICAL\020\005\022\022\n\016LIFE_INSURANCE" + + "\020\006\022\022\n\016PARENTAL_LEAVE\020\007\022\023\n\017RETIREMENT_PLA" + + "N\020\010\022\r\n\tSICK_DAYS\020\t\022\014\n\010VACATION\020\n\022\n\n\006VISI" + + "ON\020\013*\216\002\n\nDegreeType\022\033\n\027DEGREE_TYPE_UNSPE" + + "CIFIED\020\000\022\025\n\021PRIMARY_EDUCATION\020\001\022\035\n\031LOWER" + + "_SECONDARY_EDUCATION\020\002\022\035\n\031UPPER_SECONDAR" + + "Y_EDUCATION\020\003\022\034\n\030ADULT_REMEDIAL_EDUCATIO" + + "N\020\004\022\034\n\030ASSOCIATES_OR_EQUIVALENT\020\005\022\033\n\027BAC" + + "HELORS_OR_EQUIVALENT\020\006\022\031\n\025MASTERS_OR_EQU" + + "IVALENT\020\007\022\032\n\026DOCTORAL_OR_EQUIVALENT\020\010*\334\001" + + "\n\016EmploymentType\022\037\n\033EMPLOYMENT_TYPE_UNSP" + + "ECIFIED\020\000\022\r\n\tFULL_TIME\020\001\022\r\n\tPART_TIME\020\002\022" + + "\016\n\nCONTRACTOR\020\003\022\024\n\020CONTRACT_TO_HIRE\020\004\022\r\n" + + "\tTEMPORARY\020\005\022\n\n\006INTERN\020\006\022\r\n\tVOLUNTEER\020\007\022" + + "\014\n\010PER_DIEM\020\010\022\022\n\016FLY_IN_FLY_OUT\020\t\022\031\n\025OTH" + + "ER_EMPLOYMENT_TYPE\020\n*q\n\010JobLevel\022\031\n\025JOB_" + + "LEVEL_UNSPECIFIED\020\000\022\017\n\013ENTRY_LEVEL\020\001\022\017\n\013" + + "EXPERIENCED\020\002\022\013\n\007MANAGER\020\003\022\014\n\010DIRECTOR\020\004" + + "\022\r\n\tEXECUTIVE\020\005*\272\006\n\013JobCategory\022\034\n\030JOB_C" + + "ATEGORY_UNSPECIFIED\020\000\022\032\n\026ACCOUNTING_AND_" + + "FINANCE\020\001\022\035\n\031ADMINISTRATIVE_AND_OFFICE\020\002" + + "\022\035\n\031ADVERTISING_AND_MARKETING\020\003\022\017\n\013ANIMA" + + "L_CARE\020\004\022\032\n\026ART_FASHION_AND_DESIGN\020\005\022\027\n\023" + + "BUSINESS_OPERATIONS\020\006\022\033\n\027CLEANING_AND_FA" + + "CILITIES\020\007\022\023\n\017COMPUTER_AND_IT\020\010\022\020\n\014CONST" + + "RUCTION\020\t\022\024\n\020CUSTOMER_SERVICE\020\n\022\r\n\tEDUCA" + + "TION\020\013\022\034\n\030ENTERTAINMENT_AND_TRAVEL\020\014\022\030\n\024" + + "FARMING_AND_OUTDOORS\020\r\022\016\n\nHEALTHCARE\020\016\022\023" + + "\n\017HUMAN_RESOURCES\020\017\022\'\n#INSTALLATION_MAIN" + + "TENANCE_AND_REPAIR\020\020\022\t\n\005LEGAL\020\021\022\016\n\nMANAG" + + "EMENT\020\022\022\037\n\033MANUFACTURING_AND_WAREHOUSE\020\023" + + "\022$\n MEDIA_COMMUNICATIONS_AND_WRITING\020\024\022\026" + + "\n\022OIL_GAS_AND_MINING\020\025\022\036\n\032PERSONAL_CARE_" + + "AND_SERVICES\020\026\022\027\n\023PROTECTIVE_SERVICES\020\027\022" + + "\017\n\013REAL_ESTATE\020\030\022\036\n\032RESTAURANT_AND_HOSPI" + + "TALITY\020\031\022\024\n\020SALES_AND_RETAIL\020\032\022\033\n\027SCIENC" + + "E_AND_ENGINEERING\020\033\022\"\n\036SOCIAL_SERVICES_A" + + "ND_NON_PROFIT\020\034\022!\n\035SPORTS_FITNESS_AND_RE" + + "CREATION\020\035\022 \n\034TRANSPORTATION_AND_LOGISTI" + + "CS\020\036*e\n\rPostingRegion\022\036\n\032POSTING_REGION_" + + "UNSPECIFIED\020\000\022\027\n\023ADMINISTRATIVE_AREA\020\001\022\n" + + "\n\006NATION\020\002\022\017\n\013TELECOMMUTE\020\003*j\n\nVisibilit" + + "y\022\032\n\026VISIBILITY_UNSPECIFIED\020\000\022\020\n\014ACCOUNT" + + "_ONLY\020\001\022\026\n\022SHARED_WITH_GOOGLE\020\002\022\026\n\022SHARE" + + "D_WITH_PUBLIC\020\003*Z\n\020ContactInfoUsage\022\"\n\036C" + + "ONTACT_INFO_USAGE_UNSPECIFIED\020\000\022\014\n\010PERSO" + + "NAL\020\001\022\010\n\004WORK\020\002\022\n\n\006SCHOOL\020\003*q\n\020HtmlSanit" + + "ization\022!\n\035HTML_SANITIZATION_UNSPECIFIED" + + "\020\000\022\036\n\032HTML_SANITIZATION_DISABLED\020\001\022\032\n\026SI" + + "MPLE_FORMATTING_ONLY\020\002*{\n\rCommuteMethod\022" + + "\036\n\032COMMUTE_METHOD_UNSPECIFIED\020\000\022\013\n\007DRIVI" + + "NG\020\001\022\013\n\007TRANSIT\020\002\022\013\n\007WALKING\020\003\022\013\n\007CYCLIN" + + "G\020\004\022\026\n\022TRANSIT_ACCESSIBLE\020\005By\n\037com.googl" + + "e.cloud.talent.v4beta1B\013CommonProtoP\001ZAg" + + "oogle.golang.org/genproto/googleapis/clo" + + "ud/talent/v4beta1;talent\242\002\003CTSb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + com.google.type.LatLngProto.getDescriptor(), + com.google.type.MoneyProto.getDescriptor(), + com.google.type.PostalAddressProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_talent_v4beta1_TimestampRange_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_talent_v4beta1_TimestampRange_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_TimestampRange_descriptor, + new java.lang.String[] { + "StartTime", "EndTime", + }); + internal_static_google_cloud_talent_v4beta1_Location_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_talent_v4beta1_Location_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Location_descriptor, + new java.lang.String[] { + "LocationType", "PostalAddress", "LatLng", "RadiusMiles", + }); + internal_static_google_cloud_talent_v4beta1_RequestMetadata_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_talent_v4beta1_RequestMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_RequestMetadata_descriptor, + new java.lang.String[] { + "Domain", "SessionId", "UserId", "AllowMissingIds", "DeviceInfo", + }); + internal_static_google_cloud_talent_v4beta1_ResponseMetadata_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_talent_v4beta1_ResponseMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ResponseMetadata_descriptor, + new java.lang.String[] { + "RequestId", + }); + internal_static_google_cloud_talent_v4beta1_DeviceInfo_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_talent_v4beta1_DeviceInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_DeviceInfo_descriptor, + new java.lang.String[] { + "DeviceType", "Id", + }); + internal_static_google_cloud_talent_v4beta1_CustomAttribute_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_talent_v4beta1_CustomAttribute_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_CustomAttribute_descriptor, + new java.lang.String[] { + "StringValues", "LongValues", "Filterable", + }); + internal_static_google_cloud_talent_v4beta1_SpellingCorrection_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_talent_v4beta1_SpellingCorrection_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_SpellingCorrection_descriptor, + new java.lang.String[] { + "Corrected", "CorrectedText", "CorrectedHtml", + }); + internal_static_google_cloud_talent_v4beta1_CompensationInfo_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_talent_v4beta1_CompensationInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_CompensationInfo_descriptor, + new java.lang.String[] { + "Entries", "AnnualizedBaseCompensationRange", "AnnualizedTotalCompensationRange", + }); + internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationEntry_descriptor = + internal_static_google_cloud_talent_v4beta1_CompensationInfo_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationEntry_descriptor, + new java.lang.String[] { + "Type", + "Unit", + "Amount", + "Range", + "Description", + "ExpectedUnitsPerYear", + "CompensationAmount", + }); + internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationRange_descriptor = + internal_static_google_cloud_talent_v4beta1_CompensationInfo_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationRange_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationRange_descriptor, + new java.lang.String[] { + "MaxCompensation", "MinCompensation", + }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.type.LatLngProto.getDescriptor(); + com.google.type.MoneyProto.getDescriptor(); + com.google.type.PostalAddressProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommuteFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommuteFilter.java new file mode 100644 index 000000000000..56e6e37655e2 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommuteFilter.java @@ -0,0 +1,1948 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Parameters needed for commute search.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CommuteFilter} + */ +public final class CommuteFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.CommuteFilter) + CommuteFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use CommuteFilter.newBuilder() to construct. + private CommuteFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CommuteFilter() { + commuteMethod_ = 0; + allowImpreciseAddresses_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CommuteFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + commuteMethod_ = rawValue; + break; + } + case 18: + { + com.google.type.LatLng.Builder subBuilder = null; + if (startCoordinates_ != null) { + subBuilder = startCoordinates_.toBuilder(); + } + startCoordinates_ = + input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startCoordinates_); + startCoordinates_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (travelDuration_ != null) { + subBuilder = travelDuration_.toBuilder(); + } + travelDuration_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(travelDuration_); + travelDuration_ = subBuilder.buildPartial(); + } + + break; + } + case 32: + { + allowImpreciseAddresses_ = input.readBool(); + break; + } + case 40: + { + int rawValue = input.readEnum(); + trafficOptionCase_ = 5; + trafficOption_ = rawValue; + break; + } + case 50: + { + com.google.type.TimeOfDay.Builder subBuilder = null; + if (trafficOptionCase_ == 6) { + subBuilder = ((com.google.type.TimeOfDay) trafficOption_).toBuilder(); + } + trafficOption_ = + input.readMessage(com.google.type.TimeOfDay.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.type.TimeOfDay) trafficOption_); + trafficOption_ = subBuilder.buildPartial(); + } + trafficOptionCase_ = 6; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_CommuteFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_CommuteFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CommuteFilter.class, + com.google.cloud.talent.v4beta1.CommuteFilter.Builder.class); + } + + /** + * + * + *
+   * The traffic density to use when calculating commute time.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic} + */ + public enum RoadTraffic implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Road traffic situation isn't specified.
+     * 
+ * + * ROAD_TRAFFIC_UNSPECIFIED = 0; + */ + ROAD_TRAFFIC_UNSPECIFIED(0), + /** + * + * + *
+     * Optimal commute time without considering any traffic impact.
+     * 
+ * + * TRAFFIC_FREE = 1; + */ + TRAFFIC_FREE(1), + /** + * + * + *
+     * Commute time calculation takes in account the peak traffic impact.
+     * 
+ * + * BUSY_HOUR = 2; + */ + BUSY_HOUR(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Road traffic situation isn't specified.
+     * 
+ * + * ROAD_TRAFFIC_UNSPECIFIED = 0; + */ + public static final int ROAD_TRAFFIC_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Optimal commute time without considering any traffic impact.
+     * 
+ * + * TRAFFIC_FREE = 1; + */ + public static final int TRAFFIC_FREE_VALUE = 1; + /** + * + * + *
+     * Commute time calculation takes in account the peak traffic impact.
+     * 
+ * + * BUSY_HOUR = 2; + */ + public static final int BUSY_HOUR_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static RoadTraffic valueOf(int value) { + return forNumber(value); + } + + public static RoadTraffic forNumber(int value) { + switch (value) { + case 0: + return ROAD_TRAFFIC_UNSPECIFIED; + case 1: + return TRAFFIC_FREE; + case 2: + return BUSY_HOUR; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RoadTraffic findValueByNumber(int number) { + return RoadTraffic.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommuteFilter.getDescriptor().getEnumTypes().get(0); + } + + private static final RoadTraffic[] VALUES = values(); + + public static RoadTraffic 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()]; + } + + private final int value; + + private RoadTraffic(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic) + } + + private int trafficOptionCase_ = 0; + private java.lang.Object trafficOption_; + + public enum TrafficOptionCase implements com.google.protobuf.Internal.EnumLite { + ROAD_TRAFFIC(5), + DEPARTURE_TIME(6), + TRAFFICOPTION_NOT_SET(0); + private final int value; + + private TrafficOptionCase(int value) { + this.value = value; + } + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static TrafficOptionCase valueOf(int value) { + return forNumber(value); + } + + public static TrafficOptionCase forNumber(int value) { + switch (value) { + case 5: + return ROAD_TRAFFIC; + case 6: + return DEPARTURE_TIME; + case 0: + return TRAFFICOPTION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TrafficOptionCase getTrafficOptionCase() { + return TrafficOptionCase.forNumber(trafficOptionCase_); + } + + public static final int COMMUTE_METHOD_FIELD_NUMBER = 1; + private int commuteMethod_; + /** + * + * + *
+   * Required.
+   * The method of transportation for which to calculate the commute time.
+   * 
+ * + * .google.cloud.talent.v4beta1.CommuteMethod commute_method = 1; + */ + public int getCommuteMethodValue() { + return commuteMethod_; + } + /** + * + * + *
+   * Required.
+   * The method of transportation for which to calculate the commute time.
+   * 
+ * + * .google.cloud.talent.v4beta1.CommuteMethod commute_method = 1; + */ + public com.google.cloud.talent.v4beta1.CommuteMethod getCommuteMethod() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CommuteMethod result = + com.google.cloud.talent.v4beta1.CommuteMethod.valueOf(commuteMethod_); + return result == null ? com.google.cloud.talent.v4beta1.CommuteMethod.UNRECOGNIZED : result; + } + + public static final int START_COORDINATES_FIELD_NUMBER = 2; + private com.google.type.LatLng startCoordinates_; + /** + * + * + *
+   * Required.
+   * The latitude and longitude of the location from which to calculate the
+   * commute time.
+   * 
+ * + * .google.type.LatLng start_coordinates = 2; + */ + public boolean hasStartCoordinates() { + return startCoordinates_ != null; + } + /** + * + * + *
+   * Required.
+   * The latitude and longitude of the location from which to calculate the
+   * commute time.
+   * 
+ * + * .google.type.LatLng start_coordinates = 2; + */ + public com.google.type.LatLng getStartCoordinates() { + return startCoordinates_ == null + ? com.google.type.LatLng.getDefaultInstance() + : startCoordinates_; + } + /** + * + * + *
+   * Required.
+   * The latitude and longitude of the location from which to calculate the
+   * commute time.
+   * 
+ * + * .google.type.LatLng start_coordinates = 2; + */ + public com.google.type.LatLngOrBuilder getStartCoordinatesOrBuilder() { + return getStartCoordinates(); + } + + public static final int TRAVEL_DURATION_FIELD_NUMBER = 3; + private com.google.protobuf.Duration travelDuration_; + /** + * + * + *
+   * Required.
+   * The maximum travel time in seconds. The maximum allowed value is `3600s`
+   * (one hour). Format is `123s`.
+   * 
+ * + * .google.protobuf.Duration travel_duration = 3; + */ + public boolean hasTravelDuration() { + return travelDuration_ != null; + } + /** + * + * + *
+   * Required.
+   * The maximum travel time in seconds. The maximum allowed value is `3600s`
+   * (one hour). Format is `123s`.
+   * 
+ * + * .google.protobuf.Duration travel_duration = 3; + */ + public com.google.protobuf.Duration getTravelDuration() { + return travelDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : travelDuration_; + } + /** + * + * + *
+   * Required.
+   * The maximum travel time in seconds. The maximum allowed value is `3600s`
+   * (one hour). Format is `123s`.
+   * 
+ * + * .google.protobuf.Duration travel_duration = 3; + */ + public com.google.protobuf.DurationOrBuilder getTravelDurationOrBuilder() { + return getTravelDuration(); + } + + public static final int ALLOW_IMPRECISE_ADDRESSES_FIELD_NUMBER = 4; + private boolean allowImpreciseAddresses_; + /** + * + * + *
+   * Optional.
+   * If `true`, jobs without street level addresses may also be returned.
+   * For city level addresses, the city center is used. For state and coarser
+   * level addresses, text matching is used.
+   * If this field is set to `false` or isn't specified, only jobs that include
+   * street level addresses will be returned by commute search.
+   * 
+ * + * bool allow_imprecise_addresses = 4; + */ + public boolean getAllowImpreciseAddresses() { + return allowImpreciseAddresses_; + } + + public static final int ROAD_TRAFFIC_FIELD_NUMBER = 5; + /** + * + * + *
+   * Optional.
+   * Specifies the traffic density to use when calculating commute time.
+   * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic road_traffic = 5; + */ + public int getRoadTrafficValue() { + if (trafficOptionCase_ == 5) { + return (java.lang.Integer) trafficOption_; + } + return 0; + } + /** + * + * + *
+   * Optional.
+   * Specifies the traffic density to use when calculating commute time.
+   * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic road_traffic = 5; + */ + public com.google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic getRoadTraffic() { + if (trafficOptionCase_ == 5) { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic result = + com.google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic.valueOf( + (java.lang.Integer) trafficOption_); + return result == null + ? com.google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic.UNRECOGNIZED + : result; + } + return com.google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic.ROAD_TRAFFIC_UNSPECIFIED; + } + + public static final int DEPARTURE_TIME_FIELD_NUMBER = 6; + /** + * + * + *
+   * Optional.
+   * The departure time used to calculate traffic impact, represented as
+   * [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone.
+   * Currently traffic model is restricted to hour level resolution.
+   * 
+ * + * .google.type.TimeOfDay departure_time = 6; + */ + public boolean hasDepartureTime() { + return trafficOptionCase_ == 6; + } + /** + * + * + *
+   * Optional.
+   * The departure time used to calculate traffic impact, represented as
+   * [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone.
+   * Currently traffic model is restricted to hour level resolution.
+   * 
+ * + * .google.type.TimeOfDay departure_time = 6; + */ + public com.google.type.TimeOfDay getDepartureTime() { + if (trafficOptionCase_ == 6) { + return (com.google.type.TimeOfDay) trafficOption_; + } + return com.google.type.TimeOfDay.getDefaultInstance(); + } + /** + * + * + *
+   * Optional.
+   * The departure time used to calculate traffic impact, represented as
+   * [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone.
+   * Currently traffic model is restricted to hour level resolution.
+   * 
+ * + * .google.type.TimeOfDay departure_time = 6; + */ + public com.google.type.TimeOfDayOrBuilder getDepartureTimeOrBuilder() { + if (trafficOptionCase_ == 6) { + return (com.google.type.TimeOfDay) trafficOption_; + } + return com.google.type.TimeOfDay.getDefaultInstance(); + } + + 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 (commuteMethod_ + != com.google.cloud.talent.v4beta1.CommuteMethod.COMMUTE_METHOD_UNSPECIFIED.getNumber()) { + output.writeEnum(1, commuteMethod_); + } + if (startCoordinates_ != null) { + output.writeMessage(2, getStartCoordinates()); + } + if (travelDuration_ != null) { + output.writeMessage(3, getTravelDuration()); + } + if (allowImpreciseAddresses_ != false) { + output.writeBool(4, allowImpreciseAddresses_); + } + if (trafficOptionCase_ == 5) { + output.writeEnum(5, ((java.lang.Integer) trafficOption_)); + } + if (trafficOptionCase_ == 6) { + output.writeMessage(6, (com.google.type.TimeOfDay) trafficOption_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (commuteMethod_ + != com.google.cloud.talent.v4beta1.CommuteMethod.COMMUTE_METHOD_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, commuteMethod_); + } + if (startCoordinates_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartCoordinates()); + } + if (travelDuration_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTravelDuration()); + } + if (allowImpreciseAddresses_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, allowImpreciseAddresses_); + } + if (trafficOptionCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 5, ((java.lang.Integer) trafficOption_)); + } + if (trafficOptionCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.type.TimeOfDay) trafficOption_); + } + size += unknownFields.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.cloud.talent.v4beta1.CommuteFilter)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.CommuteFilter other = + (com.google.cloud.talent.v4beta1.CommuteFilter) obj; + + boolean result = true; + result = result && commuteMethod_ == other.commuteMethod_; + result = result && (hasStartCoordinates() == other.hasStartCoordinates()); + if (hasStartCoordinates()) { + result = result && getStartCoordinates().equals(other.getStartCoordinates()); + } + result = result && (hasTravelDuration() == other.hasTravelDuration()); + if (hasTravelDuration()) { + result = result && getTravelDuration().equals(other.getTravelDuration()); + } + result = result && (getAllowImpreciseAddresses() == other.getAllowImpreciseAddresses()); + result = result && getTrafficOptionCase().equals(other.getTrafficOptionCase()); + if (!result) return false; + switch (trafficOptionCase_) { + case 5: + result = result && getRoadTrafficValue() == other.getRoadTrafficValue(); + break; + case 6: + result = result && getDepartureTime().equals(other.getDepartureTime()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + COMMUTE_METHOD_FIELD_NUMBER; + hash = (53 * hash) + commuteMethod_; + if (hasStartCoordinates()) { + hash = (37 * hash) + START_COORDINATES_FIELD_NUMBER; + hash = (53 * hash) + getStartCoordinates().hashCode(); + } + if (hasTravelDuration()) { + hash = (37 * hash) + TRAVEL_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getTravelDuration().hashCode(); + } + hash = (37 * hash) + ALLOW_IMPRECISE_ADDRESSES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowImpreciseAddresses()); + switch (trafficOptionCase_) { + case 5: + hash = (37 * hash) + ROAD_TRAFFIC_FIELD_NUMBER; + hash = (53 * hash) + getRoadTrafficValue(); + break; + case 6: + hash = (37 * hash) + DEPARTURE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getDepartureTime().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.CommuteFilter parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CommuteFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CommuteFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CommuteFilter 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.cloud.talent.v4beta1.CommuteFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CommuteFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CommuteFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CommuteFilter 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.cloud.talent.v4beta1.CommuteFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CommuteFilter 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.cloud.talent.v4beta1.CommuteFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CommuteFilter 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.cloud.talent.v4beta1.CommuteFilter 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; + } + /** + * + * + *
+   * Input only.
+   * Parameters needed for commute search.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CommuteFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.CommuteFilter) + com.google.cloud.talent.v4beta1.CommuteFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_CommuteFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_CommuteFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CommuteFilter.class, + com.google.cloud.talent.v4beta1.CommuteFilter.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.CommuteFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + commuteMethod_ = 0; + + if (startCoordinatesBuilder_ == null) { + startCoordinates_ = null; + } else { + startCoordinates_ = null; + startCoordinatesBuilder_ = null; + } + if (travelDurationBuilder_ == null) { + travelDuration_ = null; + } else { + travelDuration_ = null; + travelDurationBuilder_ = null; + } + allowImpreciseAddresses_ = false; + + trafficOptionCase_ = 0; + trafficOption_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_CommuteFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CommuteFilter getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.CommuteFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CommuteFilter build() { + com.google.cloud.talent.v4beta1.CommuteFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CommuteFilter buildPartial() { + com.google.cloud.talent.v4beta1.CommuteFilter result = + new com.google.cloud.talent.v4beta1.CommuteFilter(this); + result.commuteMethod_ = commuteMethod_; + if (startCoordinatesBuilder_ == null) { + result.startCoordinates_ = startCoordinates_; + } else { + result.startCoordinates_ = startCoordinatesBuilder_.build(); + } + if (travelDurationBuilder_ == null) { + result.travelDuration_ = travelDuration_; + } else { + result.travelDuration_ = travelDurationBuilder_.build(); + } + result.allowImpreciseAddresses_ = allowImpreciseAddresses_; + if (trafficOptionCase_ == 5) { + result.trafficOption_ = trafficOption_; + } + if (trafficOptionCase_ == 6) { + if (departureTimeBuilder_ == null) { + result.trafficOption_ = trafficOption_; + } else { + result.trafficOption_ = departureTimeBuilder_.build(); + } + } + result.trafficOptionCase_ = trafficOptionCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.CommuteFilter) { + return mergeFrom((com.google.cloud.talent.v4beta1.CommuteFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.CommuteFilter other) { + if (other == com.google.cloud.talent.v4beta1.CommuteFilter.getDefaultInstance()) return this; + if (other.commuteMethod_ != 0) { + setCommuteMethodValue(other.getCommuteMethodValue()); + } + if (other.hasStartCoordinates()) { + mergeStartCoordinates(other.getStartCoordinates()); + } + if (other.hasTravelDuration()) { + mergeTravelDuration(other.getTravelDuration()); + } + if (other.getAllowImpreciseAddresses() != false) { + setAllowImpreciseAddresses(other.getAllowImpreciseAddresses()); + } + switch (other.getTrafficOptionCase()) { + case ROAD_TRAFFIC: + { + setRoadTrafficValue(other.getRoadTrafficValue()); + break; + } + case DEPARTURE_TIME: + { + mergeDepartureTime(other.getDepartureTime()); + break; + } + case TRAFFICOPTION_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.CommuteFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.CommuteFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int trafficOptionCase_ = 0; + private java.lang.Object trafficOption_; + + public TrafficOptionCase getTrafficOptionCase() { + return TrafficOptionCase.forNumber(trafficOptionCase_); + } + + public Builder clearTrafficOption() { + trafficOptionCase_ = 0; + trafficOption_ = null; + onChanged(); + return this; + } + + private int commuteMethod_ = 0; + /** + * + * + *
+     * Required.
+     * The method of transportation for which to calculate the commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteMethod commute_method = 1; + */ + public int getCommuteMethodValue() { + return commuteMethod_; + } + /** + * + * + *
+     * Required.
+     * The method of transportation for which to calculate the commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteMethod commute_method = 1; + */ + public Builder setCommuteMethodValue(int value) { + commuteMethod_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The method of transportation for which to calculate the commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteMethod commute_method = 1; + */ + public com.google.cloud.talent.v4beta1.CommuteMethod getCommuteMethod() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CommuteMethod result = + com.google.cloud.talent.v4beta1.CommuteMethod.valueOf(commuteMethod_); + return result == null ? com.google.cloud.talent.v4beta1.CommuteMethod.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Required.
+     * The method of transportation for which to calculate the commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteMethod commute_method = 1; + */ + public Builder setCommuteMethod(com.google.cloud.talent.v4beta1.CommuteMethod value) { + if (value == null) { + throw new NullPointerException(); + } + + commuteMethod_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The method of transportation for which to calculate the commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteMethod commute_method = 1; + */ + public Builder clearCommuteMethod() { + + commuteMethod_ = 0; + onChanged(); + return this; + } + + private com.google.type.LatLng startCoordinates_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + startCoordinatesBuilder_; + /** + * + * + *
+     * Required.
+     * The latitude and longitude of the location from which to calculate the
+     * commute time.
+     * 
+ * + * .google.type.LatLng start_coordinates = 2; + */ + public boolean hasStartCoordinates() { + return startCoordinatesBuilder_ != null || startCoordinates_ != null; + } + /** + * + * + *
+     * Required.
+     * The latitude and longitude of the location from which to calculate the
+     * commute time.
+     * 
+ * + * .google.type.LatLng start_coordinates = 2; + */ + public com.google.type.LatLng getStartCoordinates() { + if (startCoordinatesBuilder_ == null) { + return startCoordinates_ == null + ? com.google.type.LatLng.getDefaultInstance() + : startCoordinates_; + } else { + return startCoordinatesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required.
+     * The latitude and longitude of the location from which to calculate the
+     * commute time.
+     * 
+ * + * .google.type.LatLng start_coordinates = 2; + */ + public Builder setStartCoordinates(com.google.type.LatLng value) { + if (startCoordinatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startCoordinates_ = value; + onChanged(); + } else { + startCoordinatesBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The latitude and longitude of the location from which to calculate the
+     * commute time.
+     * 
+ * + * .google.type.LatLng start_coordinates = 2; + */ + public Builder setStartCoordinates(com.google.type.LatLng.Builder builderForValue) { + if (startCoordinatesBuilder_ == null) { + startCoordinates_ = builderForValue.build(); + onChanged(); + } else { + startCoordinatesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The latitude and longitude of the location from which to calculate the
+     * commute time.
+     * 
+ * + * .google.type.LatLng start_coordinates = 2; + */ + public Builder mergeStartCoordinates(com.google.type.LatLng value) { + if (startCoordinatesBuilder_ == null) { + if (startCoordinates_ != null) { + startCoordinates_ = + com.google.type.LatLng.newBuilder(startCoordinates_).mergeFrom(value).buildPartial(); + } else { + startCoordinates_ = value; + } + onChanged(); + } else { + startCoordinatesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The latitude and longitude of the location from which to calculate the
+     * commute time.
+     * 
+ * + * .google.type.LatLng start_coordinates = 2; + */ + public Builder clearStartCoordinates() { + if (startCoordinatesBuilder_ == null) { + startCoordinates_ = null; + onChanged(); + } else { + startCoordinates_ = null; + startCoordinatesBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The latitude and longitude of the location from which to calculate the
+     * commute time.
+     * 
+ * + * .google.type.LatLng start_coordinates = 2; + */ + public com.google.type.LatLng.Builder getStartCoordinatesBuilder() { + + onChanged(); + return getStartCoordinatesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required.
+     * The latitude and longitude of the location from which to calculate the
+     * commute time.
+     * 
+ * + * .google.type.LatLng start_coordinates = 2; + */ + public com.google.type.LatLngOrBuilder getStartCoordinatesOrBuilder() { + if (startCoordinatesBuilder_ != null) { + return startCoordinatesBuilder_.getMessageOrBuilder(); + } else { + return startCoordinates_ == null + ? com.google.type.LatLng.getDefaultInstance() + : startCoordinates_; + } + } + /** + * + * + *
+     * Required.
+     * The latitude and longitude of the location from which to calculate the
+     * commute time.
+     * 
+ * + * .google.type.LatLng start_coordinates = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + getStartCoordinatesFieldBuilder() { + if (startCoordinatesBuilder_ == null) { + startCoordinatesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, + com.google.type.LatLng.Builder, + com.google.type.LatLngOrBuilder>( + getStartCoordinates(), getParentForChildren(), isClean()); + startCoordinates_ = null; + } + return startCoordinatesBuilder_; + } + + private com.google.protobuf.Duration travelDuration_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + travelDurationBuilder_; + /** + * + * + *
+     * Required.
+     * The maximum travel time in seconds. The maximum allowed value is `3600s`
+     * (one hour). Format is `123s`.
+     * 
+ * + * .google.protobuf.Duration travel_duration = 3; + */ + public boolean hasTravelDuration() { + return travelDurationBuilder_ != null || travelDuration_ != null; + } + /** + * + * + *
+     * Required.
+     * The maximum travel time in seconds. The maximum allowed value is `3600s`
+     * (one hour). Format is `123s`.
+     * 
+ * + * .google.protobuf.Duration travel_duration = 3; + */ + public com.google.protobuf.Duration getTravelDuration() { + if (travelDurationBuilder_ == null) { + return travelDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : travelDuration_; + } else { + return travelDurationBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required.
+     * The maximum travel time in seconds. The maximum allowed value is `3600s`
+     * (one hour). Format is `123s`.
+     * 
+ * + * .google.protobuf.Duration travel_duration = 3; + */ + public Builder setTravelDuration(com.google.protobuf.Duration value) { + if (travelDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + travelDuration_ = value; + onChanged(); + } else { + travelDurationBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The maximum travel time in seconds. The maximum allowed value is `3600s`
+     * (one hour). Format is `123s`.
+     * 
+ * + * .google.protobuf.Duration travel_duration = 3; + */ + public Builder setTravelDuration(com.google.protobuf.Duration.Builder builderForValue) { + if (travelDurationBuilder_ == null) { + travelDuration_ = builderForValue.build(); + onChanged(); + } else { + travelDurationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The maximum travel time in seconds. The maximum allowed value is `3600s`
+     * (one hour). Format is `123s`.
+     * 
+ * + * .google.protobuf.Duration travel_duration = 3; + */ + public Builder mergeTravelDuration(com.google.protobuf.Duration value) { + if (travelDurationBuilder_ == null) { + if (travelDuration_ != null) { + travelDuration_ = + com.google.protobuf.Duration.newBuilder(travelDuration_) + .mergeFrom(value) + .buildPartial(); + } else { + travelDuration_ = value; + } + onChanged(); + } else { + travelDurationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The maximum travel time in seconds. The maximum allowed value is `3600s`
+     * (one hour). Format is `123s`.
+     * 
+ * + * .google.protobuf.Duration travel_duration = 3; + */ + public Builder clearTravelDuration() { + if (travelDurationBuilder_ == null) { + travelDuration_ = null; + onChanged(); + } else { + travelDuration_ = null; + travelDurationBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The maximum travel time in seconds. The maximum allowed value is `3600s`
+     * (one hour). Format is `123s`.
+     * 
+ * + * .google.protobuf.Duration travel_duration = 3; + */ + public com.google.protobuf.Duration.Builder getTravelDurationBuilder() { + + onChanged(); + return getTravelDurationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required.
+     * The maximum travel time in seconds. The maximum allowed value is `3600s`
+     * (one hour). Format is `123s`.
+     * 
+ * + * .google.protobuf.Duration travel_duration = 3; + */ + public com.google.protobuf.DurationOrBuilder getTravelDurationOrBuilder() { + if (travelDurationBuilder_ != null) { + return travelDurationBuilder_.getMessageOrBuilder(); + } else { + return travelDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : travelDuration_; + } + } + /** + * + * + *
+     * Required.
+     * The maximum travel time in seconds. The maximum allowed value is `3600s`
+     * (one hour). Format is `123s`.
+     * 
+ * + * .google.protobuf.Duration travel_duration = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getTravelDurationFieldBuilder() { + if (travelDurationBuilder_ == null) { + travelDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getTravelDuration(), getParentForChildren(), isClean()); + travelDuration_ = null; + } + return travelDurationBuilder_; + } + + private boolean allowImpreciseAddresses_; + /** + * + * + *
+     * Optional.
+     * If `true`, jobs without street level addresses may also be returned.
+     * For city level addresses, the city center is used. For state and coarser
+     * level addresses, text matching is used.
+     * If this field is set to `false` or isn't specified, only jobs that include
+     * street level addresses will be returned by commute search.
+     * 
+ * + * bool allow_imprecise_addresses = 4; + */ + public boolean getAllowImpreciseAddresses() { + return allowImpreciseAddresses_; + } + /** + * + * + *
+     * Optional.
+     * If `true`, jobs without street level addresses may also be returned.
+     * For city level addresses, the city center is used. For state and coarser
+     * level addresses, text matching is used.
+     * If this field is set to `false` or isn't specified, only jobs that include
+     * street level addresses will be returned by commute search.
+     * 
+ * + * bool allow_imprecise_addresses = 4; + */ + public Builder setAllowImpreciseAddresses(boolean value) { + + allowImpreciseAddresses_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * If `true`, jobs without street level addresses may also be returned.
+     * For city level addresses, the city center is used. For state and coarser
+     * level addresses, text matching is used.
+     * If this field is set to `false` or isn't specified, only jobs that include
+     * street level addresses will be returned by commute search.
+     * 
+ * + * bool allow_imprecise_addresses = 4; + */ + public Builder clearAllowImpreciseAddresses() { + + allowImpreciseAddresses_ = false; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional.
+     * Specifies the traffic density to use when calculating commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic road_traffic = 5; + */ + public int getRoadTrafficValue() { + if (trafficOptionCase_ == 5) { + return ((java.lang.Integer) trafficOption_).intValue(); + } + return 0; + } + /** + * + * + *
+     * Optional.
+     * Specifies the traffic density to use when calculating commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic road_traffic = 5; + */ + public Builder setRoadTrafficValue(int value) { + trafficOptionCase_ = 5; + trafficOption_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Specifies the traffic density to use when calculating commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic road_traffic = 5; + */ + public com.google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic getRoadTraffic() { + if (trafficOptionCase_ == 5) { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic result = + com.google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic.valueOf( + (java.lang.Integer) trafficOption_); + return result == null + ? com.google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic.UNRECOGNIZED + : result; + } + return com.google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic.ROAD_TRAFFIC_UNSPECIFIED; + } + /** + * + * + *
+     * Optional.
+     * Specifies the traffic density to use when calculating commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic road_traffic = 5; + */ + public Builder setRoadTraffic(com.google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic value) { + if (value == null) { + throw new NullPointerException(); + } + trafficOptionCase_ = 5; + trafficOption_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Specifies the traffic density to use when calculating commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic road_traffic = 5; + */ + public Builder clearRoadTraffic() { + if (trafficOptionCase_ == 5) { + trafficOptionCase_ = 0; + trafficOption_ = null; + onChanged(); + } + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeOfDay, + com.google.type.TimeOfDay.Builder, + com.google.type.TimeOfDayOrBuilder> + departureTimeBuilder_; + /** + * + * + *
+     * Optional.
+     * The departure time used to calculate traffic impact, represented as
+     * [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone.
+     * Currently traffic model is restricted to hour level resolution.
+     * 
+ * + * .google.type.TimeOfDay departure_time = 6; + */ + public boolean hasDepartureTime() { + return trafficOptionCase_ == 6; + } + /** + * + * + *
+     * Optional.
+     * The departure time used to calculate traffic impact, represented as
+     * [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone.
+     * Currently traffic model is restricted to hour level resolution.
+     * 
+ * + * .google.type.TimeOfDay departure_time = 6; + */ + public com.google.type.TimeOfDay getDepartureTime() { + if (departureTimeBuilder_ == null) { + if (trafficOptionCase_ == 6) { + return (com.google.type.TimeOfDay) trafficOption_; + } + return com.google.type.TimeOfDay.getDefaultInstance(); + } else { + if (trafficOptionCase_ == 6) { + return departureTimeBuilder_.getMessage(); + } + return com.google.type.TimeOfDay.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional.
+     * The departure time used to calculate traffic impact, represented as
+     * [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone.
+     * Currently traffic model is restricted to hour level resolution.
+     * 
+ * + * .google.type.TimeOfDay departure_time = 6; + */ + public Builder setDepartureTime(com.google.type.TimeOfDay value) { + if (departureTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + trafficOption_ = value; + onChanged(); + } else { + departureTimeBuilder_.setMessage(value); + } + trafficOptionCase_ = 6; + return this; + } + /** + * + * + *
+     * Optional.
+     * The departure time used to calculate traffic impact, represented as
+     * [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone.
+     * Currently traffic model is restricted to hour level resolution.
+     * 
+ * + * .google.type.TimeOfDay departure_time = 6; + */ + public Builder setDepartureTime(com.google.type.TimeOfDay.Builder builderForValue) { + if (departureTimeBuilder_ == null) { + trafficOption_ = builderForValue.build(); + onChanged(); + } else { + departureTimeBuilder_.setMessage(builderForValue.build()); + } + trafficOptionCase_ = 6; + return this; + } + /** + * + * + *
+     * Optional.
+     * The departure time used to calculate traffic impact, represented as
+     * [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone.
+     * Currently traffic model is restricted to hour level resolution.
+     * 
+ * + * .google.type.TimeOfDay departure_time = 6; + */ + public Builder mergeDepartureTime(com.google.type.TimeOfDay value) { + if (departureTimeBuilder_ == null) { + if (trafficOptionCase_ == 6 + && trafficOption_ != com.google.type.TimeOfDay.getDefaultInstance()) { + trafficOption_ = + com.google.type.TimeOfDay.newBuilder((com.google.type.TimeOfDay) trafficOption_) + .mergeFrom(value) + .buildPartial(); + } else { + trafficOption_ = value; + } + onChanged(); + } else { + if (trafficOptionCase_ == 6) { + departureTimeBuilder_.mergeFrom(value); + } + departureTimeBuilder_.setMessage(value); + } + trafficOptionCase_ = 6; + return this; + } + /** + * + * + *
+     * Optional.
+     * The departure time used to calculate traffic impact, represented as
+     * [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone.
+     * Currently traffic model is restricted to hour level resolution.
+     * 
+ * + * .google.type.TimeOfDay departure_time = 6; + */ + public Builder clearDepartureTime() { + if (departureTimeBuilder_ == null) { + if (trafficOptionCase_ == 6) { + trafficOptionCase_ = 0; + trafficOption_ = null; + onChanged(); + } + } else { + if (trafficOptionCase_ == 6) { + trafficOptionCase_ = 0; + trafficOption_ = null; + } + departureTimeBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The departure time used to calculate traffic impact, represented as
+     * [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone.
+     * Currently traffic model is restricted to hour level resolution.
+     * 
+ * + * .google.type.TimeOfDay departure_time = 6; + */ + public com.google.type.TimeOfDay.Builder getDepartureTimeBuilder() { + return getDepartureTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The departure time used to calculate traffic impact, represented as
+     * [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone.
+     * Currently traffic model is restricted to hour level resolution.
+     * 
+ * + * .google.type.TimeOfDay departure_time = 6; + */ + public com.google.type.TimeOfDayOrBuilder getDepartureTimeOrBuilder() { + if ((trafficOptionCase_ == 6) && (departureTimeBuilder_ != null)) { + return departureTimeBuilder_.getMessageOrBuilder(); + } else { + if (trafficOptionCase_ == 6) { + return (com.google.type.TimeOfDay) trafficOption_; + } + return com.google.type.TimeOfDay.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional.
+     * The departure time used to calculate traffic impact, represented as
+     * [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone.
+     * Currently traffic model is restricted to hour level resolution.
+     * 
+ * + * .google.type.TimeOfDay departure_time = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeOfDay, + com.google.type.TimeOfDay.Builder, + com.google.type.TimeOfDayOrBuilder> + getDepartureTimeFieldBuilder() { + if (departureTimeBuilder_ == null) { + if (!(trafficOptionCase_ == 6)) { + trafficOption_ = com.google.type.TimeOfDay.getDefaultInstance(); + } + departureTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeOfDay, + com.google.type.TimeOfDay.Builder, + com.google.type.TimeOfDayOrBuilder>( + (com.google.type.TimeOfDay) trafficOption_, getParentForChildren(), isClean()); + trafficOption_ = null; + } + trafficOptionCase_ = 6; + onChanged(); + ; + return departureTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.CommuteFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CommuteFilter) + private static final com.google.cloud.talent.v4beta1.CommuteFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.CommuteFilter(); + } + + public static com.google.cloud.talent.v4beta1.CommuteFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CommuteFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CommuteFilter(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.CommuteFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommuteFilterOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommuteFilterOrBuilder.java new file mode 100644 index 000000000000..bb7b708b2b3a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommuteFilterOrBuilder.java @@ -0,0 +1,188 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +public interface CommuteFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.CommuteFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The method of transportation for which to calculate the commute time.
+   * 
+ * + * .google.cloud.talent.v4beta1.CommuteMethod commute_method = 1; + */ + int getCommuteMethodValue(); + /** + * + * + *
+   * Required.
+   * The method of transportation for which to calculate the commute time.
+   * 
+ * + * .google.cloud.talent.v4beta1.CommuteMethod commute_method = 1; + */ + com.google.cloud.talent.v4beta1.CommuteMethod getCommuteMethod(); + + /** + * + * + *
+   * Required.
+   * The latitude and longitude of the location from which to calculate the
+   * commute time.
+   * 
+ * + * .google.type.LatLng start_coordinates = 2; + */ + boolean hasStartCoordinates(); + /** + * + * + *
+   * Required.
+   * The latitude and longitude of the location from which to calculate the
+   * commute time.
+   * 
+ * + * .google.type.LatLng start_coordinates = 2; + */ + com.google.type.LatLng getStartCoordinates(); + /** + * + * + *
+   * Required.
+   * The latitude and longitude of the location from which to calculate the
+   * commute time.
+   * 
+ * + * .google.type.LatLng start_coordinates = 2; + */ + com.google.type.LatLngOrBuilder getStartCoordinatesOrBuilder(); + + /** + * + * + *
+   * Required.
+   * The maximum travel time in seconds. The maximum allowed value is `3600s`
+   * (one hour). Format is `123s`.
+   * 
+ * + * .google.protobuf.Duration travel_duration = 3; + */ + boolean hasTravelDuration(); + /** + * + * + *
+   * Required.
+   * The maximum travel time in seconds. The maximum allowed value is `3600s`
+   * (one hour). Format is `123s`.
+   * 
+ * + * .google.protobuf.Duration travel_duration = 3; + */ + com.google.protobuf.Duration getTravelDuration(); + /** + * + * + *
+   * Required.
+   * The maximum travel time in seconds. The maximum allowed value is `3600s`
+   * (one hour). Format is `123s`.
+   * 
+ * + * .google.protobuf.Duration travel_duration = 3; + */ + com.google.protobuf.DurationOrBuilder getTravelDurationOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * If `true`, jobs without street level addresses may also be returned.
+   * For city level addresses, the city center is used. For state and coarser
+   * level addresses, text matching is used.
+   * If this field is set to `false` or isn't specified, only jobs that include
+   * street level addresses will be returned by commute search.
+   * 
+ * + * bool allow_imprecise_addresses = 4; + */ + boolean getAllowImpreciseAddresses(); + + /** + * + * + *
+   * Optional.
+   * Specifies the traffic density to use when calculating commute time.
+   * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic road_traffic = 5; + */ + int getRoadTrafficValue(); + /** + * + * + *
+   * Optional.
+   * Specifies the traffic density to use when calculating commute time.
+   * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic road_traffic = 5; + */ + com.google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic getRoadTraffic(); + + /** + * + * + *
+   * Optional.
+   * The departure time used to calculate traffic impact, represented as
+   * [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone.
+   * Currently traffic model is restricted to hour level resolution.
+   * 
+ * + * .google.type.TimeOfDay departure_time = 6; + */ + boolean hasDepartureTime(); + /** + * + * + *
+   * Optional.
+   * The departure time used to calculate traffic impact, represented as
+   * [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone.
+   * Currently traffic model is restricted to hour level resolution.
+   * 
+ * + * .google.type.TimeOfDay departure_time = 6; + */ + com.google.type.TimeOfDay getDepartureTime(); + /** + * + * + *
+   * Optional.
+   * The departure time used to calculate traffic impact, represented as
+   * [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone.
+   * Currently traffic model is restricted to hour level resolution.
+   * 
+ * + * .google.type.TimeOfDay departure_time = 6; + */ + com.google.type.TimeOfDayOrBuilder getDepartureTimeOrBuilder(); + + public com.google.cloud.talent.v4beta1.CommuteFilter.TrafficOptionCase getTrafficOptionCase(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommuteMethod.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommuteMethod.java new file mode 100644 index 000000000000..aab05ed814a5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommuteMethod.java @@ -0,0 +1,219 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Method for commute.
+ * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.CommuteMethod} + */ +public enum CommuteMethod implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Commute method isn't specified.
+   * 
+ * + * COMMUTE_METHOD_UNSPECIFIED = 0; + */ + COMMUTE_METHOD_UNSPECIFIED(0), + /** + * + * + *
+   * Commute time is calculated based on driving time.
+   * 
+ * + * DRIVING = 1; + */ + DRIVING(1), + /** + * + * + *
+   * Commute time is calculated based on public transit including bus, metro,
+   * subway, etc.
+   * 
+ * + * TRANSIT = 2; + */ + TRANSIT(2), + /** + * + * + *
+   * Commute time is calculated based on walking time.
+   * 
+ * + * WALKING = 3; + */ + WALKING(3), + /** + * + * + *
+   * Commute time is calculated based on biking time.
+   * 
+ * + * CYCLING = 4; + */ + CYCLING(4), + /** + * + * + *
+   * Commute time is calculated based on public transit that is wheelchair
+   * accessible.
+   * 
+ * + * TRANSIT_ACCESSIBLE = 5; + */ + TRANSIT_ACCESSIBLE(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Commute method isn't specified.
+   * 
+ * + * COMMUTE_METHOD_UNSPECIFIED = 0; + */ + public static final int COMMUTE_METHOD_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Commute time is calculated based on driving time.
+   * 
+ * + * DRIVING = 1; + */ + public static final int DRIVING_VALUE = 1; + /** + * + * + *
+   * Commute time is calculated based on public transit including bus, metro,
+   * subway, etc.
+   * 
+ * + * TRANSIT = 2; + */ + public static final int TRANSIT_VALUE = 2; + /** + * + * + *
+   * Commute time is calculated based on walking time.
+   * 
+ * + * WALKING = 3; + */ + public static final int WALKING_VALUE = 3; + /** + * + * + *
+   * Commute time is calculated based on biking time.
+   * 
+ * + * CYCLING = 4; + */ + public static final int CYCLING_VALUE = 4; + /** + * + * + *
+   * Commute time is calculated based on public transit that is wheelchair
+   * accessible.
+   * 
+ * + * TRANSIT_ACCESSIBLE = 5; + */ + public static final int TRANSIT_ACCESSIBLE_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static CommuteMethod valueOf(int value) { + return forNumber(value); + } + + public static CommuteMethod forNumber(int value) { + switch (value) { + case 0: + return COMMUTE_METHOD_UNSPECIFIED; + case 1: + return DRIVING; + case 2: + return TRANSIT; + case 3: + return WALKING; + case 4: + return CYCLING; + case 5: + return TRANSIT_ACCESSIBLE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CommuteMethod findValueByNumber(int number) { + return CommuteMethod.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto.getDescriptor().getEnumTypes().get(10); + } + + private static final CommuteMethod[] VALUES = values(); + + public static CommuteMethod 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()]; + } + + private final int value; + + private CommuteMethod(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.CommuteMethod) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Company.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Company.java new file mode 100644 index 000000000000..c9bf56fcb850 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Company.java @@ -0,0 +1,3579 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/company.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * A Company resource represents a company in the service. A company is the
+ * entity that owns job postings, that is, the hiring entity responsible for
+ * employing applicants for the job position.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Company} + */ +public final class Company extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Company) + CompanyOrBuilder { + private static final long serialVersionUID = 0L; + // Use Company.newBuilder() to construct. + private Company(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Company() { + name_ = ""; + displayName_ = ""; + externalId_ = ""; + size_ = 0; + headquartersAddress_ = ""; + hiringAgency_ = false; + eeoText_ = ""; + websiteUri_ = ""; + careerSiteUri_ = ""; + imageUri_ = ""; + keywordSearchableJobCustomAttributes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + suspended_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Company( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + externalId_ = s; + break; + } + case 32: + { + int rawValue = input.readEnum(); + + size_ = rawValue; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + headquartersAddress_ = s; + break; + } + case 48: + { + hiringAgency_ = input.readBool(); + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + eeoText_ = s; + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + + websiteUri_ = s; + break; + } + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + + careerSiteUri_ = s; + break; + } + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + + imageUri_ = s; + break; + } + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + keywordSearchableJobCustomAttributes_ = + new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000400; + } + keywordSearchableJobCustomAttributes_.add(s); + break; + } + case 98: + { + com.google.cloud.talent.v4beta1.Company.DerivedInfo.Builder subBuilder = null; + if (derivedInfo_ != null) { + subBuilder = derivedInfo_.toBuilder(); + } + derivedInfo_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Company.DerivedInfo.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(derivedInfo_); + derivedInfo_ = subBuilder.buildPartial(); + } + + break; + } + case 104: + { + suspended_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + keywordSearchableJobCustomAttributes_ = + keywordSearchableJobCustomAttributes_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompanyResourceProto + .internal_static_google_cloud_talent_v4beta1_Company_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompanyResourceProto + .internal_static_google_cloud_talent_v4beta1_Company_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Company.class, + com.google.cloud.talent.v4beta1.Company.Builder.class); + } + + public interface DerivedInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Company.DerivedInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * A structured headquarters location of the company, resolved from
+     * [Company.hq_location][] if provided.
+     * 
+ * + * .google.cloud.talent.v4beta1.Location headquarters_location = 1; + */ + boolean hasHeadquartersLocation(); + /** + * + * + *
+     * A structured headquarters location of the company, resolved from
+     * [Company.hq_location][] if provided.
+     * 
+ * + * .google.cloud.talent.v4beta1.Location headquarters_location = 1; + */ + com.google.cloud.talent.v4beta1.Location getHeadquartersLocation(); + /** + * + * + *
+     * A structured headquarters location of the company, resolved from
+     * [Company.hq_location][] if provided.
+     * 
+ * + * .google.cloud.talent.v4beta1.Location headquarters_location = 1; + */ + com.google.cloud.talent.v4beta1.LocationOrBuilder getHeadquartersLocationOrBuilder(); + } + /** + * + * + *
+   * Derived details about the company.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Company.DerivedInfo} + */ + public static final class DerivedInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Company.DerivedInfo) + DerivedInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use DerivedInfo.newBuilder() to construct. + private DerivedInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DerivedInfo() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DerivedInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.talent.v4beta1.Location.Builder subBuilder = null; + if (headquartersLocation_ != null) { + subBuilder = headquartersLocation_.toBuilder(); + } + headquartersLocation_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Location.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(headquartersLocation_); + headquartersLocation_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompanyResourceProto + .internal_static_google_cloud_talent_v4beta1_Company_DerivedInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompanyResourceProto + .internal_static_google_cloud_talent_v4beta1_Company_DerivedInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Company.DerivedInfo.class, + com.google.cloud.talent.v4beta1.Company.DerivedInfo.Builder.class); + } + + public static final int HEADQUARTERS_LOCATION_FIELD_NUMBER = 1; + private com.google.cloud.talent.v4beta1.Location headquartersLocation_; + /** + * + * + *
+     * A structured headquarters location of the company, resolved from
+     * [Company.hq_location][] if provided.
+     * 
+ * + * .google.cloud.talent.v4beta1.Location headquarters_location = 1; + */ + public boolean hasHeadquartersLocation() { + return headquartersLocation_ != null; + } + /** + * + * + *
+     * A structured headquarters location of the company, resolved from
+     * [Company.hq_location][] if provided.
+     * 
+ * + * .google.cloud.talent.v4beta1.Location headquarters_location = 1; + */ + public com.google.cloud.talent.v4beta1.Location getHeadquartersLocation() { + return headquartersLocation_ == null + ? com.google.cloud.talent.v4beta1.Location.getDefaultInstance() + : headquartersLocation_; + } + /** + * + * + *
+     * A structured headquarters location of the company, resolved from
+     * [Company.hq_location][] if provided.
+     * 
+ * + * .google.cloud.talent.v4beta1.Location headquarters_location = 1; + */ + public com.google.cloud.talent.v4beta1.LocationOrBuilder getHeadquartersLocationOrBuilder() { + return getHeadquartersLocation(); + } + + 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 (headquartersLocation_ != null) { + output.writeMessage(1, getHeadquartersLocation()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (headquartersLocation_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, getHeadquartersLocation()); + } + size += unknownFields.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.cloud.talent.v4beta1.Company.DerivedInfo)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Company.DerivedInfo other = + (com.google.cloud.talent.v4beta1.Company.DerivedInfo) obj; + + boolean result = true; + result = result && (hasHeadquartersLocation() == other.hasHeadquartersLocation()); + if (hasHeadquartersLocation()) { + result = result && getHeadquartersLocation().equals(other.getHeadquartersLocation()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasHeadquartersLocation()) { + hash = (37 * hash) + HEADQUARTERS_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getHeadquartersLocation().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Company.DerivedInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Company.DerivedInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Company.DerivedInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Company.DerivedInfo 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.cloud.talent.v4beta1.Company.DerivedInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Company.DerivedInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Company.DerivedInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Company.DerivedInfo 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.cloud.talent.v4beta1.Company.DerivedInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Company.DerivedInfo 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.cloud.talent.v4beta1.Company.DerivedInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Company.DerivedInfo 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.cloud.talent.v4beta1.Company.DerivedInfo 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; + } + /** + * + * + *
+     * Derived details about the company.
+     * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Company.DerivedInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Company.DerivedInfo) + com.google.cloud.talent.v4beta1.Company.DerivedInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompanyResourceProto + .internal_static_google_cloud_talent_v4beta1_Company_DerivedInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompanyResourceProto + .internal_static_google_cloud_talent_v4beta1_Company_DerivedInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Company.DerivedInfo.class, + com.google.cloud.talent.v4beta1.Company.DerivedInfo.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Company.DerivedInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (headquartersLocationBuilder_ == null) { + headquartersLocation_ = null; + } else { + headquartersLocation_ = null; + headquartersLocationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CompanyResourceProto + .internal_static_google_cloud_talent_v4beta1_Company_DerivedInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Company.DerivedInfo getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Company.DerivedInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Company.DerivedInfo build() { + com.google.cloud.talent.v4beta1.Company.DerivedInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Company.DerivedInfo buildPartial() { + com.google.cloud.talent.v4beta1.Company.DerivedInfo result = + new com.google.cloud.talent.v4beta1.Company.DerivedInfo(this); + if (headquartersLocationBuilder_ == null) { + result.headquartersLocation_ = headquartersLocation_; + } else { + result.headquartersLocation_ = headquartersLocationBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Company.DerivedInfo) { + return mergeFrom((com.google.cloud.talent.v4beta1.Company.DerivedInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Company.DerivedInfo other) { + if (other == com.google.cloud.talent.v4beta1.Company.DerivedInfo.getDefaultInstance()) + return this; + if (other.hasHeadquartersLocation()) { + mergeHeadquartersLocation(other.getHeadquartersLocation()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.Company.DerivedInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.Company.DerivedInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.talent.v4beta1.Location headquartersLocation_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Location, + com.google.cloud.talent.v4beta1.Location.Builder, + com.google.cloud.talent.v4beta1.LocationOrBuilder> + headquartersLocationBuilder_; + /** + * + * + *
+       * A structured headquarters location of the company, resolved from
+       * [Company.hq_location][] if provided.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location headquarters_location = 1; + */ + public boolean hasHeadquartersLocation() { + return headquartersLocationBuilder_ != null || headquartersLocation_ != null; + } + /** + * + * + *
+       * A structured headquarters location of the company, resolved from
+       * [Company.hq_location][] if provided.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location headquarters_location = 1; + */ + public com.google.cloud.talent.v4beta1.Location getHeadquartersLocation() { + if (headquartersLocationBuilder_ == null) { + return headquartersLocation_ == null + ? com.google.cloud.talent.v4beta1.Location.getDefaultInstance() + : headquartersLocation_; + } else { + return headquartersLocationBuilder_.getMessage(); + } + } + /** + * + * + *
+       * A structured headquarters location of the company, resolved from
+       * [Company.hq_location][] if provided.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location headquarters_location = 1; + */ + public Builder setHeadquartersLocation(com.google.cloud.talent.v4beta1.Location value) { + if (headquartersLocationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + headquartersLocation_ = value; + onChanged(); + } else { + headquartersLocationBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * A structured headquarters location of the company, resolved from
+       * [Company.hq_location][] if provided.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location headquarters_location = 1; + */ + public Builder setHeadquartersLocation( + com.google.cloud.talent.v4beta1.Location.Builder builderForValue) { + if (headquartersLocationBuilder_ == null) { + headquartersLocation_ = builderForValue.build(); + onChanged(); + } else { + headquartersLocationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * A structured headquarters location of the company, resolved from
+       * [Company.hq_location][] if provided.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location headquarters_location = 1; + */ + public Builder mergeHeadquartersLocation(com.google.cloud.talent.v4beta1.Location value) { + if (headquartersLocationBuilder_ == null) { + if (headquartersLocation_ != null) { + headquartersLocation_ = + com.google.cloud.talent.v4beta1.Location.newBuilder(headquartersLocation_) + .mergeFrom(value) + .buildPartial(); + } else { + headquartersLocation_ = value; + } + onChanged(); + } else { + headquartersLocationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * A structured headquarters location of the company, resolved from
+       * [Company.hq_location][] if provided.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location headquarters_location = 1; + */ + public Builder clearHeadquartersLocation() { + if (headquartersLocationBuilder_ == null) { + headquartersLocation_ = null; + onChanged(); + } else { + headquartersLocation_ = null; + headquartersLocationBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * A structured headquarters location of the company, resolved from
+       * [Company.hq_location][] if provided.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location headquarters_location = 1; + */ + public com.google.cloud.talent.v4beta1.Location.Builder getHeadquartersLocationBuilder() { + + onChanged(); + return getHeadquartersLocationFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A structured headquarters location of the company, resolved from
+       * [Company.hq_location][] if provided.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location headquarters_location = 1; + */ + public com.google.cloud.talent.v4beta1.LocationOrBuilder getHeadquartersLocationOrBuilder() { + if (headquartersLocationBuilder_ != null) { + return headquartersLocationBuilder_.getMessageOrBuilder(); + } else { + return headquartersLocation_ == null + ? com.google.cloud.talent.v4beta1.Location.getDefaultInstance() + : headquartersLocation_; + } + } + /** + * + * + *
+       * A structured headquarters location of the company, resolved from
+       * [Company.hq_location][] if provided.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location headquarters_location = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Location, + com.google.cloud.talent.v4beta1.Location.Builder, + com.google.cloud.talent.v4beta1.LocationOrBuilder> + getHeadquartersLocationFieldBuilder() { + if (headquartersLocationBuilder_ == null) { + headquartersLocationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Location, + com.google.cloud.talent.v4beta1.Location.Builder, + com.google.cloud.talent.v4beta1.LocationOrBuilder>( + getHeadquartersLocation(), getParentForChildren(), isClean()); + headquartersLocation_ = null; + } + return headquartersLocationBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Company.DerivedInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Company.DerivedInfo) + private static final com.google.cloud.talent.v4beta1.Company.DerivedInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Company.DerivedInfo(); + } + + public static com.google.cloud.talent.v4beta1.Company.DerivedInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DerivedInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DerivedInfo(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.Company.DerivedInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required during company update.
+   * The resource name for a company. This is generated by the service when a
+   * company is created.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required during company update.
+   * The resource name for a company. This is generated by the service when a
+   * company is created.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object displayName_; + /** + * + * + *
+   * Required.
+   * The display name of the company, for example, "Google, LLC".
+   * 
+ * + * string display_name = 2; + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The display name of the company, for example, "Google, LLC".
+   * 
+ * + * string display_name = 2; + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXTERNAL_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object externalId_; + /** + * + * + *
+   * Required.
+   * Client side company identifier, used to uniquely identify the
+   * company.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string external_id = 3; + */ + public java.lang.String getExternalId() { + java.lang.Object ref = externalId_; + 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(); + externalId_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * Client side company identifier, used to uniquely identify the
+   * company.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string external_id = 3; + */ + public com.google.protobuf.ByteString getExternalIdBytes() { + java.lang.Object ref = externalId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + externalId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SIZE_FIELD_NUMBER = 4; + private int size_; + /** + * + * + *
+   * Optional.
+   * The employer's company size.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompanySize size = 4; + */ + public int getSizeValue() { + return size_; + } + /** + * + * + *
+   * Optional.
+   * The employer's company size.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompanySize size = 4; + */ + public com.google.cloud.talent.v4beta1.CompanySize getSize() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CompanySize result = + com.google.cloud.talent.v4beta1.CompanySize.valueOf(size_); + return result == null ? com.google.cloud.talent.v4beta1.CompanySize.UNRECOGNIZED : result; + } + + public static final int HEADQUARTERS_ADDRESS_FIELD_NUMBER = 5; + private volatile java.lang.Object headquartersAddress_; + /** + * + * + *
+   * Optional.
+   * The street address of the company's main headquarters, which may be
+   * different from the job location. The service attempts
+   * to geolocate the provided address, and populates a more specific
+   * location wherever possible in
+   * [DerivedInfo.headquarters_location][google.cloud.talent.v4beta1.Company.DerivedInfo.headquarters_location].
+   * 
+ * + * string headquarters_address = 5; + */ + public java.lang.String getHeadquartersAddress() { + java.lang.Object ref = headquartersAddress_; + 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(); + headquartersAddress_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The street address of the company's main headquarters, which may be
+   * different from the job location. The service attempts
+   * to geolocate the provided address, and populates a more specific
+   * location wherever possible in
+   * [DerivedInfo.headquarters_location][google.cloud.talent.v4beta1.Company.DerivedInfo.headquarters_location].
+   * 
+ * + * string headquarters_address = 5; + */ + public com.google.protobuf.ByteString getHeadquartersAddressBytes() { + java.lang.Object ref = headquartersAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + headquartersAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HIRING_AGENCY_FIELD_NUMBER = 6; + private boolean hiringAgency_; + /** + * + * + *
+   * Optional.
+   * Set to true if it is the hiring agency that post jobs for other
+   * employers.
+   * Defaults to false if not provided.
+   * 
+ * + * bool hiring_agency = 6; + */ + public boolean getHiringAgency() { + return hiringAgency_; + } + + public static final int EEO_TEXT_FIELD_NUMBER = 7; + private volatile java.lang.Object eeoText_; + /** + * + * + *
+   * Optional.
+   * Equal Employment Opportunity legal disclaimer text to be
+   * associated with all jobs, and typically to be displayed in all
+   * roles.
+   * The maximum number of allowed characters is 500.
+   * 
+ * + * string eeo_text = 7; + */ + public java.lang.String getEeoText() { + java.lang.Object ref = eeoText_; + 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(); + eeoText_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * Equal Employment Opportunity legal disclaimer text to be
+   * associated with all jobs, and typically to be displayed in all
+   * roles.
+   * The maximum number of allowed characters is 500.
+   * 
+ * + * string eeo_text = 7; + */ + public com.google.protobuf.ByteString getEeoTextBytes() { + java.lang.Object ref = eeoText_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eeoText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WEBSITE_URI_FIELD_NUMBER = 8; + private volatile java.lang.Object websiteUri_; + /** + * + * + *
+   * Optional.
+   * The URI representing the company's primary web site or home page,
+   * for example, "https://www.google.com".
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string website_uri = 8; + */ + public java.lang.String getWebsiteUri() { + java.lang.Object ref = websiteUri_; + 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(); + websiteUri_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The URI representing the company's primary web site or home page,
+   * for example, "https://www.google.com".
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string website_uri = 8; + */ + public com.google.protobuf.ByteString getWebsiteUriBytes() { + java.lang.Object ref = websiteUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + websiteUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CAREER_SITE_URI_FIELD_NUMBER = 9; + private volatile java.lang.Object careerSiteUri_; + /** + * + * + *
+   * Optional.
+   * The URI to employer's career site or careers page on the employer's web
+   * site, for example, "https://careers.google.com".
+   * 
+ * + * string career_site_uri = 9; + */ + public java.lang.String getCareerSiteUri() { + java.lang.Object ref = careerSiteUri_; + 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(); + careerSiteUri_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The URI to employer's career site or careers page on the employer's web
+   * site, for example, "https://careers.google.com".
+   * 
+ * + * string career_site_uri = 9; + */ + public com.google.protobuf.ByteString getCareerSiteUriBytes() { + java.lang.Object ref = careerSiteUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + careerSiteUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IMAGE_URI_FIELD_NUMBER = 10; + private volatile java.lang.Object imageUri_; + /** + * + * + *
+   * Optional.
+   * A URI that hosts the employer's company logo.
+   * 
+ * + * string image_uri = 10; + */ + public java.lang.String getImageUri() { + java.lang.Object ref = imageUri_; + 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(); + imageUri_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * A URI that hosts the employer's company logo.
+   * 
+ * + * string image_uri = 10; + */ + public com.google.protobuf.ByteString getImageUriBytes() { + java.lang.Object ref = imageUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + imageUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KEYWORD_SEARCHABLE_JOB_CUSTOM_ATTRIBUTES_FIELD_NUMBER = 11; + private com.google.protobuf.LazyStringList keywordSearchableJobCustomAttributes_; + /** + * + * + *
+   * Optional.
+   * A list of keys of filterable
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
+   * whose corresponding `string_values` are used in keyword search. Jobs with
+   * `string_values` under these specified field keys are returned if any
+   * of the values matches the search keyword. Custom field values with
+   * parenthesis, brackets and special symbols won't be properly searchable,
+   * and those keyword queries need to be surrounded by quotes.
+   * 
+ * + * repeated string keyword_searchable_job_custom_attributes = 11; + */ + public com.google.protobuf.ProtocolStringList getKeywordSearchableJobCustomAttributesList() { + return keywordSearchableJobCustomAttributes_; + } + /** + * + * + *
+   * Optional.
+   * A list of keys of filterable
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
+   * whose corresponding `string_values` are used in keyword search. Jobs with
+   * `string_values` under these specified field keys are returned if any
+   * of the values matches the search keyword. Custom field values with
+   * parenthesis, brackets and special symbols won't be properly searchable,
+   * and those keyword queries need to be surrounded by quotes.
+   * 
+ * + * repeated string keyword_searchable_job_custom_attributes = 11; + */ + public int getKeywordSearchableJobCustomAttributesCount() { + return keywordSearchableJobCustomAttributes_.size(); + } + /** + * + * + *
+   * Optional.
+   * A list of keys of filterable
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
+   * whose corresponding `string_values` are used in keyword search. Jobs with
+   * `string_values` under these specified field keys are returned if any
+   * of the values matches the search keyword. Custom field values with
+   * parenthesis, brackets and special symbols won't be properly searchable,
+   * and those keyword queries need to be surrounded by quotes.
+   * 
+ * + * repeated string keyword_searchable_job_custom_attributes = 11; + */ + public java.lang.String getKeywordSearchableJobCustomAttributes(int index) { + return keywordSearchableJobCustomAttributes_.get(index); + } + /** + * + * + *
+   * Optional.
+   * A list of keys of filterable
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
+   * whose corresponding `string_values` are used in keyword search. Jobs with
+   * `string_values` under these specified field keys are returned if any
+   * of the values matches the search keyword. Custom field values with
+   * parenthesis, brackets and special symbols won't be properly searchable,
+   * and those keyword queries need to be surrounded by quotes.
+   * 
+ * + * repeated string keyword_searchable_job_custom_attributes = 11; + */ + public com.google.protobuf.ByteString getKeywordSearchableJobCustomAttributesBytes(int index) { + return keywordSearchableJobCustomAttributes_.getByteString(index); + } + + public static final int DERIVED_INFO_FIELD_NUMBER = 12; + private com.google.cloud.talent.v4beta1.Company.DerivedInfo derivedInfo_; + /** + * + * + *
+   * Output only. Derived details about the company.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company.DerivedInfo derived_info = 12; + */ + public boolean hasDerivedInfo() { + return derivedInfo_ != null; + } + /** + * + * + *
+   * Output only. Derived details about the company.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company.DerivedInfo derived_info = 12; + */ + public com.google.cloud.talent.v4beta1.Company.DerivedInfo getDerivedInfo() { + return derivedInfo_ == null + ? com.google.cloud.talent.v4beta1.Company.DerivedInfo.getDefaultInstance() + : derivedInfo_; + } + /** + * + * + *
+   * Output only. Derived details about the company.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company.DerivedInfo derived_info = 12; + */ + public com.google.cloud.talent.v4beta1.Company.DerivedInfoOrBuilder getDerivedInfoOrBuilder() { + return getDerivedInfo(); + } + + public static final int SUSPENDED_FIELD_NUMBER = 13; + private boolean suspended_; + /** + * + * + *
+   * Output only. Indicates whether a company is flagged to be suspended from
+   * public availability by the service when job content appears suspicious,
+   * abusive, or spammy.
+   * 
+ * + * bool suspended = 13; + */ + public boolean getSuspended() { + return suspended_; + } + + 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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (!getExternalIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, externalId_); + } + if (size_ != com.google.cloud.talent.v4beta1.CompanySize.COMPANY_SIZE_UNSPECIFIED.getNumber()) { + output.writeEnum(4, size_); + } + if (!getHeadquartersAddressBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, headquartersAddress_); + } + if (hiringAgency_ != false) { + output.writeBool(6, hiringAgency_); + } + if (!getEeoTextBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, eeoText_); + } + if (!getWebsiteUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, websiteUri_); + } + if (!getCareerSiteUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, careerSiteUri_); + } + if (!getImageUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, imageUri_); + } + for (int i = 0; i < keywordSearchableJobCustomAttributes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 11, keywordSearchableJobCustomAttributes_.getRaw(i)); + } + if (derivedInfo_ != null) { + output.writeMessage(12, getDerivedInfo()); + } + if (suspended_ != false) { + output.writeBool(13, suspended_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (!getExternalIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, externalId_); + } + if (size_ != com.google.cloud.talent.v4beta1.CompanySize.COMPANY_SIZE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, size_); + } + if (!getHeadquartersAddressBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, headquartersAddress_); + } + if (hiringAgency_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, hiringAgency_); + } + if (!getEeoTextBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, eeoText_); + } + if (!getWebsiteUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, websiteUri_); + } + if (!getCareerSiteUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, careerSiteUri_); + } + if (!getImageUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, imageUri_); + } + { + int dataSize = 0; + for (int i = 0; i < keywordSearchableJobCustomAttributes_.size(); i++) { + dataSize += computeStringSizeNoTag(keywordSearchableJobCustomAttributes_.getRaw(i)); + } + size += dataSize; + size += 1 * getKeywordSearchableJobCustomAttributesList().size(); + } + if (derivedInfo_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getDerivedInfo()); + } + if (suspended_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, suspended_); + } + size += unknownFields.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.cloud.talent.v4beta1.Company)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Company other = (com.google.cloud.talent.v4beta1.Company) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && getDisplayName().equals(other.getDisplayName()); + result = result && getExternalId().equals(other.getExternalId()); + result = result && size_ == other.size_; + result = result && getHeadquartersAddress().equals(other.getHeadquartersAddress()); + result = result && (getHiringAgency() == other.getHiringAgency()); + result = result && getEeoText().equals(other.getEeoText()); + result = result && getWebsiteUri().equals(other.getWebsiteUri()); + result = result && getCareerSiteUri().equals(other.getCareerSiteUri()); + result = result && getImageUri().equals(other.getImageUri()); + result = + result + && getKeywordSearchableJobCustomAttributesList() + .equals(other.getKeywordSearchableJobCustomAttributesList()); + result = result && (hasDerivedInfo() == other.hasDerivedInfo()); + if (hasDerivedInfo()) { + result = result && getDerivedInfo().equals(other.getDerivedInfo()); + } + result = result && (getSuspended() == other.getSuspended()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + EXTERNAL_ID_FIELD_NUMBER; + hash = (53 * hash) + getExternalId().hashCode(); + hash = (37 * hash) + SIZE_FIELD_NUMBER; + hash = (53 * hash) + size_; + hash = (37 * hash) + HEADQUARTERS_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getHeadquartersAddress().hashCode(); + hash = (37 * hash) + HIRING_AGENCY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHiringAgency()); + hash = (37 * hash) + EEO_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getEeoText().hashCode(); + hash = (37 * hash) + WEBSITE_URI_FIELD_NUMBER; + hash = (53 * hash) + getWebsiteUri().hashCode(); + hash = (37 * hash) + CAREER_SITE_URI_FIELD_NUMBER; + hash = (53 * hash) + getCareerSiteUri().hashCode(); + hash = (37 * hash) + IMAGE_URI_FIELD_NUMBER; + hash = (53 * hash) + getImageUri().hashCode(); + if (getKeywordSearchableJobCustomAttributesCount() > 0) { + hash = (37 * hash) + KEYWORD_SEARCHABLE_JOB_CUSTOM_ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getKeywordSearchableJobCustomAttributesList().hashCode(); + } + if (hasDerivedInfo()) { + hash = (37 * hash) + DERIVED_INFO_FIELD_NUMBER; + hash = (53 * hash) + getDerivedInfo().hashCode(); + } + hash = (37 * hash) + SUSPENDED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSuspended()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Company parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Company parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Company parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Company 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.cloud.talent.v4beta1.Company parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Company parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Company parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Company 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.cloud.talent.v4beta1.Company parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Company 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.cloud.talent.v4beta1.Company parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Company 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.cloud.talent.v4beta1.Company 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 Company resource represents a company in the service. A company is the
+   * entity that owns job postings, that is, the hiring entity responsible for
+   * employing applicants for the job position.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Company} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Company) + com.google.cloud.talent.v4beta1.CompanyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompanyResourceProto + .internal_static_google_cloud_talent_v4beta1_Company_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompanyResourceProto + .internal_static_google_cloud_talent_v4beta1_Company_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Company.class, + com.google.cloud.talent.v4beta1.Company.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Company.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + displayName_ = ""; + + externalId_ = ""; + + size_ = 0; + + headquartersAddress_ = ""; + + hiringAgency_ = false; + + eeoText_ = ""; + + websiteUri_ = ""; + + careerSiteUri_ = ""; + + imageUri_ = ""; + + keywordSearchableJobCustomAttributes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000400); + if (derivedInfoBuilder_ == null) { + derivedInfo_ = null; + } else { + derivedInfo_ = null; + derivedInfoBuilder_ = null; + } + suspended_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CompanyResourceProto + .internal_static_google_cloud_talent_v4beta1_Company_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Company getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Company.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Company build() { + com.google.cloud.talent.v4beta1.Company result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Company buildPartial() { + com.google.cloud.talent.v4beta1.Company result = + new com.google.cloud.talent.v4beta1.Company(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.name_ = name_; + result.displayName_ = displayName_; + result.externalId_ = externalId_; + result.size_ = size_; + result.headquartersAddress_ = headquartersAddress_; + result.hiringAgency_ = hiringAgency_; + result.eeoText_ = eeoText_; + result.websiteUri_ = websiteUri_; + result.careerSiteUri_ = careerSiteUri_; + result.imageUri_ = imageUri_; + if (((bitField0_ & 0x00000400) == 0x00000400)) { + keywordSearchableJobCustomAttributes_ = + keywordSearchableJobCustomAttributes_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.keywordSearchableJobCustomAttributes_ = keywordSearchableJobCustomAttributes_; + if (derivedInfoBuilder_ == null) { + result.derivedInfo_ = derivedInfo_; + } else { + result.derivedInfo_ = derivedInfoBuilder_.build(); + } + result.suspended_ = suspended_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Company) { + return mergeFrom((com.google.cloud.talent.v4beta1.Company) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Company other) { + if (other == com.google.cloud.talent.v4beta1.Company.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (!other.getExternalId().isEmpty()) { + externalId_ = other.externalId_; + onChanged(); + } + if (other.size_ != 0) { + setSizeValue(other.getSizeValue()); + } + if (!other.getHeadquartersAddress().isEmpty()) { + headquartersAddress_ = other.headquartersAddress_; + onChanged(); + } + if (other.getHiringAgency() != false) { + setHiringAgency(other.getHiringAgency()); + } + if (!other.getEeoText().isEmpty()) { + eeoText_ = other.eeoText_; + onChanged(); + } + if (!other.getWebsiteUri().isEmpty()) { + websiteUri_ = other.websiteUri_; + onChanged(); + } + if (!other.getCareerSiteUri().isEmpty()) { + careerSiteUri_ = other.careerSiteUri_; + onChanged(); + } + if (!other.getImageUri().isEmpty()) { + imageUri_ = other.imageUri_; + onChanged(); + } + if (!other.keywordSearchableJobCustomAttributes_.isEmpty()) { + if (keywordSearchableJobCustomAttributes_.isEmpty()) { + keywordSearchableJobCustomAttributes_ = other.keywordSearchableJobCustomAttributes_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureKeywordSearchableJobCustomAttributesIsMutable(); + keywordSearchableJobCustomAttributes_.addAll(other.keywordSearchableJobCustomAttributes_); + } + onChanged(); + } + if (other.hasDerivedInfo()) { + mergeDerivedInfo(other.getDerivedInfo()); + } + if (other.getSuspended() != false) { + setSuspended(other.getSuspended()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.Company parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.Company) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required during company update.
+     * The resource name for a company. This is generated by the service when a
+     * company is created.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required during company update.
+     * The resource name for a company. This is generated by the service when a
+     * company is created.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required during company update.
+     * The resource name for a company. This is generated by the service when a
+     * company is created.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required during company update.
+     * The resource name for a company. This is generated by the service when a
+     * company is created.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required during company update.
+     * The resource name for a company. This is generated by the service when a
+     * company is created.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Required.
+     * The display name of the company, for example, "Google, LLC".
+     * 
+ * + * string display_name = 2; + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The display name of the company, for example, "Google, LLC".
+     * 
+ * + * string display_name = 2; + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The display name of the company, for example, "Google, LLC".
+     * 
+ * + * string display_name = 2; + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The display name of the company, for example, "Google, LLC".
+     * 
+ * + * string display_name = 2; + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The display name of the company, for example, "Google, LLC".
+     * 
+ * + * string display_name = 2; + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + private java.lang.Object externalId_ = ""; + /** + * + * + *
+     * Required.
+     * Client side company identifier, used to uniquely identify the
+     * company.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string external_id = 3; + */ + public java.lang.String getExternalId() { + java.lang.Object ref = externalId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + externalId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * Client side company identifier, used to uniquely identify the
+     * company.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string external_id = 3; + */ + public com.google.protobuf.ByteString getExternalIdBytes() { + java.lang.Object ref = externalId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + externalId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * Client side company identifier, used to uniquely identify the
+     * company.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string external_id = 3; + */ + public Builder setExternalId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + externalId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Client side company identifier, used to uniquely identify the
+     * company.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string external_id = 3; + */ + public Builder clearExternalId() { + + externalId_ = getDefaultInstance().getExternalId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Client side company identifier, used to uniquely identify the
+     * company.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string external_id = 3; + */ + public Builder setExternalIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + externalId_ = value; + onChanged(); + return this; + } + + private int size_ = 0; + /** + * + * + *
+     * Optional.
+     * The employer's company size.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompanySize size = 4; + */ + public int getSizeValue() { + return size_; + } + /** + * + * + *
+     * Optional.
+     * The employer's company size.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompanySize size = 4; + */ + public Builder setSizeValue(int value) { + size_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The employer's company size.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompanySize size = 4; + */ + public com.google.cloud.talent.v4beta1.CompanySize getSize() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CompanySize result = + com.google.cloud.talent.v4beta1.CompanySize.valueOf(size_); + return result == null ? com.google.cloud.talent.v4beta1.CompanySize.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Optional.
+     * The employer's company size.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompanySize size = 4; + */ + public Builder setSize(com.google.cloud.talent.v4beta1.CompanySize value) { + if (value == null) { + throw new NullPointerException(); + } + + size_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The employer's company size.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompanySize size = 4; + */ + public Builder clearSize() { + + size_ = 0; + onChanged(); + return this; + } + + private java.lang.Object headquartersAddress_ = ""; + /** + * + * + *
+     * Optional.
+     * The street address of the company's main headquarters, which may be
+     * different from the job location. The service attempts
+     * to geolocate the provided address, and populates a more specific
+     * location wherever possible in
+     * [DerivedInfo.headquarters_location][google.cloud.talent.v4beta1.Company.DerivedInfo.headquarters_location].
+     * 
+ * + * string headquarters_address = 5; + */ + public java.lang.String getHeadquartersAddress() { + java.lang.Object ref = headquartersAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + headquartersAddress_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The street address of the company's main headquarters, which may be
+     * different from the job location. The service attempts
+     * to geolocate the provided address, and populates a more specific
+     * location wherever possible in
+     * [DerivedInfo.headquarters_location][google.cloud.talent.v4beta1.Company.DerivedInfo.headquarters_location].
+     * 
+ * + * string headquarters_address = 5; + */ + public com.google.protobuf.ByteString getHeadquartersAddressBytes() { + java.lang.Object ref = headquartersAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + headquartersAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The street address of the company's main headquarters, which may be
+     * different from the job location. The service attempts
+     * to geolocate the provided address, and populates a more specific
+     * location wherever possible in
+     * [DerivedInfo.headquarters_location][google.cloud.talent.v4beta1.Company.DerivedInfo.headquarters_location].
+     * 
+ * + * string headquarters_address = 5; + */ + public Builder setHeadquartersAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + headquartersAddress_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The street address of the company's main headquarters, which may be
+     * different from the job location. The service attempts
+     * to geolocate the provided address, and populates a more specific
+     * location wherever possible in
+     * [DerivedInfo.headquarters_location][google.cloud.talent.v4beta1.Company.DerivedInfo.headquarters_location].
+     * 
+ * + * string headquarters_address = 5; + */ + public Builder clearHeadquartersAddress() { + + headquartersAddress_ = getDefaultInstance().getHeadquartersAddress(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The street address of the company's main headquarters, which may be
+     * different from the job location. The service attempts
+     * to geolocate the provided address, and populates a more specific
+     * location wherever possible in
+     * [DerivedInfo.headquarters_location][google.cloud.talent.v4beta1.Company.DerivedInfo.headquarters_location].
+     * 
+ * + * string headquarters_address = 5; + */ + public Builder setHeadquartersAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + headquartersAddress_ = value; + onChanged(); + return this; + } + + private boolean hiringAgency_; + /** + * + * + *
+     * Optional.
+     * Set to true if it is the hiring agency that post jobs for other
+     * employers.
+     * Defaults to false if not provided.
+     * 
+ * + * bool hiring_agency = 6; + */ + public boolean getHiringAgency() { + return hiringAgency_; + } + /** + * + * + *
+     * Optional.
+     * Set to true if it is the hiring agency that post jobs for other
+     * employers.
+     * Defaults to false if not provided.
+     * 
+ * + * bool hiring_agency = 6; + */ + public Builder setHiringAgency(boolean value) { + + hiringAgency_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Set to true if it is the hiring agency that post jobs for other
+     * employers.
+     * Defaults to false if not provided.
+     * 
+ * + * bool hiring_agency = 6; + */ + public Builder clearHiringAgency() { + + hiringAgency_ = false; + onChanged(); + return this; + } + + private java.lang.Object eeoText_ = ""; + /** + * + * + *
+     * Optional.
+     * Equal Employment Opportunity legal disclaimer text to be
+     * associated with all jobs, and typically to be displayed in all
+     * roles.
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * string eeo_text = 7; + */ + public java.lang.String getEeoText() { + java.lang.Object ref = eeoText_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + eeoText_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Equal Employment Opportunity legal disclaimer text to be
+     * associated with all jobs, and typically to be displayed in all
+     * roles.
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * string eeo_text = 7; + */ + public com.google.protobuf.ByteString getEeoTextBytes() { + java.lang.Object ref = eeoText_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eeoText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Equal Employment Opportunity legal disclaimer text to be
+     * associated with all jobs, and typically to be displayed in all
+     * roles.
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * string eeo_text = 7; + */ + public Builder setEeoText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + eeoText_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Equal Employment Opportunity legal disclaimer text to be
+     * associated with all jobs, and typically to be displayed in all
+     * roles.
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * string eeo_text = 7; + */ + public Builder clearEeoText() { + + eeoText_ = getDefaultInstance().getEeoText(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Equal Employment Opportunity legal disclaimer text to be
+     * associated with all jobs, and typically to be displayed in all
+     * roles.
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * string eeo_text = 7; + */ + public Builder setEeoTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + eeoText_ = value; + onChanged(); + return this; + } + + private java.lang.Object websiteUri_ = ""; + /** + * + * + *
+     * Optional.
+     * The URI representing the company's primary web site or home page,
+     * for example, "https://www.google.com".
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string website_uri = 8; + */ + public java.lang.String getWebsiteUri() { + java.lang.Object ref = websiteUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + websiteUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The URI representing the company's primary web site or home page,
+     * for example, "https://www.google.com".
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string website_uri = 8; + */ + public com.google.protobuf.ByteString getWebsiteUriBytes() { + java.lang.Object ref = websiteUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + websiteUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The URI representing the company's primary web site or home page,
+     * for example, "https://www.google.com".
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string website_uri = 8; + */ + public Builder setWebsiteUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + websiteUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The URI representing the company's primary web site or home page,
+     * for example, "https://www.google.com".
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string website_uri = 8; + */ + public Builder clearWebsiteUri() { + + websiteUri_ = getDefaultInstance().getWebsiteUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The URI representing the company's primary web site or home page,
+     * for example, "https://www.google.com".
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string website_uri = 8; + */ + public Builder setWebsiteUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + websiteUri_ = value; + onChanged(); + return this; + } + + private java.lang.Object careerSiteUri_ = ""; + /** + * + * + *
+     * Optional.
+     * The URI to employer's career site or careers page on the employer's web
+     * site, for example, "https://careers.google.com".
+     * 
+ * + * string career_site_uri = 9; + */ + public java.lang.String getCareerSiteUri() { + java.lang.Object ref = careerSiteUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + careerSiteUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The URI to employer's career site or careers page on the employer's web
+     * site, for example, "https://careers.google.com".
+     * 
+ * + * string career_site_uri = 9; + */ + public com.google.protobuf.ByteString getCareerSiteUriBytes() { + java.lang.Object ref = careerSiteUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + careerSiteUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The URI to employer's career site or careers page on the employer's web
+     * site, for example, "https://careers.google.com".
+     * 
+ * + * string career_site_uri = 9; + */ + public Builder setCareerSiteUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + careerSiteUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The URI to employer's career site or careers page on the employer's web
+     * site, for example, "https://careers.google.com".
+     * 
+ * + * string career_site_uri = 9; + */ + public Builder clearCareerSiteUri() { + + careerSiteUri_ = getDefaultInstance().getCareerSiteUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The URI to employer's career site or careers page on the employer's web
+     * site, for example, "https://careers.google.com".
+     * 
+ * + * string career_site_uri = 9; + */ + public Builder setCareerSiteUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + careerSiteUri_ = value; + onChanged(); + return this; + } + + private java.lang.Object imageUri_ = ""; + /** + * + * + *
+     * Optional.
+     * A URI that hosts the employer's company logo.
+     * 
+ * + * string image_uri = 10; + */ + public java.lang.String getImageUri() { + java.lang.Object ref = imageUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + imageUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * A URI that hosts the employer's company logo.
+     * 
+ * + * string image_uri = 10; + */ + public com.google.protobuf.ByteString getImageUriBytes() { + java.lang.Object ref = imageUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + imageUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * A URI that hosts the employer's company logo.
+     * 
+ * + * string image_uri = 10; + */ + public Builder setImageUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + imageUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A URI that hosts the employer's company logo.
+     * 
+ * + * string image_uri = 10; + */ + public Builder clearImageUri() { + + imageUri_ = getDefaultInstance().getImageUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A URI that hosts the employer's company logo.
+     * 
+ * + * string image_uri = 10; + */ + public Builder setImageUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + imageUri_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList keywordSearchableJobCustomAttributes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureKeywordSearchableJobCustomAttributesIsMutable() { + if (!((bitField0_ & 0x00000400) == 0x00000400)) { + keywordSearchableJobCustomAttributes_ = + new com.google.protobuf.LazyStringArrayList(keywordSearchableJobCustomAttributes_); + bitField0_ |= 0x00000400; + } + } + /** + * + * + *
+     * Optional.
+     * A list of keys of filterable
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
+     * whose corresponding `string_values` are used in keyword search. Jobs with
+     * `string_values` under these specified field keys are returned if any
+     * of the values matches the search keyword. Custom field values with
+     * parenthesis, brackets and special symbols won't be properly searchable,
+     * and those keyword queries need to be surrounded by quotes.
+     * 
+ * + * repeated string keyword_searchable_job_custom_attributes = 11; + */ + public com.google.protobuf.ProtocolStringList getKeywordSearchableJobCustomAttributesList() { + return keywordSearchableJobCustomAttributes_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional.
+     * A list of keys of filterable
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
+     * whose corresponding `string_values` are used in keyword search. Jobs with
+     * `string_values` under these specified field keys are returned if any
+     * of the values matches the search keyword. Custom field values with
+     * parenthesis, brackets and special symbols won't be properly searchable,
+     * and those keyword queries need to be surrounded by quotes.
+     * 
+ * + * repeated string keyword_searchable_job_custom_attributes = 11; + */ + public int getKeywordSearchableJobCustomAttributesCount() { + return keywordSearchableJobCustomAttributes_.size(); + } + /** + * + * + *
+     * Optional.
+     * A list of keys of filterable
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
+     * whose corresponding `string_values` are used in keyword search. Jobs with
+     * `string_values` under these specified field keys are returned if any
+     * of the values matches the search keyword. Custom field values with
+     * parenthesis, brackets and special symbols won't be properly searchable,
+     * and those keyword queries need to be surrounded by quotes.
+     * 
+ * + * repeated string keyword_searchable_job_custom_attributes = 11; + */ + public java.lang.String getKeywordSearchableJobCustomAttributes(int index) { + return keywordSearchableJobCustomAttributes_.get(index); + } + /** + * + * + *
+     * Optional.
+     * A list of keys of filterable
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
+     * whose corresponding `string_values` are used in keyword search. Jobs with
+     * `string_values` under these specified field keys are returned if any
+     * of the values matches the search keyword. Custom field values with
+     * parenthesis, brackets and special symbols won't be properly searchable,
+     * and those keyword queries need to be surrounded by quotes.
+     * 
+ * + * repeated string keyword_searchable_job_custom_attributes = 11; + */ + public com.google.protobuf.ByteString getKeywordSearchableJobCustomAttributesBytes(int index) { + return keywordSearchableJobCustomAttributes_.getByteString(index); + } + /** + * + * + *
+     * Optional.
+     * A list of keys of filterable
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
+     * whose corresponding `string_values` are used in keyword search. Jobs with
+     * `string_values` under these specified field keys are returned if any
+     * of the values matches the search keyword. Custom field values with
+     * parenthesis, brackets and special symbols won't be properly searchable,
+     * and those keyword queries need to be surrounded by quotes.
+     * 
+ * + * repeated string keyword_searchable_job_custom_attributes = 11; + */ + public Builder setKeywordSearchableJobCustomAttributes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureKeywordSearchableJobCustomAttributesIsMutable(); + keywordSearchableJobCustomAttributes_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of keys of filterable
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
+     * whose corresponding `string_values` are used in keyword search. Jobs with
+     * `string_values` under these specified field keys are returned if any
+     * of the values matches the search keyword. Custom field values with
+     * parenthesis, brackets and special symbols won't be properly searchable,
+     * and those keyword queries need to be surrounded by quotes.
+     * 
+ * + * repeated string keyword_searchable_job_custom_attributes = 11; + */ + public Builder addKeywordSearchableJobCustomAttributes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureKeywordSearchableJobCustomAttributesIsMutable(); + keywordSearchableJobCustomAttributes_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of keys of filterable
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
+     * whose corresponding `string_values` are used in keyword search. Jobs with
+     * `string_values` under these specified field keys are returned if any
+     * of the values matches the search keyword. Custom field values with
+     * parenthesis, brackets and special symbols won't be properly searchable,
+     * and those keyword queries need to be surrounded by quotes.
+     * 
+ * + * repeated string keyword_searchable_job_custom_attributes = 11; + */ + public Builder addAllKeywordSearchableJobCustomAttributes( + java.lang.Iterable values) { + ensureKeywordSearchableJobCustomAttributesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, keywordSearchableJobCustomAttributes_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of keys of filterable
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
+     * whose corresponding `string_values` are used in keyword search. Jobs with
+     * `string_values` under these specified field keys are returned if any
+     * of the values matches the search keyword. Custom field values with
+     * parenthesis, brackets and special symbols won't be properly searchable,
+     * and those keyword queries need to be surrounded by quotes.
+     * 
+ * + * repeated string keyword_searchable_job_custom_attributes = 11; + */ + public Builder clearKeywordSearchableJobCustomAttributes() { + keywordSearchableJobCustomAttributes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of keys of filterable
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
+     * whose corresponding `string_values` are used in keyword search. Jobs with
+     * `string_values` under these specified field keys are returned if any
+     * of the values matches the search keyword. Custom field values with
+     * parenthesis, brackets and special symbols won't be properly searchable,
+     * and those keyword queries need to be surrounded by quotes.
+     * 
+ * + * repeated string keyword_searchable_job_custom_attributes = 11; + */ + public Builder addKeywordSearchableJobCustomAttributesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureKeywordSearchableJobCustomAttributesIsMutable(); + keywordSearchableJobCustomAttributes_.add(value); + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.Company.DerivedInfo derivedInfo_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Company.DerivedInfo, + com.google.cloud.talent.v4beta1.Company.DerivedInfo.Builder, + com.google.cloud.talent.v4beta1.Company.DerivedInfoOrBuilder> + derivedInfoBuilder_; + /** + * + * + *
+     * Output only. Derived details about the company.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company.DerivedInfo derived_info = 12; + */ + public boolean hasDerivedInfo() { + return derivedInfoBuilder_ != null || derivedInfo_ != null; + } + /** + * + * + *
+     * Output only. Derived details about the company.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company.DerivedInfo derived_info = 12; + */ + public com.google.cloud.talent.v4beta1.Company.DerivedInfo getDerivedInfo() { + if (derivedInfoBuilder_ == null) { + return derivedInfo_ == null + ? com.google.cloud.talent.v4beta1.Company.DerivedInfo.getDefaultInstance() + : derivedInfo_; + } else { + return derivedInfoBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Derived details about the company.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company.DerivedInfo derived_info = 12; + */ + public Builder setDerivedInfo(com.google.cloud.talent.v4beta1.Company.DerivedInfo value) { + if (derivedInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + derivedInfo_ = value; + onChanged(); + } else { + derivedInfoBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Derived details about the company.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company.DerivedInfo derived_info = 12; + */ + public Builder setDerivedInfo( + com.google.cloud.talent.v4beta1.Company.DerivedInfo.Builder builderForValue) { + if (derivedInfoBuilder_ == null) { + derivedInfo_ = builderForValue.build(); + onChanged(); + } else { + derivedInfoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Derived details about the company.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company.DerivedInfo derived_info = 12; + */ + public Builder mergeDerivedInfo(com.google.cloud.talent.v4beta1.Company.DerivedInfo value) { + if (derivedInfoBuilder_ == null) { + if (derivedInfo_ != null) { + derivedInfo_ = + com.google.cloud.talent.v4beta1.Company.DerivedInfo.newBuilder(derivedInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + derivedInfo_ = value; + } + onChanged(); + } else { + derivedInfoBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Derived details about the company.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company.DerivedInfo derived_info = 12; + */ + public Builder clearDerivedInfo() { + if (derivedInfoBuilder_ == null) { + derivedInfo_ = null; + onChanged(); + } else { + derivedInfo_ = null; + derivedInfoBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Derived details about the company.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company.DerivedInfo derived_info = 12; + */ + public com.google.cloud.talent.v4beta1.Company.DerivedInfo.Builder getDerivedInfoBuilder() { + + onChanged(); + return getDerivedInfoFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Derived details about the company.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company.DerivedInfo derived_info = 12; + */ + public com.google.cloud.talent.v4beta1.Company.DerivedInfoOrBuilder getDerivedInfoOrBuilder() { + if (derivedInfoBuilder_ != null) { + return derivedInfoBuilder_.getMessageOrBuilder(); + } else { + return derivedInfo_ == null + ? com.google.cloud.talent.v4beta1.Company.DerivedInfo.getDefaultInstance() + : derivedInfo_; + } + } + /** + * + * + *
+     * Output only. Derived details about the company.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company.DerivedInfo derived_info = 12; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Company.DerivedInfo, + com.google.cloud.talent.v4beta1.Company.DerivedInfo.Builder, + com.google.cloud.talent.v4beta1.Company.DerivedInfoOrBuilder> + getDerivedInfoFieldBuilder() { + if (derivedInfoBuilder_ == null) { + derivedInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Company.DerivedInfo, + com.google.cloud.talent.v4beta1.Company.DerivedInfo.Builder, + com.google.cloud.talent.v4beta1.Company.DerivedInfoOrBuilder>( + getDerivedInfo(), getParentForChildren(), isClean()); + derivedInfo_ = null; + } + return derivedInfoBuilder_; + } + + private boolean suspended_; + /** + * + * + *
+     * Output only. Indicates whether a company is flagged to be suspended from
+     * public availability by the service when job content appears suspicious,
+     * abusive, or spammy.
+     * 
+ * + * bool suspended = 13; + */ + public boolean getSuspended() { + return suspended_; + } + /** + * + * + *
+     * Output only. Indicates whether a company is flagged to be suspended from
+     * public availability by the service when job content appears suspicious,
+     * abusive, or spammy.
+     * 
+ * + * bool suspended = 13; + */ + public Builder setSuspended(boolean value) { + + suspended_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Indicates whether a company is flagged to be suspended from
+     * public availability by the service when job content appears suspicious,
+     * abusive, or spammy.
+     * 
+ * + * bool suspended = 13; + */ + public Builder clearSuspended() { + + suspended_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Company) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Company) + private static final com.google.cloud.talent.v4beta1.Company DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Company(); + } + + public static com.google.cloud.talent.v4beta1.Company getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Company parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Company(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.Company getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyName.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyName.java new file mode 100644 index 000000000000..68ca5feb6ef0 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyName.java @@ -0,0 +1,180 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.cloud.talent.v4beta1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class CompanyName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}/companies/{company}"); + + private volatile Map fieldValuesMap; + + private final String project; + private final String company; + + public String getProject() { + return project; + } + + public String getCompany() { + return company; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private CompanyName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + company = Preconditions.checkNotNull(builder.getCompany()); + } + + public static CompanyName of(String project, String company) { + return newBuilder().setProject(project).setCompany(company).build(); + } + + public static String format(String project, String company) { + return newBuilder().setProject(project).setCompany(company).build().toString(); + } + + public static CompanyName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "CompanyName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("company")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (CompanyName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldMapBuilder.put("company", company); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project", project, "company", company); + } + + /** Builder for CompanyName. */ + public static class Builder { + + private String project; + private String company; + + public String getProject() { + return project; + } + + public String getCompany() { + return company; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setCompany(String company) { + this.company = company; + return this; + } + + private Builder() {} + + private Builder(CompanyName companyName) { + project = companyName.project; + company = companyName.company; + } + + public CompanyName build() { + return new CompanyName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof CompanyName) { + CompanyName that = (CompanyName) o; + return (this.project.equals(that.project)) && (this.company.equals(that.company)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + h *= 1000003; + h ^= company.hashCode(); + return h; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyOrBuilder.java new file mode 100644 index 000000000000..575187124d9f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyOrBuilder.java @@ -0,0 +1,374 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/company.proto + +package com.google.cloud.talent.v4beta1; + +public interface CompanyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Company) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required during company update.
+   * The resource name for a company. This is generated by the service when a
+   * company is created.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Required during company update.
+   * The resource name for a company. This is generated by the service when a
+   * company is created.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required.
+   * The display name of the company, for example, "Google, LLC".
+   * 
+ * + * string display_name = 2; + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Required.
+   * The display name of the company, for example, "Google, LLC".
+   * 
+ * + * string display_name = 2; + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Required.
+   * Client side company identifier, used to uniquely identify the
+   * company.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string external_id = 3; + */ + java.lang.String getExternalId(); + /** + * + * + *
+   * Required.
+   * Client side company identifier, used to uniquely identify the
+   * company.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string external_id = 3; + */ + com.google.protobuf.ByteString getExternalIdBytes(); + + /** + * + * + *
+   * Optional.
+   * The employer's company size.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompanySize size = 4; + */ + int getSizeValue(); + /** + * + * + *
+   * Optional.
+   * The employer's company size.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompanySize size = 4; + */ + com.google.cloud.talent.v4beta1.CompanySize getSize(); + + /** + * + * + *
+   * Optional.
+   * The street address of the company's main headquarters, which may be
+   * different from the job location. The service attempts
+   * to geolocate the provided address, and populates a more specific
+   * location wherever possible in
+   * [DerivedInfo.headquarters_location][google.cloud.talent.v4beta1.Company.DerivedInfo.headquarters_location].
+   * 
+ * + * string headquarters_address = 5; + */ + java.lang.String getHeadquartersAddress(); + /** + * + * + *
+   * Optional.
+   * The street address of the company's main headquarters, which may be
+   * different from the job location. The service attempts
+   * to geolocate the provided address, and populates a more specific
+   * location wherever possible in
+   * [DerivedInfo.headquarters_location][google.cloud.talent.v4beta1.Company.DerivedInfo.headquarters_location].
+   * 
+ * + * string headquarters_address = 5; + */ + com.google.protobuf.ByteString getHeadquartersAddressBytes(); + + /** + * + * + *
+   * Optional.
+   * Set to true if it is the hiring agency that post jobs for other
+   * employers.
+   * Defaults to false if not provided.
+   * 
+ * + * bool hiring_agency = 6; + */ + boolean getHiringAgency(); + + /** + * + * + *
+   * Optional.
+   * Equal Employment Opportunity legal disclaimer text to be
+   * associated with all jobs, and typically to be displayed in all
+   * roles.
+   * The maximum number of allowed characters is 500.
+   * 
+ * + * string eeo_text = 7; + */ + java.lang.String getEeoText(); + /** + * + * + *
+   * Optional.
+   * Equal Employment Opportunity legal disclaimer text to be
+   * associated with all jobs, and typically to be displayed in all
+   * roles.
+   * The maximum number of allowed characters is 500.
+   * 
+ * + * string eeo_text = 7; + */ + com.google.protobuf.ByteString getEeoTextBytes(); + + /** + * + * + *
+   * Optional.
+   * The URI representing the company's primary web site or home page,
+   * for example, "https://www.google.com".
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string website_uri = 8; + */ + java.lang.String getWebsiteUri(); + /** + * + * + *
+   * Optional.
+   * The URI representing the company's primary web site or home page,
+   * for example, "https://www.google.com".
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string website_uri = 8; + */ + com.google.protobuf.ByteString getWebsiteUriBytes(); + + /** + * + * + *
+   * Optional.
+   * The URI to employer's career site or careers page on the employer's web
+   * site, for example, "https://careers.google.com".
+   * 
+ * + * string career_site_uri = 9; + */ + java.lang.String getCareerSiteUri(); + /** + * + * + *
+   * Optional.
+   * The URI to employer's career site or careers page on the employer's web
+   * site, for example, "https://careers.google.com".
+   * 
+ * + * string career_site_uri = 9; + */ + com.google.protobuf.ByteString getCareerSiteUriBytes(); + + /** + * + * + *
+   * Optional.
+   * A URI that hosts the employer's company logo.
+   * 
+ * + * string image_uri = 10; + */ + java.lang.String getImageUri(); + /** + * + * + *
+   * Optional.
+   * A URI that hosts the employer's company logo.
+   * 
+ * + * string image_uri = 10; + */ + com.google.protobuf.ByteString getImageUriBytes(); + + /** + * + * + *
+   * Optional.
+   * A list of keys of filterable
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
+   * whose corresponding `string_values` are used in keyword search. Jobs with
+   * `string_values` under these specified field keys are returned if any
+   * of the values matches the search keyword. Custom field values with
+   * parenthesis, brackets and special symbols won't be properly searchable,
+   * and those keyword queries need to be surrounded by quotes.
+   * 
+ * + * repeated string keyword_searchable_job_custom_attributes = 11; + */ + java.util.List getKeywordSearchableJobCustomAttributesList(); + /** + * + * + *
+   * Optional.
+   * A list of keys of filterable
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
+   * whose corresponding `string_values` are used in keyword search. Jobs with
+   * `string_values` under these specified field keys are returned if any
+   * of the values matches the search keyword. Custom field values with
+   * parenthesis, brackets and special symbols won't be properly searchable,
+   * and those keyword queries need to be surrounded by quotes.
+   * 
+ * + * repeated string keyword_searchable_job_custom_attributes = 11; + */ + int getKeywordSearchableJobCustomAttributesCount(); + /** + * + * + *
+   * Optional.
+   * A list of keys of filterable
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
+   * whose corresponding `string_values` are used in keyword search. Jobs with
+   * `string_values` under these specified field keys are returned if any
+   * of the values matches the search keyword. Custom field values with
+   * parenthesis, brackets and special symbols won't be properly searchable,
+   * and those keyword queries need to be surrounded by quotes.
+   * 
+ * + * repeated string keyword_searchable_job_custom_attributes = 11; + */ + java.lang.String getKeywordSearchableJobCustomAttributes(int index); + /** + * + * + *
+   * Optional.
+   * A list of keys of filterable
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes],
+   * whose corresponding `string_values` are used in keyword search. Jobs with
+   * `string_values` under these specified field keys are returned if any
+   * of the values matches the search keyword. Custom field values with
+   * parenthesis, brackets and special symbols won't be properly searchable,
+   * and those keyword queries need to be surrounded by quotes.
+   * 
+ * + * repeated string keyword_searchable_job_custom_attributes = 11; + */ + com.google.protobuf.ByteString getKeywordSearchableJobCustomAttributesBytes(int index); + + /** + * + * + *
+   * Output only. Derived details about the company.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company.DerivedInfo derived_info = 12; + */ + boolean hasDerivedInfo(); + /** + * + * + *
+   * Output only. Derived details about the company.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company.DerivedInfo derived_info = 12; + */ + com.google.cloud.talent.v4beta1.Company.DerivedInfo getDerivedInfo(); + /** + * + * + *
+   * Output only. Derived details about the company.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company.DerivedInfo derived_info = 12; + */ + com.google.cloud.talent.v4beta1.Company.DerivedInfoOrBuilder getDerivedInfoOrBuilder(); + + /** + * + * + *
+   * Output only. Indicates whether a company is flagged to be suspended from
+   * public availability by the service when job content appears suspicious,
+   * abusive, or spammy.
+   * 
+ * + * bool suspended = 13; + */ + boolean getSuspended(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyResourceProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyResourceProto.java new file mode 100644 index 000000000000..c5c25a655b90 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyResourceProto.java @@ -0,0 +1,101 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/company.proto + +package com.google.cloud.talent.v4beta1; + +public final class CompanyResourceProto { + private CompanyResourceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Company_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Company_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Company_DerivedInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Company_DerivedInfo_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n)google/cloud/talent/v4beta1/company.pr" + + "oto\022\033google.cloud.talent.v4beta1\032\034google" + + "/api/annotations.proto\032(google/cloud/tal" + + "ent/v4beta1/common.proto\"\344\003\n\007Company\022\014\n\004" + + "name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022\023\n\013exte" + + "rnal_id\030\003 \001(\t\0226\n\004size\030\004 \001(\0162(.google.clo" + + "ud.talent.v4beta1.CompanySize\022\034\n\024headqua" + + "rters_address\030\005 \001(\t\022\025\n\rhiring_agency\030\006 \001" + + "(\010\022\020\n\010eeo_text\030\007 \001(\t\022\023\n\013website_uri\030\010 \001(" + + "\t\022\027\n\017career_site_uri\030\t \001(\t\022\021\n\timage_uri\030" + + "\n \001(\t\0220\n(keyword_searchable_job_custom_a" + + "ttributes\030\013 \003(\t\022F\n\014derived_info\030\014 \001(\01320." + + "google.cloud.talent.v4beta1.Company.Deri" + + "vedInfo\022\021\n\tsuspended\030\r \001(\010\032S\n\013DerivedInf" + + "o\022D\n\025headquarters_location\030\001 \001(\0132%.googl" + + "e.cloud.talent.v4beta1.LocationB\202\001\n\037com." + + "google.cloud.talent.v4beta1B\024CompanyReso" + + "urceProtoP\001ZAgoogle.golang.org/genproto/" + + "googleapis/cloud/talent/v4beta1;talent\242\002" + + "\003CTSb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_talent_v4beta1_Company_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_talent_v4beta1_Company_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Company_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "ExternalId", + "Size", + "HeadquartersAddress", + "HiringAgency", + "EeoText", + "WebsiteUri", + "CareerSiteUri", + "ImageUri", + "KeywordSearchableJobCustomAttributes", + "DerivedInfo", + "Suspended", + }); + internal_static_google_cloud_talent_v4beta1_Company_DerivedInfo_descriptor = + internal_static_google_cloud_talent_v4beta1_Company_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_talent_v4beta1_Company_DerivedInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Company_DerivedInfo_descriptor, + new java.lang.String[] { + "HeadquartersLocation", + }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceProto.java new file mode 100644 index 000000000000..4b042810a7d3 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceProto.java @@ -0,0 +1,173 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/company_service.proto + +package com.google.cloud.talent.v4beta1; + +public final class CompanyServiceProto { + private CompanyServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_CreateCompanyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_CreateCompanyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_GetCompanyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_GetCompanyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_UpdateCompanyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_UpdateCompanyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_DeleteCompanyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_DeleteCompanyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ListCompaniesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ListCompaniesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ListCompaniesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ListCompaniesResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n1google/cloud/talent/v4beta1/company_se" + + "rvice.proto\022\033google.cloud.talent.v4beta1" + + "\032\034google/api/annotations.proto\032(google/c" + + "loud/talent/v4beta1/common.proto\032)google" + + "/cloud/talent/v4beta1/company.proto\032\033goo" + + "gle/protobuf/empty.proto\032 google/protobu" + + "f/field_mask.proto\"]\n\024CreateCompanyReque" + + "st\022\016\n\006parent\030\001 \001(\t\0225\n\007company\030\002 \001(\0132$.go" + + "ogle.cloud.talent.v4beta1.Company\"!\n\021Get" + + "CompanyRequest\022\014\n\004name\030\001 \001(\t\"~\n\024UpdateCo" + + "mpanyRequest\0225\n\007company\030\001 \001(\0132$.google.c" + + "loud.talent.v4beta1.Company\022/\n\013update_ma" + + "sk\030\002 \001(\0132\032.google.protobuf.FieldMask\"$\n\024" + + "DeleteCompanyRequest\022\014\n\004name\030\001 \001(\t\"h\n\024Li" + + "stCompaniesRequest\022\016\n\006parent\030\001 \001(\t\022\022\n\npa" + + "ge_token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\031\n\021req" + + "uire_open_jobs\030\004 \001(\010\"\252\001\n\025ListCompaniesRe" + + "sponse\0227\n\tcompanies\030\001 \003(\0132$.google.cloud" + + ".talent.v4beta1.Company\022\027\n\017next_page_tok" + + "en\030\002 \001(\t\022?\n\010metadata\030\003 \001(\0132-.google.clou" + + "d.talent.v4beta1.ResponseMetadata2\237\006\n\016Co" + + "mpanyService\022\233\001\n\rCreateCompany\0221.google." + + "cloud.talent.v4beta1.CreateCompanyReques" + + "t\032$.google.cloud.talent.v4beta1.Company\"" + + "1\202\323\344\223\002+\"&/v4beta1/{parent=projects/*}/co" + + "mpanies:\001*\022\222\001\n\nGetCompany\022..google.cloud" + + ".talent.v4beta1.GetCompanyRequest\032$.goog" + + "le.cloud.talent.v4beta1.Company\".\202\323\344\223\002(\022" + + "&/v4beta1/{name=projects/*/companies/*}\022" + + "\243\001\n\rUpdateCompany\0221.google.cloud.talent." + + "v4beta1.UpdateCompanyRequest\032$.google.cl" + + "oud.talent.v4beta1.Company\"9\202\323\344\223\00232./v4b" + + "eta1/{company.name=projects/*/companies/" + + "*}:\001*\022\212\001\n\rDeleteCompany\0221.google.cloud.t" + + "alent.v4beta1.DeleteCompanyRequest\032\026.goo" + + "gle.protobuf.Empty\".\202\323\344\223\002(*&/v4beta1/{na" + + "me=projects/*/companies/*}\022\246\001\n\rListCompa" + + "nies\0221.google.cloud.talent.v4beta1.ListC" + + "ompaniesRequest\0322.google.cloud.talent.v4" + + "beta1.ListCompaniesResponse\".\202\323\344\223\002(\022&/v4" + + "beta1/{parent=projects/*}/companiesB\201\001\n\037" + + "com.google.cloud.talent.v4beta1B\023Company" + + "ServiceProtoP\001ZAgoogle.golang.org/genpro" + + "to/googleapis/cloud/talent/v4beta1;talen" + + "t\242\002\003CTSb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(), + com.google.cloud.talent.v4beta1.CompanyResourceProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_talent_v4beta1_CreateCompanyRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_talent_v4beta1_CreateCompanyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_CreateCompanyRequest_descriptor, + new java.lang.String[] { + "Parent", "Company", + }); + internal_static_google_cloud_talent_v4beta1_GetCompanyRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_talent_v4beta1_GetCompanyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_GetCompanyRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_talent_v4beta1_UpdateCompanyRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_talent_v4beta1_UpdateCompanyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_UpdateCompanyRequest_descriptor, + new java.lang.String[] { + "Company", "UpdateMask", + }); + internal_static_google_cloud_talent_v4beta1_DeleteCompanyRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_talent_v4beta1_DeleteCompanyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_DeleteCompanyRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_talent_v4beta1_ListCompaniesRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_talent_v4beta1_ListCompaniesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ListCompaniesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageToken", "PageSize", "RequireOpenJobs", + }); + internal_static_google_cloud_talent_v4beta1_ListCompaniesResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_talent_v4beta1_ListCompaniesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ListCompaniesResponse_descriptor, + new java.lang.String[] { + "Companies", "NextPageToken", "Metadata", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.AnnotationsProto.http); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(); + com.google.cloud.talent.v4beta1.CompanyResourceProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanySize.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanySize.java new file mode 100644 index 000000000000..1205523e13dd --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanySize.java @@ -0,0 +1,259 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * An enum that represents the size of the company.
+ * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.CompanySize} + */ +public enum CompanySize implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Default value if the size isn't specified.
+   * 
+ * + * COMPANY_SIZE_UNSPECIFIED = 0; + */ + COMPANY_SIZE_UNSPECIFIED(0), + /** + * + * + *
+   * The company has less than 50 employees.
+   * 
+ * + * MINI = 1; + */ + MINI(1), + /** + * + * + *
+   * The company has between 50 and 99 employees.
+   * 
+ * + * SMALL = 2; + */ + SMALL(2), + /** + * + * + *
+   * The company has between 100 and 499 employees.
+   * 
+ * + * SMEDIUM = 3; + */ + SMEDIUM(3), + /** + * + * + *
+   * The company has between 500 and 999 employees.
+   * 
+ * + * MEDIUM = 4; + */ + MEDIUM(4), + /** + * + * + *
+   * The company has between 1,000 and 4,999 employees.
+   * 
+ * + * BIG = 5; + */ + BIG(5), + /** + * + * + *
+   * The company has between 5,000 and 9,999 employees.
+   * 
+ * + * BIGGER = 6; + */ + BIGGER(6), + /** + * + * + *
+   * The company has 10,000 or more employees.
+   * 
+ * + * GIANT = 7; + */ + GIANT(7), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Default value if the size isn't specified.
+   * 
+ * + * COMPANY_SIZE_UNSPECIFIED = 0; + */ + public static final int COMPANY_SIZE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * The company has less than 50 employees.
+   * 
+ * + * MINI = 1; + */ + public static final int MINI_VALUE = 1; + /** + * + * + *
+   * The company has between 50 and 99 employees.
+   * 
+ * + * SMALL = 2; + */ + public static final int SMALL_VALUE = 2; + /** + * + * + *
+   * The company has between 100 and 499 employees.
+   * 
+ * + * SMEDIUM = 3; + */ + public static final int SMEDIUM_VALUE = 3; + /** + * + * + *
+   * The company has between 500 and 999 employees.
+   * 
+ * + * MEDIUM = 4; + */ + public static final int MEDIUM_VALUE = 4; + /** + * + * + *
+   * The company has between 1,000 and 4,999 employees.
+   * 
+ * + * BIG = 5; + */ + public static final int BIG_VALUE = 5; + /** + * + * + *
+   * The company has between 5,000 and 9,999 employees.
+   * 
+ * + * BIGGER = 6; + */ + public static final int BIGGER_VALUE = 6; + /** + * + * + *
+   * The company has 10,000 or more employees.
+   * 
+ * + * GIANT = 7; + */ + public static final int GIANT_VALUE = 7; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static CompanySize valueOf(int value) { + return forNumber(value); + } + + public static CompanySize forNumber(int value) { + switch (value) { + case 0: + return COMPANY_SIZE_UNSPECIFIED; + case 1: + return MINI; + case 2: + return SMALL; + case 3: + return SMEDIUM; + case 4: + return MEDIUM; + case 5: + return BIG; + case 6: + return BIGGER; + case 7: + return GIANT; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CompanySize findValueByNumber(int number) { + return CompanySize.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto.getDescriptor().getEnumTypes().get(0); + } + + private static final CompanySize[] VALUES = values(); + + public static CompanySize 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()]; + } + + private final int value; + + private CompanySize(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.CompanySize) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationFilter.java new file mode 100644 index 000000000000..a4f53092842f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationFilter.java @@ -0,0 +1,1603 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Filter on job compensation type and amount.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CompensationFilter} + */ +public final class CompensationFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.CompensationFilter) + CompensationFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use CompensationFilter.newBuilder() to construct. + private CompensationFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CompensationFilter() { + type_ = 0; + units_ = java.util.Collections.emptyList(); + includeJobsWithUnspecifiedCompensationRange_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CompensationFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 16: + { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + units_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + units_.add(rawValue); + break; + } + case 18: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + units_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + units_.add(rawValue); + } + input.popLimit(oldLimit); + break; + } + case 26: + { + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder + subBuilder = null; + if (range_ != null) { + subBuilder = range_.toBuilder(); + } + range_ = + input.readMessage( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(range_); + range_ = subBuilder.buildPartial(); + } + + break; + } + case 32: + { + includeJobsWithUnspecifiedCompensationRange_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + units_ = java.util.Collections.unmodifiableList(units_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_CompensationFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_CompensationFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CompensationFilter.class, + com.google.cloud.talent.v4beta1.CompensationFilter.Builder.class); + } + + /** + * + * + *
+   * Specify the type of filtering.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.CompensationFilter.FilterType} + */ + public enum FilterType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Filter type unspecified. Position holder, INVALID, should never be used.
+     * 
+ * + * FILTER_TYPE_UNSPECIFIED = 0; + */ + FILTER_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Filter by `base compensation entry's` unit. A job is a match if and
+     * only if the job contains a base CompensationEntry and the base
+     * CompensationEntry's unit matches provided
+     * [units][google.cloud.talent.v4beta1.CompensationFilter.units]. Populate
+     * one or more
+     * [units][google.cloud.talent.v4beta1.CompensationFilter.units].
+     * See
+     * [CompensationInfo.CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for definition of base compensation entry.
+     * 
+ * + * UNIT_ONLY = 1; + */ + UNIT_ONLY(1), + /** + * + * + *
+     * Filter by `base compensation entry's` unit and amount / range. A job
+     * is a match if and only if the job contains a base CompensationEntry, and
+     * the base entry's unit matches provided [compensation_units][] and amount
+     * or range overlaps with provided [compensation_range][].
+     * See
+     * [CompensationInfo.CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for definition of base compensation entry.
+     * Set exactly one
+     * [units][google.cloud.talent.v4beta1.CompensationFilter.units] and
+     * populate [range][google.cloud.talent.v4beta1.CompensationFilter.range].
+     * 
+ * + * UNIT_AND_AMOUNT = 2; + */ + UNIT_AND_AMOUNT(2), + /** + * + * + *
+     * Filter by annualized base compensation amount and `base compensation
+     * entry's` unit. Populate
+     * [range][google.cloud.talent.v4beta1.CompensationFilter.range] and zero or
+     * more [units][google.cloud.talent.v4beta1.CompensationFilter.units].
+     * 
+ * + * ANNUALIZED_BASE_AMOUNT = 3; + */ + ANNUALIZED_BASE_AMOUNT(3), + /** + * + * + *
+     * Filter by annualized total compensation amount and `base compensation
+     * entry's` unit . Populate
+     * [range][google.cloud.talent.v4beta1.CompensationFilter.range] and zero or
+     * more [units][google.cloud.talent.v4beta1.CompensationFilter.units].
+     * 
+ * + * ANNUALIZED_TOTAL_AMOUNT = 4; + */ + ANNUALIZED_TOTAL_AMOUNT(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Filter type unspecified. Position holder, INVALID, should never be used.
+     * 
+ * + * FILTER_TYPE_UNSPECIFIED = 0; + */ + public static final int FILTER_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Filter by `base compensation entry's` unit. A job is a match if and
+     * only if the job contains a base CompensationEntry and the base
+     * CompensationEntry's unit matches provided
+     * [units][google.cloud.talent.v4beta1.CompensationFilter.units]. Populate
+     * one or more
+     * [units][google.cloud.talent.v4beta1.CompensationFilter.units].
+     * See
+     * [CompensationInfo.CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for definition of base compensation entry.
+     * 
+ * + * UNIT_ONLY = 1; + */ + public static final int UNIT_ONLY_VALUE = 1; + /** + * + * + *
+     * Filter by `base compensation entry's` unit and amount / range. A job
+     * is a match if and only if the job contains a base CompensationEntry, and
+     * the base entry's unit matches provided [compensation_units][] and amount
+     * or range overlaps with provided [compensation_range][].
+     * See
+     * [CompensationInfo.CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for definition of base compensation entry.
+     * Set exactly one
+     * [units][google.cloud.talent.v4beta1.CompensationFilter.units] and
+     * populate [range][google.cloud.talent.v4beta1.CompensationFilter.range].
+     * 
+ * + * UNIT_AND_AMOUNT = 2; + */ + public static final int UNIT_AND_AMOUNT_VALUE = 2; + /** + * + * + *
+     * Filter by annualized base compensation amount and `base compensation
+     * entry's` unit. Populate
+     * [range][google.cloud.talent.v4beta1.CompensationFilter.range] and zero or
+     * more [units][google.cloud.talent.v4beta1.CompensationFilter.units].
+     * 
+ * + * ANNUALIZED_BASE_AMOUNT = 3; + */ + public static final int ANNUALIZED_BASE_AMOUNT_VALUE = 3; + /** + * + * + *
+     * Filter by annualized total compensation amount and `base compensation
+     * entry's` unit . Populate
+     * [range][google.cloud.talent.v4beta1.CompensationFilter.range] and zero or
+     * more [units][google.cloud.talent.v4beta1.CompensationFilter.units].
+     * 
+ * + * ANNUALIZED_TOTAL_AMOUNT = 4; + */ + public static final int ANNUALIZED_TOTAL_AMOUNT_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static FilterType valueOf(int value) { + return forNumber(value); + } + + public static FilterType forNumber(int value) { + switch (value) { + case 0: + return FILTER_TYPE_UNSPECIFIED; + case 1: + return UNIT_ONLY; + case 2: + return UNIT_AND_AMOUNT; + case 3: + return ANNUALIZED_BASE_AMOUNT; + case 4: + return ANNUALIZED_TOTAL_AMOUNT; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public FilterType findValueByNumber(int number) { + return FilterType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompensationFilter.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final FilterType[] VALUES = values(); + + public static FilterType 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()]; + } + + private final int value; + + private FilterType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.CompensationFilter.FilterType) + } + + private int bitField0_; + public static final int TYPE_FIELD_NUMBER = 1; + private int type_; + /** + * + * + *
+   * Required.
+   * Type of filter.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter.FilterType type = 1; + */ + public int getTypeValue() { + return type_; + } + /** + * + * + *
+   * Required.
+   * Type of filter.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter.FilterType type = 1; + */ + public com.google.cloud.talent.v4beta1.CompensationFilter.FilterType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CompensationFilter.FilterType result = + com.google.cloud.talent.v4beta1.CompensationFilter.FilterType.valueOf(type_); + return result == null + ? com.google.cloud.talent.v4beta1.CompensationFilter.FilterType.UNRECOGNIZED + : result; + } + + public static final int UNITS_FIELD_NUMBER = 2; + private java.util.List units_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit> + units_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit>() { + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit convert( + java.lang.Integer from) { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit result = + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.valueOf(from); + return result == null + ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.UNRECOGNIZED + : result; + } + }; + /** + * + * + *
+   * Required.
+   * Specify desired `base compensation entry's`
+   * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + */ + public java.util.List + getUnitsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit>( + units_, units_converter_); + } + /** + * + * + *
+   * Required.
+   * Specify desired `base compensation entry's`
+   * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + */ + public int getUnitsCount() { + return units_.size(); + } + /** + * + * + *
+   * Required.
+   * Specify desired `base compensation entry's`
+   * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit getUnits(int index) { + return units_converter_.convert(units_.get(index)); + } + /** + * + * + *
+   * Required.
+   * Specify desired `base compensation entry's`
+   * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + */ + public java.util.List getUnitsValueList() { + return units_; + } + /** + * + * + *
+   * Required.
+   * Specify desired `base compensation entry's`
+   * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + */ + public int getUnitsValue(int index) { + return units_.get(index); + } + + private int unitsMemoizedSerializedSize; + + public static final int RANGE_FIELD_NUMBER = 3; + private com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range_; + /** + * + * + *
+   * Optional.
+   * Compensation range.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 3; + */ + public boolean hasRange() { + return range_ != null; + } + /** + * + * + *
+   * Optional.
+   * Compensation range.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 3; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange getRange() { + return range_ == null + ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.getDefaultInstance() + : range_; + } + /** + * + * + *
+   * Optional.
+   * Compensation range.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 3; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder + getRangeOrBuilder() { + return getRange(); + } + + public static final int INCLUDE_JOBS_WITH_UNSPECIFIED_COMPENSATION_RANGE_FIELD_NUMBER = 4; + private boolean includeJobsWithUnspecifiedCompensationRange_; + /** + * + * + *
+   * Optional.
+   * Whether to include jobs whose compensation range is unspecified.
+   * 
+ * + * bool include_jobs_with_unspecified_compensation_range = 4; + */ + public boolean getIncludeJobsWithUnspecifiedCompensationRange() { + return includeJobsWithUnspecifiedCompensationRange_; + } + + 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 { + getSerializedSize(); + if (type_ + != com.google.cloud.talent.v4beta1.CompensationFilter.FilterType.FILTER_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, type_); + } + if (getUnitsList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(unitsMemoizedSerializedSize); + } + for (int i = 0; i < units_.size(); i++) { + output.writeEnumNoTag(units_.get(i)); + } + if (range_ != null) { + output.writeMessage(3, getRange()); + } + if (includeJobsWithUnspecifiedCompensationRange_ != false) { + output.writeBool(4, includeJobsWithUnspecifiedCompensationRange_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ + != com.google.cloud.talent.v4beta1.CompensationFilter.FilterType.FILTER_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + } + { + int dataSize = 0; + for (int i = 0; i < units_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(units_.get(i)); + } + size += dataSize; + if (!getUnitsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + unitsMemoizedSerializedSize = dataSize; + } + if (range_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRange()); + } + if (includeJobsWithUnspecifiedCompensationRange_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 4, includeJobsWithUnspecifiedCompensationRange_); + } + size += unknownFields.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.cloud.talent.v4beta1.CompensationFilter)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.CompensationFilter other = + (com.google.cloud.talent.v4beta1.CompensationFilter) obj; + + boolean result = true; + result = result && type_ == other.type_; + result = result && units_.equals(other.units_); + result = result && (hasRange() == other.hasRange()); + if (hasRange()) { + result = result && getRange().equals(other.getRange()); + } + result = + result + && (getIncludeJobsWithUnspecifiedCompensationRange() + == other.getIncludeJobsWithUnspecifiedCompensationRange()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + if (getUnitsCount() > 0) { + hash = (37 * hash) + UNITS_FIELD_NUMBER; + hash = (53 * hash) + units_.hashCode(); + } + if (hasRange()) { + hash = (37 * hash) + RANGE_FIELD_NUMBER; + hash = (53 * hash) + getRange().hashCode(); + } + hash = (37 * hash) + INCLUDE_JOBS_WITH_UNSPECIFIED_COMPENSATION_RANGE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean( + getIncludeJobsWithUnspecifiedCompensationRange()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.CompensationFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompensationFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompensationFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompensationFilter 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.cloud.talent.v4beta1.CompensationFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompensationFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompensationFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompensationFilter 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.cloud.talent.v4beta1.CompensationFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompensationFilter 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.cloud.talent.v4beta1.CompensationFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompensationFilter 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.cloud.talent.v4beta1.CompensationFilter 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; + } + /** + * + * + *
+   * Input only.
+   * Filter on job compensation type and amount.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CompensationFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.CompensationFilter) + com.google.cloud.talent.v4beta1.CompensationFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_CompensationFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_CompensationFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CompensationFilter.class, + com.google.cloud.talent.v4beta1.CompensationFilter.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.CompensationFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + type_ = 0; + + units_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + if (rangeBuilder_ == null) { + range_ = null; + } else { + range_ = null; + rangeBuilder_ = null; + } + includeJobsWithUnspecifiedCompensationRange_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_CompensationFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompensationFilter getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.CompensationFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompensationFilter build() { + com.google.cloud.talent.v4beta1.CompensationFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompensationFilter buildPartial() { + com.google.cloud.talent.v4beta1.CompensationFilter result = + new com.google.cloud.talent.v4beta1.CompensationFilter(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.type_ = type_; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + units_ = java.util.Collections.unmodifiableList(units_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.units_ = units_; + if (rangeBuilder_ == null) { + result.range_ = range_; + } else { + result.range_ = rangeBuilder_.build(); + } + result.includeJobsWithUnspecifiedCompensationRange_ = + includeJobsWithUnspecifiedCompensationRange_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.CompensationFilter) { + return mergeFrom((com.google.cloud.talent.v4beta1.CompensationFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.CompensationFilter other) { + if (other == com.google.cloud.talent.v4beta1.CompensationFilter.getDefaultInstance()) + return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.units_.isEmpty()) { + if (units_.isEmpty()) { + units_ = other.units_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureUnitsIsMutable(); + units_.addAll(other.units_); + } + onChanged(); + } + if (other.hasRange()) { + mergeRange(other.getRange()); + } + if (other.getIncludeJobsWithUnspecifiedCompensationRange() != false) { + setIncludeJobsWithUnspecifiedCompensationRange( + other.getIncludeJobsWithUnspecifiedCompensationRange()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.CompensationFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.CompensationFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private int type_ = 0; + /** + * + * + *
+     * Required.
+     * Type of filter.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter.FilterType type = 1; + */ + public int getTypeValue() { + return type_; + } + /** + * + * + *
+     * Required.
+     * Type of filter.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter.FilterType type = 1; + */ + public Builder setTypeValue(int value) { + type_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Type of filter.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter.FilterType type = 1; + */ + public com.google.cloud.talent.v4beta1.CompensationFilter.FilterType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CompensationFilter.FilterType result = + com.google.cloud.talent.v4beta1.CompensationFilter.FilterType.valueOf(type_); + return result == null + ? com.google.cloud.talent.v4beta1.CompensationFilter.FilterType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required.
+     * Type of filter.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter.FilterType type = 1; + */ + public Builder setType(com.google.cloud.talent.v4beta1.CompensationFilter.FilterType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Type of filter.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter.FilterType type = 1; + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private java.util.List units_ = java.util.Collections.emptyList(); + + private void ensureUnitsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + units_ = new java.util.ArrayList(units_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Required.
+     * Specify desired `base compensation entry's`
+     * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + * + */ + public java.util.List + getUnitsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit>( + units_, units_converter_); + } + /** + * + * + *
+     * Required.
+     * Specify desired `base compensation entry's`
+     * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + * + */ + public int getUnitsCount() { + return units_.size(); + } + /** + * + * + *
+     * Required.
+     * Specify desired `base compensation entry's`
+     * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit getUnits(int index) { + return units_converter_.convert(units_.get(index)); + } + /** + * + * + *
+     * Required.
+     * Specify desired `base compensation entry's`
+     * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + * + */ + public Builder setUnits( + int index, com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnitsIsMutable(); + units_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Specify desired `base compensation entry's`
+     * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + * + */ + public Builder addUnits( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnitsIsMutable(); + units_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Specify desired `base compensation entry's`
+     * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + * + */ + public Builder addAllUnits( + java.lang.Iterable< + ? extends com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit> + values) { + ensureUnitsIsMutable(); + for (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit value : values) { + units_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Specify desired `base compensation entry's`
+     * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + * + */ + public Builder clearUnits() { + units_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Specify desired `base compensation entry's`
+     * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + * + */ + public java.util.List getUnitsValueList() { + return java.util.Collections.unmodifiableList(units_); + } + /** + * + * + *
+     * Required.
+     * Specify desired `base compensation entry's`
+     * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + * + */ + public int getUnitsValue(int index) { + return units_.get(index); + } + /** + * + * + *
+     * Required.
+     * Specify desired `base compensation entry's`
+     * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + * + */ + public Builder setUnitsValue(int index, int value) { + ensureUnitsIsMutable(); + units_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Specify desired `base compensation entry's`
+     * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + * + */ + public Builder addUnitsValue(int value) { + ensureUnitsIsMutable(); + units_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Specify desired `base compensation entry's`
+     * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + * + */ + public Builder addAllUnitsValue(java.lang.Iterable values) { + ensureUnitsIsMutable(); + for (int value : values) { + units_.add(value); + } + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder> + rangeBuilder_; + /** + * + * + *
+     * Optional.
+     * Compensation range.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 3; + */ + public boolean hasRange() { + return rangeBuilder_ != null || range_ != null; + } + /** + * + * + *
+     * Optional.
+     * Compensation range.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 3; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange getRange() { + if (rangeBuilder_ == null) { + return range_ == null + ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + .getDefaultInstance() + : range_; + } else { + return rangeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * Compensation range.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 3; + */ + public Builder setRange( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange value) { + if (rangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + range_ = value; + onChanged(); + } else { + rangeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Compensation range.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 3; + */ + public Builder setRange( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder + builderForValue) { + if (rangeBuilder_ == null) { + range_ = builderForValue.build(); + onChanged(); + } else { + rangeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Compensation range.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 3; + */ + public Builder mergeRange( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange value) { + if (rangeBuilder_ == null) { + if (range_ != null) { + range_ = + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.newBuilder(range_) + .mergeFrom(value) + .buildPartial(); + } else { + range_ = value; + } + onChanged(); + } else { + rangeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Compensation range.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 3; + */ + public Builder clearRange() { + if (rangeBuilder_ == null) { + range_ = null; + onChanged(); + } else { + range_ = null; + rangeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Compensation range.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 3; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder + getRangeBuilder() { + + onChanged(); + return getRangeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * Compensation range.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 3; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder + getRangeOrBuilder() { + if (rangeBuilder_ != null) { + return rangeBuilder_.getMessageOrBuilder(); + } else { + return range_ == null + ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + .getDefaultInstance() + : range_; + } + } + /** + * + * + *
+     * Optional.
+     * Compensation range.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder> + getRangeFieldBuilder() { + if (rangeBuilder_ == null) { + rangeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder>( + getRange(), getParentForChildren(), isClean()); + range_ = null; + } + return rangeBuilder_; + } + + private boolean includeJobsWithUnspecifiedCompensationRange_; + /** + * + * + *
+     * Optional.
+     * Whether to include jobs whose compensation range is unspecified.
+     * 
+ * + * bool include_jobs_with_unspecified_compensation_range = 4; + */ + public boolean getIncludeJobsWithUnspecifiedCompensationRange() { + return includeJobsWithUnspecifiedCompensationRange_; + } + /** + * + * + *
+     * Optional.
+     * Whether to include jobs whose compensation range is unspecified.
+     * 
+ * + * bool include_jobs_with_unspecified_compensation_range = 4; + */ + public Builder setIncludeJobsWithUnspecifiedCompensationRange(boolean value) { + + includeJobsWithUnspecifiedCompensationRange_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Whether to include jobs whose compensation range is unspecified.
+     * 
+ * + * bool include_jobs_with_unspecified_compensation_range = 4; + */ + public Builder clearIncludeJobsWithUnspecifiedCompensationRange() { + + includeJobsWithUnspecifiedCompensationRange_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.CompensationFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CompensationFilter) + private static final com.google.cloud.talent.v4beta1.CompensationFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.CompensationFilter(); + } + + public static com.google.cloud.talent.v4beta1.CompensationFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompensationFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CompensationFilter(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.CompensationFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationFilterOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationFilterOrBuilder.java new file mode 100644 index 000000000000..1671e6012df1 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationFilterOrBuilder.java @@ -0,0 +1,140 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +public interface CompensationFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.CompensationFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * Type of filter.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter.FilterType type = 1; + */ + int getTypeValue(); + /** + * + * + *
+   * Required.
+   * Type of filter.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter.FilterType type = 1; + */ + com.google.cloud.talent.v4beta1.CompensationFilter.FilterType getType(); + + /** + * + * + *
+   * Required.
+   * Specify desired `base compensation entry's`
+   * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + */ + java.util.List getUnitsList(); + /** + * + * + *
+   * Required.
+   * Specify desired `base compensation entry's`
+   * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + */ + int getUnitsCount(); + /** + * + * + *
+   * Required.
+   * Specify desired `base compensation entry's`
+   * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + */ + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit getUnits(int index); + /** + * + * + *
+   * Required.
+   * Specify desired `base compensation entry's`
+   * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + */ + java.util.List getUnitsValueList(); + /** + * + * + *
+   * Required.
+   * Specify desired `base compensation entry's`
+   * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit units = 2; + */ + int getUnitsValue(int index); + + /** + * + * + *
+   * Optional.
+   * Compensation range.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 3; + */ + boolean hasRange(); + /** + * + * + *
+   * Optional.
+   * Compensation range.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 3; + */ + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange getRange(); + /** + * + * + *
+   * Optional.
+   * Compensation range.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 3; + */ + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder getRangeOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * Whether to include jobs whose compensation range is unspecified.
+   * 
+ * + * bool include_jobs_with_unspecified_compensation_range = 4; + */ + boolean getIncludeJobsWithUnspecifiedCompensationRange(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationInfo.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationInfo.java new file mode 100644 index 000000000000..2882f322f519 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationInfo.java @@ -0,0 +1,5809 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Job compensation details.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CompensationInfo} + */ +public final class CompensationInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.CompensationInfo) + CompensationInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use CompensationInfo.newBuilder() to construct. + private CompensationInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CompensationInfo() { + entries_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CompensationInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + entries_ = + new java.util.ArrayList< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry>(); + mutable_bitField0_ |= 0x00000001; + } + entries_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.parser(), + extensionRegistry)); + break; + } + case 18: + { + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder + subBuilder = null; + if (annualizedBaseCompensationRange_ != null) { + subBuilder = annualizedBaseCompensationRange_.toBuilder(); + } + annualizedBaseCompensationRange_ = + input.readMessage( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(annualizedBaseCompensationRange_); + annualizedBaseCompensationRange_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder + subBuilder = null; + if (annualizedTotalCompensationRange_ != null) { + subBuilder = annualizedTotalCompensationRange_.toBuilder(); + } + annualizedTotalCompensationRange_ = + input.readMessage( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(annualizedTotalCompensationRange_); + annualizedTotalCompensationRange_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + entries_ = java.util.Collections.unmodifiableList(entries_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CompensationInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CompensationInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CompensationInfo.class, + com.google.cloud.talent.v4beta1.CompensationInfo.Builder.class); + } + + /** + * + * + *
+   * The type of compensation.
+   * For compensation amounts specified in non-monetary amounts,
+   * describe the compensation scheme in the
+   * [CompensationEntry.description][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.description].
+   * For example, tipping format is described in
+   * [CompensationEntry.description][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.description]
+   * (for example, "expect 15-20% tips based on customer bill.") and an estimate
+   * of the tips provided in
+   * [CompensationEntry.amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount]
+   * or
+   * [CompensationEntry.range][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.range]
+   * ($10 per hour).
+   * For example, equity is described in
+   * [CompensationEntry.description][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.description]
+   * (for example, "1% - 2% equity vesting over 4 years, 1 year cliff") and
+   * value estimated in
+   * [CompensationEntry.amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount]
+   * or
+   * [CompensationEntry.range][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.range].
+   * If no value estimate is possible, units are
+   * [CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED]
+   * and then further clarified in
+   * [CompensationEntry.description][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.description]
+   * field.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.CompensationInfo.CompensationType} + */ + public enum CompensationType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value.
+     * 
+ * + * COMPENSATION_TYPE_UNSPECIFIED = 0; + */ + COMPENSATION_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Base compensation: Refers to the fixed amount of money paid to an
+     * employee by an employer in return for work performed. Base compensation
+     * does not include benefits, bonuses or any other potential compensation
+     * from an employer.
+     * 
+ * + * BASE = 1; + */ + BASE(1), + /** + * + * + *
+     * Bonus.
+     * 
+ * + * BONUS = 2; + */ + BONUS(2), + /** + * + * + *
+     * Signing bonus.
+     * 
+ * + * SIGNING_BONUS = 3; + */ + SIGNING_BONUS(3), + /** + * + * + *
+     * Equity.
+     * 
+ * + * EQUITY = 4; + */ + EQUITY(4), + /** + * + * + *
+     * Profit sharing.
+     * 
+ * + * PROFIT_SHARING = 5; + */ + PROFIT_SHARING(5), + /** + * + * + *
+     * Commission.
+     * 
+ * + * COMMISSIONS = 6; + */ + COMMISSIONS(6), + /** + * + * + *
+     * Tips.
+     * 
+ * + * TIPS = 7; + */ + TIPS(7), + /** + * + * + *
+     * Other compensation type.
+     * 
+ * + * OTHER_COMPENSATION_TYPE = 8; + */ + OTHER_COMPENSATION_TYPE(8), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value.
+     * 
+ * + * COMPENSATION_TYPE_UNSPECIFIED = 0; + */ + public static final int COMPENSATION_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Base compensation: Refers to the fixed amount of money paid to an
+     * employee by an employer in return for work performed. Base compensation
+     * does not include benefits, bonuses or any other potential compensation
+     * from an employer.
+     * 
+ * + * BASE = 1; + */ + public static final int BASE_VALUE = 1; + /** + * + * + *
+     * Bonus.
+     * 
+ * + * BONUS = 2; + */ + public static final int BONUS_VALUE = 2; + /** + * + * + *
+     * Signing bonus.
+     * 
+ * + * SIGNING_BONUS = 3; + */ + public static final int SIGNING_BONUS_VALUE = 3; + /** + * + * + *
+     * Equity.
+     * 
+ * + * EQUITY = 4; + */ + public static final int EQUITY_VALUE = 4; + /** + * + * + *
+     * Profit sharing.
+     * 
+ * + * PROFIT_SHARING = 5; + */ + public static final int PROFIT_SHARING_VALUE = 5; + /** + * + * + *
+     * Commission.
+     * 
+ * + * COMMISSIONS = 6; + */ + public static final int COMMISSIONS_VALUE = 6; + /** + * + * + *
+     * Tips.
+     * 
+ * + * TIPS = 7; + */ + public static final int TIPS_VALUE = 7; + /** + * + * + *
+     * Other compensation type.
+     * 
+ * + * OTHER_COMPENSATION_TYPE = 8; + */ + public static final int OTHER_COMPENSATION_TYPE_VALUE = 8; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static CompensationType valueOf(int value) { + return forNumber(value); + } + + public static CompensationType forNumber(int value) { + switch (value) { + case 0: + return COMPENSATION_TYPE_UNSPECIFIED; + case 1: + return BASE; + case 2: + return BONUS; + case 3: + return SIGNING_BONUS; + case 4: + return EQUITY; + case 5: + return PROFIT_SHARING; + case 6: + return COMMISSIONS; + case 7: + return TIPS; + case 8: + return OTHER_COMPENSATION_TYPE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CompensationType findValueByNumber(int number) { + return CompensationType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompensationInfo.getDescriptor().getEnumTypes().get(0); + } + + private static final CompensationType[] VALUES = values(); + + public static CompensationType 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()]; + } + + private final int value; + + private CompensationType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.CompensationInfo.CompensationType) + } + + /** + * + * + *
+   * Pay frequency.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit} + */ + public enum CompensationUnit implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value.
+     * 
+ * + * COMPENSATION_UNIT_UNSPECIFIED = 0; + */ + COMPENSATION_UNIT_UNSPECIFIED(0), + /** + * + * + *
+     * Hourly.
+     * 
+ * + * HOURLY = 1; + */ + HOURLY(1), + /** + * + * + *
+     * Daily.
+     * 
+ * + * DAILY = 2; + */ + DAILY(2), + /** + * + * + *
+     * Weekly
+     * 
+ * + * WEEKLY = 3; + */ + WEEKLY(3), + /** + * + * + *
+     * Monthly.
+     * 
+ * + * MONTHLY = 4; + */ + MONTHLY(4), + /** + * + * + *
+     * Yearly.
+     * 
+ * + * YEARLY = 5; + */ + YEARLY(5), + /** + * + * + *
+     * One time.
+     * 
+ * + * ONE_TIME = 6; + */ + ONE_TIME(6), + /** + * + * + *
+     * Other compensation units.
+     * 
+ * + * OTHER_COMPENSATION_UNIT = 7; + */ + OTHER_COMPENSATION_UNIT(7), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value.
+     * 
+ * + * COMPENSATION_UNIT_UNSPECIFIED = 0; + */ + public static final int COMPENSATION_UNIT_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Hourly.
+     * 
+ * + * HOURLY = 1; + */ + public static final int HOURLY_VALUE = 1; + /** + * + * + *
+     * Daily.
+     * 
+ * + * DAILY = 2; + */ + public static final int DAILY_VALUE = 2; + /** + * + * + *
+     * Weekly
+     * 
+ * + * WEEKLY = 3; + */ + public static final int WEEKLY_VALUE = 3; + /** + * + * + *
+     * Monthly.
+     * 
+ * + * MONTHLY = 4; + */ + public static final int MONTHLY_VALUE = 4; + /** + * + * + *
+     * Yearly.
+     * 
+ * + * YEARLY = 5; + */ + public static final int YEARLY_VALUE = 5; + /** + * + * + *
+     * One time.
+     * 
+ * + * ONE_TIME = 6; + */ + public static final int ONE_TIME_VALUE = 6; + /** + * + * + *
+     * Other compensation units.
+     * 
+ * + * OTHER_COMPENSATION_UNIT = 7; + */ + public static final int OTHER_COMPENSATION_UNIT_VALUE = 7; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static CompensationUnit valueOf(int value) { + return forNumber(value); + } + + public static CompensationUnit forNumber(int value) { + switch (value) { + case 0: + return COMPENSATION_UNIT_UNSPECIFIED; + case 1: + return HOURLY; + case 2: + return DAILY; + case 3: + return WEEKLY; + case 4: + return MONTHLY; + case 5: + return YEARLY; + case 6: + return ONE_TIME; + case 7: + return OTHER_COMPENSATION_UNIT; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CompensationUnit findValueByNumber(int number) { + return CompensationUnit.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompensationInfo.getDescriptor().getEnumTypes().get(1); + } + + private static final CompensationUnit[] VALUES = values(); + + public static CompensationUnit 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()]; + } + + private final int value; + + private CompensationUnit(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit) + } + + public interface CompensationEntryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional.
+     * Compensation type.
+     * Default is [CompensationUnit.OTHER_COMPENSATION_TYPE][].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationType type = 1; + */ + int getTypeValue(); + /** + * + * + *
+     * Optional.
+     * Compensation type.
+     * Default is [CompensationUnit.OTHER_COMPENSATION_TYPE][].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationType type = 1; + */ + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType getType(); + + /** + * + * + *
+     * Optional.
+     * Frequency of the specified amount.
+     * Default is
+     * [CompensationUnit.OTHER_COMPENSATION_UNIT][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.OTHER_COMPENSATION_UNIT].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit unit = 2; + */ + int getUnitValue(); + /** + * + * + *
+     * Optional.
+     * Frequency of the specified amount.
+     * Default is
+     * [CompensationUnit.OTHER_COMPENSATION_UNIT][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.OTHER_COMPENSATION_UNIT].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit unit = 2; + */ + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit getUnit(); + + /** + * + * + *
+     * Optional.
+     * Compensation amount.
+     * 
+ * + * .google.type.Money amount = 3; + */ + boolean hasAmount(); + /** + * + * + *
+     * Optional.
+     * Compensation amount.
+     * 
+ * + * .google.type.Money amount = 3; + */ + com.google.type.Money getAmount(); + /** + * + * + *
+     * Optional.
+     * Compensation amount.
+     * 
+ * + * .google.type.Money amount = 3; + */ + com.google.type.MoneyOrBuilder getAmountOrBuilder(); + + /** + * + * + *
+     * Optional.
+     * Compensation range.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4; + */ + boolean hasRange(); + /** + * + * + *
+     * Optional.
+     * Compensation range.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4; + */ + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange getRange(); + /** + * + * + *
+     * Optional.
+     * Compensation range.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4; + */ + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder getRangeOrBuilder(); + + /** + * + * + *
+     * Optional.
+     * Compensation description.  For example, could
+     * indicate equity terms or provide additional context to an estimated
+     * bonus.
+     * 
+ * + * string description = 5; + */ + java.lang.String getDescription(); + /** + * + * + *
+     * Optional.
+     * Compensation description.  For example, could
+     * indicate equity terms or provide additional context to an estimated
+     * bonus.
+     * 
+ * + * string description = 5; + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+     * Optional.
+     * Expected number of units paid each year. If not specified, when
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types]
+     * is FULLTIME, a default value is inferred based on
+     * [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit].
+     * Default values:
+     * - HOURLY: 2080
+     * - DAILY: 260
+     * - WEEKLY: 52
+     * - MONTHLY: 12
+     * - ANNUAL: 1
+     * 
+ * + * .google.protobuf.DoubleValue expected_units_per_year = 6; + */ + boolean hasExpectedUnitsPerYear(); + /** + * + * + *
+     * Optional.
+     * Expected number of units paid each year. If not specified, when
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types]
+     * is FULLTIME, a default value is inferred based on
+     * [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit].
+     * Default values:
+     * - HOURLY: 2080
+     * - DAILY: 260
+     * - WEEKLY: 52
+     * - MONTHLY: 12
+     * - ANNUAL: 1
+     * 
+ * + * .google.protobuf.DoubleValue expected_units_per_year = 6; + */ + com.google.protobuf.DoubleValue getExpectedUnitsPerYear(); + /** + * + * + *
+     * Optional.
+     * Expected number of units paid each year. If not specified, when
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types]
+     * is FULLTIME, a default value is inferred based on
+     * [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit].
+     * Default values:
+     * - HOURLY: 2080
+     * - DAILY: 260
+     * - WEEKLY: 52
+     * - MONTHLY: 12
+     * - ANNUAL: 1
+     * 
+ * + * .google.protobuf.DoubleValue expected_units_per_year = 6; + */ + com.google.protobuf.DoubleValueOrBuilder getExpectedUnitsPerYearOrBuilder(); + + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.CompensationAmountCase + getCompensationAmountCase(); + } + /** + * + * + *
+   * A compensation entry that represents one component of compensation, such
+   * as base pay, bonus, or other compensation type.
+   * Annualization: One compensation entry can be annualized if
+   * - it contains valid
+   * [amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount]
+   * or
+   * [range][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.range].
+   * - and its
+   * [expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year]
+   * is set or can be derived. Its annualized range is determined as
+   * ([amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount]
+   * or
+   * [range][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.range])
+   * times
+   * [expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry} + */ + public static final class CompensationEntry extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry) + CompensationEntryOrBuilder { + private static final long serialVersionUID = 0L; + // Use CompensationEntry.newBuilder() to construct. + private CompensationEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CompensationEntry() { + type_ = 0; + unit_ = 0; + description_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CompensationEntry( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + unit_ = rawValue; + break; + } + case 26: + { + com.google.type.Money.Builder subBuilder = null; + if (compensationAmountCase_ == 3) { + subBuilder = ((com.google.type.Money) compensationAmount_).toBuilder(); + } + compensationAmount_ = + input.readMessage(com.google.type.Money.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.type.Money) compensationAmount_); + compensationAmount_ = subBuilder.buildPartial(); + } + compensationAmountCase_ = 3; + break; + } + case 34: + { + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder + subBuilder = null; + if (compensationAmountCase_ == 4) { + subBuilder = + ((com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) + compensationAmount_) + .toBuilder(); + } + compensationAmount_ = + input.readMessage( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) + compensationAmount_); + compensationAmount_ = subBuilder.buildPartial(); + } + compensationAmountCase_ = 4; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 50: + { + com.google.protobuf.DoubleValue.Builder subBuilder = null; + if (expectedUnitsPerYear_ != null) { + subBuilder = expectedUnitsPerYear_.toBuilder(); + } + expectedUnitsPerYear_ = + input.readMessage(com.google.protobuf.DoubleValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(expectedUnitsPerYear_); + expectedUnitsPerYear_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.class, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.Builder.class); + } + + private int compensationAmountCase_ = 0; + private java.lang.Object compensationAmount_; + + public enum CompensationAmountCase implements com.google.protobuf.Internal.EnumLite { + AMOUNT(3), + RANGE(4), + COMPENSATIONAMOUNT_NOT_SET(0); + private final int value; + + private CompensationAmountCase(int value) { + this.value = value; + } + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static CompensationAmountCase valueOf(int value) { + return forNumber(value); + } + + public static CompensationAmountCase forNumber(int value) { + switch (value) { + case 3: + return AMOUNT; + case 4: + return RANGE; + case 0: + return COMPENSATIONAMOUNT_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public CompensationAmountCase getCompensationAmountCase() { + return CompensationAmountCase.forNumber(compensationAmountCase_); + } + + public static final int TYPE_FIELD_NUMBER = 1; + private int type_; + /** + * + * + *
+     * Optional.
+     * Compensation type.
+     * Default is [CompensationUnit.OTHER_COMPENSATION_TYPE][].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationType type = 1; + */ + public int getTypeValue() { + return type_; + } + /** + * + * + *
+     * Optional.
+     * Compensation type.
+     * Default is [CompensationUnit.OTHER_COMPENSATION_TYPE][].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationType type = 1; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType result = + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType.valueOf(type_); + return result == null + ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType.UNRECOGNIZED + : result; + } + + public static final int UNIT_FIELD_NUMBER = 2; + private int unit_; + /** + * + * + *
+     * Optional.
+     * Frequency of the specified amount.
+     * Default is
+     * [CompensationUnit.OTHER_COMPENSATION_UNIT][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.OTHER_COMPENSATION_UNIT].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit unit = 2; + */ + public int getUnitValue() { + return unit_; + } + /** + * + * + *
+     * Optional.
+     * Frequency of the specified amount.
+     * Default is
+     * [CompensationUnit.OTHER_COMPENSATION_UNIT][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.OTHER_COMPENSATION_UNIT].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit unit = 2; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit getUnit() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit result = + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.valueOf(unit_); + return result == null + ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.UNRECOGNIZED + : result; + } + + public static final int AMOUNT_FIELD_NUMBER = 3; + /** + * + * + *
+     * Optional.
+     * Compensation amount.
+     * 
+ * + * .google.type.Money amount = 3; + */ + public boolean hasAmount() { + return compensationAmountCase_ == 3; + } + /** + * + * + *
+     * Optional.
+     * Compensation amount.
+     * 
+ * + * .google.type.Money amount = 3; + */ + public com.google.type.Money getAmount() { + if (compensationAmountCase_ == 3) { + return (com.google.type.Money) compensationAmount_; + } + return com.google.type.Money.getDefaultInstance(); + } + /** + * + * + *
+     * Optional.
+     * Compensation amount.
+     * 
+ * + * .google.type.Money amount = 3; + */ + public com.google.type.MoneyOrBuilder getAmountOrBuilder() { + if (compensationAmountCase_ == 3) { + return (com.google.type.Money) compensationAmount_; + } + return com.google.type.Money.getDefaultInstance(); + } + + public static final int RANGE_FIELD_NUMBER = 4; + /** + * + * + *
+     * Optional.
+     * Compensation range.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4; + */ + public boolean hasRange() { + return compensationAmountCase_ == 4; + } + /** + * + * + *
+     * Optional.
+     * Compensation range.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange getRange() { + if (compensationAmountCase_ == 4) { + return (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) + compensationAmount_; + } + return com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + .getDefaultInstance(); + } + /** + * + * + *
+     * Optional.
+     * Compensation range.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder + getRangeOrBuilder() { + if (compensationAmountCase_ == 4) { + return (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) + compensationAmount_; + } + return com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + .getDefaultInstance(); + } + + public static final int DESCRIPTION_FIELD_NUMBER = 5; + private volatile java.lang.Object description_; + /** + * + * + *
+     * Optional.
+     * Compensation description.  For example, could
+     * indicate equity terms or provide additional context to an estimated
+     * bonus.
+     * 
+ * + * string description = 5; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + /** + * + * + *
+     * Optional.
+     * Compensation description.  For example, could
+     * indicate equity terms or provide additional context to an estimated
+     * bonus.
+     * 
+ * + * string description = 5; + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXPECTED_UNITS_PER_YEAR_FIELD_NUMBER = 6; + private com.google.protobuf.DoubleValue expectedUnitsPerYear_; + /** + * + * + *
+     * Optional.
+     * Expected number of units paid each year. If not specified, when
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types]
+     * is FULLTIME, a default value is inferred based on
+     * [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit].
+     * Default values:
+     * - HOURLY: 2080
+     * - DAILY: 260
+     * - WEEKLY: 52
+     * - MONTHLY: 12
+     * - ANNUAL: 1
+     * 
+ * + * .google.protobuf.DoubleValue expected_units_per_year = 6; + */ + public boolean hasExpectedUnitsPerYear() { + return expectedUnitsPerYear_ != null; + } + /** + * + * + *
+     * Optional.
+     * Expected number of units paid each year. If not specified, when
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types]
+     * is FULLTIME, a default value is inferred based on
+     * [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit].
+     * Default values:
+     * - HOURLY: 2080
+     * - DAILY: 260
+     * - WEEKLY: 52
+     * - MONTHLY: 12
+     * - ANNUAL: 1
+     * 
+ * + * .google.protobuf.DoubleValue expected_units_per_year = 6; + */ + public com.google.protobuf.DoubleValue getExpectedUnitsPerYear() { + return expectedUnitsPerYear_ == null + ? com.google.protobuf.DoubleValue.getDefaultInstance() + : expectedUnitsPerYear_; + } + /** + * + * + *
+     * Optional.
+     * Expected number of units paid each year. If not specified, when
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types]
+     * is FULLTIME, a default value is inferred based on
+     * [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit].
+     * Default values:
+     * - HOURLY: 2080
+     * - DAILY: 260
+     * - WEEKLY: 52
+     * - MONTHLY: 12
+     * - ANNUAL: 1
+     * 
+ * + * .google.protobuf.DoubleValue expected_units_per_year = 6; + */ + public com.google.protobuf.DoubleValueOrBuilder getExpectedUnitsPerYearOrBuilder() { + return getExpectedUnitsPerYear(); + } + + 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 (type_ + != com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType + .COMPENSATION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, type_); + } + if (unit_ + != com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit + .COMPENSATION_UNIT_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, unit_); + } + if (compensationAmountCase_ == 3) { + output.writeMessage(3, (com.google.type.Money) compensationAmount_); + } + if (compensationAmountCase_ == 4) { + output.writeMessage( + 4, + (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) + compensationAmount_); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); + } + if (expectedUnitsPerYear_ != null) { + output.writeMessage(6, getExpectedUnitsPerYear()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ + != com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType + .COMPENSATION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + } + if (unit_ + != com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit + .COMPENSATION_UNIT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, unit_); + } + if (compensationAmountCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.type.Money) compensationAmount_); + } + if (compensationAmountCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, + (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) + compensationAmount_); + } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); + } + if (expectedUnitsPerYear_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(6, getExpectedUnitsPerYear()); + } + size += unknownFields.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.cloud.talent.v4beta1.CompensationInfo.CompensationEntry)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry other = + (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry) obj; + + boolean result = true; + result = result && type_ == other.type_; + result = result && unit_ == other.unit_; + result = result && getDescription().equals(other.getDescription()); + result = result && (hasExpectedUnitsPerYear() == other.hasExpectedUnitsPerYear()); + if (hasExpectedUnitsPerYear()) { + result = result && getExpectedUnitsPerYear().equals(other.getExpectedUnitsPerYear()); + } + result = result && getCompensationAmountCase().equals(other.getCompensationAmountCase()); + if (!result) return false; + switch (compensationAmountCase_) { + case 3: + result = result && getAmount().equals(other.getAmount()); + break; + case 4: + result = result && getRange().equals(other.getRange()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + UNIT_FIELD_NUMBER; + hash = (53 * hash) + unit_; + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (hasExpectedUnitsPerYear()) { + hash = (37 * hash) + EXPECTED_UNITS_PER_YEAR_FIELD_NUMBER; + hash = (53 * hash) + getExpectedUnitsPerYear().hashCode(); + } + switch (compensationAmountCase_) { + case 3: + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + getAmount().hashCode(); + break; + case 4: + hash = (37 * hash) + RANGE_FIELD_NUMBER; + hash = (53 * hash) + getRange().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry 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.cloud.talent.v4beta1.CompensationInfo.CompensationEntry parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry 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.cloud.talent.v4beta1.CompensationInfo.CompensationEntry + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry + 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.cloud.talent.v4beta1.CompensationInfo.CompensationEntry parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry 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.cloud.talent.v4beta1.CompensationInfo.CompensationEntry 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 compensation entry that represents one component of compensation, such
+     * as base pay, bonus, or other compensation type.
+     * Annualization: One compensation entry can be annualized if
+     * - it contains valid
+     * [amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount]
+     * or
+     * [range][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.range].
+     * - and its
+     * [expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year]
+     * is set or can be derived. Its annualized range is determined as
+     * ([amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount]
+     * or
+     * [range][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.range])
+     * times
+     * [expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry) + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.class, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.Builder.class); + } + + // Construct using + // com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + type_ = 0; + + unit_ = 0; + + description_ = ""; + + if (expectedUnitsPerYearBuilder_ == null) { + expectedUnitsPerYear_ = null; + } else { + expectedUnitsPerYear_ = null; + expectedUnitsPerYearBuilder_ = null; + } + compensationAmountCase_ = 0; + compensationAmount_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationEntry_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry + getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry build() { + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry buildPartial() { + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry result = + new com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry(this); + result.type_ = type_; + result.unit_ = unit_; + if (compensationAmountCase_ == 3) { + if (amountBuilder_ == null) { + result.compensationAmount_ = compensationAmount_; + } else { + result.compensationAmount_ = amountBuilder_.build(); + } + } + if (compensationAmountCase_ == 4) { + if (rangeBuilder_ == null) { + result.compensationAmount_ = compensationAmount_; + } else { + result.compensationAmount_ = rangeBuilder_.build(); + } + } + result.description_ = description_; + if (expectedUnitsPerYearBuilder_ == null) { + result.expectedUnitsPerYear_ = expectedUnitsPerYear_; + } else { + result.expectedUnitsPerYear_ = expectedUnitsPerYearBuilder_.build(); + } + result.compensationAmountCase_ = compensationAmountCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry) { + return mergeFrom( + (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry other) { + if (other + == com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry + .getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.unit_ != 0) { + setUnitValue(other.getUnitValue()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (other.hasExpectedUnitsPerYear()) { + mergeExpectedUnitsPerYear(other.getExpectedUnitsPerYear()); + } + switch (other.getCompensationAmountCase()) { + case AMOUNT: + { + mergeAmount(other.getAmount()); + break; + } + case RANGE: + { + mergeRange(other.getRange()); + break; + } + case COMPENSATIONAMOUNT_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int compensationAmountCase_ = 0; + private java.lang.Object compensationAmount_; + + public CompensationAmountCase getCompensationAmountCase() { + return CompensationAmountCase.forNumber(compensationAmountCase_); + } + + public Builder clearCompensationAmount() { + compensationAmountCase_ = 0; + compensationAmount_ = null; + onChanged(); + return this; + } + + private int type_ = 0; + /** + * + * + *
+       * Optional.
+       * Compensation type.
+       * Default is [CompensationUnit.OTHER_COMPENSATION_TYPE][].
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationType type = 1; + */ + public int getTypeValue() { + return type_; + } + /** + * + * + *
+       * Optional.
+       * Compensation type.
+       * Default is [CompensationUnit.OTHER_COMPENSATION_TYPE][].
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationType type = 1; + */ + public Builder setTypeValue(int value) { + type_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Compensation type.
+       * Default is [CompensationUnit.OTHER_COMPENSATION_TYPE][].
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationType type = 1; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType result = + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType.valueOf(type_); + return result == null + ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Optional.
+       * Compensation type.
+       * Default is [CompensationUnit.OTHER_COMPENSATION_TYPE][].
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationType type = 1; + */ + public Builder setType( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Compensation type.
+       * Default is [CompensationUnit.OTHER_COMPENSATION_TYPE][].
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationType type = 1; + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private int unit_ = 0; + /** + * + * + *
+       * Optional.
+       * Frequency of the specified amount.
+       * Default is
+       * [CompensationUnit.OTHER_COMPENSATION_UNIT][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.OTHER_COMPENSATION_UNIT].
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit unit = 2; + */ + public int getUnitValue() { + return unit_; + } + /** + * + * + *
+       * Optional.
+       * Frequency of the specified amount.
+       * Default is
+       * [CompensationUnit.OTHER_COMPENSATION_UNIT][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.OTHER_COMPENSATION_UNIT].
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit unit = 2; + */ + public Builder setUnitValue(int value) { + unit_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Frequency of the specified amount.
+       * Default is
+       * [CompensationUnit.OTHER_COMPENSATION_UNIT][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.OTHER_COMPENSATION_UNIT].
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit unit = 2; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit getUnit() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit result = + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.valueOf(unit_); + return result == null + ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Optional.
+       * Frequency of the specified amount.
+       * Default is
+       * [CompensationUnit.OTHER_COMPENSATION_UNIT][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.OTHER_COMPENSATION_UNIT].
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit unit = 2; + */ + public Builder setUnit( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit value) { + if (value == null) { + throw new NullPointerException(); + } + + unit_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Frequency of the specified amount.
+       * Default is
+       * [CompensationUnit.OTHER_COMPENSATION_UNIT][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.OTHER_COMPENSATION_UNIT].
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit unit = 2; + */ + public Builder clearUnit() { + + unit_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> + amountBuilder_; + /** + * + * + *
+       * Optional.
+       * Compensation amount.
+       * 
+ * + * .google.type.Money amount = 3; + */ + public boolean hasAmount() { + return compensationAmountCase_ == 3; + } + /** + * + * + *
+       * Optional.
+       * Compensation amount.
+       * 
+ * + * .google.type.Money amount = 3; + */ + public com.google.type.Money getAmount() { + if (amountBuilder_ == null) { + if (compensationAmountCase_ == 3) { + return (com.google.type.Money) compensationAmount_; + } + return com.google.type.Money.getDefaultInstance(); + } else { + if (compensationAmountCase_ == 3) { + return amountBuilder_.getMessage(); + } + return com.google.type.Money.getDefaultInstance(); + } + } + /** + * + * + *
+       * Optional.
+       * Compensation amount.
+       * 
+ * + * .google.type.Money amount = 3; + */ + public Builder setAmount(com.google.type.Money value) { + if (amountBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + compensationAmount_ = value; + onChanged(); + } else { + amountBuilder_.setMessage(value); + } + compensationAmountCase_ = 3; + return this; + } + /** + * + * + *
+       * Optional.
+       * Compensation amount.
+       * 
+ * + * .google.type.Money amount = 3; + */ + public Builder setAmount(com.google.type.Money.Builder builderForValue) { + if (amountBuilder_ == null) { + compensationAmount_ = builderForValue.build(); + onChanged(); + } else { + amountBuilder_.setMessage(builderForValue.build()); + } + compensationAmountCase_ = 3; + return this; + } + /** + * + * + *
+       * Optional.
+       * Compensation amount.
+       * 
+ * + * .google.type.Money amount = 3; + */ + public Builder mergeAmount(com.google.type.Money value) { + if (amountBuilder_ == null) { + if (compensationAmountCase_ == 3 + && compensationAmount_ != com.google.type.Money.getDefaultInstance()) { + compensationAmount_ = + com.google.type.Money.newBuilder((com.google.type.Money) compensationAmount_) + .mergeFrom(value) + .buildPartial(); + } else { + compensationAmount_ = value; + } + onChanged(); + } else { + if (compensationAmountCase_ == 3) { + amountBuilder_.mergeFrom(value); + } + amountBuilder_.setMessage(value); + } + compensationAmountCase_ = 3; + return this; + } + /** + * + * + *
+       * Optional.
+       * Compensation amount.
+       * 
+ * + * .google.type.Money amount = 3; + */ + public Builder clearAmount() { + if (amountBuilder_ == null) { + if (compensationAmountCase_ == 3) { + compensationAmountCase_ = 0; + compensationAmount_ = null; + onChanged(); + } + } else { + if (compensationAmountCase_ == 3) { + compensationAmountCase_ = 0; + compensationAmount_ = null; + } + amountBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Optional.
+       * Compensation amount.
+       * 
+ * + * .google.type.Money amount = 3; + */ + public com.google.type.Money.Builder getAmountBuilder() { + return getAmountFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Optional.
+       * Compensation amount.
+       * 
+ * + * .google.type.Money amount = 3; + */ + public com.google.type.MoneyOrBuilder getAmountOrBuilder() { + if ((compensationAmountCase_ == 3) && (amountBuilder_ != null)) { + return amountBuilder_.getMessageOrBuilder(); + } else { + if (compensationAmountCase_ == 3) { + return (com.google.type.Money) compensationAmount_; + } + return com.google.type.Money.getDefaultInstance(); + } + } + /** + * + * + *
+       * Optional.
+       * Compensation amount.
+       * 
+ * + * .google.type.Money amount = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> + getAmountFieldBuilder() { + if (amountBuilder_ == null) { + if (!(compensationAmountCase_ == 3)) { + compensationAmount_ = com.google.type.Money.getDefaultInstance(); + } + amountBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, + com.google.type.Money.Builder, + com.google.type.MoneyOrBuilder>( + (com.google.type.Money) compensationAmount_, getParentForChildren(), isClean()); + compensationAmount_ = null; + } + compensationAmountCase_ = 3; + onChanged(); + ; + return amountBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder> + rangeBuilder_; + /** + * + * + *
+       * Optional.
+       * Compensation range.
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4; + */ + public boolean hasRange() { + return compensationAmountCase_ == 4; + } + /** + * + * + *
+       * Optional.
+       * Compensation range.
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange getRange() { + if (rangeBuilder_ == null) { + if (compensationAmountCase_ == 4) { + return (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) + compensationAmount_; + } + return com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + .getDefaultInstance(); + } else { + if (compensationAmountCase_ == 4) { + return rangeBuilder_.getMessage(); + } + return com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + .getDefaultInstance(); + } + } + /** + * + * + *
+       * Optional.
+       * Compensation range.
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4; + */ + public Builder setRange( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange value) { + if (rangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + compensationAmount_ = value; + onChanged(); + } else { + rangeBuilder_.setMessage(value); + } + compensationAmountCase_ = 4; + return this; + } + /** + * + * + *
+       * Optional.
+       * Compensation range.
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4; + */ + public Builder setRange( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder + builderForValue) { + if (rangeBuilder_ == null) { + compensationAmount_ = builderForValue.build(); + onChanged(); + } else { + rangeBuilder_.setMessage(builderForValue.build()); + } + compensationAmountCase_ = 4; + return this; + } + /** + * + * + *
+       * Optional.
+       * Compensation range.
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4; + */ + public Builder mergeRange( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange value) { + if (rangeBuilder_ == null) { + if (compensationAmountCase_ == 4 + && compensationAmount_ + != com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + .getDefaultInstance()) { + compensationAmount_ = + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.newBuilder( + (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) + compensationAmount_) + .mergeFrom(value) + .buildPartial(); + } else { + compensationAmount_ = value; + } + onChanged(); + } else { + if (compensationAmountCase_ == 4) { + rangeBuilder_.mergeFrom(value); + } + rangeBuilder_.setMessage(value); + } + compensationAmountCase_ = 4; + return this; + } + /** + * + * + *
+       * Optional.
+       * Compensation range.
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4; + */ + public Builder clearRange() { + if (rangeBuilder_ == null) { + if (compensationAmountCase_ == 4) { + compensationAmountCase_ = 0; + compensationAmount_ = null; + onChanged(); + } + } else { + if (compensationAmountCase_ == 4) { + compensationAmountCase_ = 0; + compensationAmount_ = null; + } + rangeBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Optional.
+       * Compensation range.
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder + getRangeBuilder() { + return getRangeFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Optional.
+       * Compensation range.
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder + getRangeOrBuilder() { + if ((compensationAmountCase_ == 4) && (rangeBuilder_ != null)) { + return rangeBuilder_.getMessageOrBuilder(); + } else { + if (compensationAmountCase_ == 4) { + return (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) + compensationAmount_; + } + return com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + .getDefaultInstance(); + } + } + /** + * + * + *
+       * Optional.
+       * Compensation range.
+       * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder> + getRangeFieldBuilder() { + if (rangeBuilder_ == null) { + if (!(compensationAmountCase_ == 4)) { + compensationAmount_ = + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + .getDefaultInstance(); + } + rangeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder>( + (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) + compensationAmount_, + getParentForChildren(), + isClean()); + compensationAmount_ = null; + } + compensationAmountCase_ = 4; + onChanged(); + ; + return rangeBuilder_; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+       * Optional.
+       * Compensation description.  For example, could
+       * indicate equity terms or provide additional context to an estimated
+       * bonus.
+       * 
+ * + * string description = 5; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional.
+       * Compensation description.  For example, could
+       * indicate equity terms or provide additional context to an estimated
+       * bonus.
+       * 
+ * + * string description = 5; + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional.
+       * Compensation description.  For example, could
+       * indicate equity terms or provide additional context to an estimated
+       * bonus.
+       * 
+ * + * string description = 5; + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Compensation description.  For example, could
+       * indicate equity terms or provide additional context to an estimated
+       * bonus.
+       * 
+ * + * string description = 5; + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Compensation description.  For example, could
+       * indicate equity terms or provide additional context to an estimated
+       * bonus.
+       * 
+ * + * string description = 5; + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.DoubleValue expectedUnitsPerYear_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, + com.google.protobuf.DoubleValue.Builder, + com.google.protobuf.DoubleValueOrBuilder> + expectedUnitsPerYearBuilder_; + /** + * + * + *
+       * Optional.
+       * Expected number of units paid each year. If not specified, when
+       * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types]
+       * is FULLTIME, a default value is inferred based on
+       * [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit].
+       * Default values:
+       * - HOURLY: 2080
+       * - DAILY: 260
+       * - WEEKLY: 52
+       * - MONTHLY: 12
+       * - ANNUAL: 1
+       * 
+ * + * .google.protobuf.DoubleValue expected_units_per_year = 6; + */ + public boolean hasExpectedUnitsPerYear() { + return expectedUnitsPerYearBuilder_ != null || expectedUnitsPerYear_ != null; + } + /** + * + * + *
+       * Optional.
+       * Expected number of units paid each year. If not specified, when
+       * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types]
+       * is FULLTIME, a default value is inferred based on
+       * [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit].
+       * Default values:
+       * - HOURLY: 2080
+       * - DAILY: 260
+       * - WEEKLY: 52
+       * - MONTHLY: 12
+       * - ANNUAL: 1
+       * 
+ * + * .google.protobuf.DoubleValue expected_units_per_year = 6; + */ + public com.google.protobuf.DoubleValue getExpectedUnitsPerYear() { + if (expectedUnitsPerYearBuilder_ == null) { + return expectedUnitsPerYear_ == null + ? com.google.protobuf.DoubleValue.getDefaultInstance() + : expectedUnitsPerYear_; + } else { + return expectedUnitsPerYearBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Optional.
+       * Expected number of units paid each year. If not specified, when
+       * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types]
+       * is FULLTIME, a default value is inferred based on
+       * [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit].
+       * Default values:
+       * - HOURLY: 2080
+       * - DAILY: 260
+       * - WEEKLY: 52
+       * - MONTHLY: 12
+       * - ANNUAL: 1
+       * 
+ * + * .google.protobuf.DoubleValue expected_units_per_year = 6; + */ + public Builder setExpectedUnitsPerYear(com.google.protobuf.DoubleValue value) { + if (expectedUnitsPerYearBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expectedUnitsPerYear_ = value; + onChanged(); + } else { + expectedUnitsPerYearBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Optional.
+       * Expected number of units paid each year. If not specified, when
+       * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types]
+       * is FULLTIME, a default value is inferred based on
+       * [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit].
+       * Default values:
+       * - HOURLY: 2080
+       * - DAILY: 260
+       * - WEEKLY: 52
+       * - MONTHLY: 12
+       * - ANNUAL: 1
+       * 
+ * + * .google.protobuf.DoubleValue expected_units_per_year = 6; + */ + public Builder setExpectedUnitsPerYear( + com.google.protobuf.DoubleValue.Builder builderForValue) { + if (expectedUnitsPerYearBuilder_ == null) { + expectedUnitsPerYear_ = builderForValue.build(); + onChanged(); + } else { + expectedUnitsPerYearBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Optional.
+       * Expected number of units paid each year. If not specified, when
+       * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types]
+       * is FULLTIME, a default value is inferred based on
+       * [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit].
+       * Default values:
+       * - HOURLY: 2080
+       * - DAILY: 260
+       * - WEEKLY: 52
+       * - MONTHLY: 12
+       * - ANNUAL: 1
+       * 
+ * + * .google.protobuf.DoubleValue expected_units_per_year = 6; + */ + public Builder mergeExpectedUnitsPerYear(com.google.protobuf.DoubleValue value) { + if (expectedUnitsPerYearBuilder_ == null) { + if (expectedUnitsPerYear_ != null) { + expectedUnitsPerYear_ = + com.google.protobuf.DoubleValue.newBuilder(expectedUnitsPerYear_) + .mergeFrom(value) + .buildPartial(); + } else { + expectedUnitsPerYear_ = value; + } + onChanged(); + } else { + expectedUnitsPerYearBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Optional.
+       * Expected number of units paid each year. If not specified, when
+       * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types]
+       * is FULLTIME, a default value is inferred based on
+       * [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit].
+       * Default values:
+       * - HOURLY: 2080
+       * - DAILY: 260
+       * - WEEKLY: 52
+       * - MONTHLY: 12
+       * - ANNUAL: 1
+       * 
+ * + * .google.protobuf.DoubleValue expected_units_per_year = 6; + */ + public Builder clearExpectedUnitsPerYear() { + if (expectedUnitsPerYearBuilder_ == null) { + expectedUnitsPerYear_ = null; + onChanged(); + } else { + expectedUnitsPerYear_ = null; + expectedUnitsPerYearBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Optional.
+       * Expected number of units paid each year. If not specified, when
+       * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types]
+       * is FULLTIME, a default value is inferred based on
+       * [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit].
+       * Default values:
+       * - HOURLY: 2080
+       * - DAILY: 260
+       * - WEEKLY: 52
+       * - MONTHLY: 12
+       * - ANNUAL: 1
+       * 
+ * + * .google.protobuf.DoubleValue expected_units_per_year = 6; + */ + public com.google.protobuf.DoubleValue.Builder getExpectedUnitsPerYearBuilder() { + + onChanged(); + return getExpectedUnitsPerYearFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Optional.
+       * Expected number of units paid each year. If not specified, when
+       * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types]
+       * is FULLTIME, a default value is inferred based on
+       * [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit].
+       * Default values:
+       * - HOURLY: 2080
+       * - DAILY: 260
+       * - WEEKLY: 52
+       * - MONTHLY: 12
+       * - ANNUAL: 1
+       * 
+ * + * .google.protobuf.DoubleValue expected_units_per_year = 6; + */ + public com.google.protobuf.DoubleValueOrBuilder getExpectedUnitsPerYearOrBuilder() { + if (expectedUnitsPerYearBuilder_ != null) { + return expectedUnitsPerYearBuilder_.getMessageOrBuilder(); + } else { + return expectedUnitsPerYear_ == null + ? com.google.protobuf.DoubleValue.getDefaultInstance() + : expectedUnitsPerYear_; + } + } + /** + * + * + *
+       * Optional.
+       * Expected number of units paid each year. If not specified, when
+       * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types]
+       * is FULLTIME, a default value is inferred based on
+       * [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit].
+       * Default values:
+       * - HOURLY: 2080
+       * - DAILY: 260
+       * - WEEKLY: 52
+       * - MONTHLY: 12
+       * - ANNUAL: 1
+       * 
+ * + * .google.protobuf.DoubleValue expected_units_per_year = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, + com.google.protobuf.DoubleValue.Builder, + com.google.protobuf.DoubleValueOrBuilder> + getExpectedUnitsPerYearFieldBuilder() { + if (expectedUnitsPerYearBuilder_ == null) { + expectedUnitsPerYearBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, + com.google.protobuf.DoubleValue.Builder, + com.google.protobuf.DoubleValueOrBuilder>( + getExpectedUnitsPerYear(), getParentForChildren(), isClean()); + expectedUnitsPerYear_ = null; + } + return expectedUnitsPerYearBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry) + private static final com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry(); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompensationEntry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CompensationEntry(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.CompensationInfo.CompensationEntry + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface CompensationRangeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional.
+     * The maximum amount of compensation. If left empty, the value is set
+     * to a maximal compensation value and the currency code is set to
+     * match the [currency code][google.type.Money.currency_code] of
+     * min_compensation.
+     * 
+ * + * .google.type.Money max_compensation = 2; + */ + boolean hasMaxCompensation(); + /** + * + * + *
+     * Optional.
+     * The maximum amount of compensation. If left empty, the value is set
+     * to a maximal compensation value and the currency code is set to
+     * match the [currency code][google.type.Money.currency_code] of
+     * min_compensation.
+     * 
+ * + * .google.type.Money max_compensation = 2; + */ + com.google.type.Money getMaxCompensation(); + /** + * + * + *
+     * Optional.
+     * The maximum amount of compensation. If left empty, the value is set
+     * to a maximal compensation value and the currency code is set to
+     * match the [currency code][google.type.Money.currency_code] of
+     * min_compensation.
+     * 
+ * + * .google.type.Money max_compensation = 2; + */ + com.google.type.MoneyOrBuilder getMaxCompensationOrBuilder(); + + /** + * + * + *
+     * Optional.
+     * The minimum amount of compensation. If left empty, the value is set
+     * to zero and the currency code is set to match the
+     * [currency code][google.type.Money.currency_code] of max_compensation.
+     * 
+ * + * .google.type.Money min_compensation = 1; + */ + boolean hasMinCompensation(); + /** + * + * + *
+     * Optional.
+     * The minimum amount of compensation. If left empty, the value is set
+     * to zero and the currency code is set to match the
+     * [currency code][google.type.Money.currency_code] of max_compensation.
+     * 
+ * + * .google.type.Money min_compensation = 1; + */ + com.google.type.Money getMinCompensation(); + /** + * + * + *
+     * Optional.
+     * The minimum amount of compensation. If left empty, the value is set
+     * to zero and the currency code is set to match the
+     * [currency code][google.type.Money.currency_code] of max_compensation.
+     * 
+ * + * .google.type.Money min_compensation = 1; + */ + com.google.type.MoneyOrBuilder getMinCompensationOrBuilder(); + } + /** + * + * + *
+   * Compensation range.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CompensationInfo.CompensationRange} + */ + public static final class CompensationRange extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) + CompensationRangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use CompensationRange.newBuilder() to construct. + private CompensationRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CompensationRange() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CompensationRange( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.type.Money.Builder subBuilder = null; + if (minCompensation_ != null) { + subBuilder = minCompensation_.toBuilder(); + } + minCompensation_ = + input.readMessage(com.google.type.Money.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(minCompensation_); + minCompensation_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.type.Money.Builder subBuilder = null; + if (maxCompensation_ != null) { + subBuilder = maxCompensation_.toBuilder(); + } + maxCompensation_ = + input.readMessage(com.google.type.Money.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(maxCompensation_); + maxCompensation_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.class, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder.class); + } + + public static final int MAX_COMPENSATION_FIELD_NUMBER = 2; + private com.google.type.Money maxCompensation_; + /** + * + * + *
+     * Optional.
+     * The maximum amount of compensation. If left empty, the value is set
+     * to a maximal compensation value and the currency code is set to
+     * match the [currency code][google.type.Money.currency_code] of
+     * min_compensation.
+     * 
+ * + * .google.type.Money max_compensation = 2; + */ + public boolean hasMaxCompensation() { + return maxCompensation_ != null; + } + /** + * + * + *
+     * Optional.
+     * The maximum amount of compensation. If left empty, the value is set
+     * to a maximal compensation value and the currency code is set to
+     * match the [currency code][google.type.Money.currency_code] of
+     * min_compensation.
+     * 
+ * + * .google.type.Money max_compensation = 2; + */ + public com.google.type.Money getMaxCompensation() { + return maxCompensation_ == null + ? com.google.type.Money.getDefaultInstance() + : maxCompensation_; + } + /** + * + * + *
+     * Optional.
+     * The maximum amount of compensation. If left empty, the value is set
+     * to a maximal compensation value and the currency code is set to
+     * match the [currency code][google.type.Money.currency_code] of
+     * min_compensation.
+     * 
+ * + * .google.type.Money max_compensation = 2; + */ + public com.google.type.MoneyOrBuilder getMaxCompensationOrBuilder() { + return getMaxCompensation(); + } + + public static final int MIN_COMPENSATION_FIELD_NUMBER = 1; + private com.google.type.Money minCompensation_; + /** + * + * + *
+     * Optional.
+     * The minimum amount of compensation. If left empty, the value is set
+     * to zero and the currency code is set to match the
+     * [currency code][google.type.Money.currency_code] of max_compensation.
+     * 
+ * + * .google.type.Money min_compensation = 1; + */ + public boolean hasMinCompensation() { + return minCompensation_ != null; + } + /** + * + * + *
+     * Optional.
+     * The minimum amount of compensation. If left empty, the value is set
+     * to zero and the currency code is set to match the
+     * [currency code][google.type.Money.currency_code] of max_compensation.
+     * 
+ * + * .google.type.Money min_compensation = 1; + */ + public com.google.type.Money getMinCompensation() { + return minCompensation_ == null + ? com.google.type.Money.getDefaultInstance() + : minCompensation_; + } + /** + * + * + *
+     * Optional.
+     * The minimum amount of compensation. If left empty, the value is set
+     * to zero and the currency code is set to match the
+     * [currency code][google.type.Money.currency_code] of max_compensation.
+     * 
+ * + * .google.type.Money min_compensation = 1; + */ + public com.google.type.MoneyOrBuilder getMinCompensationOrBuilder() { + return getMinCompensation(); + } + + 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 (minCompensation_ != null) { + output.writeMessage(1, getMinCompensation()); + } + if (maxCompensation_ != null) { + output.writeMessage(2, getMaxCompensation()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (minCompensation_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMinCompensation()); + } + if (maxCompensation_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMaxCompensation()); + } + size += unknownFields.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.cloud.talent.v4beta1.CompensationInfo.CompensationRange)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange other = + (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) obj; + + boolean result = true; + result = result && (hasMaxCompensation() == other.hasMaxCompensation()); + if (hasMaxCompensation()) { + result = result && getMaxCompensation().equals(other.getMaxCompensation()); + } + result = result && (hasMinCompensation() == other.hasMinCompensation()); + if (hasMinCompensation()) { + result = result && getMinCompensation().equals(other.getMinCompensation()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMaxCompensation()) { + hash = (37 * hash) + MAX_COMPENSATION_FIELD_NUMBER; + hash = (53 * hash) + getMaxCompensation().hashCode(); + } + if (hasMinCompensation()) { + hash = (37 * hash) + MIN_COMPENSATION_FIELD_NUMBER; + hash = (53 * hash) + getMinCompensation().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange 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.cloud.talent.v4beta1.CompensationInfo.CompensationRange parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange 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.cloud.talent.v4beta1.CompensationInfo.CompensationRange + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + 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.cloud.talent.v4beta1.CompensationInfo.CompensationRange parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange 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.cloud.talent.v4beta1.CompensationInfo.CompensationRange 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; + } + /** + * + * + *
+     * Compensation range.
+     * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CompensationInfo.CompensationRange} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.class, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder.class); + } + + // Construct using + // com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (maxCompensationBuilder_ == null) { + maxCompensation_ = null; + } else { + maxCompensation_ = null; + maxCompensationBuilder_ = null; + } + if (minCompensationBuilder_ == null) { + minCompensation_ = null; + } else { + minCompensation_ = null; + minCompensationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationRange_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange build() { + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange buildPartial() { + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange result = + new com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange(this); + if (maxCompensationBuilder_ == null) { + result.maxCompensation_ = maxCompensation_; + } else { + result.maxCompensation_ = maxCompensationBuilder_.build(); + } + if (minCompensationBuilder_ == null) { + result.minCompensation_ = minCompensation_; + } else { + result.minCompensation_ = minCompensationBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) { + return mergeFrom( + (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange other) { + if (other + == com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + .getDefaultInstance()) return this; + if (other.hasMaxCompensation()) { + mergeMaxCompensation(other.getMaxCompensation()); + } + if (other.hasMinCompensation()) { + mergeMinCompensation(other.getMinCompensation()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.type.Money maxCompensation_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> + maxCompensationBuilder_; + /** + * + * + *
+       * Optional.
+       * The maximum amount of compensation. If left empty, the value is set
+       * to a maximal compensation value and the currency code is set to
+       * match the [currency code][google.type.Money.currency_code] of
+       * min_compensation.
+       * 
+ * + * .google.type.Money max_compensation = 2; + */ + public boolean hasMaxCompensation() { + return maxCompensationBuilder_ != null || maxCompensation_ != null; + } + /** + * + * + *
+       * Optional.
+       * The maximum amount of compensation. If left empty, the value is set
+       * to a maximal compensation value and the currency code is set to
+       * match the [currency code][google.type.Money.currency_code] of
+       * min_compensation.
+       * 
+ * + * .google.type.Money max_compensation = 2; + */ + public com.google.type.Money getMaxCompensation() { + if (maxCompensationBuilder_ == null) { + return maxCompensation_ == null + ? com.google.type.Money.getDefaultInstance() + : maxCompensation_; + } else { + return maxCompensationBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Optional.
+       * The maximum amount of compensation. If left empty, the value is set
+       * to a maximal compensation value and the currency code is set to
+       * match the [currency code][google.type.Money.currency_code] of
+       * min_compensation.
+       * 
+ * + * .google.type.Money max_compensation = 2; + */ + public Builder setMaxCompensation(com.google.type.Money value) { + if (maxCompensationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + maxCompensation_ = value; + onChanged(); + } else { + maxCompensationBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Optional.
+       * The maximum amount of compensation. If left empty, the value is set
+       * to a maximal compensation value and the currency code is set to
+       * match the [currency code][google.type.Money.currency_code] of
+       * min_compensation.
+       * 
+ * + * .google.type.Money max_compensation = 2; + */ + public Builder setMaxCompensation(com.google.type.Money.Builder builderForValue) { + if (maxCompensationBuilder_ == null) { + maxCompensation_ = builderForValue.build(); + onChanged(); + } else { + maxCompensationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Optional.
+       * The maximum amount of compensation. If left empty, the value is set
+       * to a maximal compensation value and the currency code is set to
+       * match the [currency code][google.type.Money.currency_code] of
+       * min_compensation.
+       * 
+ * + * .google.type.Money max_compensation = 2; + */ + public Builder mergeMaxCompensation(com.google.type.Money value) { + if (maxCompensationBuilder_ == null) { + if (maxCompensation_ != null) { + maxCompensation_ = + com.google.type.Money.newBuilder(maxCompensation_).mergeFrom(value).buildPartial(); + } else { + maxCompensation_ = value; + } + onChanged(); + } else { + maxCompensationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Optional.
+       * The maximum amount of compensation. If left empty, the value is set
+       * to a maximal compensation value and the currency code is set to
+       * match the [currency code][google.type.Money.currency_code] of
+       * min_compensation.
+       * 
+ * + * .google.type.Money max_compensation = 2; + */ + public Builder clearMaxCompensation() { + if (maxCompensationBuilder_ == null) { + maxCompensation_ = null; + onChanged(); + } else { + maxCompensation_ = null; + maxCompensationBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Optional.
+       * The maximum amount of compensation. If left empty, the value is set
+       * to a maximal compensation value and the currency code is set to
+       * match the [currency code][google.type.Money.currency_code] of
+       * min_compensation.
+       * 
+ * + * .google.type.Money max_compensation = 2; + */ + public com.google.type.Money.Builder getMaxCompensationBuilder() { + + onChanged(); + return getMaxCompensationFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Optional.
+       * The maximum amount of compensation. If left empty, the value is set
+       * to a maximal compensation value and the currency code is set to
+       * match the [currency code][google.type.Money.currency_code] of
+       * min_compensation.
+       * 
+ * + * .google.type.Money max_compensation = 2; + */ + public com.google.type.MoneyOrBuilder getMaxCompensationOrBuilder() { + if (maxCompensationBuilder_ != null) { + return maxCompensationBuilder_.getMessageOrBuilder(); + } else { + return maxCompensation_ == null + ? com.google.type.Money.getDefaultInstance() + : maxCompensation_; + } + } + /** + * + * + *
+       * Optional.
+       * The maximum amount of compensation. If left empty, the value is set
+       * to a maximal compensation value and the currency code is set to
+       * match the [currency code][google.type.Money.currency_code] of
+       * min_compensation.
+       * 
+ * + * .google.type.Money max_compensation = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> + getMaxCompensationFieldBuilder() { + if (maxCompensationBuilder_ == null) { + maxCompensationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, + com.google.type.Money.Builder, + com.google.type.MoneyOrBuilder>( + getMaxCompensation(), getParentForChildren(), isClean()); + maxCompensation_ = null; + } + return maxCompensationBuilder_; + } + + private com.google.type.Money minCompensation_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> + minCompensationBuilder_; + /** + * + * + *
+       * Optional.
+       * The minimum amount of compensation. If left empty, the value is set
+       * to zero and the currency code is set to match the
+       * [currency code][google.type.Money.currency_code] of max_compensation.
+       * 
+ * + * .google.type.Money min_compensation = 1; + */ + public boolean hasMinCompensation() { + return minCompensationBuilder_ != null || minCompensation_ != null; + } + /** + * + * + *
+       * Optional.
+       * The minimum amount of compensation. If left empty, the value is set
+       * to zero and the currency code is set to match the
+       * [currency code][google.type.Money.currency_code] of max_compensation.
+       * 
+ * + * .google.type.Money min_compensation = 1; + */ + public com.google.type.Money getMinCompensation() { + if (minCompensationBuilder_ == null) { + return minCompensation_ == null + ? com.google.type.Money.getDefaultInstance() + : minCompensation_; + } else { + return minCompensationBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Optional.
+       * The minimum amount of compensation. If left empty, the value is set
+       * to zero and the currency code is set to match the
+       * [currency code][google.type.Money.currency_code] of max_compensation.
+       * 
+ * + * .google.type.Money min_compensation = 1; + */ + public Builder setMinCompensation(com.google.type.Money value) { + if (minCompensationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + minCompensation_ = value; + onChanged(); + } else { + minCompensationBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Optional.
+       * The minimum amount of compensation. If left empty, the value is set
+       * to zero and the currency code is set to match the
+       * [currency code][google.type.Money.currency_code] of max_compensation.
+       * 
+ * + * .google.type.Money min_compensation = 1; + */ + public Builder setMinCompensation(com.google.type.Money.Builder builderForValue) { + if (minCompensationBuilder_ == null) { + minCompensation_ = builderForValue.build(); + onChanged(); + } else { + minCompensationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Optional.
+       * The minimum amount of compensation. If left empty, the value is set
+       * to zero and the currency code is set to match the
+       * [currency code][google.type.Money.currency_code] of max_compensation.
+       * 
+ * + * .google.type.Money min_compensation = 1; + */ + public Builder mergeMinCompensation(com.google.type.Money value) { + if (minCompensationBuilder_ == null) { + if (minCompensation_ != null) { + minCompensation_ = + com.google.type.Money.newBuilder(minCompensation_).mergeFrom(value).buildPartial(); + } else { + minCompensation_ = value; + } + onChanged(); + } else { + minCompensationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Optional.
+       * The minimum amount of compensation. If left empty, the value is set
+       * to zero and the currency code is set to match the
+       * [currency code][google.type.Money.currency_code] of max_compensation.
+       * 
+ * + * .google.type.Money min_compensation = 1; + */ + public Builder clearMinCompensation() { + if (minCompensationBuilder_ == null) { + minCompensation_ = null; + onChanged(); + } else { + minCompensation_ = null; + minCompensationBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Optional.
+       * The minimum amount of compensation. If left empty, the value is set
+       * to zero and the currency code is set to match the
+       * [currency code][google.type.Money.currency_code] of max_compensation.
+       * 
+ * + * .google.type.Money min_compensation = 1; + */ + public com.google.type.Money.Builder getMinCompensationBuilder() { + + onChanged(); + return getMinCompensationFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Optional.
+       * The minimum amount of compensation. If left empty, the value is set
+       * to zero and the currency code is set to match the
+       * [currency code][google.type.Money.currency_code] of max_compensation.
+       * 
+ * + * .google.type.Money min_compensation = 1; + */ + public com.google.type.MoneyOrBuilder getMinCompensationOrBuilder() { + if (minCompensationBuilder_ != null) { + return minCompensationBuilder_.getMessageOrBuilder(); + } else { + return minCompensation_ == null + ? com.google.type.Money.getDefaultInstance() + : minCompensation_; + } + } + /** + * + * + *
+       * Optional.
+       * The minimum amount of compensation. If left empty, the value is set
+       * to zero and the currency code is set to match the
+       * [currency code][google.type.Money.currency_code] of max_compensation.
+       * 
+ * + * .google.type.Money min_compensation = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> + getMinCompensationFieldBuilder() { + if (minCompensationBuilder_ == null) { + minCompensationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, + com.google.type.Money.Builder, + com.google.type.MoneyOrBuilder>( + getMinCompensation(), getParentForChildren(), isClean()); + minCompensation_ = null; + } + return minCompensationBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) + private static final com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange(); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompensationRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CompensationRange(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.CompensationInfo.CompensationRange + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int ENTRIES_FIELD_NUMBER = 1; + private java.util.List + entries_; + /** + * + * + *
+   * Optional.
+   * Job compensation information.
+   * At most one entry can be of type
+   * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+   * which is referred as ** base compensation entry ** for the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public java.util.List + getEntriesList() { + return entries_; + } + /** + * + * + *
+   * Optional.
+   * Job compensation information.
+   * At most one entry can be of type
+   * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+   * which is referred as ** base compensation entry ** for the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntryOrBuilder> + getEntriesOrBuilderList() { + return entries_; + } + /** + * + * + *
+   * Optional.
+   * Job compensation information.
+   * At most one entry can be of type
+   * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+   * which is referred as ** base compensation entry ** for the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public int getEntriesCount() { + return entries_.size(); + } + /** + * + * + *
+   * Optional.
+   * Job compensation information.
+   * At most one entry can be of type
+   * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+   * which is referred as ** base compensation entry ** for the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry getEntries(int index) { + return entries_.get(index); + } + /** + * + * + *
+   * Optional.
+   * Job compensation information.
+   * At most one entry can be of type
+   * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+   * which is referred as ** base compensation entry ** for the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntryOrBuilder + getEntriesOrBuilder(int index) { + return entries_.get(index); + } + + public static final int ANNUALIZED_BASE_COMPENSATION_RANGE_FIELD_NUMBER = 2; + private com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + annualizedBaseCompensationRange_; + /** + * + * + *
+   * Output only. Annualized base compensation range. Computed as
+   * base compensation entry's [CompensationEntry.compensation][] times
+   * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+   * See
+   * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+   * for explanation on compensation annualization.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2; + * + */ + public boolean hasAnnualizedBaseCompensationRange() { + return annualizedBaseCompensationRange_ != null; + } + /** + * + * + *
+   * Output only. Annualized base compensation range. Computed as
+   * base compensation entry's [CompensationEntry.compensation][] times
+   * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+   * See
+   * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+   * for explanation on compensation annualization.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + getAnnualizedBaseCompensationRange() { + return annualizedBaseCompensationRange_ == null + ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.getDefaultInstance() + : annualizedBaseCompensationRange_; + } + /** + * + * + *
+   * Output only. Annualized base compensation range. Computed as
+   * base compensation entry's [CompensationEntry.compensation][] times
+   * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+   * See
+   * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+   * for explanation on compensation annualization.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder + getAnnualizedBaseCompensationRangeOrBuilder() { + return getAnnualizedBaseCompensationRange(); + } + + public static final int ANNUALIZED_TOTAL_COMPENSATION_RANGE_FIELD_NUMBER = 3; + private com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + annualizedTotalCompensationRange_; + /** + * + * + *
+   * Output only. Annualized total compensation range. Computed as
+   * all compensation entries' [CompensationEntry.compensation][] times
+   * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+   * See
+   * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+   * for explanation on compensation annualization.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3; + * + */ + public boolean hasAnnualizedTotalCompensationRange() { + return annualizedTotalCompensationRange_ != null; + } + /** + * + * + *
+   * Output only. Annualized total compensation range. Computed as
+   * all compensation entries' [CompensationEntry.compensation][] times
+   * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+   * See
+   * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+   * for explanation on compensation annualization.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + getAnnualizedTotalCompensationRange() { + return annualizedTotalCompensationRange_ == null + ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.getDefaultInstance() + : annualizedTotalCompensationRange_; + } + /** + * + * + *
+   * Output only. Annualized total compensation range. Computed as
+   * all compensation entries' [CompensationEntry.compensation][] times
+   * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+   * See
+   * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+   * for explanation on compensation annualization.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder + getAnnualizedTotalCompensationRangeOrBuilder() { + return getAnnualizedTotalCompensationRange(); + } + + 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 { + for (int i = 0; i < entries_.size(); i++) { + output.writeMessage(1, entries_.get(i)); + } + if (annualizedBaseCompensationRange_ != null) { + output.writeMessage(2, getAnnualizedBaseCompensationRange()); + } + if (annualizedTotalCompensationRange_ != null) { + output.writeMessage(3, getAnnualizedTotalCompensationRange()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < entries_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, entries_.get(i)); + } + if (annualizedBaseCompensationRange_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getAnnualizedBaseCompensationRange()); + } + if (annualizedTotalCompensationRange_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getAnnualizedTotalCompensationRange()); + } + size += unknownFields.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.cloud.talent.v4beta1.CompensationInfo)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.CompensationInfo other = + (com.google.cloud.talent.v4beta1.CompensationInfo) obj; + + boolean result = true; + result = result && getEntriesList().equals(other.getEntriesList()); + result = + result + && (hasAnnualizedBaseCompensationRange() == other.hasAnnualizedBaseCompensationRange()); + if (hasAnnualizedBaseCompensationRange()) { + result = + result + && getAnnualizedBaseCompensationRange() + .equals(other.getAnnualizedBaseCompensationRange()); + } + result = + result + && (hasAnnualizedTotalCompensationRange() + == other.hasAnnualizedTotalCompensationRange()); + if (hasAnnualizedTotalCompensationRange()) { + result = + result + && getAnnualizedTotalCompensationRange() + .equals(other.getAnnualizedTotalCompensationRange()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEntriesCount() > 0) { + hash = (37 * hash) + ENTRIES_FIELD_NUMBER; + hash = (53 * hash) + getEntriesList().hashCode(); + } + if (hasAnnualizedBaseCompensationRange()) { + hash = (37 * hash) + ANNUALIZED_BASE_COMPENSATION_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getAnnualizedBaseCompensationRange().hashCode(); + } + if (hasAnnualizedTotalCompensationRange()) { + hash = (37 * hash) + ANNUALIZED_TOTAL_COMPENSATION_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getAnnualizedTotalCompensationRange().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo 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.cloud.talent.v4beta1.CompensationInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo 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.cloud.talent.v4beta1.CompensationInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo 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.cloud.talent.v4beta1.CompensationInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo 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.cloud.talent.v4beta1.CompensationInfo 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; + } + /** + * + * + *
+   * Job compensation details.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CompensationInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.CompensationInfo) + com.google.cloud.talent.v4beta1.CompensationInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CompensationInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CompensationInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CompensationInfo.class, + com.google.cloud.talent.v4beta1.CompensationInfo.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.CompensationInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getEntriesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (entriesBuilder_ == null) { + entries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + entriesBuilder_.clear(); + } + if (annualizedBaseCompensationRangeBuilder_ == null) { + annualizedBaseCompensationRange_ = null; + } else { + annualizedBaseCompensationRange_ = null; + annualizedBaseCompensationRangeBuilder_ = null; + } + if (annualizedTotalCompensationRangeBuilder_ == null) { + annualizedTotalCompensationRange_ = null; + } else { + annualizedTotalCompensationRange_ = null; + annualizedTotalCompensationRangeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CompensationInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompensationInfo getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.CompensationInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompensationInfo build() { + com.google.cloud.talent.v4beta1.CompensationInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompensationInfo buildPartial() { + com.google.cloud.talent.v4beta1.CompensationInfo result = + new com.google.cloud.talent.v4beta1.CompensationInfo(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (entriesBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + entries_ = java.util.Collections.unmodifiableList(entries_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.entries_ = entries_; + } else { + result.entries_ = entriesBuilder_.build(); + } + if (annualizedBaseCompensationRangeBuilder_ == null) { + result.annualizedBaseCompensationRange_ = annualizedBaseCompensationRange_; + } else { + result.annualizedBaseCompensationRange_ = annualizedBaseCompensationRangeBuilder_.build(); + } + if (annualizedTotalCompensationRangeBuilder_ == null) { + result.annualizedTotalCompensationRange_ = annualizedTotalCompensationRange_; + } else { + result.annualizedTotalCompensationRange_ = annualizedTotalCompensationRangeBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.CompensationInfo) { + return mergeFrom((com.google.cloud.talent.v4beta1.CompensationInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.CompensationInfo other) { + if (other == com.google.cloud.talent.v4beta1.CompensationInfo.getDefaultInstance()) + return this; + if (entriesBuilder_ == null) { + if (!other.entries_.isEmpty()) { + if (entries_.isEmpty()) { + entries_ = other.entries_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEntriesIsMutable(); + entries_.addAll(other.entries_); + } + onChanged(); + } + } else { + if (!other.entries_.isEmpty()) { + if (entriesBuilder_.isEmpty()) { + entriesBuilder_.dispose(); + entriesBuilder_ = null; + entries_ = other.entries_; + bitField0_ = (bitField0_ & ~0x00000001); + entriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEntriesFieldBuilder() + : null; + } else { + entriesBuilder_.addAllMessages(other.entries_); + } + } + } + if (other.hasAnnualizedBaseCompensationRange()) { + mergeAnnualizedBaseCompensationRange(other.getAnnualizedBaseCompensationRange()); + } + if (other.hasAnnualizedTotalCompensationRange()) { + mergeAnnualizedTotalCompensationRange(other.getAnnualizedTotalCompensationRange()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.CompensationInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.CompensationInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List + entries_ = java.util.Collections.emptyList(); + + private void ensureEntriesIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + entries_ = + new java.util.ArrayList< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry>(entries_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.Builder, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntryOrBuilder> + entriesBuilder_; + + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public java.util.List + getEntriesList() { + if (entriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(entries_); + } else { + return entriesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public int getEntriesCount() { + if (entriesBuilder_ == null) { + return entries_.size(); + } else { + return entriesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry getEntries( + int index) { + if (entriesBuilder_ == null) { + return entries_.get(index); + } else { + return entriesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public Builder setEntries( + int index, com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry value) { + if (entriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntriesIsMutable(); + entries_.set(index, value); + onChanged(); + } else { + entriesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public Builder setEntries( + int index, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.Builder + builderForValue) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.set(index, builderForValue.build()); + onChanged(); + } else { + entriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public Builder addEntries( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry value) { + if (entriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntriesIsMutable(); + entries_.add(value); + onChanged(); + } else { + entriesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public Builder addEntries( + int index, com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry value) { + if (entriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntriesIsMutable(); + entries_.add(index, value); + onChanged(); + } else { + entriesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public Builder addEntries( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.Builder + builderForValue) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.add(builderForValue.build()); + onChanged(); + } else { + entriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public Builder addEntries( + int index, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.Builder + builderForValue) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.add(index, builderForValue.build()); + onChanged(); + } else { + entriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public Builder addAllEntries( + java.lang.Iterable< + ? extends com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry> + values) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entries_); + onChanged(); + } else { + entriesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public Builder clearEntries() { + if (entriesBuilder_ == null) { + entries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + entriesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public Builder removeEntries(int index) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.remove(index); + onChanged(); + } else { + entriesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.Builder + getEntriesBuilder(int index) { + return getEntriesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntryOrBuilder + getEntriesOrBuilder(int index) { + if (entriesBuilder_ == null) { + return entries_.get(index); + } else { + return entriesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntryOrBuilder> + getEntriesOrBuilderList() { + if (entriesBuilder_ != null) { + return entriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(entries_); + } + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.Builder + addEntriesBuilder() { + return getEntriesFieldBuilder() + .addBuilder( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry + .getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.Builder + addEntriesBuilder(int index) { + return getEntriesFieldBuilder() + .addBuilder( + index, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry + .getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * At most one entry can be of type
+     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+     * which is referred as ** base compensation entry ** for the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + public java.util.List< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.Builder> + getEntriesBuilderList() { + return getEntriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.Builder, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntryOrBuilder> + getEntriesFieldBuilder() { + if (entriesBuilder_ == null) { + entriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.Builder, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntryOrBuilder>( + entries_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + entries_ = null; + } + return entriesBuilder_; + } + + private com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + annualizedBaseCompensationRange_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder> + annualizedBaseCompensationRangeBuilder_; + /** + * + * + *
+     * Output only. Annualized base compensation range. Computed as
+     * base compensation entry's [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2; + * + */ + public boolean hasAnnualizedBaseCompensationRange() { + return annualizedBaseCompensationRangeBuilder_ != null + || annualizedBaseCompensationRange_ != null; + } + /** + * + * + *
+     * Output only. Annualized base compensation range. Computed as
+     * base compensation entry's [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + getAnnualizedBaseCompensationRange() { + if (annualizedBaseCompensationRangeBuilder_ == null) { + return annualizedBaseCompensationRange_ == null + ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + .getDefaultInstance() + : annualizedBaseCompensationRange_; + } else { + return annualizedBaseCompensationRangeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Annualized base compensation range. Computed as
+     * base compensation entry's [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2; + * + */ + public Builder setAnnualizedBaseCompensationRange( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange value) { + if (annualizedBaseCompensationRangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + annualizedBaseCompensationRange_ = value; + onChanged(); + } else { + annualizedBaseCompensationRangeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Annualized base compensation range. Computed as
+     * base compensation entry's [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2; + * + */ + public Builder setAnnualizedBaseCompensationRange( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder + builderForValue) { + if (annualizedBaseCompensationRangeBuilder_ == null) { + annualizedBaseCompensationRange_ = builderForValue.build(); + onChanged(); + } else { + annualizedBaseCompensationRangeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Annualized base compensation range. Computed as
+     * base compensation entry's [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2; + * + */ + public Builder mergeAnnualizedBaseCompensationRange( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange value) { + if (annualizedBaseCompensationRangeBuilder_ == null) { + if (annualizedBaseCompensationRange_ != null) { + annualizedBaseCompensationRange_ = + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.newBuilder( + annualizedBaseCompensationRange_) + .mergeFrom(value) + .buildPartial(); + } else { + annualizedBaseCompensationRange_ = value; + } + onChanged(); + } else { + annualizedBaseCompensationRangeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Annualized base compensation range. Computed as
+     * base compensation entry's [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2; + * + */ + public Builder clearAnnualizedBaseCompensationRange() { + if (annualizedBaseCompensationRangeBuilder_ == null) { + annualizedBaseCompensationRange_ = null; + onChanged(); + } else { + annualizedBaseCompensationRange_ = null; + annualizedBaseCompensationRangeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Annualized base compensation range. Computed as
+     * base compensation entry's [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder + getAnnualizedBaseCompensationRangeBuilder() { + + onChanged(); + return getAnnualizedBaseCompensationRangeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Annualized base compensation range. Computed as
+     * base compensation entry's [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder + getAnnualizedBaseCompensationRangeOrBuilder() { + if (annualizedBaseCompensationRangeBuilder_ != null) { + return annualizedBaseCompensationRangeBuilder_.getMessageOrBuilder(); + } else { + return annualizedBaseCompensationRange_ == null + ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + .getDefaultInstance() + : annualizedBaseCompensationRange_; + } + } + /** + * + * + *
+     * Output only. Annualized base compensation range. Computed as
+     * base compensation entry's [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder> + getAnnualizedBaseCompensationRangeFieldBuilder() { + if (annualizedBaseCompensationRangeBuilder_ == null) { + annualizedBaseCompensationRangeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder>( + getAnnualizedBaseCompensationRange(), getParentForChildren(), isClean()); + annualizedBaseCompensationRange_ = null; + } + return annualizedBaseCompensationRangeBuilder_; + } + + private com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + annualizedTotalCompensationRange_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder> + annualizedTotalCompensationRangeBuilder_; + /** + * + * + *
+     * Output only. Annualized total compensation range. Computed as
+     * all compensation entries' [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3; + * + */ + public boolean hasAnnualizedTotalCompensationRange() { + return annualizedTotalCompensationRangeBuilder_ != null + || annualizedTotalCompensationRange_ != null; + } + /** + * + * + *
+     * Output only. Annualized total compensation range. Computed as
+     * all compensation entries' [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + getAnnualizedTotalCompensationRange() { + if (annualizedTotalCompensationRangeBuilder_ == null) { + return annualizedTotalCompensationRange_ == null + ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + .getDefaultInstance() + : annualizedTotalCompensationRange_; + } else { + return annualizedTotalCompensationRangeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Annualized total compensation range. Computed as
+     * all compensation entries' [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3; + * + */ + public Builder setAnnualizedTotalCompensationRange( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange value) { + if (annualizedTotalCompensationRangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + annualizedTotalCompensationRange_ = value; + onChanged(); + } else { + annualizedTotalCompensationRangeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Annualized total compensation range. Computed as
+     * all compensation entries' [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3; + * + */ + public Builder setAnnualizedTotalCompensationRange( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder + builderForValue) { + if (annualizedTotalCompensationRangeBuilder_ == null) { + annualizedTotalCompensationRange_ = builderForValue.build(); + onChanged(); + } else { + annualizedTotalCompensationRangeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Annualized total compensation range. Computed as
+     * all compensation entries' [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3; + * + */ + public Builder mergeAnnualizedTotalCompensationRange( + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange value) { + if (annualizedTotalCompensationRangeBuilder_ == null) { + if (annualizedTotalCompensationRange_ != null) { + annualizedTotalCompensationRange_ = + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.newBuilder( + annualizedTotalCompensationRange_) + .mergeFrom(value) + .buildPartial(); + } else { + annualizedTotalCompensationRange_ = value; + } + onChanged(); + } else { + annualizedTotalCompensationRangeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Annualized total compensation range. Computed as
+     * all compensation entries' [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3; + * + */ + public Builder clearAnnualizedTotalCompensationRange() { + if (annualizedTotalCompensationRangeBuilder_ == null) { + annualizedTotalCompensationRange_ = null; + onChanged(); + } else { + annualizedTotalCompensationRange_ = null; + annualizedTotalCompensationRangeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Annualized total compensation range. Computed as
+     * all compensation entries' [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder + getAnnualizedTotalCompensationRangeBuilder() { + + onChanged(); + return getAnnualizedTotalCompensationRangeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Annualized total compensation range. Computed as
+     * all compensation entries' [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3; + * + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder + getAnnualizedTotalCompensationRangeOrBuilder() { + if (annualizedTotalCompensationRangeBuilder_ != null) { + return annualizedTotalCompensationRangeBuilder_.getMessageOrBuilder(); + } else { + return annualizedTotalCompensationRange_ == null + ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + .getDefaultInstance() + : annualizedTotalCompensationRange_; + } + } + /** + * + * + *
+     * Output only. Annualized total compensation range. Computed as
+     * all compensation entries' [CompensationEntry.compensation][] times
+     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+     * See
+     * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+     * for explanation on compensation annualization.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder> + getAnnualizedTotalCompensationRangeFieldBuilder() { + if (annualizedTotalCompensationRangeBuilder_ == null) { + annualizedTotalCompensationRangeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder, + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder>( + getAnnualizedTotalCompensationRange(), getParentForChildren(), isClean()); + annualizedTotalCompensationRange_ = null; + } + return annualizedTotalCompensationRangeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.CompensationInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CompensationInfo) + private static final com.google.cloud.talent.v4beta1.CompensationInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.CompensationInfo(); + } + + public static com.google.cloud.talent.v4beta1.CompensationInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompensationInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CompensationInfo(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.CompensationInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationInfoOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationInfoOrBuilder.java new file mode 100644 index 000000000000..899c5cc7fca6 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationInfoOrBuilder.java @@ -0,0 +1,198 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +public interface CompensationInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.CompensationInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * Job compensation information.
+   * At most one entry can be of type
+   * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+   * which is referred as ** base compensation entry ** for the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + java.util.List + getEntriesList(); + /** + * + * + *
+   * Optional.
+   * Job compensation information.
+   * At most one entry can be of type
+   * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+   * which is referred as ** base compensation entry ** for the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry getEntries(int index); + /** + * + * + *
+   * Optional.
+   * Job compensation information.
+   * At most one entry can be of type
+   * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+   * which is referred as ** base compensation entry ** for the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + int getEntriesCount(); + /** + * + * + *
+   * Optional.
+   * Job compensation information.
+   * At most one entry can be of type
+   * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+   * which is referred as ** base compensation entry ** for the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + java.util.List< + ? extends com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntryOrBuilder> + getEntriesOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * Job compensation information.
+   * At most one entry can be of type
+   * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE],
+   * which is referred as ** base compensation entry ** for the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1; + * + */ + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntryOrBuilder getEntriesOrBuilder( + int index); + + /** + * + * + *
+   * Output only. Annualized base compensation range. Computed as
+   * base compensation entry's [CompensationEntry.compensation][] times
+   * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+   * See
+   * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+   * for explanation on compensation annualization.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2; + * + */ + boolean hasAnnualizedBaseCompensationRange(); + /** + * + * + *
+   * Output only. Annualized base compensation range. Computed as
+   * base compensation entry's [CompensationEntry.compensation][] times
+   * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+   * See
+   * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+   * for explanation on compensation annualization.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2; + * + */ + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + getAnnualizedBaseCompensationRange(); + /** + * + * + *
+   * Output only. Annualized base compensation range. Computed as
+   * base compensation entry's [CompensationEntry.compensation][] times
+   * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+   * See
+   * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+   * for explanation on compensation annualization.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2; + * + */ + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder + getAnnualizedBaseCompensationRangeOrBuilder(); + + /** + * + * + *
+   * Output only. Annualized total compensation range. Computed as
+   * all compensation entries' [CompensationEntry.compensation][] times
+   * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+   * See
+   * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+   * for explanation on compensation annualization.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3; + * + */ + boolean hasAnnualizedTotalCompensationRange(); + /** + * + * + *
+   * Output only. Annualized total compensation range. Computed as
+   * all compensation entries' [CompensationEntry.compensation][] times
+   * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+   * See
+   * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+   * for explanation on compensation annualization.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3; + * + */ + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange + getAnnualizedTotalCompensationRange(); + /** + * + * + *
+   * Output only. Annualized total compensation range. Computed as
+   * all compensation entries' [CompensationEntry.compensation][] times
+   * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
+   * See
+   * [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry]
+   * for explanation on compensation annualization.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3; + * + */ + com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder + getAnnualizedTotalCompensationRangeOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryRequest.java new file mode 100644 index 000000000000..f363034e4261 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryRequest.java @@ -0,0 +1,2228 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/completion_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Auto-complete parameters.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CompleteQueryRequest} + */ +public final class CompleteQueryRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.CompleteQueryRequest) + CompleteQueryRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CompleteQueryRequest.newBuilder() to construct. + private CompleteQueryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CompleteQueryRequest() { + name_ = ""; + query_ = ""; + languageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + pageSize_ = 0; + companyName_ = ""; + scope_ = 0; + type_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CompleteQueryRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + query_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + languageCodes_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + languageCodes_.add(s); + break; + } + case 32: + { + pageSize_ = input.readInt32(); + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + companyName_ = s; + break; + } + case 48: + { + int rawValue = input.readEnum(); + + scope_ = rawValue; + break; + } + case 56: + { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + languageCodes_ = languageCodes_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompletionServiceProto + .internal_static_google_cloud_talent_v4beta1_CompleteQueryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompletionServiceProto + .internal_static_google_cloud_talent_v4beta1_CompleteQueryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CompleteQueryRequest.class, + com.google.cloud.talent.v4beta1.CompleteQueryRequest.Builder.class); + } + + /** + * + * + *
+   * Enum to specify the scope of completion.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope} + */ + public enum CompletionScope implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value.
+     * 
+ * + * COMPLETION_SCOPE_UNSPECIFIED = 0; + */ + COMPLETION_SCOPE_UNSPECIFIED(0), + /** + * + * + *
+     * Suggestions are based only on the data provided by the client.
+     * 
+ * + * TENANT = 1; + */ + TENANT(1), + /** + * + * + *
+     * Suggestions are based on all jobs data in the system that's visible to
+     * the client
+     * 
+ * + * PUBLIC = 2; + */ + PUBLIC(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value.
+     * 
+ * + * COMPLETION_SCOPE_UNSPECIFIED = 0; + */ + public static final int COMPLETION_SCOPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Suggestions are based only on the data provided by the client.
+     * 
+ * + * TENANT = 1; + */ + public static final int TENANT_VALUE = 1; + /** + * + * + *
+     * Suggestions are based on all jobs data in the system that's visible to
+     * the client
+     * 
+ * + * PUBLIC = 2; + */ + public static final int PUBLIC_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static CompletionScope valueOf(int value) { + return forNumber(value); + } + + public static CompletionScope forNumber(int value) { + switch (value) { + case 0: + return COMPLETION_SCOPE_UNSPECIFIED; + case 1: + return TENANT; + case 2: + return PUBLIC; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CompletionScope findValueByNumber(int number) { + return CompletionScope.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompleteQueryRequest.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final CompletionScope[] VALUES = values(); + + public static CompletionScope 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()]; + } + + private final int value; + + private CompletionScope(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope) + } + + /** + * + * + *
+   * Enum to specify auto-completion topics.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType} + */ + public enum CompletionType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value.
+     * 
+ * + * COMPLETION_TYPE_UNSPECIFIED = 0; + */ + COMPLETION_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Only suggest job titles.
+     * 
+ * + * JOB_TITLE = 1; + */ + JOB_TITLE(1), + /** + * + * + *
+     * Only suggest company names.
+     * 
+ * + * COMPANY_NAME = 2; + */ + COMPANY_NAME(2), + /** + * + * + *
+     * Suggest both job titles and company names.
+     * 
+ * + * COMBINED = 3; + */ + COMBINED(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value.
+     * 
+ * + * COMPLETION_TYPE_UNSPECIFIED = 0; + */ + public static final int COMPLETION_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Only suggest job titles.
+     * 
+ * + * JOB_TITLE = 1; + */ + public static final int JOB_TITLE_VALUE = 1; + /** + * + * + *
+     * Only suggest company names.
+     * 
+ * + * COMPANY_NAME = 2; + */ + public static final int COMPANY_NAME_VALUE = 2; + /** + * + * + *
+     * Suggest both job titles and company names.
+     * 
+ * + * COMBINED = 3; + */ + public static final int COMBINED_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static CompletionType valueOf(int value) { + return forNumber(value); + } + + public static CompletionType forNumber(int value) { + switch (value) { + case 0: + return COMPLETION_TYPE_UNSPECIFIED; + case 1: + return JOB_TITLE; + case 2: + return COMPANY_NAME; + case 3: + return COMBINED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CompletionType findValueByNumber(int number) { + return CompletionType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompleteQueryRequest.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final CompletionType[] VALUES = values(); + + public static CompletionType 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()]; + } + + private final int value; + + private CompletionType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required.
+   * Resource name of project the completion is performed within.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * Resource name of project the completion is performed within.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUERY_FIELD_NUMBER = 2; + private volatile java.lang.Object query_; + /** + * + * + *
+   * Required.
+   * The query used to generate suggestions.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string query = 2; + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + 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(); + query_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The query used to generate suggestions.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string query = 2; + */ + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LANGUAGE_CODES_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList languageCodes_; + /** + * + * + *
+   * Optional.
+   * The list of languages of the query. This is
+   * the BCP-47 language code, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * For
+   * [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
+   * type, only open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * For
+   * [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
+   * type, only companies having open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * For
+   * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
+   * type, only open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * or companies having open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * repeated string language_codes = 3; + */ + public com.google.protobuf.ProtocolStringList getLanguageCodesList() { + return languageCodes_; + } + /** + * + * + *
+   * Optional.
+   * The list of languages of the query. This is
+   * the BCP-47 language code, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * For
+   * [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
+   * type, only open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * For
+   * [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
+   * type, only companies having open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * For
+   * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
+   * type, only open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * or companies having open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * repeated string language_codes = 3; + */ + public int getLanguageCodesCount() { + return languageCodes_.size(); + } + /** + * + * + *
+   * Optional.
+   * The list of languages of the query. This is
+   * the BCP-47 language code, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * For
+   * [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
+   * type, only open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * For
+   * [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
+   * type, only companies having open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * For
+   * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
+   * type, only open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * or companies having open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * repeated string language_codes = 3; + */ + public java.lang.String getLanguageCodes(int index) { + return languageCodes_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The list of languages of the query. This is
+   * the BCP-47 language code, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * For
+   * [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
+   * type, only open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * For
+   * [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
+   * type, only companies having open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * For
+   * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
+   * type, only open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * or companies having open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * repeated string language_codes = 3; + */ + public com.google.protobuf.ByteString getLanguageCodesBytes(int index) { + return languageCodes_.getByteString(index); + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 4; + private int pageSize_; + /** + * + * + *
+   * Required.
+   * Completion result count.
+   * The maximum allowed page size is 10.
+   * 
+ * + * int32 page_size = 4; + */ + public int getPageSize() { + return pageSize_; + } + + public static final int COMPANY_NAME_FIELD_NUMBER = 5; + private volatile java.lang.Object companyName_; + /** + * + * + *
+   * Optional.
+   * If provided, restricts completion to specified company.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string company_name = 5; + */ + public java.lang.String getCompanyName() { + java.lang.Object ref = companyName_; + 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(); + companyName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * If provided, restricts completion to specified company.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string company_name = 5; + */ + public com.google.protobuf.ByteString getCompanyNameBytes() { + java.lang.Object ref = companyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + companyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCOPE_FIELD_NUMBER = 6; + private int scope_; + /** + * + * + *
+   * Optional.
+   * The scope of the completion. The defaults is
+   * [CompletionScope.PUBLIC][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope.PUBLIC].
+   * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope scope = 6; + */ + public int getScopeValue() { + return scope_; + } + /** + * + * + *
+   * Optional.
+   * The scope of the completion. The defaults is
+   * [CompletionScope.PUBLIC][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope.PUBLIC].
+   * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope scope = 6; + */ + public com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope getScope() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope result = + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope.valueOf(scope_); + return result == null + ? com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope.UNRECOGNIZED + : result; + } + + public static final int TYPE_FIELD_NUMBER = 7; + private int type_; + /** + * + * + *
+   * Optional.
+   * The completion topic. The default is
+   * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED].
+   * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 7; + */ + public int getTypeValue() { + return type_; + } + /** + * + * + *
+   * Optional.
+   * The completion topic. The default is
+   * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED].
+   * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 7; + */ + public com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType result = + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.valueOf(type_); + return result == null + ? com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.UNRECOGNIZED + : result; + } + + 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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getQueryBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, query_); + } + for (int i = 0; i < languageCodes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, languageCodes_.getRaw(i)); + } + if (pageSize_ != 0) { + output.writeInt32(4, pageSize_); + } + if (!getCompanyNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, companyName_); + } + if (scope_ + != com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope + .COMPLETION_SCOPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, scope_); + } + if (type_ + != com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType + .COMPLETION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(7, type_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getQueryBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, query_); + } + { + int dataSize = 0; + for (int i = 0; i < languageCodes_.size(); i++) { + dataSize += computeStringSizeNoTag(languageCodes_.getRaw(i)); + } + size += dataSize; + size += 1 * getLanguageCodesList().size(); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); + } + if (!getCompanyNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, companyName_); + } + if (scope_ + != com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope + .COMPLETION_SCOPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, scope_); + } + if (type_ + != com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType + .COMPLETION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, type_); + } + size += unknownFields.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.cloud.talent.v4beta1.CompleteQueryRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.CompleteQueryRequest other = + (com.google.cloud.talent.v4beta1.CompleteQueryRequest) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && getQuery().equals(other.getQuery()); + result = result && getLanguageCodesList().equals(other.getLanguageCodesList()); + result = result && (getPageSize() == other.getPageSize()); + result = result && getCompanyName().equals(other.getCompanyName()); + result = result && scope_ == other.scope_; + result = result && type_ == other.type_; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + if (getLanguageCodesCount() > 0) { + hash = (37 * hash) + LANGUAGE_CODES_FIELD_NUMBER; + hash = (53 * hash) + getLanguageCodesList().hashCode(); + } + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + COMPANY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getCompanyName().hashCode(); + hash = (37 * hash) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + scope_; + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryRequest 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.cloud.talent.v4beta1.CompleteQueryRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryRequest 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.cloud.talent.v4beta1.CompleteQueryRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryRequest 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.cloud.talent.v4beta1.CompleteQueryRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryRequest 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.cloud.talent.v4beta1.CompleteQueryRequest 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; + } + /** + * + * + *
+   * Input only.
+   * Auto-complete parameters.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CompleteQueryRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.CompleteQueryRequest) + com.google.cloud.talent.v4beta1.CompleteQueryRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompletionServiceProto + .internal_static_google_cloud_talent_v4beta1_CompleteQueryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompletionServiceProto + .internal_static_google_cloud_talent_v4beta1_CompleteQueryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CompleteQueryRequest.class, + com.google.cloud.talent.v4beta1.CompleteQueryRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.CompleteQueryRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + query_ = ""; + + languageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + pageSize_ = 0; + + companyName_ = ""; + + scope_ = 0; + + type_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CompletionServiceProto + .internal_static_google_cloud_talent_v4beta1_CompleteQueryRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompleteQueryRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.CompleteQueryRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompleteQueryRequest build() { + com.google.cloud.talent.v4beta1.CompleteQueryRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompleteQueryRequest buildPartial() { + com.google.cloud.talent.v4beta1.CompleteQueryRequest result = + new com.google.cloud.talent.v4beta1.CompleteQueryRequest(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.name_ = name_; + result.query_ = query_; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + languageCodes_ = languageCodes_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.languageCodes_ = languageCodes_; + result.pageSize_ = pageSize_; + result.companyName_ = companyName_; + result.scope_ = scope_; + result.type_ = type_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.CompleteQueryRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.CompleteQueryRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.CompleteQueryRequest other) { + if (other == com.google.cloud.talent.v4beta1.CompleteQueryRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getQuery().isEmpty()) { + query_ = other.query_; + onChanged(); + } + if (!other.languageCodes_.isEmpty()) { + if (languageCodes_.isEmpty()) { + languageCodes_ = other.languageCodes_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureLanguageCodesIsMutable(); + languageCodes_.addAll(other.languageCodes_); + } + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getCompanyName().isEmpty()) { + companyName_ = other.companyName_; + onChanged(); + } + if (other.scope_ != 0) { + setScopeValue(other.getScopeValue()); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.CompleteQueryRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.CompleteQueryRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required.
+     * Resource name of project the completion is performed within.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * Resource name of project the completion is performed within.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * Resource name of project the completion is performed within.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Resource name of project the completion is performed within.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Resource name of project the completion is performed within.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object query_ = ""; + /** + * + * + *
+     * Required.
+     * The query used to generate suggestions.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string query = 2; + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The query used to generate suggestions.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string query = 2; + */ + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The query used to generate suggestions.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string query = 2; + */ + public Builder setQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + query_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The query used to generate suggestions.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string query = 2; + */ + public Builder clearQuery() { + + query_ = getDefaultInstance().getQuery(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The query used to generate suggestions.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string query = 2; + */ + public Builder setQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + query_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList languageCodes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureLanguageCodesIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + languageCodes_ = new com.google.protobuf.LazyStringArrayList(languageCodes_); + bitField0_ |= 0x00000004; + } + } + /** + * + * + *
+     * Optional.
+     * The list of languages of the query. This is
+     * the BCP-47 language code, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * For
+     * [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
+     * type, only companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * or companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * repeated string language_codes = 3; + */ + public com.google.protobuf.ProtocolStringList getLanguageCodesList() { + return languageCodes_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional.
+     * The list of languages of the query. This is
+     * the BCP-47 language code, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * For
+     * [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
+     * type, only companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * or companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * repeated string language_codes = 3; + */ + public int getLanguageCodesCount() { + return languageCodes_.size(); + } + /** + * + * + *
+     * Optional.
+     * The list of languages of the query. This is
+     * the BCP-47 language code, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * For
+     * [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
+     * type, only companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * or companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * repeated string language_codes = 3; + */ + public java.lang.String getLanguageCodes(int index) { + return languageCodes_.get(index); + } + /** + * + * + *
+     * Optional.
+     * The list of languages of the query. This is
+     * the BCP-47 language code, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * For
+     * [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
+     * type, only companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * or companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * repeated string language_codes = 3; + */ + public com.google.protobuf.ByteString getLanguageCodesBytes(int index) { + return languageCodes_.getByteString(index); + } + /** + * + * + *
+     * Optional.
+     * The list of languages of the query. This is
+     * the BCP-47 language code, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * For
+     * [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
+     * type, only companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * or companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * repeated string language_codes = 3; + */ + public Builder setLanguageCodes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLanguageCodesIsMutable(); + languageCodes_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The list of languages of the query. This is
+     * the BCP-47 language code, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * For
+     * [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
+     * type, only companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * or companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * repeated string language_codes = 3; + */ + public Builder addLanguageCodes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLanguageCodesIsMutable(); + languageCodes_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The list of languages of the query. This is
+     * the BCP-47 language code, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * For
+     * [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
+     * type, only companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * or companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * repeated string language_codes = 3; + */ + public Builder addAllLanguageCodes(java.lang.Iterable values) { + ensureLanguageCodesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languageCodes_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The list of languages of the query. This is
+     * the BCP-47 language code, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * For
+     * [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
+     * type, only companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * or companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * repeated string language_codes = 3; + */ + public Builder clearLanguageCodes() { + languageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The list of languages of the query. This is
+     * the BCP-47 language code, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * For
+     * [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
+     * type, only companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * For
+     * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
+     * type, only open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * or companies having open jobs with the same
+     * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+     * are returned.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * repeated string language_codes = 3; + */ + public Builder addLanguageCodesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureLanguageCodesIsMutable(); + languageCodes_.add(value); + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Required.
+     * Completion result count.
+     * The maximum allowed page size is 10.
+     * 
+ * + * int32 page_size = 4; + */ + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Required.
+     * Completion result count.
+     * The maximum allowed page size is 10.
+     * 
+ * + * int32 page_size = 4; + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Completion result count.
+     * The maximum allowed page size is 10.
+     * 
+ * + * int32 page_size = 4; + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object companyName_ = ""; + /** + * + * + *
+     * Optional.
+     * If provided, restricts completion to specified company.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string company_name = 5; + */ + public java.lang.String getCompanyName() { + java.lang.Object ref = companyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + companyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * If provided, restricts completion to specified company.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string company_name = 5; + */ + public com.google.protobuf.ByteString getCompanyNameBytes() { + java.lang.Object ref = companyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + companyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * If provided, restricts completion to specified company.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string company_name = 5; + */ + public Builder setCompanyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + companyName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * If provided, restricts completion to specified company.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string company_name = 5; + */ + public Builder clearCompanyName() { + + companyName_ = getDefaultInstance().getCompanyName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * If provided, restricts completion to specified company.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string company_name = 5; + */ + public Builder setCompanyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + companyName_ = value; + onChanged(); + return this; + } + + private int scope_ = 0; + /** + * + * + *
+     * Optional.
+     * The scope of the completion. The defaults is
+     * [CompletionScope.PUBLIC][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope.PUBLIC].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope scope = 6; + */ + public int getScopeValue() { + return scope_; + } + /** + * + * + *
+     * Optional.
+     * The scope of the completion. The defaults is
+     * [CompletionScope.PUBLIC][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope.PUBLIC].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope scope = 6; + */ + public Builder setScopeValue(int value) { + scope_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The scope of the completion. The defaults is
+     * [CompletionScope.PUBLIC][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope.PUBLIC].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope scope = 6; + */ + public com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope getScope() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope result = + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope.valueOf(scope_); + return result == null + ? com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional.
+     * The scope of the completion. The defaults is
+     * [CompletionScope.PUBLIC][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope.PUBLIC].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope scope = 6; + */ + public Builder setScope( + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope value) { + if (value == null) { + throw new NullPointerException(); + } + + scope_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The scope of the completion. The defaults is
+     * [CompletionScope.PUBLIC][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope.PUBLIC].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope scope = 6; + */ + public Builder clearScope() { + + scope_ = 0; + onChanged(); + return this; + } + + private int type_ = 0; + /** + * + * + *
+     * Optional.
+     * The completion topic. The default is
+     * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 7; + */ + public int getTypeValue() { + return type_; + } + /** + * + * + *
+     * Optional.
+     * The completion topic. The default is
+     * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 7; + */ + public Builder setTypeValue(int value) { + type_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The completion topic. The default is
+     * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 7; + */ + public com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType result = + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.valueOf(type_); + return result == null + ? com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional.
+     * The completion topic. The default is
+     * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 7; + */ + public Builder setType( + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The completion topic. The default is
+     * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED].
+     * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 7; + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.CompleteQueryRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CompleteQueryRequest) + private static final com.google.cloud.talent.v4beta1.CompleteQueryRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.CompleteQueryRequest(); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompleteQueryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CompleteQueryRequest(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.CompleteQueryRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryRequestOrBuilder.java new file mode 100644 index 000000000000..982aa5ea5358 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryRequestOrBuilder.java @@ -0,0 +1,281 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/completion_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface CompleteQueryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.CompleteQueryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * Resource name of project the completion is performed within.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Required.
+   * Resource name of project the completion is performed within.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required.
+   * The query used to generate suggestions.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string query = 2; + */ + java.lang.String getQuery(); + /** + * + * + *
+   * Required.
+   * The query used to generate suggestions.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string query = 2; + */ + com.google.protobuf.ByteString getQueryBytes(); + + /** + * + * + *
+   * Optional.
+   * The list of languages of the query. This is
+   * the BCP-47 language code, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * For
+   * [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
+   * type, only open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * For
+   * [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
+   * type, only companies having open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * For
+   * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
+   * type, only open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * or companies having open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * repeated string language_codes = 3; + */ + java.util.List getLanguageCodesList(); + /** + * + * + *
+   * Optional.
+   * The list of languages of the query. This is
+   * the BCP-47 language code, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * For
+   * [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
+   * type, only open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * For
+   * [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
+   * type, only companies having open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * For
+   * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
+   * type, only open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * or companies having open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * repeated string language_codes = 3; + */ + int getLanguageCodesCount(); + /** + * + * + *
+   * Optional.
+   * The list of languages of the query. This is
+   * the BCP-47 language code, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * For
+   * [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
+   * type, only open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * For
+   * [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
+   * type, only companies having open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * For
+   * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
+   * type, only open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * or companies having open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * repeated string language_codes = 3; + */ + java.lang.String getLanguageCodes(int index); + /** + * + * + *
+   * Optional.
+   * The list of languages of the query. This is
+   * the BCP-47 language code, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * For
+   * [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE]
+   * type, only open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * For
+   * [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME]
+   * type, only companies having open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * For
+   * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]
+   * type, only open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * or companies having open jobs with the same
+   * [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes]
+   * are returned.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * repeated string language_codes = 3; + */ + com.google.protobuf.ByteString getLanguageCodesBytes(int index); + + /** + * + * + *
+   * Required.
+   * Completion result count.
+   * The maximum allowed page size is 10.
+   * 
+ * + * int32 page_size = 4; + */ + int getPageSize(); + + /** + * + * + *
+   * Optional.
+   * If provided, restricts completion to specified company.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string company_name = 5; + */ + java.lang.String getCompanyName(); + /** + * + * + *
+   * Optional.
+   * If provided, restricts completion to specified company.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string company_name = 5; + */ + com.google.protobuf.ByteString getCompanyNameBytes(); + + /** + * + * + *
+   * Optional.
+   * The scope of the completion. The defaults is
+   * [CompletionScope.PUBLIC][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope.PUBLIC].
+   * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope scope = 6; + */ + int getScopeValue(); + /** + * + * + *
+   * Optional.
+   * The scope of the completion. The defaults is
+   * [CompletionScope.PUBLIC][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope.PUBLIC].
+   * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope scope = 6; + */ + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope getScope(); + + /** + * + * + *
+   * Optional.
+   * The completion topic. The default is
+   * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED].
+   * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 7; + */ + int getTypeValue(); + /** + * + * + *
+   * Optional.
+   * The completion topic. The default is
+   * [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED].
+   * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 7; + */ + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType getType(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryResponse.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryResponse.java new file mode 100644 index 000000000000..10807621f658 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryResponse.java @@ -0,0 +1,2284 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/completion_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Output only.
+ * Response of auto-complete query.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CompleteQueryResponse} + */ +public final class CompleteQueryResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.CompleteQueryResponse) + CompleteQueryResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use CompleteQueryResponse.newBuilder() to construct. + private CompleteQueryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CompleteQueryResponse() { + completionResults_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CompleteQueryResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + completionResults_ = + new java.util.ArrayList< + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult>(); + mutable_bitField0_ |= 0x00000001; + } + completionResults_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult + .parser(), + extensionRegistry)); + break; + } + case 18: + { + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = + input.readMessage( + com.google.cloud.talent.v4beta1.ResponseMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + completionResults_ = java.util.Collections.unmodifiableList(completionResults_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompletionServiceProto + .internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompletionServiceProto + .internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CompleteQueryResponse.class, + com.google.cloud.talent.v4beta1.CompleteQueryResponse.Builder.class); + } + + public interface CompletionResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The suggestion for the query.
+     * 
+ * + * string suggestion = 1; + */ + java.lang.String getSuggestion(); + /** + * + * + *
+     * The suggestion for the query.
+     * 
+ * + * string suggestion = 1; + */ + com.google.protobuf.ByteString getSuggestionBytes(); + + /** + * + * + *
+     * The completion topic.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 2; + */ + int getTypeValue(); + /** + * + * + *
+     * The completion topic.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 2; + */ + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType getType(); + + /** + * + * + *
+     * The URI of the company image for [CompletionType.COMPANY_NAME][].
+     * 
+ * + * string image_uri = 3; + */ + java.lang.String getImageUri(); + /** + * + * + *
+     * The URI of the company image for [CompletionType.COMPANY_NAME][].
+     * 
+ * + * string image_uri = 3; + */ + com.google.protobuf.ByteString getImageUriBytes(); + } + /** + * + * + *
+   * Output only.
+   * Resource that represents completion results.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult} + */ + public static final class CompletionResult extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult) + CompletionResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use CompletionResult.newBuilder() to construct. + private CompletionResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CompletionResult() { + suggestion_ = ""; + type_ = 0; + imageUri_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CompletionResult( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + suggestion_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + imageUri_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompletionServiceProto + .internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_CompletionResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompletionServiceProto + .internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_CompletionResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult.class, + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult.Builder.class); + } + + public static final int SUGGESTION_FIELD_NUMBER = 1; + private volatile java.lang.Object suggestion_; + /** + * + * + *
+     * The suggestion for the query.
+     * 
+ * + * string suggestion = 1; + */ + public java.lang.String getSuggestion() { + java.lang.Object ref = suggestion_; + 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(); + suggestion_ = s; + return s; + } + } + /** + * + * + *
+     * The suggestion for the query.
+     * 
+ * + * string suggestion = 1; + */ + public com.google.protobuf.ByteString getSuggestionBytes() { + java.lang.Object ref = suggestion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + suggestion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 2; + private int type_; + /** + * + * + *
+     * The completion topic.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 2; + */ + public int getTypeValue() { + return type_; + } + /** + * + * + *
+     * The completion topic.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 2; + */ + public com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType result = + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.valueOf(type_); + return result == null + ? com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.UNRECOGNIZED + : result; + } + + public static final int IMAGE_URI_FIELD_NUMBER = 3; + private volatile java.lang.Object imageUri_; + /** + * + * + *
+     * The URI of the company image for [CompletionType.COMPANY_NAME][].
+     * 
+ * + * string image_uri = 3; + */ + public java.lang.String getImageUri() { + java.lang.Object ref = imageUri_; + 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(); + imageUri_ = s; + return s; + } + } + /** + * + * + *
+     * The URI of the company image for [CompletionType.COMPANY_NAME][].
+     * 
+ * + * string image_uri = 3; + */ + public com.google.protobuf.ByteString getImageUriBytes() { + java.lang.Object ref = imageUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + imageUri_ = 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 (!getSuggestionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, suggestion_); + } + if (type_ + != com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType + .COMPLETION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, type_); + } + if (!getImageUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, imageUri_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getSuggestionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, suggestion_); + } + if (type_ + != com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType + .COMPLETION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); + } + if (!getImageUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, imageUri_); + } + size += unknownFields.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.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult other = + (com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult) obj; + + boolean result = true; + result = result && getSuggestion().equals(other.getSuggestion()); + result = result && type_ == other.type_; + result = result && getImageUri().equals(other.getImageUri()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SUGGESTION_FIELD_NUMBER; + hash = (53 * hash) + getSuggestion().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + IMAGE_URI_FIELD_NUMBER; + hash = (53 * hash) + getImageUri().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult 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.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult 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.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult + 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.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult 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.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult 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; + } + /** + * + * + *
+     * Output only.
+     * Resource that represents completion results.
+     * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult) + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompletionServiceProto + .internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_CompletionResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompletionServiceProto + .internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_CompletionResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult.class, + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult.Builder + .class); + } + + // Construct using + // com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + suggestion_ = ""; + + type_ = 0; + + imageUri_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CompletionServiceProto + .internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_CompletionResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult + getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult build() { + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult buildPartial() { + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult result = + new com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult(this); + result.suggestion_ = suggestion_; + result.type_ = type_; + result.imageUri_ = imageUri_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult) { + return mergeFrom( + (com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult other) { + if (other + == com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult + .getDefaultInstance()) return this; + if (!other.getSuggestion().isEmpty()) { + suggestion_ = other.suggestion_; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getImageUri().isEmpty()) { + imageUri_ = other.imageUri_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object suggestion_ = ""; + /** + * + * + *
+       * The suggestion for the query.
+       * 
+ * + * string suggestion = 1; + */ + public java.lang.String getSuggestion() { + java.lang.Object ref = suggestion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + suggestion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The suggestion for the query.
+       * 
+ * + * string suggestion = 1; + */ + public com.google.protobuf.ByteString getSuggestionBytes() { + java.lang.Object ref = suggestion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + suggestion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The suggestion for the query.
+       * 
+ * + * string suggestion = 1; + */ + public Builder setSuggestion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + suggestion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The suggestion for the query.
+       * 
+ * + * string suggestion = 1; + */ + public Builder clearSuggestion() { + + suggestion_ = getDefaultInstance().getSuggestion(); + onChanged(); + return this; + } + /** + * + * + *
+       * The suggestion for the query.
+       * 
+ * + * string suggestion = 1; + */ + public Builder setSuggestionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + suggestion_ = value; + onChanged(); + return this; + } + + private int type_ = 0; + /** + * + * + *
+       * The completion topic.
+       * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 2; + */ + public int getTypeValue() { + return type_; + } + /** + * + * + *
+       * The completion topic.
+       * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 2; + */ + public Builder setTypeValue(int value) { + type_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The completion topic.
+       * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 2; + */ + public com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType result = + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.valueOf(type_); + return result == null + ? com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * The completion topic.
+       * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 2; + */ + public Builder setType( + com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * The completion topic.
+       * 
+ * + * .google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType type = 2; + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private java.lang.Object imageUri_ = ""; + /** + * + * + *
+       * The URI of the company image for [CompletionType.COMPANY_NAME][].
+       * 
+ * + * string image_uri = 3; + */ + public java.lang.String getImageUri() { + java.lang.Object ref = imageUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + imageUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The URI of the company image for [CompletionType.COMPANY_NAME][].
+       * 
+ * + * string image_uri = 3; + */ + public com.google.protobuf.ByteString getImageUriBytes() { + java.lang.Object ref = imageUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + imageUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The URI of the company image for [CompletionType.COMPANY_NAME][].
+       * 
+ * + * string image_uri = 3; + */ + public Builder setImageUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + imageUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The URI of the company image for [CompletionType.COMPANY_NAME][].
+       * 
+ * + * string image_uri = 3; + */ + public Builder clearImageUri() { + + imageUri_ = getDefaultInstance().getImageUri(); + onChanged(); + return this; + } + /** + * + * + *
+       * The URI of the company image for [CompletionType.COMPANY_NAME][].
+       * 
+ * + * string image_uri = 3; + */ + public Builder setImageUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + imageUri_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult) + private static final com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult(); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompletionResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CompletionResult(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int COMPLETION_RESULTS_FIELD_NUMBER = 1; + private java.util.List + completionResults_; + /** + * + * + *
+   * Results of the matching job/company candidates.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public java.util.List + getCompletionResultsList() { + return completionResults_; + } + /** + * + * + *
+   * Results of the matching job/company candidates.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResultOrBuilder> + getCompletionResultsOrBuilderList() { + return completionResults_; + } + /** + * + * + *
+   * Results of the matching job/company candidates.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public int getCompletionResultsCount() { + return completionResults_.size(); + } + /** + * + * + *
+   * Results of the matching job/company candidates.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult + getCompletionResults(int index) { + return completionResults_.get(index); + } + /** + * + * + *
+   * Results of the matching job/company candidates.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResultOrBuilder + getCompletionResultsOrBuilder(int index) { + return completionResults_.get(index); + } + + public static final int METADATA_FIELD_NUMBER = 2; + private com.google.cloud.talent.v4beta1.ResponseMetadata metadata_; + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 2; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 2; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata() { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 2; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + 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 { + for (int i = 0; i < completionResults_.size(); i++) { + output.writeMessage(1, completionResults_.get(i)); + } + if (metadata_ != null) { + output.writeMessage(2, getMetadata()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < completionResults_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, completionResults_.get(i)); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMetadata()); + } + size += unknownFields.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.cloud.talent.v4beta1.CompleteQueryResponse)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.CompleteQueryResponse other = + (com.google.cloud.talent.v4beta1.CompleteQueryResponse) obj; + + boolean result = true; + result = result && getCompletionResultsList().equals(other.getCompletionResultsList()); + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata().equals(other.getMetadata()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getCompletionResultsCount() > 0) { + hash = (37 * hash) + COMPLETION_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getCompletionResultsList().hashCode(); + } + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse 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.cloud.talent.v4beta1.CompleteQueryResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse 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.cloud.talent.v4beta1.CompleteQueryResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse 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.cloud.talent.v4beta1.CompleteQueryResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse 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.cloud.talent.v4beta1.CompleteQueryResponse 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; + } + /** + * + * + *
+   * Output only.
+   * Response of auto-complete query.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CompleteQueryResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.CompleteQueryResponse) + com.google.cloud.talent.v4beta1.CompleteQueryResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompletionServiceProto + .internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompletionServiceProto + .internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CompleteQueryResponse.class, + com.google.cloud.talent.v4beta1.CompleteQueryResponse.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.CompleteQueryResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCompletionResultsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (completionResultsBuilder_ == null) { + completionResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + completionResultsBuilder_.clear(); + } + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CompletionServiceProto + .internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompleteQueryResponse getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.CompleteQueryResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompleteQueryResponse build() { + com.google.cloud.talent.v4beta1.CompleteQueryResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CompleteQueryResponse buildPartial() { + com.google.cloud.talent.v4beta1.CompleteQueryResponse result = + new com.google.cloud.talent.v4beta1.CompleteQueryResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (completionResultsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + completionResults_ = java.util.Collections.unmodifiableList(completionResults_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.completionResults_ = completionResults_; + } else { + result.completionResults_ = completionResultsBuilder_.build(); + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.CompleteQueryResponse) { + return mergeFrom((com.google.cloud.talent.v4beta1.CompleteQueryResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.CompleteQueryResponse other) { + if (other == com.google.cloud.talent.v4beta1.CompleteQueryResponse.getDefaultInstance()) + return this; + if (completionResultsBuilder_ == null) { + if (!other.completionResults_.isEmpty()) { + if (completionResults_.isEmpty()) { + completionResults_ = other.completionResults_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCompletionResultsIsMutable(); + completionResults_.addAll(other.completionResults_); + } + onChanged(); + } + } else { + if (!other.completionResults_.isEmpty()) { + if (completionResultsBuilder_.isEmpty()) { + completionResultsBuilder_.dispose(); + completionResultsBuilder_ = null; + completionResults_ = other.completionResults_; + bitField0_ = (bitField0_ & ~0x00000001); + completionResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCompletionResultsFieldBuilder() + : null; + } else { + completionResultsBuilder_.addAllMessages(other.completionResults_); + } + } + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.CompleteQueryResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.CompleteQueryResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List + completionResults_ = java.util.Collections.emptyList(); + + private void ensureCompletionResultsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + completionResults_ = + new java.util.ArrayList< + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult>( + completionResults_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult, + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult.Builder, + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResultOrBuilder> + completionResultsBuilder_; + + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public java.util.List + getCompletionResultsList() { + if (completionResultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(completionResults_); + } else { + return completionResultsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public int getCompletionResultsCount() { + if (completionResultsBuilder_ == null) { + return completionResults_.size(); + } else { + return completionResultsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult + getCompletionResults(int index) { + if (completionResultsBuilder_ == null) { + return completionResults_.get(index); + } else { + return completionResultsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public Builder setCompletionResults( + int index, com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult value) { + if (completionResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCompletionResultsIsMutable(); + completionResults_.set(index, value); + onChanged(); + } else { + completionResultsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public Builder setCompletionResults( + int index, + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult.Builder + builderForValue) { + if (completionResultsBuilder_ == null) { + ensureCompletionResultsIsMutable(); + completionResults_.set(index, builderForValue.build()); + onChanged(); + } else { + completionResultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public Builder addCompletionResults( + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult value) { + if (completionResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCompletionResultsIsMutable(); + completionResults_.add(value); + onChanged(); + } else { + completionResultsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public Builder addCompletionResults( + int index, com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult value) { + if (completionResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCompletionResultsIsMutable(); + completionResults_.add(index, value); + onChanged(); + } else { + completionResultsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public Builder addCompletionResults( + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult.Builder + builderForValue) { + if (completionResultsBuilder_ == null) { + ensureCompletionResultsIsMutable(); + completionResults_.add(builderForValue.build()); + onChanged(); + } else { + completionResultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public Builder addCompletionResults( + int index, + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult.Builder + builderForValue) { + if (completionResultsBuilder_ == null) { + ensureCompletionResultsIsMutable(); + completionResults_.add(index, builderForValue.build()); + onChanged(); + } else { + completionResultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public Builder addAllCompletionResults( + java.lang.Iterable< + ? extends com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult> + values) { + if (completionResultsBuilder_ == null) { + ensureCompletionResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, completionResults_); + onChanged(); + } else { + completionResultsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public Builder clearCompletionResults() { + if (completionResultsBuilder_ == null) { + completionResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + completionResultsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public Builder removeCompletionResults(int index) { + if (completionResultsBuilder_ == null) { + ensureCompletionResultsIsMutable(); + completionResults_.remove(index); + onChanged(); + } else { + completionResultsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult.Builder + getCompletionResultsBuilder(int index) { + return getCompletionResultsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResultOrBuilder + getCompletionResultsOrBuilder(int index) { + if (completionResultsBuilder_ == null) { + return completionResults_.get(index); + } else { + return completionResultsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResultOrBuilder> + getCompletionResultsOrBuilderList() { + if (completionResultsBuilder_ != null) { + return completionResultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(completionResults_); + } + } + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult.Builder + addCompletionResultsBuilder() { + return getCompletionResultsFieldBuilder() + .addBuilder( + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult + .getDefaultInstance()); + } + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult.Builder + addCompletionResultsBuilder(int index) { + return getCompletionResultsFieldBuilder() + .addBuilder( + index, + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult + .getDefaultInstance()); + } + /** + * + * + *
+     * Results of the matching job/company candidates.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + public java.util.List< + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult.Builder> + getCompletionResultsBuilderList() { + return getCompletionResultsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult, + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult.Builder, + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResultOrBuilder> + getCompletionResultsFieldBuilder() { + if (completionResultsBuilder_ == null) { + completionResultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult, + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult.Builder, + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResultOrBuilder>( + completionResults_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + completionResults_ = null; + } + return completionResultsBuilder_; + } + + private com.google.cloud.talent.v4beta1.ResponseMetadata metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder> + metadataBuilder_; + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 2; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 2; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 2; + */ + public Builder setMetadata(com.google.cloud.talent.v4beta1.ResponseMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 2; + */ + public Builder setMetadata( + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 2; + */ + public Builder mergeMetadata(com.google.cloud.talent.v4beta1.ResponseMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + com.google.cloud.talent.v4beta1.ResponseMetadata.newBuilder(metadata_) + .mergeFrom(value) + .buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 2; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 2; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 2; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.CompleteQueryResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CompleteQueryResponse) + private static final com.google.cloud.talent.v4beta1.CompleteQueryResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.CompleteQueryResponse(); + } + + public static com.google.cloud.talent.v4beta1.CompleteQueryResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompleteQueryResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CompleteQueryResponse(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.CompleteQueryResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryResponseOrBuilder.java new file mode 100644 index 000000000000..11a04a8fe6c9 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryResponseOrBuilder.java @@ -0,0 +1,110 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/completion_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface CompleteQueryResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.CompleteQueryResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Results of the matching job/company candidates.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + java.util.List + getCompletionResultsList(); + /** + * + * + *
+   * Results of the matching job/company candidates.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult getCompletionResults( + int index); + /** + * + * + *
+   * Results of the matching job/company candidates.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + int getCompletionResultsCount(); + /** + * + * + *
+   * Results of the matching job/company candidates.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + java.util.List< + ? extends com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResultOrBuilder> + getCompletionResultsOrBuilderList(); + /** + * + * + *
+   * Results of the matching job/company candidates.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult completion_results = 1; + * + */ + com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResultOrBuilder + getCompletionResultsOrBuilder(int index); + + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 2; + */ + boolean hasMetadata(); + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 2; + */ + com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata(); + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 2; + */ + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompletionServiceProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompletionServiceProto.java new file mode 100644 index 000000000000..71b87989a667 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompletionServiceProto.java @@ -0,0 +1,120 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/completion_service.proto + +package com.google.cloud.talent.v4beta1; + +public final class CompletionServiceProto { + private CompletionServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_CompleteQueryRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_CompleteQueryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_CompletionResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_CompletionResult_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n4google/cloud/talent/v4beta1/completion" + + "_service.proto\022\033google.cloud.talent.v4be" + + "ta1\032\034google/api/annotations.proto\032(googl" + + "e/cloud/talent/v4beta1/common.proto\"\305\003\n\024" + + "CompleteQueryRequest\022\014\n\004name\030\001 \001(\t\022\r\n\005qu" + + "ery\030\002 \001(\t\022\026\n\016language_codes\030\003 \003(\t\022\021\n\tpag" + + "e_size\030\004 \001(\005\022\024\n\014company_name\030\005 \001(\t\022P\n\005sc" + + "ope\030\006 \001(\0162A.google.cloud.talent.v4beta1." + + "CompleteQueryRequest.CompletionScope\022N\n\004" + + "type\030\007 \001(\0162@.google.cloud.talent.v4beta1" + + ".CompleteQueryRequest.CompletionType\"K\n\017" + + "CompletionScope\022 \n\034COMPLETION_SCOPE_UNSP" + + "ECIFIED\020\000\022\n\n\006TENANT\020\001\022\n\n\006PUBLIC\020\002\"`\n\016Com" + + "pletionType\022\037\n\033COMPLETION_TYPE_UNSPECIFI" + + "ED\020\000\022\r\n\tJOB_TITLE\020\001\022\020\n\014COMPANY_NAME\020\002\022\014\n" + + "\010COMBINED\020\003\"\305\002\n\025CompleteQueryResponse\022_\n" + + "\022completion_results\030\001 \003(\0132C.google.cloud" + + ".talent.v4beta1.CompleteQueryResponse.Co" + + "mpletionResult\022?\n\010metadata\030\002 \001(\0132-.googl" + + "e.cloud.talent.v4beta1.ResponseMetadata\032" + + "\211\001\n\020CompletionResult\022\022\n\nsuggestion\030\001 \001(\t" + + "\022N\n\004type\030\002 \001(\0162@.google.cloud.talent.v4b" + + "eta1.CompleteQueryRequest.CompletionType" + + "\022\021\n\timage_uri\030\003 \001(\t2\262\001\n\nCompletion\022\243\001\n\rC" + + "ompleteQuery\0221.google.cloud.talent.v4bet" + + "a1.CompleteQueryRequest\0322.google.cloud.t" + + "alent.v4beta1.CompleteQueryResponse\"+\202\323\344" + + "\223\002%\022#/v4beta1/{name=projects/*}:complete" + + "B\204\001\n\037com.google.cloud.talent.v4beta1B\026Co" + + "mpletionServiceProtoP\001ZAgoogle.golang.or" + + "g/genproto/googleapis/cloud/talent/v4bet" + + "a1;talent\242\002\003CTSb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_talent_v4beta1_CompleteQueryRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_talent_v4beta1_CompleteQueryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_CompleteQueryRequest_descriptor, + new java.lang.String[] { + "Name", "Query", "LanguageCodes", "PageSize", "CompanyName", "Scope", "Type", + }); + internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_descriptor, + new java.lang.String[] { + "CompletionResults", "Metadata", + }); + internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_CompletionResult_descriptor = + internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_CompletionResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_CompletionResult_descriptor, + new java.lang.String[] { + "Suggestion", "Type", "ImageUri", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.AnnotationsProto.http); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ContactInfoUsage.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ContactInfoUsage.java new file mode 100644 index 000000000000..49c59a2d0bd5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ContactInfoUsage.java @@ -0,0 +1,171 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Enum that represents the usage of the contact information.
+ * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.ContactInfoUsage} + */ +public enum ContactInfoUsage implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Default value.
+   * 
+ * + * CONTACT_INFO_USAGE_UNSPECIFIED = 0; + */ + CONTACT_INFO_USAGE_UNSPECIFIED(0), + /** + * + * + *
+   * Personal use.
+   * 
+ * + * PERSONAL = 1; + */ + PERSONAL(1), + /** + * + * + *
+   * Work use.
+   * 
+ * + * WORK = 2; + */ + WORK(2), + /** + * + * + *
+   * School use.
+   * 
+ * + * SCHOOL = 3; + */ + SCHOOL(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Default value.
+   * 
+ * + * CONTACT_INFO_USAGE_UNSPECIFIED = 0; + */ + public static final int CONTACT_INFO_USAGE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Personal use.
+   * 
+ * + * PERSONAL = 1; + */ + public static final int PERSONAL_VALUE = 1; + /** + * + * + *
+   * Work use.
+   * 
+ * + * WORK = 2; + */ + public static final int WORK_VALUE = 2; + /** + * + * + *
+   * School use.
+   * 
+ * + * SCHOOL = 3; + */ + public static final int SCHOOL_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static ContactInfoUsage valueOf(int value) { + return forNumber(value); + } + + public static ContactInfoUsage forNumber(int value) { + switch (value) { + case 0: + return CONTACT_INFO_USAGE_UNSPECIFIED; + case 1: + return PERSONAL; + case 2: + return WORK; + case 3: + return SCHOOL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ContactInfoUsage findValueByNumber(int number) { + return ContactInfoUsage.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto.getDescriptor().getEnumTypes().get(8); + } + + private static final ContactInfoUsage[] VALUES = values(); + + public static ContactInfoUsage 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()]; + } + + private final int value; + + private ContactInfoUsage(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.ContactInfoUsage) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateClientEventRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateClientEventRequest.java new file mode 100644 index 000000000000..fc01eee2b685 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateClientEventRequest.java @@ -0,0 +1,891 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/event_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * The report event request.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CreateClientEventRequest} + */ +public final class CreateClientEventRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.CreateClientEventRequest) + CreateClientEventRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateClientEventRequest.newBuilder() to construct. + private CreateClientEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateClientEventRequest() { + parent_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateClientEventRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + com.google.cloud.talent.v4beta1.ClientEvent.Builder subBuilder = null; + if (clientEvent_ != null) { + subBuilder = clientEvent_.toBuilder(); + } + clientEvent_ = + input.readMessage( + com.google.cloud.talent.v4beta1.ClientEvent.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(clientEvent_); + clientEvent_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.EventServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateClientEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.EventServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateClientEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CreateClientEventRequest.class, + com.google.cloud.talent.v4beta1.CreateClientEventRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Parent project name.
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Parent project name.
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLIENT_EVENT_FIELD_NUMBER = 2; + private com.google.cloud.talent.v4beta1.ClientEvent clientEvent_; + /** + * + * + *
+   * Required.
+   * Events issued when end user interacts with customer's application that
+   * uses Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.ClientEvent client_event = 2; + */ + public boolean hasClientEvent() { + return clientEvent_ != null; + } + /** + * + * + *
+   * Required.
+   * Events issued when end user interacts with customer's application that
+   * uses Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.ClientEvent client_event = 2; + */ + public com.google.cloud.talent.v4beta1.ClientEvent getClientEvent() { + return clientEvent_ == null + ? com.google.cloud.talent.v4beta1.ClientEvent.getDefaultInstance() + : clientEvent_; + } + /** + * + * + *
+   * Required.
+   * Events issued when end user interacts with customer's application that
+   * uses Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.ClientEvent client_event = 2; + */ + public com.google.cloud.talent.v4beta1.ClientEventOrBuilder getClientEventOrBuilder() { + return getClientEvent(); + } + + 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 (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (clientEvent_ != null) { + output.writeMessage(2, getClientEvent()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (clientEvent_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getClientEvent()); + } + size += unknownFields.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.cloud.talent.v4beta1.CreateClientEventRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.CreateClientEventRequest other = + (com.google.cloud.talent.v4beta1.CreateClientEventRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && (hasClientEvent() == other.hasClientEvent()); + if (hasClientEvent()) { + result = result && getClientEvent().equals(other.getClientEvent()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasClientEvent()) { + hash = (37 * hash) + CLIENT_EVENT_FIELD_NUMBER; + hash = (53 * hash) + getClientEvent().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.CreateClientEventRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CreateClientEventRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateClientEventRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CreateClientEventRequest 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.cloud.talent.v4beta1.CreateClientEventRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CreateClientEventRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateClientEventRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CreateClientEventRequest 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.cloud.talent.v4beta1.CreateClientEventRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CreateClientEventRequest 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.cloud.talent.v4beta1.CreateClientEventRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CreateClientEventRequest 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.cloud.talent.v4beta1.CreateClientEventRequest 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; + } + /** + * + * + *
+   * The report event request.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CreateClientEventRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.CreateClientEventRequest) + com.google.cloud.talent.v4beta1.CreateClientEventRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.EventServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateClientEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.EventServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateClientEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CreateClientEventRequest.class, + com.google.cloud.talent.v4beta1.CreateClientEventRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.CreateClientEventRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + if (clientEventBuilder_ == null) { + clientEvent_ = null; + } else { + clientEvent_ = null; + clientEventBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.EventServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateClientEventRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateClientEventRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.CreateClientEventRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateClientEventRequest build() { + com.google.cloud.talent.v4beta1.CreateClientEventRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateClientEventRequest buildPartial() { + com.google.cloud.talent.v4beta1.CreateClientEventRequest result = + new com.google.cloud.talent.v4beta1.CreateClientEventRequest(this); + result.parent_ = parent_; + if (clientEventBuilder_ == null) { + result.clientEvent_ = clientEvent_; + } else { + result.clientEvent_ = clientEventBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.CreateClientEventRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.CreateClientEventRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.CreateClientEventRequest other) { + if (other == com.google.cloud.talent.v4beta1.CreateClientEventRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasClientEvent()) { + mergeClientEvent(other.getClientEvent()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.CreateClientEventRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.CreateClientEventRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Parent project name.
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Parent project name.
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Parent project name.
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Parent project name.
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Parent project name.
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.ClientEvent clientEvent_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ClientEvent, + com.google.cloud.talent.v4beta1.ClientEvent.Builder, + com.google.cloud.talent.v4beta1.ClientEventOrBuilder> + clientEventBuilder_; + /** + * + * + *
+     * Required.
+     * Events issued when end user interacts with customer's application that
+     * uses Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ClientEvent client_event = 2; + */ + public boolean hasClientEvent() { + return clientEventBuilder_ != null || clientEvent_ != null; + } + /** + * + * + *
+     * Required.
+     * Events issued when end user interacts with customer's application that
+     * uses Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ClientEvent client_event = 2; + */ + public com.google.cloud.talent.v4beta1.ClientEvent getClientEvent() { + if (clientEventBuilder_ == null) { + return clientEvent_ == null + ? com.google.cloud.talent.v4beta1.ClientEvent.getDefaultInstance() + : clientEvent_; + } else { + return clientEventBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required.
+     * Events issued when end user interacts with customer's application that
+     * uses Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ClientEvent client_event = 2; + */ + public Builder setClientEvent(com.google.cloud.talent.v4beta1.ClientEvent value) { + if (clientEventBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + clientEvent_ = value; + onChanged(); + } else { + clientEventBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * Events issued when end user interacts with customer's application that
+     * uses Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ClientEvent client_event = 2; + */ + public Builder setClientEvent( + com.google.cloud.talent.v4beta1.ClientEvent.Builder builderForValue) { + if (clientEventBuilder_ == null) { + clientEvent_ = builderForValue.build(); + onChanged(); + } else { + clientEventBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * Events issued when end user interacts with customer's application that
+     * uses Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ClientEvent client_event = 2; + */ + public Builder mergeClientEvent(com.google.cloud.talent.v4beta1.ClientEvent value) { + if (clientEventBuilder_ == null) { + if (clientEvent_ != null) { + clientEvent_ = + com.google.cloud.talent.v4beta1.ClientEvent.newBuilder(clientEvent_) + .mergeFrom(value) + .buildPartial(); + } else { + clientEvent_ = value; + } + onChanged(); + } else { + clientEventBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * Events issued when end user interacts with customer's application that
+     * uses Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ClientEvent client_event = 2; + */ + public Builder clearClientEvent() { + if (clientEventBuilder_ == null) { + clientEvent_ = null; + onChanged(); + } else { + clientEvent_ = null; + clientEventBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required.
+     * Events issued when end user interacts with customer's application that
+     * uses Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ClientEvent client_event = 2; + */ + public com.google.cloud.talent.v4beta1.ClientEvent.Builder getClientEventBuilder() { + + onChanged(); + return getClientEventFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required.
+     * Events issued when end user interacts with customer's application that
+     * uses Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ClientEvent client_event = 2; + */ + public com.google.cloud.talent.v4beta1.ClientEventOrBuilder getClientEventOrBuilder() { + if (clientEventBuilder_ != null) { + return clientEventBuilder_.getMessageOrBuilder(); + } else { + return clientEvent_ == null + ? com.google.cloud.talent.v4beta1.ClientEvent.getDefaultInstance() + : clientEvent_; + } + } + /** + * + * + *
+     * Required.
+     * Events issued when end user interacts with customer's application that
+     * uses Cloud Talent Solution.
+     * 
+ * + * .google.cloud.talent.v4beta1.ClientEvent client_event = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ClientEvent, + com.google.cloud.talent.v4beta1.ClientEvent.Builder, + com.google.cloud.talent.v4beta1.ClientEventOrBuilder> + getClientEventFieldBuilder() { + if (clientEventBuilder_ == null) { + clientEventBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ClientEvent, + com.google.cloud.talent.v4beta1.ClientEvent.Builder, + com.google.cloud.talent.v4beta1.ClientEventOrBuilder>( + getClientEvent(), getParentForChildren(), isClean()); + clientEvent_ = null; + } + return clientEventBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.CreateClientEventRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CreateClientEventRequest) + private static final com.google.cloud.talent.v4beta1.CreateClientEventRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.CreateClientEventRequest(); + } + + public static com.google.cloud.talent.v4beta1.CreateClientEventRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateClientEventRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateClientEventRequest(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.CreateClientEventRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateClientEventRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateClientEventRequestOrBuilder.java new file mode 100644 index 000000000000..fc28ad9c1563 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateClientEventRequestOrBuilder.java @@ -0,0 +1,68 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/event_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface CreateClientEventRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.CreateClientEventRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Parent project name.
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * Parent project name.
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required.
+   * Events issued when end user interacts with customer's application that
+   * uses Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.ClientEvent client_event = 2; + */ + boolean hasClientEvent(); + /** + * + * + *
+   * Required.
+   * Events issued when end user interacts with customer's application that
+   * uses Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.ClientEvent client_event = 2; + */ + com.google.cloud.talent.v4beta1.ClientEvent getClientEvent(); + /** + * + * + *
+   * Required.
+   * Events issued when end user interacts with customer's application that
+   * uses Cloud Talent Solution.
+   * 
+ * + * .google.cloud.talent.v4beta1.ClientEvent client_event = 2; + */ + com.google.cloud.talent.v4beta1.ClientEventOrBuilder getClientEventOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateCompanyRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateCompanyRequest.java new file mode 100644 index 000000000000..3d96e5681665 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateCompanyRequest.java @@ -0,0 +1,898 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/company_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * The Request of the CreateCompany method.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CreateCompanyRequest} + */ +public final class CreateCompanyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.CreateCompanyRequest) + CreateCompanyRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateCompanyRequest.newBuilder() to construct. + private CreateCompanyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateCompanyRequest() { + parent_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateCompanyRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + com.google.cloud.talent.v4beta1.Company.Builder subBuilder = null; + if (company_ != null) { + subBuilder = company_.toBuilder(); + } + company_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Company.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(company_); + company_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateCompanyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateCompanyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CreateCompanyRequest.class, + com.google.cloud.talent.v4beta1.CreateCompanyRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required.
+   * Resource name of the project under which the company is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * Resource name of the project under which the company is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMPANY_FIELD_NUMBER = 2; + private com.google.cloud.talent.v4beta1.Company company_; + /** + * + * + *
+   * Required.
+   * The company to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company company = 2; + */ + public boolean hasCompany() { + return company_ != null; + } + /** + * + * + *
+   * Required.
+   * The company to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company company = 2; + */ + public com.google.cloud.talent.v4beta1.Company getCompany() { + return company_ == null + ? com.google.cloud.talent.v4beta1.Company.getDefaultInstance() + : company_; + } + /** + * + * + *
+   * Required.
+   * The company to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company company = 2; + */ + public com.google.cloud.talent.v4beta1.CompanyOrBuilder getCompanyOrBuilder() { + return getCompany(); + } + + 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 (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (company_ != null) { + output.writeMessage(2, getCompany()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (company_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCompany()); + } + size += unknownFields.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.cloud.talent.v4beta1.CreateCompanyRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.CreateCompanyRequest other = + (com.google.cloud.talent.v4beta1.CreateCompanyRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && (hasCompany() == other.hasCompany()); + if (hasCompany()) { + result = result && getCompany().equals(other.getCompany()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasCompany()) { + hash = (37 * hash) + COMPANY_FIELD_NUMBER; + hash = (53 * hash) + getCompany().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.CreateCompanyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CreateCompanyRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateCompanyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CreateCompanyRequest 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.cloud.talent.v4beta1.CreateCompanyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CreateCompanyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateCompanyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CreateCompanyRequest 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.cloud.talent.v4beta1.CreateCompanyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CreateCompanyRequest 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.cloud.talent.v4beta1.CreateCompanyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CreateCompanyRequest 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.cloud.talent.v4beta1.CreateCompanyRequest 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; + } + /** + * + * + *
+   * The Request of the CreateCompany method.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CreateCompanyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.CreateCompanyRequest) + com.google.cloud.talent.v4beta1.CreateCompanyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateCompanyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateCompanyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CreateCompanyRequest.class, + com.google.cloud.talent.v4beta1.CreateCompanyRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.CreateCompanyRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + if (companyBuilder_ == null) { + company_ = null; + } else { + company_ = null; + companyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateCompanyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateCompanyRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.CreateCompanyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateCompanyRequest build() { + com.google.cloud.talent.v4beta1.CreateCompanyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateCompanyRequest buildPartial() { + com.google.cloud.talent.v4beta1.CreateCompanyRequest result = + new com.google.cloud.talent.v4beta1.CreateCompanyRequest(this); + result.parent_ = parent_; + if (companyBuilder_ == null) { + result.company_ = company_; + } else { + result.company_ = companyBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.CreateCompanyRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.CreateCompanyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.CreateCompanyRequest other) { + if (other == com.google.cloud.talent.v4beta1.CreateCompanyRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasCompany()) { + mergeCompany(other.getCompany()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.CreateCompanyRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.CreateCompanyRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the company is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the company is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the company is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the company is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the company is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.Company company_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Company, + com.google.cloud.talent.v4beta1.Company.Builder, + com.google.cloud.talent.v4beta1.CompanyOrBuilder> + companyBuilder_; + /** + * + * + *
+     * Required.
+     * The company to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 2; + */ + public boolean hasCompany() { + return companyBuilder_ != null || company_ != null; + } + /** + * + * + *
+     * Required.
+     * The company to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 2; + */ + public com.google.cloud.talent.v4beta1.Company getCompany() { + if (companyBuilder_ == null) { + return company_ == null + ? com.google.cloud.talent.v4beta1.Company.getDefaultInstance() + : company_; + } else { + return companyBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required.
+     * The company to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 2; + */ + public Builder setCompany(com.google.cloud.talent.v4beta1.Company value) { + if (companyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + company_ = value; + onChanged(); + } else { + companyBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The company to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 2; + */ + public Builder setCompany(com.google.cloud.talent.v4beta1.Company.Builder builderForValue) { + if (companyBuilder_ == null) { + company_ = builderForValue.build(); + onChanged(); + } else { + companyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The company to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 2; + */ + public Builder mergeCompany(com.google.cloud.talent.v4beta1.Company value) { + if (companyBuilder_ == null) { + if (company_ != null) { + company_ = + com.google.cloud.talent.v4beta1.Company.newBuilder(company_) + .mergeFrom(value) + .buildPartial(); + } else { + company_ = value; + } + onChanged(); + } else { + companyBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The company to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 2; + */ + public Builder clearCompany() { + if (companyBuilder_ == null) { + company_ = null; + onChanged(); + } else { + company_ = null; + companyBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The company to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 2; + */ + public com.google.cloud.talent.v4beta1.Company.Builder getCompanyBuilder() { + + onChanged(); + return getCompanyFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required.
+     * The company to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 2; + */ + public com.google.cloud.talent.v4beta1.CompanyOrBuilder getCompanyOrBuilder() { + if (companyBuilder_ != null) { + return companyBuilder_.getMessageOrBuilder(); + } else { + return company_ == null + ? com.google.cloud.talent.v4beta1.Company.getDefaultInstance() + : company_; + } + } + /** + * + * + *
+     * Required.
+     * The company to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Company, + com.google.cloud.talent.v4beta1.Company.Builder, + com.google.cloud.talent.v4beta1.CompanyOrBuilder> + getCompanyFieldBuilder() { + if (companyBuilder_ == null) { + companyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Company, + com.google.cloud.talent.v4beta1.Company.Builder, + com.google.cloud.talent.v4beta1.CompanyOrBuilder>( + getCompany(), getParentForChildren(), isClean()); + company_ = null; + } + return companyBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.CreateCompanyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CreateCompanyRequest) + private static final com.google.cloud.talent.v4beta1.CreateCompanyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.CreateCompanyRequest(); + } + + public static com.google.cloud.talent.v4beta1.CreateCompanyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCompanyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateCompanyRequest(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.CreateCompanyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateCompanyRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateCompanyRequestOrBuilder.java new file mode 100644 index 000000000000..66c77cc47271 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateCompanyRequestOrBuilder.java @@ -0,0 +1,71 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/company_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface CreateCompanyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.CreateCompanyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * Resource name of the project under which the company is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required.
+   * Resource name of the project under which the company is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required.
+   * The company to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company company = 2; + */ + boolean hasCompany(); + /** + * + * + *
+   * Required.
+   * The company to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company company = 2; + */ + com.google.cloud.talent.v4beta1.Company getCompany(); + /** + * + * + *
+   * Required.
+   * The company to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company company = 2; + */ + com.google.cloud.talent.v4beta1.CompanyOrBuilder getCompanyOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateJobRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateJobRequest.java new file mode 100644 index 000000000000..ef27d7e96821 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateJobRequest.java @@ -0,0 +1,891 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Create job request.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CreateJobRequest} + */ +public final class CreateJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.CreateJobRequest) + CreateJobRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateJobRequest.newBuilder() to construct. + private CreateJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateJobRequest() { + parent_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateJobRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + com.google.cloud.talent.v4beta1.Job.Builder subBuilder = null; + if (job_ != null) { + subBuilder = job_.toBuilder(); + } + job_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Job.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(job_); + job_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CreateJobRequest.class, + com.google.cloud.talent.v4beta1.CreateJobRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required.
+   * The resource name of the project under which the job is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The resource name of the project under which the job is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int JOB_FIELD_NUMBER = 2; + private com.google.cloud.talent.v4beta1.Job job_; + /** + * + * + *
+   * Required.
+   * The Job to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 2; + */ + public boolean hasJob() { + return job_ != null; + } + /** + * + * + *
+   * Required.
+   * The Job to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 2; + */ + public com.google.cloud.talent.v4beta1.Job getJob() { + return job_ == null ? com.google.cloud.talent.v4beta1.Job.getDefaultInstance() : job_; + } + /** + * + * + *
+   * Required.
+   * The Job to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 2; + */ + public com.google.cloud.talent.v4beta1.JobOrBuilder getJobOrBuilder() { + return getJob(); + } + + 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 (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (job_ != null) { + output.writeMessage(2, getJob()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (job_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getJob()); + } + size += unknownFields.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.cloud.talent.v4beta1.CreateJobRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.CreateJobRequest other = + (com.google.cloud.talent.v4beta1.CreateJobRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && (hasJob() == other.hasJob()); + if (hasJob()) { + result = result && getJob().equals(other.getJob()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasJob()) { + hash = (37 * hash) + JOB_FIELD_NUMBER; + hash = (53 * hash) + getJob().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.CreateJobRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CreateJobRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateJobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CreateJobRequest 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.cloud.talent.v4beta1.CreateJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CreateJobRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateJobRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CreateJobRequest 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.cloud.talent.v4beta1.CreateJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CreateJobRequest 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.cloud.talent.v4beta1.CreateJobRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CreateJobRequest 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.cloud.talent.v4beta1.CreateJobRequest 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; + } + /** + * + * + *
+   * Input only.
+   * Create job request.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CreateJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.CreateJobRequest) + com.google.cloud.talent.v4beta1.CreateJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CreateJobRequest.class, + com.google.cloud.talent.v4beta1.CreateJobRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.CreateJobRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + if (jobBuilder_ == null) { + job_ = null; + } else { + job_ = null; + jobBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateJobRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.CreateJobRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateJobRequest build() { + com.google.cloud.talent.v4beta1.CreateJobRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateJobRequest buildPartial() { + com.google.cloud.talent.v4beta1.CreateJobRequest result = + new com.google.cloud.talent.v4beta1.CreateJobRequest(this); + result.parent_ = parent_; + if (jobBuilder_ == null) { + result.job_ = job_; + } else { + result.job_ = jobBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.CreateJobRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.CreateJobRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.CreateJobRequest other) { + if (other == com.google.cloud.talent.v4beta1.CreateJobRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasJob()) { + mergeJob(other.getJob()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.CreateJobRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.CreateJobRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required.
+     * The resource name of the project under which the job is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the project under which the job is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the project under which the job is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the project under which the job is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the project under which the job is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.Job job_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job, + com.google.cloud.talent.v4beta1.Job.Builder, + com.google.cloud.talent.v4beta1.JobOrBuilder> + jobBuilder_; + /** + * + * + *
+     * Required.
+     * The Job to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 2; + */ + public boolean hasJob() { + return jobBuilder_ != null || job_ != null; + } + /** + * + * + *
+     * Required.
+     * The Job to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 2; + */ + public com.google.cloud.talent.v4beta1.Job getJob() { + if (jobBuilder_ == null) { + return job_ == null ? com.google.cloud.talent.v4beta1.Job.getDefaultInstance() : job_; + } else { + return jobBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required.
+     * The Job to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 2; + */ + public Builder setJob(com.google.cloud.talent.v4beta1.Job value) { + if (jobBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + job_ = value; + onChanged(); + } else { + jobBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The Job to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 2; + */ + public Builder setJob(com.google.cloud.talent.v4beta1.Job.Builder builderForValue) { + if (jobBuilder_ == null) { + job_ = builderForValue.build(); + onChanged(); + } else { + jobBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The Job to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 2; + */ + public Builder mergeJob(com.google.cloud.talent.v4beta1.Job value) { + if (jobBuilder_ == null) { + if (job_ != null) { + job_ = + com.google.cloud.talent.v4beta1.Job.newBuilder(job_).mergeFrom(value).buildPartial(); + } else { + job_ = value; + } + onChanged(); + } else { + jobBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The Job to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 2; + */ + public Builder clearJob() { + if (jobBuilder_ == null) { + job_ = null; + onChanged(); + } else { + job_ = null; + jobBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The Job to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 2; + */ + public com.google.cloud.talent.v4beta1.Job.Builder getJobBuilder() { + + onChanged(); + return getJobFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required.
+     * The Job to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 2; + */ + public com.google.cloud.talent.v4beta1.JobOrBuilder getJobOrBuilder() { + if (jobBuilder_ != null) { + return jobBuilder_.getMessageOrBuilder(); + } else { + return job_ == null ? com.google.cloud.talent.v4beta1.Job.getDefaultInstance() : job_; + } + } + /** + * + * + *
+     * Required.
+     * The Job to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job, + com.google.cloud.talent.v4beta1.Job.Builder, + com.google.cloud.talent.v4beta1.JobOrBuilder> + getJobFieldBuilder() { + if (jobBuilder_ == null) { + jobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job, + com.google.cloud.talent.v4beta1.Job.Builder, + com.google.cloud.talent.v4beta1.JobOrBuilder>( + getJob(), getParentForChildren(), isClean()); + job_ = null; + } + return jobBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.CreateJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CreateJobRequest) + private static final com.google.cloud.talent.v4beta1.CreateJobRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.CreateJobRequest(); + } + + public static com.google.cloud.talent.v4beta1.CreateJobRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateJobRequest(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.CreateJobRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateJobRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateJobRequestOrBuilder.java new file mode 100644 index 000000000000..d26387c15ca5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateJobRequestOrBuilder.java @@ -0,0 +1,71 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface CreateJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.CreateJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The resource name of the project under which the job is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required.
+   * The resource name of the project under which the job is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required.
+   * The Job to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 2; + */ + boolean hasJob(); + /** + * + * + *
+   * Required.
+   * The Job to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 2; + */ + com.google.cloud.talent.v4beta1.Job getJob(); + /** + * + * + *
+   * Required.
+   * The Job to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 2; + */ + com.google.cloud.talent.v4beta1.JobOrBuilder getJobOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateProfileRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateProfileRequest.java new file mode 100644 index 000000000000..4bc6ce2c11d5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateProfileRequest.java @@ -0,0 +1,898 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Create profile request.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CreateProfileRequest} + */ +public final class CreateProfileRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.CreateProfileRequest) + CreateProfileRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateProfileRequest.newBuilder() to construct. + private CreateProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateProfileRequest() { + parent_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateProfileRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + com.google.cloud.talent.v4beta1.Profile.Builder subBuilder = null; + if (profile_ != null) { + subBuilder = profile_.toBuilder(); + } + profile_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Profile.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(profile_); + profile_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateProfileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateProfileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CreateProfileRequest.class, + com.google.cloud.talent.v4beta1.CreateProfileRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required.
+   * The name of the tenant this profile belongs to.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The name of the tenant this profile belongs to.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROFILE_FIELD_NUMBER = 2; + private com.google.cloud.talent.v4beta1.Profile profile_; + /** + * + * + *
+   * Required.
+   * The profile to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 2; + */ + public boolean hasProfile() { + return profile_ != null; + } + /** + * + * + *
+   * Required.
+   * The profile to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 2; + */ + public com.google.cloud.talent.v4beta1.Profile getProfile() { + return profile_ == null + ? com.google.cloud.talent.v4beta1.Profile.getDefaultInstance() + : profile_; + } + /** + * + * + *
+   * Required.
+   * The profile to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 2; + */ + public com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfileOrBuilder() { + return getProfile(); + } + + 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 (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (profile_ != null) { + output.writeMessage(2, getProfile()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (profile_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getProfile()); + } + size += unknownFields.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.cloud.talent.v4beta1.CreateProfileRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.CreateProfileRequest other = + (com.google.cloud.talent.v4beta1.CreateProfileRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && (hasProfile() == other.hasProfile()); + if (hasProfile()) { + result = result && getProfile().equals(other.getProfile()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasProfile()) { + hash = (37 * hash) + PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getProfile().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.CreateProfileRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CreateProfileRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateProfileRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CreateProfileRequest 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.cloud.talent.v4beta1.CreateProfileRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CreateProfileRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateProfileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CreateProfileRequest 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.cloud.talent.v4beta1.CreateProfileRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CreateProfileRequest 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.cloud.talent.v4beta1.CreateProfileRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CreateProfileRequest 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.cloud.talent.v4beta1.CreateProfileRequest 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; + } + /** + * + * + *
+   * Create profile request.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CreateProfileRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.CreateProfileRequest) + com.google.cloud.talent.v4beta1.CreateProfileRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateProfileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateProfileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CreateProfileRequest.class, + com.google.cloud.talent.v4beta1.CreateProfileRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.CreateProfileRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + if (profileBuilder_ == null) { + profile_ = null; + } else { + profile_ = null; + profileBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateProfileRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateProfileRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.CreateProfileRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateProfileRequest build() { + com.google.cloud.talent.v4beta1.CreateProfileRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateProfileRequest buildPartial() { + com.google.cloud.talent.v4beta1.CreateProfileRequest result = + new com.google.cloud.talent.v4beta1.CreateProfileRequest(this); + result.parent_ = parent_; + if (profileBuilder_ == null) { + result.profile_ = profile_; + } else { + result.profile_ = profileBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.CreateProfileRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.CreateProfileRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.CreateProfileRequest other) { + if (other == com.google.cloud.talent.v4beta1.CreateProfileRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasProfile()) { + mergeProfile(other.getProfile()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.CreateProfileRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.CreateProfileRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required.
+     * The name of the tenant this profile belongs to.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The name of the tenant this profile belongs to.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The name of the tenant this profile belongs to.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The name of the tenant this profile belongs to.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The name of the tenant this profile belongs to.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.Profile profile_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder> + profileBuilder_; + /** + * + * + *
+     * Required.
+     * The profile to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 2; + */ + public boolean hasProfile() { + return profileBuilder_ != null || profile_ != null; + } + /** + * + * + *
+     * Required.
+     * The profile to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 2; + */ + public com.google.cloud.talent.v4beta1.Profile getProfile() { + if (profileBuilder_ == null) { + return profile_ == null + ? com.google.cloud.talent.v4beta1.Profile.getDefaultInstance() + : profile_; + } else { + return profileBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required.
+     * The profile to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 2; + */ + public Builder setProfile(com.google.cloud.talent.v4beta1.Profile value) { + if (profileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + profile_ = value; + onChanged(); + } else { + profileBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The profile to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 2; + */ + public Builder setProfile(com.google.cloud.talent.v4beta1.Profile.Builder builderForValue) { + if (profileBuilder_ == null) { + profile_ = builderForValue.build(); + onChanged(); + } else { + profileBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The profile to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 2; + */ + public Builder mergeProfile(com.google.cloud.talent.v4beta1.Profile value) { + if (profileBuilder_ == null) { + if (profile_ != null) { + profile_ = + com.google.cloud.talent.v4beta1.Profile.newBuilder(profile_) + .mergeFrom(value) + .buildPartial(); + } else { + profile_ = value; + } + onChanged(); + } else { + profileBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The profile to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 2; + */ + public Builder clearProfile() { + if (profileBuilder_ == null) { + profile_ = null; + onChanged(); + } else { + profile_ = null; + profileBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The profile to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 2; + */ + public com.google.cloud.talent.v4beta1.Profile.Builder getProfileBuilder() { + + onChanged(); + return getProfileFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required.
+     * The profile to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 2; + */ + public com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfileOrBuilder() { + if (profileBuilder_ != null) { + return profileBuilder_.getMessageOrBuilder(); + } else { + return profile_ == null + ? com.google.cloud.talent.v4beta1.Profile.getDefaultInstance() + : profile_; + } + } + /** + * + * + *
+     * Required.
+     * The profile to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder> + getProfileFieldBuilder() { + if (profileBuilder_ == null) { + profileBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder>( + getProfile(), getParentForChildren(), isClean()); + profile_ = null; + } + return profileBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.CreateProfileRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CreateProfileRequest) + private static final com.google.cloud.talent.v4beta1.CreateProfileRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.CreateProfileRequest(); + } + + public static com.google.cloud.talent.v4beta1.CreateProfileRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateProfileRequest(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.CreateProfileRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateProfileRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateProfileRequestOrBuilder.java new file mode 100644 index 000000000000..99906e3c1cbb --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateProfileRequestOrBuilder.java @@ -0,0 +1,71 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface CreateProfileRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.CreateProfileRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The name of the tenant this profile belongs to.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required.
+   * The name of the tenant this profile belongs to.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required.
+   * The profile to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 2; + */ + boolean hasProfile(); + /** + * + * + *
+   * Required.
+   * The profile to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 2; + */ + com.google.cloud.talent.v4beta1.Profile getProfile(); + /** + * + * + *
+   * Required.
+   * The profile to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 2; + */ + com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfileOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateTenantRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateTenantRequest.java new file mode 100644 index 000000000000..2c99d90fa316 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateTenantRequest.java @@ -0,0 +1,896 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/tenant_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * The Request of the CreateTenant method.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CreateTenantRequest} + */ +public final class CreateTenantRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.CreateTenantRequest) + CreateTenantRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateTenantRequest.newBuilder() to construct. + private CreateTenantRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateTenantRequest() { + parent_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateTenantRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + com.google.cloud.talent.v4beta1.Tenant.Builder subBuilder = null; + if (tenant_ != null) { + subBuilder = tenant_.toBuilder(); + } + tenant_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Tenant.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(tenant_); + tenant_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateTenantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateTenantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CreateTenantRequest.class, + com.google.cloud.talent.v4beta1.CreateTenantRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required.
+   * Resource name of the project under which the tenant is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * Resource name of the project under which the tenant is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TENANT_FIELD_NUMBER = 2; + private com.google.cloud.talent.v4beta1.Tenant tenant_; + /** + * + * + *
+   * Required.
+   * The tenant to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 2; + */ + public boolean hasTenant() { + return tenant_ != null; + } + /** + * + * + *
+   * Required.
+   * The tenant to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 2; + */ + public com.google.cloud.talent.v4beta1.Tenant getTenant() { + return tenant_ == null ? com.google.cloud.talent.v4beta1.Tenant.getDefaultInstance() : tenant_; + } + /** + * + * + *
+   * Required.
+   * The tenant to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 2; + */ + public com.google.cloud.talent.v4beta1.TenantOrBuilder getTenantOrBuilder() { + return getTenant(); + } + + 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 (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (tenant_ != null) { + output.writeMessage(2, getTenant()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (tenant_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTenant()); + } + size += unknownFields.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.cloud.talent.v4beta1.CreateTenantRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.CreateTenantRequest other = + (com.google.cloud.talent.v4beta1.CreateTenantRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && (hasTenant() == other.hasTenant()); + if (hasTenant()) { + result = result && getTenant().equals(other.getTenant()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasTenant()) { + hash = (37 * hash) + TENANT_FIELD_NUMBER; + hash = (53 * hash) + getTenant().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.CreateTenantRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CreateTenantRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateTenantRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CreateTenantRequest 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.cloud.talent.v4beta1.CreateTenantRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CreateTenantRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CreateTenantRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CreateTenantRequest 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.cloud.talent.v4beta1.CreateTenantRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CreateTenantRequest 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.cloud.talent.v4beta1.CreateTenantRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CreateTenantRequest 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.cloud.talent.v4beta1.CreateTenantRequest 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; + } + /** + * + * + *
+   * The Request of the CreateTenant method.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CreateTenantRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.CreateTenantRequest) + com.google.cloud.talent.v4beta1.CreateTenantRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateTenantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateTenantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CreateTenantRequest.class, + com.google.cloud.talent.v4beta1.CreateTenantRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.CreateTenantRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + if (tenantBuilder_ == null) { + tenant_ = null; + } else { + tenant_ = null; + tenantBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_CreateTenantRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateTenantRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.CreateTenantRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateTenantRequest build() { + com.google.cloud.talent.v4beta1.CreateTenantRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CreateTenantRequest buildPartial() { + com.google.cloud.talent.v4beta1.CreateTenantRequest result = + new com.google.cloud.talent.v4beta1.CreateTenantRequest(this); + result.parent_ = parent_; + if (tenantBuilder_ == null) { + result.tenant_ = tenant_; + } else { + result.tenant_ = tenantBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.CreateTenantRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.CreateTenantRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.CreateTenantRequest other) { + if (other == com.google.cloud.talent.v4beta1.CreateTenantRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasTenant()) { + mergeTenant(other.getTenant()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.CreateTenantRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.CreateTenantRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the tenant is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the tenant is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the tenant is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the tenant is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the tenant is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.Tenant tenant_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Tenant, + com.google.cloud.talent.v4beta1.Tenant.Builder, + com.google.cloud.talent.v4beta1.TenantOrBuilder> + tenantBuilder_; + /** + * + * + *
+     * Required.
+     * The tenant to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 2; + */ + public boolean hasTenant() { + return tenantBuilder_ != null || tenant_ != null; + } + /** + * + * + *
+     * Required.
+     * The tenant to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 2; + */ + public com.google.cloud.talent.v4beta1.Tenant getTenant() { + if (tenantBuilder_ == null) { + return tenant_ == null + ? com.google.cloud.talent.v4beta1.Tenant.getDefaultInstance() + : tenant_; + } else { + return tenantBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required.
+     * The tenant to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 2; + */ + public Builder setTenant(com.google.cloud.talent.v4beta1.Tenant value) { + if (tenantBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tenant_ = value; + onChanged(); + } else { + tenantBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The tenant to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 2; + */ + public Builder setTenant(com.google.cloud.talent.v4beta1.Tenant.Builder builderForValue) { + if (tenantBuilder_ == null) { + tenant_ = builderForValue.build(); + onChanged(); + } else { + tenantBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The tenant to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 2; + */ + public Builder mergeTenant(com.google.cloud.talent.v4beta1.Tenant value) { + if (tenantBuilder_ == null) { + if (tenant_ != null) { + tenant_ = + com.google.cloud.talent.v4beta1.Tenant.newBuilder(tenant_) + .mergeFrom(value) + .buildPartial(); + } else { + tenant_ = value; + } + onChanged(); + } else { + tenantBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The tenant to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 2; + */ + public Builder clearTenant() { + if (tenantBuilder_ == null) { + tenant_ = null; + onChanged(); + } else { + tenant_ = null; + tenantBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The tenant to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 2; + */ + public com.google.cloud.talent.v4beta1.Tenant.Builder getTenantBuilder() { + + onChanged(); + return getTenantFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required.
+     * The tenant to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 2; + */ + public com.google.cloud.talent.v4beta1.TenantOrBuilder getTenantOrBuilder() { + if (tenantBuilder_ != null) { + return tenantBuilder_.getMessageOrBuilder(); + } else { + return tenant_ == null + ? com.google.cloud.talent.v4beta1.Tenant.getDefaultInstance() + : tenant_; + } + } + /** + * + * + *
+     * Required.
+     * The tenant to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Tenant, + com.google.cloud.talent.v4beta1.Tenant.Builder, + com.google.cloud.talent.v4beta1.TenantOrBuilder> + getTenantFieldBuilder() { + if (tenantBuilder_ == null) { + tenantBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Tenant, + com.google.cloud.talent.v4beta1.Tenant.Builder, + com.google.cloud.talent.v4beta1.TenantOrBuilder>( + getTenant(), getParentForChildren(), isClean()); + tenant_ = null; + } + return tenantBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.CreateTenantRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CreateTenantRequest) + private static final com.google.cloud.talent.v4beta1.CreateTenantRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.CreateTenantRequest(); + } + + public static com.google.cloud.talent.v4beta1.CreateTenantRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateTenantRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateTenantRequest(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.CreateTenantRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateTenantRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateTenantRequestOrBuilder.java new file mode 100644 index 000000000000..418f88b7ef4b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateTenantRequestOrBuilder.java @@ -0,0 +1,71 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/tenant_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface CreateTenantRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.CreateTenantRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * Resource name of the project under which the tenant is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required.
+   * Resource name of the project under which the tenant is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required.
+   * The tenant to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 2; + */ + boolean hasTenant(); + /** + * + * + *
+   * Required.
+   * The tenant to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 2; + */ + com.google.cloud.talent.v4beta1.Tenant getTenant(); + /** + * + * + *
+   * Required.
+   * The tenant to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 2; + */ + com.google.cloud.talent.v4beta1.TenantOrBuilder getTenantOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CustomAttribute.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CustomAttribute.java new file mode 100644 index 000000000000..dfa5c3b82e5e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CustomAttribute.java @@ -0,0 +1,1202 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Custom attribute values that are either filterable or non-filterable.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CustomAttribute} + */ +public final class CustomAttribute extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.CustomAttribute) + CustomAttributeOrBuilder { + private static final long serialVersionUID = 0L; + // Use CustomAttribute.newBuilder() to construct. + private CustomAttribute(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CustomAttribute() { + stringValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; + longValues_ = java.util.Collections.emptyList(); + filterable_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CustomAttribute( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + stringValues_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + stringValues_.add(s); + break; + } + case 16: + { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + longValues_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + longValues_.add(input.readInt64()); + break; + } + case 18: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) + && input.getBytesUntilLimit() > 0) { + longValues_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + while (input.getBytesUntilLimit() > 0) { + longValues_.add(input.readInt64()); + } + input.popLimit(limit); + break; + } + case 24: + { + filterable_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + stringValues_ = stringValues_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + longValues_ = java.util.Collections.unmodifiableList(longValues_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CustomAttribute_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CustomAttribute_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CustomAttribute.class, + com.google.cloud.talent.v4beta1.CustomAttribute.Builder.class); + } + + private int bitField0_; + public static final int STRING_VALUES_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList stringValues_; + /** + * + * + *
+   * Optional but exactly one of
+   * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+   * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+   * must be specified.
+   * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
+   * `CASE_INSENSITIVE_MATCH`) search.
+   * For filterable `string_value`s, a maximum total number of 200 values
+   * is allowed, with each `string_value` has a byte size of no more than
+   * 255B. For unfilterable `string_values`, the maximum total byte size of
+   * unfilterable `string_values` is 50KB.
+   * Empty string isn't allowed.
+   * 
+ * + * repeated string string_values = 1; + */ + public com.google.protobuf.ProtocolStringList getStringValuesList() { + return stringValues_; + } + /** + * + * + *
+   * Optional but exactly one of
+   * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+   * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+   * must be specified.
+   * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
+   * `CASE_INSENSITIVE_MATCH`) search.
+   * For filterable `string_value`s, a maximum total number of 200 values
+   * is allowed, with each `string_value` has a byte size of no more than
+   * 255B. For unfilterable `string_values`, the maximum total byte size of
+   * unfilterable `string_values` is 50KB.
+   * Empty string isn't allowed.
+   * 
+ * + * repeated string string_values = 1; + */ + public int getStringValuesCount() { + return stringValues_.size(); + } + /** + * + * + *
+   * Optional but exactly one of
+   * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+   * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+   * must be specified.
+   * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
+   * `CASE_INSENSITIVE_MATCH`) search.
+   * For filterable `string_value`s, a maximum total number of 200 values
+   * is allowed, with each `string_value` has a byte size of no more than
+   * 255B. For unfilterable `string_values`, the maximum total byte size of
+   * unfilterable `string_values` is 50KB.
+   * Empty string isn't allowed.
+   * 
+ * + * repeated string string_values = 1; + */ + public java.lang.String getStringValues(int index) { + return stringValues_.get(index); + } + /** + * + * + *
+   * Optional but exactly one of
+   * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+   * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+   * must be specified.
+   * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
+   * `CASE_INSENSITIVE_MATCH`) search.
+   * For filterable `string_value`s, a maximum total number of 200 values
+   * is allowed, with each `string_value` has a byte size of no more than
+   * 255B. For unfilterable `string_values`, the maximum total byte size of
+   * unfilterable `string_values` is 50KB.
+   * Empty string isn't allowed.
+   * 
+ * + * repeated string string_values = 1; + */ + public com.google.protobuf.ByteString getStringValuesBytes(int index) { + return stringValues_.getByteString(index); + } + + public static final int LONG_VALUES_FIELD_NUMBER = 2; + private java.util.List longValues_; + /** + * + * + *
+   * Optional but exactly one of
+   * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+   * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+   * must be specified.
+   * This field is used to perform number range search.
+   * (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.
+   * Currently at most 1
+   * [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] is
+   * supported.
+   * 
+ * + * repeated int64 long_values = 2; + */ + public java.util.List getLongValuesList() { + return longValues_; + } + /** + * + * + *
+   * Optional but exactly one of
+   * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+   * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+   * must be specified.
+   * This field is used to perform number range search.
+   * (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.
+   * Currently at most 1
+   * [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] is
+   * supported.
+   * 
+ * + * repeated int64 long_values = 2; + */ + public int getLongValuesCount() { + return longValues_.size(); + } + /** + * + * + *
+   * Optional but exactly one of
+   * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+   * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+   * must be specified.
+   * This field is used to perform number range search.
+   * (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.
+   * Currently at most 1
+   * [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] is
+   * supported.
+   * 
+ * + * repeated int64 long_values = 2; + */ + public long getLongValues(int index) { + return longValues_.get(index); + } + + private int longValuesMemoizedSerializedSize = -1; + + public static final int FILTERABLE_FIELD_NUMBER = 3; + private boolean filterable_; + /** + * + * + *
+   * Optional.
+   * If the `filterable` flag is true, custom field values are searchable.
+   * If false, values are not searchable.
+   * Default is false.
+   * 
+ * + * bool filterable = 3; + */ + public boolean getFilterable() { + return filterable_; + } + + 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 { + getSerializedSize(); + for (int i = 0; i < stringValues_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, stringValues_.getRaw(i)); + } + if (getLongValuesList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(longValuesMemoizedSerializedSize); + } + for (int i = 0; i < longValues_.size(); i++) { + output.writeInt64NoTag(longValues_.get(i)); + } + if (filterable_ != false) { + output.writeBool(3, filterable_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < stringValues_.size(); i++) { + dataSize += computeStringSizeNoTag(stringValues_.getRaw(i)); + } + size += dataSize; + size += 1 * getStringValuesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < longValues_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeInt64SizeNoTag(longValues_.get(i)); + } + size += dataSize; + if (!getLongValuesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + longValuesMemoizedSerializedSize = dataSize; + } + if (filterable_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, filterable_); + } + size += unknownFields.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.cloud.talent.v4beta1.CustomAttribute)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.CustomAttribute other = + (com.google.cloud.talent.v4beta1.CustomAttribute) obj; + + boolean result = true; + result = result && getStringValuesList().equals(other.getStringValuesList()); + result = result && getLongValuesList().equals(other.getLongValuesList()); + result = result && (getFilterable() == other.getFilterable()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getStringValuesCount() > 0) { + hash = (37 * hash) + STRING_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getStringValuesList().hashCode(); + } + if (getLongValuesCount() > 0) { + hash = (37 * hash) + LONG_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getLongValuesList().hashCode(); + } + hash = (37 * hash) + FILTERABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFilterable()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.CustomAttribute parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CustomAttribute parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CustomAttribute parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CustomAttribute 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.cloud.talent.v4beta1.CustomAttribute parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.CustomAttribute parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.CustomAttribute parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CustomAttribute 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.cloud.talent.v4beta1.CustomAttribute parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CustomAttribute 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.cloud.talent.v4beta1.CustomAttribute parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.CustomAttribute 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.cloud.talent.v4beta1.CustomAttribute 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; + } + /** + * + * + *
+   * Custom attribute values that are either filterable or non-filterable.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.CustomAttribute} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.CustomAttribute) + com.google.cloud.talent.v4beta1.CustomAttributeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CustomAttribute_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CustomAttribute_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.CustomAttribute.class, + com.google.cloud.talent.v4beta1.CustomAttribute.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.CustomAttribute.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + stringValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + longValues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + filterable_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_CustomAttribute_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CustomAttribute getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.CustomAttribute.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CustomAttribute build() { + com.google.cloud.talent.v4beta1.CustomAttribute result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.CustomAttribute buildPartial() { + com.google.cloud.talent.v4beta1.CustomAttribute result = + new com.google.cloud.talent.v4beta1.CustomAttribute(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + stringValues_ = stringValues_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.stringValues_ = stringValues_; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + longValues_ = java.util.Collections.unmodifiableList(longValues_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.longValues_ = longValues_; + result.filterable_ = filterable_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.CustomAttribute) { + return mergeFrom((com.google.cloud.talent.v4beta1.CustomAttribute) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.CustomAttribute other) { + if (other == com.google.cloud.talent.v4beta1.CustomAttribute.getDefaultInstance()) + return this; + if (!other.stringValues_.isEmpty()) { + if (stringValues_.isEmpty()) { + stringValues_ = other.stringValues_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureStringValuesIsMutable(); + stringValues_.addAll(other.stringValues_); + } + onChanged(); + } + if (!other.longValues_.isEmpty()) { + if (longValues_.isEmpty()) { + longValues_ = other.longValues_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureLongValuesIsMutable(); + longValues_.addAll(other.longValues_); + } + onChanged(); + } + if (other.getFilterable() != false) { + setFilterable(other.getFilterable()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.CustomAttribute parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.CustomAttribute) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList stringValues_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureStringValuesIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + stringValues_ = new com.google.protobuf.LazyStringArrayList(stringValues_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * Optional but exactly one of
+     * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+     * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+     * must be specified.
+     * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
+     * `CASE_INSENSITIVE_MATCH`) search.
+     * For filterable `string_value`s, a maximum total number of 200 values
+     * is allowed, with each `string_value` has a byte size of no more than
+     * 255B. For unfilterable `string_values`, the maximum total byte size of
+     * unfilterable `string_values` is 50KB.
+     * Empty string isn't allowed.
+     * 
+ * + * repeated string string_values = 1; + */ + public com.google.protobuf.ProtocolStringList getStringValuesList() { + return stringValues_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional but exactly one of
+     * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+     * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+     * must be specified.
+     * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
+     * `CASE_INSENSITIVE_MATCH`) search.
+     * For filterable `string_value`s, a maximum total number of 200 values
+     * is allowed, with each `string_value` has a byte size of no more than
+     * 255B. For unfilterable `string_values`, the maximum total byte size of
+     * unfilterable `string_values` is 50KB.
+     * Empty string isn't allowed.
+     * 
+ * + * repeated string string_values = 1; + */ + public int getStringValuesCount() { + return stringValues_.size(); + } + /** + * + * + *
+     * Optional but exactly one of
+     * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+     * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+     * must be specified.
+     * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
+     * `CASE_INSENSITIVE_MATCH`) search.
+     * For filterable `string_value`s, a maximum total number of 200 values
+     * is allowed, with each `string_value` has a byte size of no more than
+     * 255B. For unfilterable `string_values`, the maximum total byte size of
+     * unfilterable `string_values` is 50KB.
+     * Empty string isn't allowed.
+     * 
+ * + * repeated string string_values = 1; + */ + public java.lang.String getStringValues(int index) { + return stringValues_.get(index); + } + /** + * + * + *
+     * Optional but exactly one of
+     * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+     * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+     * must be specified.
+     * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
+     * `CASE_INSENSITIVE_MATCH`) search.
+     * For filterable `string_value`s, a maximum total number of 200 values
+     * is allowed, with each `string_value` has a byte size of no more than
+     * 255B. For unfilterable `string_values`, the maximum total byte size of
+     * unfilterable `string_values` is 50KB.
+     * Empty string isn't allowed.
+     * 
+ * + * repeated string string_values = 1; + */ + public com.google.protobuf.ByteString getStringValuesBytes(int index) { + return stringValues_.getByteString(index); + } + /** + * + * + *
+     * Optional but exactly one of
+     * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+     * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+     * must be specified.
+     * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
+     * `CASE_INSENSITIVE_MATCH`) search.
+     * For filterable `string_value`s, a maximum total number of 200 values
+     * is allowed, with each `string_value` has a byte size of no more than
+     * 255B. For unfilterable `string_values`, the maximum total byte size of
+     * unfilterable `string_values` is 50KB.
+     * Empty string isn't allowed.
+     * 
+ * + * repeated string string_values = 1; + */ + public Builder setStringValues(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureStringValuesIsMutable(); + stringValues_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional but exactly one of
+     * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+     * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+     * must be specified.
+     * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
+     * `CASE_INSENSITIVE_MATCH`) search.
+     * For filterable `string_value`s, a maximum total number of 200 values
+     * is allowed, with each `string_value` has a byte size of no more than
+     * 255B. For unfilterable `string_values`, the maximum total byte size of
+     * unfilterable `string_values` is 50KB.
+     * Empty string isn't allowed.
+     * 
+ * + * repeated string string_values = 1; + */ + public Builder addStringValues(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureStringValuesIsMutable(); + stringValues_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional but exactly one of
+     * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+     * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+     * must be specified.
+     * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
+     * `CASE_INSENSITIVE_MATCH`) search.
+     * For filterable `string_value`s, a maximum total number of 200 values
+     * is allowed, with each `string_value` has a byte size of no more than
+     * 255B. For unfilterable `string_values`, the maximum total byte size of
+     * unfilterable `string_values` is 50KB.
+     * Empty string isn't allowed.
+     * 
+ * + * repeated string string_values = 1; + */ + public Builder addAllStringValues(java.lang.Iterable values) { + ensureStringValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stringValues_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional but exactly one of
+     * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+     * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+     * must be specified.
+     * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
+     * `CASE_INSENSITIVE_MATCH`) search.
+     * For filterable `string_value`s, a maximum total number of 200 values
+     * is allowed, with each `string_value` has a byte size of no more than
+     * 255B. For unfilterable `string_values`, the maximum total byte size of
+     * unfilterable `string_values` is 50KB.
+     * Empty string isn't allowed.
+     * 
+ * + * repeated string string_values = 1; + */ + public Builder clearStringValues() { + stringValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional but exactly one of
+     * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+     * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+     * must be specified.
+     * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
+     * `CASE_INSENSITIVE_MATCH`) search.
+     * For filterable `string_value`s, a maximum total number of 200 values
+     * is allowed, with each `string_value` has a byte size of no more than
+     * 255B. For unfilterable `string_values`, the maximum total byte size of
+     * unfilterable `string_values` is 50KB.
+     * Empty string isn't allowed.
+     * 
+ * + * repeated string string_values = 1; + */ + public Builder addStringValuesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureStringValuesIsMutable(); + stringValues_.add(value); + onChanged(); + return this; + } + + private java.util.List longValues_ = java.util.Collections.emptyList(); + + private void ensureLongValuesIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + longValues_ = new java.util.ArrayList(longValues_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Optional but exactly one of
+     * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+     * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+     * must be specified.
+     * This field is used to perform number range search.
+     * (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.
+     * Currently at most 1
+     * [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] is
+     * supported.
+     * 
+ * + * repeated int64 long_values = 2; + */ + public java.util.List getLongValuesList() { + return java.util.Collections.unmodifiableList(longValues_); + } + /** + * + * + *
+     * Optional but exactly one of
+     * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+     * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+     * must be specified.
+     * This field is used to perform number range search.
+     * (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.
+     * Currently at most 1
+     * [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] is
+     * supported.
+     * 
+ * + * repeated int64 long_values = 2; + */ + public int getLongValuesCount() { + return longValues_.size(); + } + /** + * + * + *
+     * Optional but exactly one of
+     * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+     * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+     * must be specified.
+     * This field is used to perform number range search.
+     * (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.
+     * Currently at most 1
+     * [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] is
+     * supported.
+     * 
+ * + * repeated int64 long_values = 2; + */ + public long getLongValues(int index) { + return longValues_.get(index); + } + /** + * + * + *
+     * Optional but exactly one of
+     * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+     * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+     * must be specified.
+     * This field is used to perform number range search.
+     * (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.
+     * Currently at most 1
+     * [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] is
+     * supported.
+     * 
+ * + * repeated int64 long_values = 2; + */ + public Builder setLongValues(int index, long value) { + ensureLongValuesIsMutable(); + longValues_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional but exactly one of
+     * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+     * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+     * must be specified.
+     * This field is used to perform number range search.
+     * (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.
+     * Currently at most 1
+     * [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] is
+     * supported.
+     * 
+ * + * repeated int64 long_values = 2; + */ + public Builder addLongValues(long value) { + ensureLongValuesIsMutable(); + longValues_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional but exactly one of
+     * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+     * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+     * must be specified.
+     * This field is used to perform number range search.
+     * (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.
+     * Currently at most 1
+     * [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] is
+     * supported.
+     * 
+ * + * repeated int64 long_values = 2; + */ + public Builder addAllLongValues(java.lang.Iterable values) { + ensureLongValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, longValues_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional but exactly one of
+     * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+     * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+     * must be specified.
+     * This field is used to perform number range search.
+     * (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.
+     * Currently at most 1
+     * [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] is
+     * supported.
+     * 
+ * + * repeated int64 long_values = 2; + */ + public Builder clearLongValues() { + longValues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + private boolean filterable_; + /** + * + * + *
+     * Optional.
+     * If the `filterable` flag is true, custom field values are searchable.
+     * If false, values are not searchable.
+     * Default is false.
+     * 
+ * + * bool filterable = 3; + */ + public boolean getFilterable() { + return filterable_; + } + /** + * + * + *
+     * Optional.
+     * If the `filterable` flag is true, custom field values are searchable.
+     * If false, values are not searchable.
+     * Default is false.
+     * 
+ * + * bool filterable = 3; + */ + public Builder setFilterable(boolean value) { + + filterable_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * If the `filterable` flag is true, custom field values are searchable.
+     * If false, values are not searchable.
+     * Default is false.
+     * 
+ * + * bool filterable = 3; + */ + public Builder clearFilterable() { + + filterable_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.CustomAttribute) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CustomAttribute) + private static final com.google.cloud.talent.v4beta1.CustomAttribute DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.CustomAttribute(); + } + + public static com.google.cloud.talent.v4beta1.CustomAttribute getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomAttribute parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CustomAttribute(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.CustomAttribute getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CustomAttributeOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CustomAttributeOrBuilder.java new file mode 100644 index 000000000000..6df759d1bea8 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CustomAttributeOrBuilder.java @@ -0,0 +1,160 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +public interface CustomAttributeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.CustomAttribute) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional but exactly one of
+   * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+   * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+   * must be specified.
+   * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
+   * `CASE_INSENSITIVE_MATCH`) search.
+   * For filterable `string_value`s, a maximum total number of 200 values
+   * is allowed, with each `string_value` has a byte size of no more than
+   * 255B. For unfilterable `string_values`, the maximum total byte size of
+   * unfilterable `string_values` is 50KB.
+   * Empty string isn't allowed.
+   * 
+ * + * repeated string string_values = 1; + */ + java.util.List getStringValuesList(); + /** + * + * + *
+   * Optional but exactly one of
+   * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+   * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+   * must be specified.
+   * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
+   * `CASE_INSENSITIVE_MATCH`) search.
+   * For filterable `string_value`s, a maximum total number of 200 values
+   * is allowed, with each `string_value` has a byte size of no more than
+   * 255B. For unfilterable `string_values`, the maximum total byte size of
+   * unfilterable `string_values` is 50KB.
+   * Empty string isn't allowed.
+   * 
+ * + * repeated string string_values = 1; + */ + int getStringValuesCount(); + /** + * + * + *
+   * Optional but exactly one of
+   * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+   * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+   * must be specified.
+   * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
+   * `CASE_INSENSITIVE_MATCH`) search.
+   * For filterable `string_value`s, a maximum total number of 200 values
+   * is allowed, with each `string_value` has a byte size of no more than
+   * 255B. For unfilterable `string_values`, the maximum total byte size of
+   * unfilterable `string_values` is 50KB.
+   * Empty string isn't allowed.
+   * 
+ * + * repeated string string_values = 1; + */ + java.lang.String getStringValues(int index); + /** + * + * + *
+   * Optional but exactly one of
+   * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+   * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+   * must be specified.
+   * This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
+   * `CASE_INSENSITIVE_MATCH`) search.
+   * For filterable `string_value`s, a maximum total number of 200 values
+   * is allowed, with each `string_value` has a byte size of no more than
+   * 255B. For unfilterable `string_values`, the maximum total byte size of
+   * unfilterable `string_values` is 50KB.
+   * Empty string isn't allowed.
+   * 
+ * + * repeated string string_values = 1; + */ + com.google.protobuf.ByteString getStringValuesBytes(int index); + + /** + * + * + *
+   * Optional but exactly one of
+   * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+   * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+   * must be specified.
+   * This field is used to perform number range search.
+   * (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.
+   * Currently at most 1
+   * [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] is
+   * supported.
+   * 
+ * + * repeated int64 long_values = 2; + */ + java.util.List getLongValuesList(); + /** + * + * + *
+   * Optional but exactly one of
+   * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+   * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+   * must be specified.
+   * This field is used to perform number range search.
+   * (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.
+   * Currently at most 1
+   * [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] is
+   * supported.
+   * 
+ * + * repeated int64 long_values = 2; + */ + int getLongValuesCount(); + /** + * + * + *
+   * Optional but exactly one of
+   * [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values]
+   * or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values]
+   * must be specified.
+   * This field is used to perform number range search.
+   * (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.
+   * Currently at most 1
+   * [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] is
+   * supported.
+   * 
+ * + * repeated int64 long_values = 2; + */ + long getLongValues(int index); + + /** + * + * + *
+   * Optional.
+   * If the `filterable` flag is true, custom field values are searchable.
+   * If false, values are not searchable.
+   * Default is false.
+   * 
+ * + * bool filterable = 3; + */ + boolean getFilterable(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Degree.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Degree.java new file mode 100644 index 000000000000..68640edd5605 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Degree.java @@ -0,0 +1,1041 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Resource that represents a degree pursuing or acquired by a candidate.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Degree} + */ +public final class Degree extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Degree) + DegreeOrBuilder { + private static final long serialVersionUID = 0L; + // Use Degree.newBuilder() to construct. + private Degree(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Degree() { + degreeType_ = 0; + degreeName_ = ""; + fieldsOfStudy_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Degree( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + degreeType_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + degreeName_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + fieldsOfStudy_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + fieldsOfStudy_.add(s); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + fieldsOfStudy_ = fieldsOfStudy_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Degree_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Degree_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Degree.class, + com.google.cloud.talent.v4beta1.Degree.Builder.class); + } + + private int bitField0_; + public static final int DEGREE_TYPE_FIELD_NUMBER = 1; + private int degreeType_; + /** + * + * + *
+   * Optional.
+   * ISCED degree type.
+   * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 1; + */ + public int getDegreeTypeValue() { + return degreeType_; + } + /** + * + * + *
+   * Optional.
+   * ISCED degree type.
+   * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 1; + */ + public com.google.cloud.talent.v4beta1.DegreeType getDegreeType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.DegreeType result = + com.google.cloud.talent.v4beta1.DegreeType.valueOf(degreeType_); + return result == null ? com.google.cloud.talent.v4beta1.DegreeType.UNRECOGNIZED : result; + } + + public static final int DEGREE_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object degreeName_; + /** + * + * + *
+   * Optional.
+   * Full Degree name.
+   * For example, "B.S.", "Master of Arts", etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string degree_name = 2; + */ + public java.lang.String getDegreeName() { + java.lang.Object ref = degreeName_; + 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(); + degreeName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * Full Degree name.
+   * For example, "B.S.", "Master of Arts", etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string degree_name = 2; + */ + public com.google.protobuf.ByteString getDegreeNameBytes() { + java.lang.Object ref = degreeName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + degreeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FIELDS_OF_STUDY_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList fieldsOfStudy_; + /** + * + * + *
+   * Optional.
+   * Fields of study for the degree.
+   * For example, "Computer science", "engineering".
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string fields_of_study = 3; + */ + public com.google.protobuf.ProtocolStringList getFieldsOfStudyList() { + return fieldsOfStudy_; + } + /** + * + * + *
+   * Optional.
+   * Fields of study for the degree.
+   * For example, "Computer science", "engineering".
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string fields_of_study = 3; + */ + public int getFieldsOfStudyCount() { + return fieldsOfStudy_.size(); + } + /** + * + * + *
+   * Optional.
+   * Fields of study for the degree.
+   * For example, "Computer science", "engineering".
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string fields_of_study = 3; + */ + public java.lang.String getFieldsOfStudy(int index) { + return fieldsOfStudy_.get(index); + } + /** + * + * + *
+   * Optional.
+   * Fields of study for the degree.
+   * For example, "Computer science", "engineering".
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string fields_of_study = 3; + */ + public com.google.protobuf.ByteString getFieldsOfStudyBytes(int index) { + return fieldsOfStudy_.getByteString(index); + } + + 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 (degreeType_ + != com.google.cloud.talent.v4beta1.DegreeType.DEGREE_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, degreeType_); + } + if (!getDegreeNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, degreeName_); + } + for (int i = 0; i < fieldsOfStudy_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, fieldsOfStudy_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (degreeType_ + != com.google.cloud.talent.v4beta1.DegreeType.DEGREE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, degreeType_); + } + if (!getDegreeNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, degreeName_); + } + { + int dataSize = 0; + for (int i = 0; i < fieldsOfStudy_.size(); i++) { + dataSize += computeStringSizeNoTag(fieldsOfStudy_.getRaw(i)); + } + size += dataSize; + size += 1 * getFieldsOfStudyList().size(); + } + size += unknownFields.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.cloud.talent.v4beta1.Degree)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Degree other = (com.google.cloud.talent.v4beta1.Degree) obj; + + boolean result = true; + result = result && degreeType_ == other.degreeType_; + result = result && getDegreeName().equals(other.getDegreeName()); + result = result && getFieldsOfStudyList().equals(other.getFieldsOfStudyList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DEGREE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + degreeType_; + hash = (37 * hash) + DEGREE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDegreeName().hashCode(); + if (getFieldsOfStudyCount() > 0) { + hash = (37 * hash) + FIELDS_OF_STUDY_FIELD_NUMBER; + hash = (53 * hash) + getFieldsOfStudyList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Degree parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Degree parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Degree parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Degree 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.cloud.talent.v4beta1.Degree parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Degree parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Degree parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Degree 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.cloud.talent.v4beta1.Degree parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Degree 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.cloud.talent.v4beta1.Degree parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Degree 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.cloud.talent.v4beta1.Degree 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; + } + /** + * + * + *
+   * Resource that represents a degree pursuing or acquired by a candidate.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Degree} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Degree) + com.google.cloud.talent.v4beta1.DegreeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Degree_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Degree_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Degree.class, + com.google.cloud.talent.v4beta1.Degree.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Degree.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + degreeType_ = 0; + + degreeName_ = ""; + + fieldsOfStudy_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Degree_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Degree getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Degree.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Degree build() { + com.google.cloud.talent.v4beta1.Degree result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Degree buildPartial() { + com.google.cloud.talent.v4beta1.Degree result = + new com.google.cloud.talent.v4beta1.Degree(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.degreeType_ = degreeType_; + result.degreeName_ = degreeName_; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + fieldsOfStudy_ = fieldsOfStudy_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.fieldsOfStudy_ = fieldsOfStudy_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Degree) { + return mergeFrom((com.google.cloud.talent.v4beta1.Degree) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Degree other) { + if (other == com.google.cloud.talent.v4beta1.Degree.getDefaultInstance()) return this; + if (other.degreeType_ != 0) { + setDegreeTypeValue(other.getDegreeTypeValue()); + } + if (!other.getDegreeName().isEmpty()) { + degreeName_ = other.degreeName_; + onChanged(); + } + if (!other.fieldsOfStudy_.isEmpty()) { + if (fieldsOfStudy_.isEmpty()) { + fieldsOfStudy_ = other.fieldsOfStudy_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureFieldsOfStudyIsMutable(); + fieldsOfStudy_.addAll(other.fieldsOfStudy_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.Degree parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.Degree) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private int degreeType_ = 0; + /** + * + * + *
+     * Optional.
+     * ISCED degree type.
+     * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 1; + */ + public int getDegreeTypeValue() { + return degreeType_; + } + /** + * + * + *
+     * Optional.
+     * ISCED degree type.
+     * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 1; + */ + public Builder setDegreeTypeValue(int value) { + degreeType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * ISCED degree type.
+     * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 1; + */ + public com.google.cloud.talent.v4beta1.DegreeType getDegreeType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.DegreeType result = + com.google.cloud.talent.v4beta1.DegreeType.valueOf(degreeType_); + return result == null ? com.google.cloud.talent.v4beta1.DegreeType.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Optional.
+     * ISCED degree type.
+     * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 1; + */ + public Builder setDegreeType(com.google.cloud.talent.v4beta1.DegreeType value) { + if (value == null) { + throw new NullPointerException(); + } + + degreeType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * ISCED degree type.
+     * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 1; + */ + public Builder clearDegreeType() { + + degreeType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object degreeName_ = ""; + /** + * + * + *
+     * Optional.
+     * Full Degree name.
+     * For example, "B.S.", "Master of Arts", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string degree_name = 2; + */ + public java.lang.String getDegreeName() { + java.lang.Object ref = degreeName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + degreeName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Full Degree name.
+     * For example, "B.S.", "Master of Arts", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string degree_name = 2; + */ + public com.google.protobuf.ByteString getDegreeNameBytes() { + java.lang.Object ref = degreeName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + degreeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Full Degree name.
+     * For example, "B.S.", "Master of Arts", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string degree_name = 2; + */ + public Builder setDegreeName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + degreeName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Full Degree name.
+     * For example, "B.S.", "Master of Arts", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string degree_name = 2; + */ + public Builder clearDegreeName() { + + degreeName_ = getDefaultInstance().getDegreeName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Full Degree name.
+     * For example, "B.S.", "Master of Arts", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string degree_name = 2; + */ + public Builder setDegreeNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + degreeName_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList fieldsOfStudy_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureFieldsOfStudyIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + fieldsOfStudy_ = new com.google.protobuf.LazyStringArrayList(fieldsOfStudy_); + bitField0_ |= 0x00000004; + } + } + /** + * + * + *
+     * Optional.
+     * Fields of study for the degree.
+     * For example, "Computer science", "engineering".
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string fields_of_study = 3; + */ + public com.google.protobuf.ProtocolStringList getFieldsOfStudyList() { + return fieldsOfStudy_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional.
+     * Fields of study for the degree.
+     * For example, "Computer science", "engineering".
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string fields_of_study = 3; + */ + public int getFieldsOfStudyCount() { + return fieldsOfStudy_.size(); + } + /** + * + * + *
+     * Optional.
+     * Fields of study for the degree.
+     * For example, "Computer science", "engineering".
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string fields_of_study = 3; + */ + public java.lang.String getFieldsOfStudy(int index) { + return fieldsOfStudy_.get(index); + } + /** + * + * + *
+     * Optional.
+     * Fields of study for the degree.
+     * For example, "Computer science", "engineering".
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string fields_of_study = 3; + */ + public com.google.protobuf.ByteString getFieldsOfStudyBytes(int index) { + return fieldsOfStudy_.getByteString(index); + } + /** + * + * + *
+     * Optional.
+     * Fields of study for the degree.
+     * For example, "Computer science", "engineering".
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string fields_of_study = 3; + */ + public Builder setFieldsOfStudy(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFieldsOfStudyIsMutable(); + fieldsOfStudy_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Fields of study for the degree.
+     * For example, "Computer science", "engineering".
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string fields_of_study = 3; + */ + public Builder addFieldsOfStudy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFieldsOfStudyIsMutable(); + fieldsOfStudy_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Fields of study for the degree.
+     * For example, "Computer science", "engineering".
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string fields_of_study = 3; + */ + public Builder addAllFieldsOfStudy(java.lang.Iterable values) { + ensureFieldsOfStudyIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fieldsOfStudy_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Fields of study for the degree.
+     * For example, "Computer science", "engineering".
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string fields_of_study = 3; + */ + public Builder clearFieldsOfStudy() { + fieldsOfStudy_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Fields of study for the degree.
+     * For example, "Computer science", "engineering".
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string fields_of_study = 3; + */ + public Builder addFieldsOfStudyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureFieldsOfStudyIsMutable(); + fieldsOfStudy_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Degree) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Degree) + private static final com.google.cloud.talent.v4beta1.Degree DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Degree(); + } + + public static com.google.cloud.talent.v4beta1.Degree getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Degree parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Degree(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.Degree getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DegreeOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DegreeOrBuilder.java new file mode 100644 index 000000000000..26e9210bef3a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DegreeOrBuilder.java @@ -0,0 +1,113 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public interface DegreeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Degree) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * ISCED degree type.
+   * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 1; + */ + int getDegreeTypeValue(); + /** + * + * + *
+   * Optional.
+   * ISCED degree type.
+   * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 1; + */ + com.google.cloud.talent.v4beta1.DegreeType getDegreeType(); + + /** + * + * + *
+   * Optional.
+   * Full Degree name.
+   * For example, "B.S.", "Master of Arts", etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string degree_name = 2; + */ + java.lang.String getDegreeName(); + /** + * + * + *
+   * Optional.
+   * Full Degree name.
+   * For example, "B.S.", "Master of Arts", etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string degree_name = 2; + */ + com.google.protobuf.ByteString getDegreeNameBytes(); + + /** + * + * + *
+   * Optional.
+   * Fields of study for the degree.
+   * For example, "Computer science", "engineering".
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string fields_of_study = 3; + */ + java.util.List getFieldsOfStudyList(); + /** + * + * + *
+   * Optional.
+   * Fields of study for the degree.
+   * For example, "Computer science", "engineering".
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string fields_of_study = 3; + */ + int getFieldsOfStudyCount(); + /** + * + * + *
+   * Optional.
+   * Fields of study for the degree.
+   * For example, "Computer science", "engineering".
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string fields_of_study = 3; + */ + java.lang.String getFieldsOfStudy(int index); + /** + * + * + *
+   * Optional.
+   * Fields of study for the degree.
+   * For example, "Computer science", "engineering".
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string fields_of_study = 3; + */ + com.google.protobuf.ByteString getFieldsOfStudyBytes(int index); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DegreeType.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DegreeType.java new file mode 100644 index 000000000000..7e7be0b66092 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DegreeType.java @@ -0,0 +1,330 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Educational degree level defined in International Standard Classification
+ * of Education (ISCED).
+ * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.DegreeType} + */ +public enum DegreeType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Default value. Represents no degree, or early childhood education.
+   * Maps to ISCED code 0.
+   * Ex) Kindergarten
+   * 
+ * + * DEGREE_TYPE_UNSPECIFIED = 0; + */ + DEGREE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+   * Primary education which is typically the first stage of compulsory
+   * education. ISCED code 1.
+   * Ex) Elementary school
+   * 
+ * + * PRIMARY_EDUCATION = 1; + */ + PRIMARY_EDUCATION(1), + /** + * + * + *
+   * Lower secondary education; First stage of secondary education building on
+   * primary education, typically with a more subject-oriented curriculum.
+   * ISCED code 2.
+   * Ex) Middle school
+   * 
+ * + * LOWER_SECONDARY_EDUCATION = 2; + */ + LOWER_SECONDARY_EDUCATION(2), + /** + * + * + *
+   * Middle education; Second/final stage of secondary education preparing for
+   * tertiary education and/or providing skills relevant to employment.
+   * Usually with an increased range of subject options and streams. ISCED
+   * code 3.
+   * Ex) High school
+   * 
+ * + * UPPER_SECONDARY_EDUCATION = 3; + */ + UPPER_SECONDARY_EDUCATION(3), + /** + * + * + *
+   * Adult Remedial Education; Programmes providing learning experiences that
+   * build on secondary education and prepare for labour market entry and/or
+   * tertiary education. The content is broader than secondary but not as
+   * complex as tertiary education. ISCED code 4.
+   * 
+ * + * ADULT_REMEDIAL_EDUCATION = 4; + */ + ADULT_REMEDIAL_EDUCATION(4), + /** + * + * + *
+   * Associate's or equivalent; Short first tertiary programmes that are
+   * typically practically-based, occupationally-specific and prepare for
+   * labour market entry. These programmes may also provide a pathway to other
+   * tertiary programmes. ISCED code 5.
+   * 
+ * + * ASSOCIATES_OR_EQUIVALENT = 5; + */ + ASSOCIATES_OR_EQUIVALENT(5), + /** + * + * + *
+   * Bachelor's or equivalent; Programmes designed to provide intermediate
+   * academic and/or professional knowledge, skills and competencies leading
+   * to a first tertiary degree or equivalent qualification. ISCED code 6.
+   * 
+ * + * BACHELORS_OR_EQUIVALENT = 6; + */ + BACHELORS_OR_EQUIVALENT(6), + /** + * + * + *
+   * Master's or equivalent; Programmes designed to provide advanced academic
+   * and/or professional knowledge, skills and competencies leading to a
+   * second tertiary degree or equivalent qualification. ISCED code 7.
+   * 
+ * + * MASTERS_OR_EQUIVALENT = 7; + */ + MASTERS_OR_EQUIVALENT(7), + /** + * + * + *
+   * Doctoral or equivalent; Programmes designed primarily to lead to an
+   * advanced research qualification, usually concluding with the submission
+   * and defense of a substantive dissertation of publishable quality based on
+   * original research. ISCED code 8.
+   * 
+ * + * DOCTORAL_OR_EQUIVALENT = 8; + */ + DOCTORAL_OR_EQUIVALENT(8), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Default value. Represents no degree, or early childhood education.
+   * Maps to ISCED code 0.
+   * Ex) Kindergarten
+   * 
+ * + * DEGREE_TYPE_UNSPECIFIED = 0; + */ + public static final int DEGREE_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Primary education which is typically the first stage of compulsory
+   * education. ISCED code 1.
+   * Ex) Elementary school
+   * 
+ * + * PRIMARY_EDUCATION = 1; + */ + public static final int PRIMARY_EDUCATION_VALUE = 1; + /** + * + * + *
+   * Lower secondary education; First stage of secondary education building on
+   * primary education, typically with a more subject-oriented curriculum.
+   * ISCED code 2.
+   * Ex) Middle school
+   * 
+ * + * LOWER_SECONDARY_EDUCATION = 2; + */ + public static final int LOWER_SECONDARY_EDUCATION_VALUE = 2; + /** + * + * + *
+   * Middle education; Second/final stage of secondary education preparing for
+   * tertiary education and/or providing skills relevant to employment.
+   * Usually with an increased range of subject options and streams. ISCED
+   * code 3.
+   * Ex) High school
+   * 
+ * + * UPPER_SECONDARY_EDUCATION = 3; + */ + public static final int UPPER_SECONDARY_EDUCATION_VALUE = 3; + /** + * + * + *
+   * Adult Remedial Education; Programmes providing learning experiences that
+   * build on secondary education and prepare for labour market entry and/or
+   * tertiary education. The content is broader than secondary but not as
+   * complex as tertiary education. ISCED code 4.
+   * 
+ * + * ADULT_REMEDIAL_EDUCATION = 4; + */ + public static final int ADULT_REMEDIAL_EDUCATION_VALUE = 4; + /** + * + * + *
+   * Associate's or equivalent; Short first tertiary programmes that are
+   * typically practically-based, occupationally-specific and prepare for
+   * labour market entry. These programmes may also provide a pathway to other
+   * tertiary programmes. ISCED code 5.
+   * 
+ * + * ASSOCIATES_OR_EQUIVALENT = 5; + */ + public static final int ASSOCIATES_OR_EQUIVALENT_VALUE = 5; + /** + * + * + *
+   * Bachelor's or equivalent; Programmes designed to provide intermediate
+   * academic and/or professional knowledge, skills and competencies leading
+   * to a first tertiary degree or equivalent qualification. ISCED code 6.
+   * 
+ * + * BACHELORS_OR_EQUIVALENT = 6; + */ + public static final int BACHELORS_OR_EQUIVALENT_VALUE = 6; + /** + * + * + *
+   * Master's or equivalent; Programmes designed to provide advanced academic
+   * and/or professional knowledge, skills and competencies leading to a
+   * second tertiary degree or equivalent qualification. ISCED code 7.
+   * 
+ * + * MASTERS_OR_EQUIVALENT = 7; + */ + public static final int MASTERS_OR_EQUIVALENT_VALUE = 7; + /** + * + * + *
+   * Doctoral or equivalent; Programmes designed primarily to lead to an
+   * advanced research qualification, usually concluding with the submission
+   * and defense of a substantive dissertation of publishable quality based on
+   * original research. ISCED code 8.
+   * 
+ * + * DOCTORAL_OR_EQUIVALENT = 8; + */ + public static final int DOCTORAL_OR_EQUIVALENT_VALUE = 8; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static DegreeType valueOf(int value) { + return forNumber(value); + } + + public static DegreeType forNumber(int value) { + switch (value) { + case 0: + return DEGREE_TYPE_UNSPECIFIED; + case 1: + return PRIMARY_EDUCATION; + case 2: + return LOWER_SECONDARY_EDUCATION; + case 3: + return UPPER_SECONDARY_EDUCATION; + case 4: + return ADULT_REMEDIAL_EDUCATION; + case 5: + return ASSOCIATES_OR_EQUIVALENT; + case 6: + return BACHELORS_OR_EQUIVALENT; + case 7: + return MASTERS_OR_EQUIVALENT; + case 8: + return DOCTORAL_OR_EQUIVALENT; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DegreeType findValueByNumber(int number) { + return DegreeType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto.getDescriptor().getEnumTypes().get(2); + } + + private static final DegreeType[] VALUES = values(); + + public static DegreeType 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()]; + } + + private final int value; + + private DegreeType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.DegreeType) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteCompanyRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteCompanyRequest.java new file mode 100644 index 000000000000..7833f2f99391 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteCompanyRequest.java @@ -0,0 +1,620 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/company_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Request to delete a company.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.DeleteCompanyRequest} + */ +public final class DeleteCompanyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.DeleteCompanyRequest) + DeleteCompanyRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteCompanyRequest.newBuilder() to construct. + private DeleteCompanyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteCompanyRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteCompanyRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteCompanyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteCompanyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.DeleteCompanyRequest.class, + com.google.cloud.talent.v4beta1.DeleteCompanyRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required.
+   * The resource name of the company to be deleted.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The resource name of the company to be deleted.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = 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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.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.cloud.talent.v4beta1.DeleteCompanyRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.DeleteCompanyRequest other = + (com.google.cloud.talent.v4beta1.DeleteCompanyRequest) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.DeleteCompanyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.DeleteCompanyRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeleteCompanyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.DeleteCompanyRequest 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.cloud.talent.v4beta1.DeleteCompanyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.DeleteCompanyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeleteCompanyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.DeleteCompanyRequest 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.cloud.talent.v4beta1.DeleteCompanyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.DeleteCompanyRequest 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.cloud.talent.v4beta1.DeleteCompanyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.DeleteCompanyRequest 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.cloud.talent.v4beta1.DeleteCompanyRequest 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; + } + /** + * + * + *
+   * Request to delete a company.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.DeleteCompanyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.DeleteCompanyRequest) + com.google.cloud.talent.v4beta1.DeleteCompanyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteCompanyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteCompanyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.DeleteCompanyRequest.class, + com.google.cloud.talent.v4beta1.DeleteCompanyRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.DeleteCompanyRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteCompanyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeleteCompanyRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.DeleteCompanyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeleteCompanyRequest build() { + com.google.cloud.talent.v4beta1.DeleteCompanyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeleteCompanyRequest buildPartial() { + com.google.cloud.talent.v4beta1.DeleteCompanyRequest result = + new com.google.cloud.talent.v4beta1.DeleteCompanyRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.DeleteCompanyRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.DeleteCompanyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.DeleteCompanyRequest other) { + if (other == com.google.cloud.talent.v4beta1.DeleteCompanyRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.DeleteCompanyRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.DeleteCompanyRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required.
+     * The resource name of the company to be deleted.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the company to be deleted.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the company to be deleted.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the company to be deleted.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the company to be deleted.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.DeleteCompanyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.DeleteCompanyRequest) + private static final com.google.cloud.talent.v4beta1.DeleteCompanyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.DeleteCompanyRequest(); + } + + public static com.google.cloud.talent.v4beta1.DeleteCompanyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteCompanyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteCompanyRequest(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.DeleteCompanyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteCompanyRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteCompanyRequestOrBuilder.java new file mode 100644 index 000000000000..c58559744c28 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteCompanyRequestOrBuilder.java @@ -0,0 +1,37 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/company_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface DeleteCompanyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.DeleteCompanyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The resource name of the company to be deleted.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Required.
+   * The resource name of the company to be deleted.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteJobRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteJobRequest.java new file mode 100644 index 000000000000..686a3020320c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteJobRequest.java @@ -0,0 +1,621 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Delete job request.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.DeleteJobRequest} + */ +public final class DeleteJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.DeleteJobRequest) + DeleteJobRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteJobRequest.newBuilder() to construct. + private DeleteJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteJobRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteJobRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.DeleteJobRequest.class, + com.google.cloud.talent.v4beta1.DeleteJobRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required.
+   * The resource name of the job to be deleted.
+   * The format is "projects/{project_id}/jobs/{job_id}",
+   * for example, "projects/api-test-project/jobs/1234".
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The resource name of the job to be deleted.
+   * The format is "projects/{project_id}/jobs/{job_id}",
+   * for example, "projects/api-test-project/jobs/1234".
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = 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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.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.cloud.talent.v4beta1.DeleteJobRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.DeleteJobRequest other = + (com.google.cloud.talent.v4beta1.DeleteJobRequest) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.DeleteJobRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.DeleteJobRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeleteJobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.DeleteJobRequest 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.cloud.talent.v4beta1.DeleteJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.DeleteJobRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeleteJobRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.DeleteJobRequest 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.cloud.talent.v4beta1.DeleteJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.DeleteJobRequest 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.cloud.talent.v4beta1.DeleteJobRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.DeleteJobRequest 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.cloud.talent.v4beta1.DeleteJobRequest 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; + } + /** + * + * + *
+   * Input only.
+   * Delete job request.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.DeleteJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.DeleteJobRequest) + com.google.cloud.talent.v4beta1.DeleteJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.DeleteJobRequest.class, + com.google.cloud.talent.v4beta1.DeleteJobRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.DeleteJobRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeleteJobRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.DeleteJobRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeleteJobRequest build() { + com.google.cloud.talent.v4beta1.DeleteJobRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeleteJobRequest buildPartial() { + com.google.cloud.talent.v4beta1.DeleteJobRequest result = + new com.google.cloud.talent.v4beta1.DeleteJobRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.DeleteJobRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.DeleteJobRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.DeleteJobRequest other) { + if (other == com.google.cloud.talent.v4beta1.DeleteJobRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.DeleteJobRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.DeleteJobRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required.
+     * The resource name of the job to be deleted.
+     * The format is "projects/{project_id}/jobs/{job_id}",
+     * for example, "projects/api-test-project/jobs/1234".
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the job to be deleted.
+     * The format is "projects/{project_id}/jobs/{job_id}",
+     * for example, "projects/api-test-project/jobs/1234".
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the job to be deleted.
+     * The format is "projects/{project_id}/jobs/{job_id}",
+     * for example, "projects/api-test-project/jobs/1234".
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the job to be deleted.
+     * The format is "projects/{project_id}/jobs/{job_id}",
+     * for example, "projects/api-test-project/jobs/1234".
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the job to be deleted.
+     * The format is "projects/{project_id}/jobs/{job_id}",
+     * for example, "projects/api-test-project/jobs/1234".
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.DeleteJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.DeleteJobRequest) + private static final com.google.cloud.talent.v4beta1.DeleteJobRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.DeleteJobRequest(); + } + + public static com.google.cloud.talent.v4beta1.DeleteJobRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteJobRequest(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.DeleteJobRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteJobRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteJobRequestOrBuilder.java new file mode 100644 index 000000000000..5d5d2736def3 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteJobRequestOrBuilder.java @@ -0,0 +1,37 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface DeleteJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.DeleteJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The resource name of the job to be deleted.
+   * The format is "projects/{project_id}/jobs/{job_id}",
+   * for example, "projects/api-test-project/jobs/1234".
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Required.
+   * The resource name of the job to be deleted.
+   * The format is "projects/{project_id}/jobs/{job_id}",
+   * for example, "projects/api-test-project/jobs/1234".
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteProfileRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteProfileRequest.java new file mode 100644 index 000000000000..382bffe0e76c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteProfileRequest.java @@ -0,0 +1,627 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Delete profile request.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.DeleteProfileRequest} + */ +public final class DeleteProfileRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.DeleteProfileRequest) + DeleteProfileRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteProfileRequest.newBuilder() to construct. + private DeleteProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteProfileRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteProfileRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteProfileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteProfileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.DeleteProfileRequest.class, + com.google.cloud.talent.v4beta1.DeleteProfileRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required.
+   * Resource name of the profile to be deleted.
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+   * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * Resource name of the profile to be deleted.
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+   * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = 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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.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.cloud.talent.v4beta1.DeleteProfileRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.DeleteProfileRequest other = + (com.google.cloud.talent.v4beta1.DeleteProfileRequest) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.DeleteProfileRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.DeleteProfileRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeleteProfileRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.DeleteProfileRequest 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.cloud.talent.v4beta1.DeleteProfileRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.DeleteProfileRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeleteProfileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.DeleteProfileRequest 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.cloud.talent.v4beta1.DeleteProfileRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.DeleteProfileRequest 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.cloud.talent.v4beta1.DeleteProfileRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.DeleteProfileRequest 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.cloud.talent.v4beta1.DeleteProfileRequest 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; + } + /** + * + * + *
+   * Delete profile request.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.DeleteProfileRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.DeleteProfileRequest) + com.google.cloud.talent.v4beta1.DeleteProfileRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteProfileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteProfileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.DeleteProfileRequest.class, + com.google.cloud.talent.v4beta1.DeleteProfileRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.DeleteProfileRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteProfileRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeleteProfileRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.DeleteProfileRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeleteProfileRequest build() { + com.google.cloud.talent.v4beta1.DeleteProfileRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeleteProfileRequest buildPartial() { + com.google.cloud.talent.v4beta1.DeleteProfileRequest result = + new com.google.cloud.talent.v4beta1.DeleteProfileRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.DeleteProfileRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.DeleteProfileRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.DeleteProfileRequest other) { + if (other == com.google.cloud.talent.v4beta1.DeleteProfileRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.DeleteProfileRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.DeleteProfileRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required.
+     * Resource name of the profile to be deleted.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+     * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * Resource name of the profile to be deleted.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+     * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * Resource name of the profile to be deleted.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+     * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Resource name of the profile to be deleted.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+     * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Resource name of the profile to be deleted.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+     * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.DeleteProfileRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.DeleteProfileRequest) + private static final com.google.cloud.talent.v4beta1.DeleteProfileRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.DeleteProfileRequest(); + } + + public static com.google.cloud.talent.v4beta1.DeleteProfileRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteProfileRequest(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.DeleteProfileRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteProfileRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteProfileRequestOrBuilder.java new file mode 100644 index 000000000000..98e1a1f74cb9 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteProfileRequestOrBuilder.java @@ -0,0 +1,39 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface DeleteProfileRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.DeleteProfileRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * Resource name of the profile to be deleted.
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+   * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Required.
+   * Resource name of the profile to be deleted.
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+   * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteTenantRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteTenantRequest.java new file mode 100644 index 000000000000..4739050142e8 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteTenantRequest.java @@ -0,0 +1,620 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/tenant_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Request to delete a tenant.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.DeleteTenantRequest} + */ +public final class DeleteTenantRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.DeleteTenantRequest) + DeleteTenantRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteTenantRequest.newBuilder() to construct. + private DeleteTenantRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteTenantRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteTenantRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteTenantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteTenantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.DeleteTenantRequest.class, + com.google.cloud.talent.v4beta1.DeleteTenantRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required.
+   * The resource name of the tenant to be deleted.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The resource name of the tenant to be deleted.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = 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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.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.cloud.talent.v4beta1.DeleteTenantRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.DeleteTenantRequest other = + (com.google.cloud.talent.v4beta1.DeleteTenantRequest) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.DeleteTenantRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.DeleteTenantRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeleteTenantRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.DeleteTenantRequest 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.cloud.talent.v4beta1.DeleteTenantRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.DeleteTenantRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeleteTenantRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.DeleteTenantRequest 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.cloud.talent.v4beta1.DeleteTenantRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.DeleteTenantRequest 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.cloud.talent.v4beta1.DeleteTenantRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.DeleteTenantRequest 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.cloud.talent.v4beta1.DeleteTenantRequest 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; + } + /** + * + * + *
+   * Request to delete a tenant.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.DeleteTenantRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.DeleteTenantRequest) + com.google.cloud.talent.v4beta1.DeleteTenantRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteTenantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteTenantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.DeleteTenantRequest.class, + com.google.cloud.talent.v4beta1.DeleteTenantRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.DeleteTenantRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_DeleteTenantRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeleteTenantRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.DeleteTenantRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeleteTenantRequest build() { + com.google.cloud.talent.v4beta1.DeleteTenantRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeleteTenantRequest buildPartial() { + com.google.cloud.talent.v4beta1.DeleteTenantRequest result = + new com.google.cloud.talent.v4beta1.DeleteTenantRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.DeleteTenantRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.DeleteTenantRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.DeleteTenantRequest other) { + if (other == com.google.cloud.talent.v4beta1.DeleteTenantRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.DeleteTenantRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.DeleteTenantRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required.
+     * The resource name of the tenant to be deleted.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the tenant to be deleted.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the tenant to be deleted.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the tenant to be deleted.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the tenant to be deleted.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.DeleteTenantRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.DeleteTenantRequest) + private static final com.google.cloud.talent.v4beta1.DeleteTenantRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.DeleteTenantRequest(); + } + + public static com.google.cloud.talent.v4beta1.DeleteTenantRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteTenantRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteTenantRequest(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.DeleteTenantRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteTenantRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteTenantRequestOrBuilder.java new file mode 100644 index 000000000000..eb671bb335c3 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteTenantRequestOrBuilder.java @@ -0,0 +1,37 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/tenant_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface DeleteTenantRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.DeleteTenantRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The resource name of the tenant to be deleted.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Required.
+   * The resource name of the tenant to be deleted.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeviceInfo.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeviceInfo.java new file mode 100644 index 000000000000..98de700c318a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeviceInfo.java @@ -0,0 +1,998 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Device information collected from the job seeker, candidate, or
+ * other entity conducting the job search. Providing this information improves
+ * the quality of the search results across devices.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.DeviceInfo} + */ +public final class DeviceInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.DeviceInfo) + DeviceInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeviceInfo.newBuilder() to construct. + private DeviceInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeviceInfo() { + deviceType_ = 0; + id_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeviceInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + deviceType_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + id_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_DeviceInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_DeviceInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.DeviceInfo.class, + com.google.cloud.talent.v4beta1.DeviceInfo.Builder.class); + } + + /** + * + * + *
+   * An enumeration describing an API access portal and exposure mechanism.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.DeviceInfo.DeviceType} + */ + public enum DeviceType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The device type isn't specified.
+     * 
+ * + * DEVICE_TYPE_UNSPECIFIED = 0; + */ + DEVICE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * A desktop web browser, such as, Chrome, Firefox, Safari, or Internet
+     * Explorer)
+     * 
+ * + * WEB = 1; + */ + WEB(1), + /** + * + * + *
+     * A mobile device web browser, such as a phone or tablet with a Chrome
+     * browser.
+     * 
+ * + * MOBILE_WEB = 2; + */ + MOBILE_WEB(2), + /** + * + * + *
+     * An Android device native application.
+     * 
+ * + * ANDROID = 3; + */ + ANDROID(3), + /** + * + * + *
+     * An iOS device native application.
+     * 
+ * + * IOS = 4; + */ + IOS(4), + /** + * + * + *
+     * A bot, as opposed to a device operated by human beings, such as a web
+     * crawler.
+     * 
+ * + * BOT = 5; + */ + BOT(5), + /** + * + * + *
+     * Other devices types.
+     * 
+ * + * OTHER = 6; + */ + OTHER(6), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * The device type isn't specified.
+     * 
+ * + * DEVICE_TYPE_UNSPECIFIED = 0; + */ + public static final int DEVICE_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * A desktop web browser, such as, Chrome, Firefox, Safari, or Internet
+     * Explorer)
+     * 
+ * + * WEB = 1; + */ + public static final int WEB_VALUE = 1; + /** + * + * + *
+     * A mobile device web browser, such as a phone or tablet with a Chrome
+     * browser.
+     * 
+ * + * MOBILE_WEB = 2; + */ + public static final int MOBILE_WEB_VALUE = 2; + /** + * + * + *
+     * An Android device native application.
+     * 
+ * + * ANDROID = 3; + */ + public static final int ANDROID_VALUE = 3; + /** + * + * + *
+     * An iOS device native application.
+     * 
+ * + * IOS = 4; + */ + public static final int IOS_VALUE = 4; + /** + * + * + *
+     * A bot, as opposed to a device operated by human beings, such as a web
+     * crawler.
+     * 
+ * + * BOT = 5; + */ + public static final int BOT_VALUE = 5; + /** + * + * + *
+     * Other devices types.
+     * 
+ * + * OTHER = 6; + */ + public static final int OTHER_VALUE = 6; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static DeviceType valueOf(int value) { + return forNumber(value); + } + + public static DeviceType forNumber(int value) { + switch (value) { + case 0: + return DEVICE_TYPE_UNSPECIFIED; + case 1: + return WEB; + case 2: + return MOBILE_WEB; + case 3: + return ANDROID; + case 4: + return IOS; + case 5: + return BOT; + case 6: + return OTHER; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DeviceType findValueByNumber(int number) { + return DeviceType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.DeviceInfo.getDescriptor().getEnumTypes().get(0); + } + + private static final DeviceType[] VALUES = values(); + + public static DeviceType 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()]; + } + + private final int value; + + private DeviceType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.DeviceInfo.DeviceType) + } + + public static final int DEVICE_TYPE_FIELD_NUMBER = 1; + private int deviceType_; + /** + * + * + *
+   * Optional.
+   * Type of the device.
+   * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo.DeviceType device_type = 1; + */ + public int getDeviceTypeValue() { + return deviceType_; + } + /** + * + * + *
+   * Optional.
+   * Type of the device.
+   * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo.DeviceType device_type = 1; + */ + public com.google.cloud.talent.v4beta1.DeviceInfo.DeviceType getDeviceType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.DeviceInfo.DeviceType result = + com.google.cloud.talent.v4beta1.DeviceInfo.DeviceType.valueOf(deviceType_); + return result == null + ? com.google.cloud.talent.v4beta1.DeviceInfo.DeviceType.UNRECOGNIZED + : result; + } + + public static final int ID_FIELD_NUMBER = 2; + private volatile java.lang.Object id_; + /** + * + * + *
+   * Optional.
+   * A device-specific ID. The ID must be a unique identifier that
+   * distinguishes the device from other devices.
+   * 
+ * + * string id = 2; + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + 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(); + id_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * A device-specific ID. The ID must be a unique identifier that
+   * distinguishes the device from other devices.
+   * 
+ * + * string id = 2; + */ + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = 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 (deviceType_ + != com.google.cloud.talent.v4beta1.DeviceInfo.DeviceType.DEVICE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, deviceType_); + } + if (!getIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (deviceType_ + != com.google.cloud.talent.v4beta1.DeviceInfo.DeviceType.DEVICE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, deviceType_); + } + if (!getIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_); + } + size += unknownFields.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.cloud.talent.v4beta1.DeviceInfo)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.DeviceInfo other = + (com.google.cloud.talent.v4beta1.DeviceInfo) obj; + + boolean result = true; + result = result && deviceType_ == other.deviceType_; + result = result && getId().equals(other.getId()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DEVICE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + deviceType_; + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.DeviceInfo parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.DeviceInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeviceInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.DeviceInfo 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.cloud.talent.v4beta1.DeviceInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.DeviceInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.DeviceInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.DeviceInfo 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.cloud.talent.v4beta1.DeviceInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.DeviceInfo 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.cloud.talent.v4beta1.DeviceInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.DeviceInfo 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.cloud.talent.v4beta1.DeviceInfo 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; + } + /** + * + * + *
+   * Device information collected from the job seeker, candidate, or
+   * other entity conducting the job search. Providing this information improves
+   * the quality of the search results across devices.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.DeviceInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.DeviceInfo) + com.google.cloud.talent.v4beta1.DeviceInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_DeviceInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_DeviceInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.DeviceInfo.class, + com.google.cloud.talent.v4beta1.DeviceInfo.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.DeviceInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + deviceType_ = 0; + + id_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_DeviceInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeviceInfo getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.DeviceInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeviceInfo build() { + com.google.cloud.talent.v4beta1.DeviceInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.DeviceInfo buildPartial() { + com.google.cloud.talent.v4beta1.DeviceInfo result = + new com.google.cloud.talent.v4beta1.DeviceInfo(this); + result.deviceType_ = deviceType_; + result.id_ = id_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.DeviceInfo) { + return mergeFrom((com.google.cloud.talent.v4beta1.DeviceInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.DeviceInfo other) { + if (other == com.google.cloud.talent.v4beta1.DeviceInfo.getDefaultInstance()) return this; + if (other.deviceType_ != 0) { + setDeviceTypeValue(other.getDeviceTypeValue()); + } + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.DeviceInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.DeviceInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int deviceType_ = 0; + /** + * + * + *
+     * Optional.
+     * Type of the device.
+     * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo.DeviceType device_type = 1; + */ + public int getDeviceTypeValue() { + return deviceType_; + } + /** + * + * + *
+     * Optional.
+     * Type of the device.
+     * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo.DeviceType device_type = 1; + */ + public Builder setDeviceTypeValue(int value) { + deviceType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Type of the device.
+     * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo.DeviceType device_type = 1; + */ + public com.google.cloud.talent.v4beta1.DeviceInfo.DeviceType getDeviceType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.DeviceInfo.DeviceType result = + com.google.cloud.talent.v4beta1.DeviceInfo.DeviceType.valueOf(deviceType_); + return result == null + ? com.google.cloud.talent.v4beta1.DeviceInfo.DeviceType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional.
+     * Type of the device.
+     * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo.DeviceType device_type = 1; + */ + public Builder setDeviceType(com.google.cloud.talent.v4beta1.DeviceInfo.DeviceType value) { + if (value == null) { + throw new NullPointerException(); + } + + deviceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Type of the device.
+     * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo.DeviceType device_type = 1; + */ + public Builder clearDeviceType() { + + deviceType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object id_ = ""; + /** + * + * + *
+     * Optional.
+     * A device-specific ID. The ID must be a unique identifier that
+     * distinguishes the device from other devices.
+     * 
+ * + * string id = 2; + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * A device-specific ID. The ID must be a unique identifier that
+     * distinguishes the device from other devices.
+     * 
+ * + * string id = 2; + */ + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * A device-specific ID. The ID must be a unique identifier that
+     * distinguishes the device from other devices.
+     * 
+ * + * string id = 2; + */ + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + id_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A device-specific ID. The ID must be a unique identifier that
+     * distinguishes the device from other devices.
+     * 
+ * + * string id = 2; + */ + public Builder clearId() { + + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A device-specific ID. The ID must be a unique identifier that
+     * distinguishes the device from other devices.
+     * 
+ * + * string id = 2; + */ + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + id_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.DeviceInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.DeviceInfo) + private static final com.google.cloud.talent.v4beta1.DeviceInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.DeviceInfo(); + } + + public static com.google.cloud.talent.v4beta1.DeviceInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeviceInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeviceInfo(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.DeviceInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeviceInfoOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeviceInfoOrBuilder.java new file mode 100644 index 000000000000..7596f3c6061d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeviceInfoOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +public interface DeviceInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.DeviceInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * Type of the device.
+   * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo.DeviceType device_type = 1; + */ + int getDeviceTypeValue(); + /** + * + * + *
+   * Optional.
+   * Type of the device.
+   * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo.DeviceType device_type = 1; + */ + com.google.cloud.talent.v4beta1.DeviceInfo.DeviceType getDeviceType(); + + /** + * + * + *
+   * Optional.
+   * A device-specific ID. The ID must be a unique identifier that
+   * distinguishes the device from other devices.
+   * 
+ * + * string id = 2; + */ + java.lang.String getId(); + /** + * + * + *
+   * Optional.
+   * A device-specific ID. The ID must be a unique identifier that
+   * distinguishes the device from other devices.
+   * 
+ * + * string id = 2; + */ + com.google.protobuf.ByteString getIdBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationFilter.java new file mode 100644 index 000000000000..63a5deb31220 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationFilter.java @@ -0,0 +1,1029 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Education filter of the search.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.EducationFilter} + */ +public final class EducationFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.EducationFilter) + EducationFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use EducationFilter.newBuilder() to construct. + private EducationFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EducationFilter() { + school_ = ""; + fieldOfStudy_ = ""; + degreeType_ = 0; + negated_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private EducationFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + school_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + fieldOfStudy_ = s; + break; + } + case 24: + { + int rawValue = input.readEnum(); + + degreeType_ = rawValue; + break; + } + case 48: + { + negated_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_EducationFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_EducationFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.EducationFilter.class, + com.google.cloud.talent.v4beta1.EducationFilter.Builder.class); + } + + public static final int SCHOOL_FIELD_NUMBER = 1; + private volatile java.lang.Object school_; + /** + * + * + *
+   * Optional.
+   * The school name. For example "MIT", "University of California, Berkeley".
+   * 
+ * + * string school = 1; + */ + public java.lang.String getSchool() { + java.lang.Object ref = school_; + 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(); + school_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The school name. For example "MIT", "University of California, Berkeley".
+   * 
+ * + * string school = 1; + */ + public com.google.protobuf.ByteString getSchoolBytes() { + java.lang.Object ref = school_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + school_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FIELD_OF_STUDY_FIELD_NUMBER = 2; + private volatile java.lang.Object fieldOfStudy_; + /** + * + * + *
+   * Optional.
+   * The field of study. This is to search against value provided in
+   * [Degree.fields_of_study][google.cloud.talent.v4beta1.Degree.fields_of_study].
+   * For example "Computer Science", "Mathematics".
+   * 
+ * + * string field_of_study = 2; + */ + public java.lang.String getFieldOfStudy() { + java.lang.Object ref = fieldOfStudy_; + 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(); + fieldOfStudy_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The field of study. This is to search against value provided in
+   * [Degree.fields_of_study][google.cloud.talent.v4beta1.Degree.fields_of_study].
+   * For example "Computer Science", "Mathematics".
+   * 
+ * + * string field_of_study = 2; + */ + public com.google.protobuf.ByteString getFieldOfStudyBytes() { + java.lang.Object ref = fieldOfStudy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldOfStudy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEGREE_TYPE_FIELD_NUMBER = 3; + private int degreeType_; + /** + * + * + *
+   * Optional.
+   * Education degree in ISCED code. Each value in degree covers a specific
+   * level of education, without any expansion to upper nor lower levels of
+   * education degree.
+   * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 3; + */ + public int getDegreeTypeValue() { + return degreeType_; + } + /** + * + * + *
+   * Optional.
+   * Education degree in ISCED code. Each value in degree covers a specific
+   * level of education, without any expansion to upper nor lower levels of
+   * education degree.
+   * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 3; + */ + public com.google.cloud.talent.v4beta1.DegreeType getDegreeType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.DegreeType result = + com.google.cloud.talent.v4beta1.DegreeType.valueOf(degreeType_); + return result == null ? com.google.cloud.talent.v4beta1.DegreeType.UNRECOGNIZED : result; + } + + public static final int NEGATED_FIELD_NUMBER = 6; + private boolean negated_; + /** + * + * + *
+   * Optional.
+   * Whether to apply negation to the filter so profiles matching the filter
+   * is excluded.
+   * 
+ * + * bool negated = 6; + */ + public boolean getNegated() { + return negated_; + } + + 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 (!getSchoolBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, school_); + } + if (!getFieldOfStudyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fieldOfStudy_); + } + if (degreeType_ + != com.google.cloud.talent.v4beta1.DegreeType.DEGREE_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, degreeType_); + } + if (negated_ != false) { + output.writeBool(6, negated_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getSchoolBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, school_); + } + if (!getFieldOfStudyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fieldOfStudy_); + } + if (degreeType_ + != com.google.cloud.talent.v4beta1.DegreeType.DEGREE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, degreeType_); + } + if (negated_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, negated_); + } + size += unknownFields.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.cloud.talent.v4beta1.EducationFilter)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.EducationFilter other = + (com.google.cloud.talent.v4beta1.EducationFilter) obj; + + boolean result = true; + result = result && getSchool().equals(other.getSchool()); + result = result && getFieldOfStudy().equals(other.getFieldOfStudy()); + result = result && degreeType_ == other.degreeType_; + result = result && (getNegated() == other.getNegated()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SCHOOL_FIELD_NUMBER; + hash = (53 * hash) + getSchool().hashCode(); + hash = (37 * hash) + FIELD_OF_STUDY_FIELD_NUMBER; + hash = (53 * hash) + getFieldOfStudy().hashCode(); + hash = (37 * hash) + DEGREE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + degreeType_; + hash = (37 * hash) + NEGATED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNegated()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.EducationFilter parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.EducationFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.EducationFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.EducationFilter 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.cloud.talent.v4beta1.EducationFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.EducationFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.EducationFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.EducationFilter 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.cloud.talent.v4beta1.EducationFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.EducationFilter 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.cloud.talent.v4beta1.EducationFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.EducationFilter 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.cloud.talent.v4beta1.EducationFilter 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; + } + /** + * + * + *
+   * Input only.
+   * Education filter of the search.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.EducationFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.EducationFilter) + com.google.cloud.talent.v4beta1.EducationFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_EducationFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_EducationFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.EducationFilter.class, + com.google.cloud.talent.v4beta1.EducationFilter.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.EducationFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + school_ = ""; + + fieldOfStudy_ = ""; + + degreeType_ = 0; + + negated_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_EducationFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.EducationFilter getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.EducationFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.EducationFilter build() { + com.google.cloud.talent.v4beta1.EducationFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.EducationFilter buildPartial() { + com.google.cloud.talent.v4beta1.EducationFilter result = + new com.google.cloud.talent.v4beta1.EducationFilter(this); + result.school_ = school_; + result.fieldOfStudy_ = fieldOfStudy_; + result.degreeType_ = degreeType_; + result.negated_ = negated_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.EducationFilter) { + return mergeFrom((com.google.cloud.talent.v4beta1.EducationFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.EducationFilter other) { + if (other == com.google.cloud.talent.v4beta1.EducationFilter.getDefaultInstance()) + return this; + if (!other.getSchool().isEmpty()) { + school_ = other.school_; + onChanged(); + } + if (!other.getFieldOfStudy().isEmpty()) { + fieldOfStudy_ = other.fieldOfStudy_; + onChanged(); + } + if (other.degreeType_ != 0) { + setDegreeTypeValue(other.getDegreeTypeValue()); + } + if (other.getNegated() != false) { + setNegated(other.getNegated()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.EducationFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.EducationFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object school_ = ""; + /** + * + * + *
+     * Optional.
+     * The school name. For example "MIT", "University of California, Berkeley".
+     * 
+ * + * string school = 1; + */ + public java.lang.String getSchool() { + java.lang.Object ref = school_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + school_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The school name. For example "MIT", "University of California, Berkeley".
+     * 
+ * + * string school = 1; + */ + public com.google.protobuf.ByteString getSchoolBytes() { + java.lang.Object ref = school_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + school_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The school name. For example "MIT", "University of California, Berkeley".
+     * 
+ * + * string school = 1; + */ + public Builder setSchool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + school_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The school name. For example "MIT", "University of California, Berkeley".
+     * 
+ * + * string school = 1; + */ + public Builder clearSchool() { + + school_ = getDefaultInstance().getSchool(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The school name. For example "MIT", "University of California, Berkeley".
+     * 
+ * + * string school = 1; + */ + public Builder setSchoolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + school_ = value; + onChanged(); + return this; + } + + private java.lang.Object fieldOfStudy_ = ""; + /** + * + * + *
+     * Optional.
+     * The field of study. This is to search against value provided in
+     * [Degree.fields_of_study][google.cloud.talent.v4beta1.Degree.fields_of_study].
+     * For example "Computer Science", "Mathematics".
+     * 
+ * + * string field_of_study = 2; + */ + public java.lang.String getFieldOfStudy() { + java.lang.Object ref = fieldOfStudy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldOfStudy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The field of study. This is to search against value provided in
+     * [Degree.fields_of_study][google.cloud.talent.v4beta1.Degree.fields_of_study].
+     * For example "Computer Science", "Mathematics".
+     * 
+ * + * string field_of_study = 2; + */ + public com.google.protobuf.ByteString getFieldOfStudyBytes() { + java.lang.Object ref = fieldOfStudy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldOfStudy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The field of study. This is to search against value provided in
+     * [Degree.fields_of_study][google.cloud.talent.v4beta1.Degree.fields_of_study].
+     * For example "Computer Science", "Mathematics".
+     * 
+ * + * string field_of_study = 2; + */ + public Builder setFieldOfStudy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + fieldOfStudy_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The field of study. This is to search against value provided in
+     * [Degree.fields_of_study][google.cloud.talent.v4beta1.Degree.fields_of_study].
+     * For example "Computer Science", "Mathematics".
+     * 
+ * + * string field_of_study = 2; + */ + public Builder clearFieldOfStudy() { + + fieldOfStudy_ = getDefaultInstance().getFieldOfStudy(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The field of study. This is to search against value provided in
+     * [Degree.fields_of_study][google.cloud.talent.v4beta1.Degree.fields_of_study].
+     * For example "Computer Science", "Mathematics".
+     * 
+ * + * string field_of_study = 2; + */ + public Builder setFieldOfStudyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + fieldOfStudy_ = value; + onChanged(); + return this; + } + + private int degreeType_ = 0; + /** + * + * + *
+     * Optional.
+     * Education degree in ISCED code. Each value in degree covers a specific
+     * level of education, without any expansion to upper nor lower levels of
+     * education degree.
+     * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 3; + */ + public int getDegreeTypeValue() { + return degreeType_; + } + /** + * + * + *
+     * Optional.
+     * Education degree in ISCED code. Each value in degree covers a specific
+     * level of education, without any expansion to upper nor lower levels of
+     * education degree.
+     * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 3; + */ + public Builder setDegreeTypeValue(int value) { + degreeType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Education degree in ISCED code. Each value in degree covers a specific
+     * level of education, without any expansion to upper nor lower levels of
+     * education degree.
+     * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 3; + */ + public com.google.cloud.talent.v4beta1.DegreeType getDegreeType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.DegreeType result = + com.google.cloud.talent.v4beta1.DegreeType.valueOf(degreeType_); + return result == null ? com.google.cloud.talent.v4beta1.DegreeType.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Optional.
+     * Education degree in ISCED code. Each value in degree covers a specific
+     * level of education, without any expansion to upper nor lower levels of
+     * education degree.
+     * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 3; + */ + public Builder setDegreeType(com.google.cloud.talent.v4beta1.DegreeType value) { + if (value == null) { + throw new NullPointerException(); + } + + degreeType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Education degree in ISCED code. Each value in degree covers a specific
+     * level of education, without any expansion to upper nor lower levels of
+     * education degree.
+     * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 3; + */ + public Builder clearDegreeType() { + + degreeType_ = 0; + onChanged(); + return this; + } + + private boolean negated_; + /** + * + * + *
+     * Optional.
+     * Whether to apply negation to the filter so profiles matching the filter
+     * is excluded.
+     * 
+ * + * bool negated = 6; + */ + public boolean getNegated() { + return negated_; + } + /** + * + * + *
+     * Optional.
+     * Whether to apply negation to the filter so profiles matching the filter
+     * is excluded.
+     * 
+ * + * bool negated = 6; + */ + public Builder setNegated(boolean value) { + + negated_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Whether to apply negation to the filter so profiles matching the filter
+     * is excluded.
+     * 
+ * + * bool negated = 6; + */ + public Builder clearNegated() { + + negated_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.EducationFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.EducationFilter) + private static final com.google.cloud.talent.v4beta1.EducationFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.EducationFilter(); + } + + public static com.google.cloud.talent.v4beta1.EducationFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EducationFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EducationFilter(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.EducationFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationFilterOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationFilterOrBuilder.java new file mode 100644 index 000000000000..74bc7f5aa97b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationFilterOrBuilder.java @@ -0,0 +1,100 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +public interface EducationFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.EducationFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * The school name. For example "MIT", "University of California, Berkeley".
+   * 
+ * + * string school = 1; + */ + java.lang.String getSchool(); + /** + * + * + *
+   * Optional.
+   * The school name. For example "MIT", "University of California, Berkeley".
+   * 
+ * + * string school = 1; + */ + com.google.protobuf.ByteString getSchoolBytes(); + + /** + * + * + *
+   * Optional.
+   * The field of study. This is to search against value provided in
+   * [Degree.fields_of_study][google.cloud.talent.v4beta1.Degree.fields_of_study].
+   * For example "Computer Science", "Mathematics".
+   * 
+ * + * string field_of_study = 2; + */ + java.lang.String getFieldOfStudy(); + /** + * + * + *
+   * Optional.
+   * The field of study. This is to search against value provided in
+   * [Degree.fields_of_study][google.cloud.talent.v4beta1.Degree.fields_of_study].
+   * For example "Computer Science", "Mathematics".
+   * 
+ * + * string field_of_study = 2; + */ + com.google.protobuf.ByteString getFieldOfStudyBytes(); + + /** + * + * + *
+   * Optional.
+   * Education degree in ISCED code. Each value in degree covers a specific
+   * level of education, without any expansion to upper nor lower levels of
+   * education degree.
+   * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 3; + */ + int getDegreeTypeValue(); + /** + * + * + *
+   * Optional.
+   * Education degree in ISCED code. Each value in degree covers a specific
+   * level of education, without any expansion to upper nor lower levels of
+   * education degree.
+   * 
+ * + * .google.cloud.talent.v4beta1.DegreeType degree_type = 3; + */ + com.google.cloud.talent.v4beta1.DegreeType getDegreeType(); + + /** + * + * + *
+   * Optional.
+   * Whether to apply negation to the filter so profiles matching the filter
+   * is excluded.
+   * 
+ * + * bool negated = 6; + */ + boolean getNegated(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationRecord.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationRecord.java new file mode 100644 index 000000000000..a839d523931a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationRecord.java @@ -0,0 +1,3095 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Resource that represents an education record of a candidate.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.EducationRecord} + */ +public final class EducationRecord extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.EducationRecord) + EducationRecordOrBuilder { + private static final long serialVersionUID = 0L; + // Use EducationRecord.newBuilder() to construct. + private EducationRecord(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EducationRecord() { + schoolName_ = ""; + description_ = ""; + schoolNameSnippet_ = ""; + degreeSnippet_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private EducationRecord( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.type.Date.Builder subBuilder = null; + if (startDate_ != null) { + subBuilder = startDate_.toBuilder(); + } + startDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startDate_); + startDate_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.type.Date.Builder subBuilder = null; + if (endDate_ != null) { + subBuilder = endDate_.toBuilder(); + } + endDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endDate_); + endDate_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + com.google.type.Date.Builder subBuilder = null; + if (expectedGraduationDate_ != null) { + subBuilder = expectedGraduationDate_.toBuilder(); + } + expectedGraduationDate_ = + input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(expectedGraduationDate_); + expectedGraduationDate_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + schoolName_ = s; + break; + } + case 42: + { + com.google.cloud.talent.v4beta1.Address.Builder subBuilder = null; + if (address_ != null) { + subBuilder = address_.toBuilder(); + } + address_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Address.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(address_); + address_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + degreeCase_ = 6; + degree_ = s; + break; + } + case 58: + { + com.google.cloud.talent.v4beta1.Degree.Builder subBuilder = null; + if (degreeCase_ == 7) { + subBuilder = ((com.google.cloud.talent.v4beta1.Degree) degree_).toBuilder(); + } + degree_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Degree.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.talent.v4beta1.Degree) degree_); + degree_ = subBuilder.buildPartial(); + } + degreeCase_ = 7; + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 74: + { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (isCurrent_ != null) { + subBuilder = isCurrent_.toBuilder(); + } + isCurrent_ = + input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(isCurrent_); + isCurrent_ = subBuilder.buildPartial(); + } + + break; + } + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + + schoolNameSnippet_ = s; + break; + } + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + + degreeSnippet_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_EducationRecord_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_EducationRecord_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.EducationRecord.class, + com.google.cloud.talent.v4beta1.EducationRecord.Builder.class); + } + + private int degreeCase_ = 0; + private java.lang.Object degree_; + + public enum DegreeCase implements com.google.protobuf.Internal.EnumLite { + DEGREE_DESCRIPTION(6), + STRUCTURED_DEGREE(7), + DEGREE_NOT_SET(0); + private final int value; + + private DegreeCase(int value) { + this.value = value; + } + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static DegreeCase valueOf(int value) { + return forNumber(value); + } + + public static DegreeCase forNumber(int value) { + switch (value) { + case 6: + return DEGREE_DESCRIPTION; + case 7: + return STRUCTURED_DEGREE; + case 0: + return DEGREE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DegreeCase getDegreeCase() { + return DegreeCase.forNumber(degreeCase_); + } + + public static final int START_DATE_FIELD_NUMBER = 1; + private com.google.type.Date startDate_; + /** + * + * + *
+   * Optional.
+   * The start date of the education.
+   * 
+ * + * .google.type.Date start_date = 1; + */ + public boolean hasStartDate() { + return startDate_ != null; + } + /** + * + * + *
+   * Optional.
+   * The start date of the education.
+   * 
+ * + * .google.type.Date start_date = 1; + */ + public com.google.type.Date getStartDate() { + return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; + } + /** + * + * + *
+   * Optional.
+   * The start date of the education.
+   * 
+ * + * .google.type.Date start_date = 1; + */ + public com.google.type.DateOrBuilder getStartDateOrBuilder() { + return getStartDate(); + } + + public static final int END_DATE_FIELD_NUMBER = 2; + private com.google.type.Date endDate_; + /** + * + * + *
+   * Optional.
+   * The end date of the education.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + public boolean hasEndDate() { + return endDate_ != null; + } + /** + * + * + *
+   * Optional.
+   * The end date of the education.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + public com.google.type.Date getEndDate() { + return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; + } + /** + * + * + *
+   * Optional.
+   * The end date of the education.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + public com.google.type.DateOrBuilder getEndDateOrBuilder() { + return getEndDate(); + } + + public static final int EXPECTED_GRADUATION_DATE_FIELD_NUMBER = 3; + private com.google.type.Date expectedGraduationDate_; + /** + * + * + *
+   * Optional.
+   * The expected graduation date if currently pursuing a degree.
+   * 
+ * + * .google.type.Date expected_graduation_date = 3; + */ + public boolean hasExpectedGraduationDate() { + return expectedGraduationDate_ != null; + } + /** + * + * + *
+   * Optional.
+   * The expected graduation date if currently pursuing a degree.
+   * 
+ * + * .google.type.Date expected_graduation_date = 3; + */ + public com.google.type.Date getExpectedGraduationDate() { + return expectedGraduationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : expectedGraduationDate_; + } + /** + * + * + *
+   * Optional.
+   * The expected graduation date if currently pursuing a degree.
+   * 
+ * + * .google.type.Date expected_graduation_date = 3; + */ + public com.google.type.DateOrBuilder getExpectedGraduationDateOrBuilder() { + return getExpectedGraduationDate(); + } + + public static final int SCHOOL_NAME_FIELD_NUMBER = 4; + private volatile java.lang.Object schoolName_; + /** + * + * + *
+   * Optional.
+   * The name of the school or institution.
+   * For example, "Stanford University", "UC Berkeley", etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string school_name = 4; + */ + public java.lang.String getSchoolName() { + java.lang.Object ref = schoolName_; + 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(); + schoolName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The name of the school or institution.
+   * For example, "Stanford University", "UC Berkeley", etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string school_name = 4; + */ + public com.google.protobuf.ByteString getSchoolNameBytes() { + java.lang.Object ref = schoolName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schoolName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADDRESS_FIELD_NUMBER = 5; + private com.google.cloud.talent.v4beta1.Address address_; + /** + * + * + *
+   * Optional.
+   * The physical address of the education institution.
+   * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public boolean hasAddress() { + return address_ != null; + } + /** + * + * + *
+   * Optional.
+   * The physical address of the education institution.
+   * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public com.google.cloud.talent.v4beta1.Address getAddress() { + return address_ == null + ? com.google.cloud.talent.v4beta1.Address.getDefaultInstance() + : address_; + } + /** + * + * + *
+   * Optional.
+   * The physical address of the education institution.
+   * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public com.google.cloud.talent.v4beta1.AddressOrBuilder getAddressOrBuilder() { + return getAddress(); + } + + public static final int DEGREE_DESCRIPTION_FIELD_NUMBER = 6; + /** + * + * + *
+   * Optional.
+   * The full description of the degree.
+   * For example, "Master of Science in Computer Science", "B.S in Math".
+   * Number of characters allowed is 100.
+   * 
+ * + * string degree_description = 6; + */ + public java.lang.String getDegreeDescription() { + java.lang.Object ref = ""; + if (degreeCase_ == 6) { + ref = degree_; + } + 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(); + if (degreeCase_ == 6) { + degree_ = s; + } + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The full description of the degree.
+   * For example, "Master of Science in Computer Science", "B.S in Math".
+   * Number of characters allowed is 100.
+   * 
+ * + * string degree_description = 6; + */ + public com.google.protobuf.ByteString getDegreeDescriptionBytes() { + java.lang.Object ref = ""; + if (degreeCase_ == 6) { + ref = degree_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (degreeCase_ == 6) { + degree_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STRUCTURED_DEGREE_FIELD_NUMBER = 7; + /** + * + * + *
+   * Optional.
+   * The structured notation of the degree.
+   * 
+ * + * .google.cloud.talent.v4beta1.Degree structured_degree = 7; + */ + public boolean hasStructuredDegree() { + return degreeCase_ == 7; + } + /** + * + * + *
+   * Optional.
+   * The structured notation of the degree.
+   * 
+ * + * .google.cloud.talent.v4beta1.Degree structured_degree = 7; + */ + public com.google.cloud.talent.v4beta1.Degree getStructuredDegree() { + if (degreeCase_ == 7) { + return (com.google.cloud.talent.v4beta1.Degree) degree_; + } + return com.google.cloud.talent.v4beta1.Degree.getDefaultInstance(); + } + /** + * + * + *
+   * Optional.
+   * The structured notation of the degree.
+   * 
+ * + * .google.cloud.talent.v4beta1.Degree structured_degree = 7; + */ + public com.google.cloud.talent.v4beta1.DegreeOrBuilder getStructuredDegreeOrBuilder() { + if (degreeCase_ == 7) { + return (com.google.cloud.talent.v4beta1.Degree) degree_; + } + return com.google.cloud.talent.v4beta1.Degree.getDefaultInstance(); + } + + public static final int DESCRIPTION_FIELD_NUMBER = 8; + private volatile java.lang.Object description_; + /** + * + * + *
+   * Optional.
+   * The description of the education.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string description = 8; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The description of the education.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string description = 8; + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IS_CURRENT_FIELD_NUMBER = 9; + private com.google.protobuf.BoolValue isCurrent_; + /** + * + * + *
+   * Optional.
+   * If this education is current.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 9; + */ + public boolean hasIsCurrent() { + return isCurrent_ != null; + } + /** + * + * + *
+   * Optional.
+   * If this education is current.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 9; + */ + public com.google.protobuf.BoolValue getIsCurrent() { + return isCurrent_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isCurrent_; + } + /** + * + * + *
+   * Optional.
+   * If this education is current.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 9; + */ + public com.google.protobuf.BoolValueOrBuilder getIsCurrentOrBuilder() { + return getIsCurrent(); + } + + public static final int SCHOOL_NAME_SNIPPET_FIELD_NUMBER = 10; + private volatile java.lang.Object schoolNameSnippet_; + /** + * + * + *
+   * Output only. The school name snippet shows how the
+   * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name] is
+   * related to a search query in search result. It's empty if the
+   * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name]
+   * isn't related to the search query.
+   * 
+ * + * string school_name_snippet = 10; + */ + public java.lang.String getSchoolNameSnippet() { + java.lang.Object ref = schoolNameSnippet_; + 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(); + schoolNameSnippet_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The school name snippet shows how the
+   * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name] is
+   * related to a search query in search result. It's empty if the
+   * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name]
+   * isn't related to the search query.
+   * 
+ * + * string school_name_snippet = 10; + */ + public com.google.protobuf.ByteString getSchoolNameSnippetBytes() { + java.lang.Object ref = schoolNameSnippet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schoolNameSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEGREE_SNIPPET_FIELD_NUMBER = 11; + private volatile java.lang.Object degreeSnippet_; + /** + * + * + *
+   * Output only. The job description snippet shows how the
+   * [degree][google.cloud.talent.v4beta1.degree] is related to a search query
+   * in search result. It's empty if the
+   * [degree][google.cloud.talent.v4beta1.degree] isn't related to the search
+   * query.
+   * 
+ * + * string degree_snippet = 11; + */ + public java.lang.String getDegreeSnippet() { + java.lang.Object ref = degreeSnippet_; + 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(); + degreeSnippet_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The job description snippet shows how the
+   * [degree][google.cloud.talent.v4beta1.degree] is related to a search query
+   * in search result. It's empty if the
+   * [degree][google.cloud.talent.v4beta1.degree] isn't related to the search
+   * query.
+   * 
+ * + * string degree_snippet = 11; + */ + public com.google.protobuf.ByteString getDegreeSnippetBytes() { + java.lang.Object ref = degreeSnippet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + degreeSnippet_ = 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 (startDate_ != null) { + output.writeMessage(1, getStartDate()); + } + if (endDate_ != null) { + output.writeMessage(2, getEndDate()); + } + if (expectedGraduationDate_ != null) { + output.writeMessage(3, getExpectedGraduationDate()); + } + if (!getSchoolNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, schoolName_); + } + if (address_ != null) { + output.writeMessage(5, getAddress()); + } + if (degreeCase_ == 6) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, degree_); + } + if (degreeCase_ == 7) { + output.writeMessage(7, (com.google.cloud.talent.v4beta1.Degree) degree_); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, description_); + } + if (isCurrent_ != null) { + output.writeMessage(9, getIsCurrent()); + } + if (!getSchoolNameSnippetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, schoolNameSnippet_); + } + if (!getDegreeSnippetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, degreeSnippet_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (startDate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartDate()); + } + if (endDate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndDate()); + } + if (expectedGraduationDate_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getExpectedGraduationDate()); + } + if (!getSchoolNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, schoolName_); + } + if (address_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAddress()); + } + if (degreeCase_ == 6) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, degree_); + } + if (degreeCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.cloud.talent.v4beta1.Degree) degree_); + } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, description_); + } + if (isCurrent_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getIsCurrent()); + } + if (!getSchoolNameSnippetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, schoolNameSnippet_); + } + if (!getDegreeSnippetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, degreeSnippet_); + } + size += unknownFields.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.cloud.talent.v4beta1.EducationRecord)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.EducationRecord other = + (com.google.cloud.talent.v4beta1.EducationRecord) obj; + + boolean result = true; + result = result && (hasStartDate() == other.hasStartDate()); + if (hasStartDate()) { + result = result && getStartDate().equals(other.getStartDate()); + } + result = result && (hasEndDate() == other.hasEndDate()); + if (hasEndDate()) { + result = result && getEndDate().equals(other.getEndDate()); + } + result = result && (hasExpectedGraduationDate() == other.hasExpectedGraduationDate()); + if (hasExpectedGraduationDate()) { + result = result && getExpectedGraduationDate().equals(other.getExpectedGraduationDate()); + } + result = result && getSchoolName().equals(other.getSchoolName()); + result = result && (hasAddress() == other.hasAddress()); + if (hasAddress()) { + result = result && getAddress().equals(other.getAddress()); + } + result = result && getDescription().equals(other.getDescription()); + result = result && (hasIsCurrent() == other.hasIsCurrent()); + if (hasIsCurrent()) { + result = result && getIsCurrent().equals(other.getIsCurrent()); + } + result = result && getSchoolNameSnippet().equals(other.getSchoolNameSnippet()); + result = result && getDegreeSnippet().equals(other.getDegreeSnippet()); + result = result && getDegreeCase().equals(other.getDegreeCase()); + if (!result) return false; + switch (degreeCase_) { + case 6: + result = result && getDegreeDescription().equals(other.getDegreeDescription()); + break; + case 7: + result = result && getStructuredDegree().equals(other.getStructuredDegree()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStartDate()) { + hash = (37 * hash) + START_DATE_FIELD_NUMBER; + hash = (53 * hash) + getStartDate().hashCode(); + } + if (hasEndDate()) { + hash = (37 * hash) + END_DATE_FIELD_NUMBER; + hash = (53 * hash) + getEndDate().hashCode(); + } + if (hasExpectedGraduationDate()) { + hash = (37 * hash) + EXPECTED_GRADUATION_DATE_FIELD_NUMBER; + hash = (53 * hash) + getExpectedGraduationDate().hashCode(); + } + hash = (37 * hash) + SCHOOL_NAME_FIELD_NUMBER; + hash = (53 * hash) + getSchoolName().hashCode(); + if (hasAddress()) { + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAddress().hashCode(); + } + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (hasIsCurrent()) { + hash = (37 * hash) + IS_CURRENT_FIELD_NUMBER; + hash = (53 * hash) + getIsCurrent().hashCode(); + } + hash = (37 * hash) + SCHOOL_NAME_SNIPPET_FIELD_NUMBER; + hash = (53 * hash) + getSchoolNameSnippet().hashCode(); + hash = (37 * hash) + DEGREE_SNIPPET_FIELD_NUMBER; + hash = (53 * hash) + getDegreeSnippet().hashCode(); + switch (degreeCase_) { + case 6: + hash = (37 * hash) + DEGREE_DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDegreeDescription().hashCode(); + break; + case 7: + hash = (37 * hash) + STRUCTURED_DEGREE_FIELD_NUMBER; + hash = (53 * hash) + getStructuredDegree().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.EducationRecord parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.EducationRecord parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.EducationRecord parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.EducationRecord 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.cloud.talent.v4beta1.EducationRecord parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.EducationRecord parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.EducationRecord parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.EducationRecord 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.cloud.talent.v4beta1.EducationRecord parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.EducationRecord 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.cloud.talent.v4beta1.EducationRecord parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.EducationRecord 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.cloud.talent.v4beta1.EducationRecord 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; + } + /** + * + * + *
+   * Resource that represents an education record of a candidate.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.EducationRecord} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.EducationRecord) + com.google.cloud.talent.v4beta1.EducationRecordOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_EducationRecord_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_EducationRecord_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.EducationRecord.class, + com.google.cloud.talent.v4beta1.EducationRecord.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.EducationRecord.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (startDateBuilder_ == null) { + startDate_ = null; + } else { + startDate_ = null; + startDateBuilder_ = null; + } + if (endDateBuilder_ == null) { + endDate_ = null; + } else { + endDate_ = null; + endDateBuilder_ = null; + } + if (expectedGraduationDateBuilder_ == null) { + expectedGraduationDate_ = null; + } else { + expectedGraduationDate_ = null; + expectedGraduationDateBuilder_ = null; + } + schoolName_ = ""; + + if (addressBuilder_ == null) { + address_ = null; + } else { + address_ = null; + addressBuilder_ = null; + } + description_ = ""; + + if (isCurrentBuilder_ == null) { + isCurrent_ = null; + } else { + isCurrent_ = null; + isCurrentBuilder_ = null; + } + schoolNameSnippet_ = ""; + + degreeSnippet_ = ""; + + degreeCase_ = 0; + degree_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_EducationRecord_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.EducationRecord getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.EducationRecord.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.EducationRecord build() { + com.google.cloud.talent.v4beta1.EducationRecord result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.EducationRecord buildPartial() { + com.google.cloud.talent.v4beta1.EducationRecord result = + new com.google.cloud.talent.v4beta1.EducationRecord(this); + if (startDateBuilder_ == null) { + result.startDate_ = startDate_; + } else { + result.startDate_ = startDateBuilder_.build(); + } + if (endDateBuilder_ == null) { + result.endDate_ = endDate_; + } else { + result.endDate_ = endDateBuilder_.build(); + } + if (expectedGraduationDateBuilder_ == null) { + result.expectedGraduationDate_ = expectedGraduationDate_; + } else { + result.expectedGraduationDate_ = expectedGraduationDateBuilder_.build(); + } + result.schoolName_ = schoolName_; + if (addressBuilder_ == null) { + result.address_ = address_; + } else { + result.address_ = addressBuilder_.build(); + } + if (degreeCase_ == 6) { + result.degree_ = degree_; + } + if (degreeCase_ == 7) { + if (structuredDegreeBuilder_ == null) { + result.degree_ = degree_; + } else { + result.degree_ = structuredDegreeBuilder_.build(); + } + } + result.description_ = description_; + if (isCurrentBuilder_ == null) { + result.isCurrent_ = isCurrent_; + } else { + result.isCurrent_ = isCurrentBuilder_.build(); + } + result.schoolNameSnippet_ = schoolNameSnippet_; + result.degreeSnippet_ = degreeSnippet_; + result.degreeCase_ = degreeCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.EducationRecord) { + return mergeFrom((com.google.cloud.talent.v4beta1.EducationRecord) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.EducationRecord other) { + if (other == com.google.cloud.talent.v4beta1.EducationRecord.getDefaultInstance()) + return this; + if (other.hasStartDate()) { + mergeStartDate(other.getStartDate()); + } + if (other.hasEndDate()) { + mergeEndDate(other.getEndDate()); + } + if (other.hasExpectedGraduationDate()) { + mergeExpectedGraduationDate(other.getExpectedGraduationDate()); + } + if (!other.getSchoolName().isEmpty()) { + schoolName_ = other.schoolName_; + onChanged(); + } + if (other.hasAddress()) { + mergeAddress(other.getAddress()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (other.hasIsCurrent()) { + mergeIsCurrent(other.getIsCurrent()); + } + if (!other.getSchoolNameSnippet().isEmpty()) { + schoolNameSnippet_ = other.schoolNameSnippet_; + onChanged(); + } + if (!other.getDegreeSnippet().isEmpty()) { + degreeSnippet_ = other.degreeSnippet_; + onChanged(); + } + switch (other.getDegreeCase()) { + case DEGREE_DESCRIPTION: + { + degreeCase_ = 6; + degree_ = other.degree_; + onChanged(); + break; + } + case STRUCTURED_DEGREE: + { + mergeStructuredDegree(other.getStructuredDegree()); + break; + } + case DEGREE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.EducationRecord parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.EducationRecord) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int degreeCase_ = 0; + private java.lang.Object degree_; + + public DegreeCase getDegreeCase() { + return DegreeCase.forNumber(degreeCase_); + } + + public Builder clearDegree() { + degreeCase_ = 0; + degree_ = null; + onChanged(); + return this; + } + + private com.google.type.Date startDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + startDateBuilder_; + /** + * + * + *
+     * Optional.
+     * The start date of the education.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public boolean hasStartDate() { + return startDateBuilder_ != null || startDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * The start date of the education.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public com.google.type.Date getStartDate() { + if (startDateBuilder_ == null) { + return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; + } else { + return startDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The start date of the education.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public Builder setStartDate(com.google.type.Date value) { + if (startDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startDate_ = value; + onChanged(); + } else { + startDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The start date of the education.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public Builder setStartDate(com.google.type.Date.Builder builderForValue) { + if (startDateBuilder_ == null) { + startDate_ = builderForValue.build(); + onChanged(); + } else { + startDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The start date of the education.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public Builder mergeStartDate(com.google.type.Date value) { + if (startDateBuilder_ == null) { + if (startDate_ != null) { + startDate_ = com.google.type.Date.newBuilder(startDate_).mergeFrom(value).buildPartial(); + } else { + startDate_ = value; + } + onChanged(); + } else { + startDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The start date of the education.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public Builder clearStartDate() { + if (startDateBuilder_ == null) { + startDate_ = null; + onChanged(); + } else { + startDate_ = null; + startDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The start date of the education.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public com.google.type.Date.Builder getStartDateBuilder() { + + onChanged(); + return getStartDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The start date of the education.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public com.google.type.DateOrBuilder getStartDateOrBuilder() { + if (startDateBuilder_ != null) { + return startDateBuilder_.getMessageOrBuilder(); + } else { + return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; + } + } + /** + * + * + *
+     * Optional.
+     * The start date of the education.
+     * 
+ * + * .google.type.Date start_date = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getStartDateFieldBuilder() { + if (startDateBuilder_ == null) { + startDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getStartDate(), getParentForChildren(), isClean()); + startDate_ = null; + } + return startDateBuilder_; + } + + private com.google.type.Date endDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + endDateBuilder_; + /** + * + * + *
+     * Optional.
+     * The end date of the education.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public boolean hasEndDate() { + return endDateBuilder_ != null || endDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * The end date of the education.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public com.google.type.Date getEndDate() { + if (endDateBuilder_ == null) { + return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; + } else { + return endDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The end date of the education.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public Builder setEndDate(com.google.type.Date value) { + if (endDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endDate_ = value; + onChanged(); + } else { + endDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The end date of the education.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public Builder setEndDate(com.google.type.Date.Builder builderForValue) { + if (endDateBuilder_ == null) { + endDate_ = builderForValue.build(); + onChanged(); + } else { + endDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The end date of the education.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public Builder mergeEndDate(com.google.type.Date value) { + if (endDateBuilder_ == null) { + if (endDate_ != null) { + endDate_ = com.google.type.Date.newBuilder(endDate_).mergeFrom(value).buildPartial(); + } else { + endDate_ = value; + } + onChanged(); + } else { + endDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The end date of the education.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public Builder clearEndDate() { + if (endDateBuilder_ == null) { + endDate_ = null; + onChanged(); + } else { + endDate_ = null; + endDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The end date of the education.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public com.google.type.Date.Builder getEndDateBuilder() { + + onChanged(); + return getEndDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The end date of the education.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public com.google.type.DateOrBuilder getEndDateOrBuilder() { + if (endDateBuilder_ != null) { + return endDateBuilder_.getMessageOrBuilder(); + } else { + return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; + } + } + /** + * + * + *
+     * Optional.
+     * The end date of the education.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getEndDateFieldBuilder() { + if (endDateBuilder_ == null) { + endDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getEndDate(), getParentForChildren(), isClean()); + endDate_ = null; + } + return endDateBuilder_; + } + + private com.google.type.Date expectedGraduationDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + expectedGraduationDateBuilder_; + /** + * + * + *
+     * Optional.
+     * The expected graduation date if currently pursuing a degree.
+     * 
+ * + * .google.type.Date expected_graduation_date = 3; + */ + public boolean hasExpectedGraduationDate() { + return expectedGraduationDateBuilder_ != null || expectedGraduationDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * The expected graduation date if currently pursuing a degree.
+     * 
+ * + * .google.type.Date expected_graduation_date = 3; + */ + public com.google.type.Date getExpectedGraduationDate() { + if (expectedGraduationDateBuilder_ == null) { + return expectedGraduationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : expectedGraduationDate_; + } else { + return expectedGraduationDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The expected graduation date if currently pursuing a degree.
+     * 
+ * + * .google.type.Date expected_graduation_date = 3; + */ + public Builder setExpectedGraduationDate(com.google.type.Date value) { + if (expectedGraduationDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expectedGraduationDate_ = value; + onChanged(); + } else { + expectedGraduationDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The expected graduation date if currently pursuing a degree.
+     * 
+ * + * .google.type.Date expected_graduation_date = 3; + */ + public Builder setExpectedGraduationDate(com.google.type.Date.Builder builderForValue) { + if (expectedGraduationDateBuilder_ == null) { + expectedGraduationDate_ = builderForValue.build(); + onChanged(); + } else { + expectedGraduationDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The expected graduation date if currently pursuing a degree.
+     * 
+ * + * .google.type.Date expected_graduation_date = 3; + */ + public Builder mergeExpectedGraduationDate(com.google.type.Date value) { + if (expectedGraduationDateBuilder_ == null) { + if (expectedGraduationDate_ != null) { + expectedGraduationDate_ = + com.google.type.Date.newBuilder(expectedGraduationDate_) + .mergeFrom(value) + .buildPartial(); + } else { + expectedGraduationDate_ = value; + } + onChanged(); + } else { + expectedGraduationDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The expected graduation date if currently pursuing a degree.
+     * 
+ * + * .google.type.Date expected_graduation_date = 3; + */ + public Builder clearExpectedGraduationDate() { + if (expectedGraduationDateBuilder_ == null) { + expectedGraduationDate_ = null; + onChanged(); + } else { + expectedGraduationDate_ = null; + expectedGraduationDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The expected graduation date if currently pursuing a degree.
+     * 
+ * + * .google.type.Date expected_graduation_date = 3; + */ + public com.google.type.Date.Builder getExpectedGraduationDateBuilder() { + + onChanged(); + return getExpectedGraduationDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The expected graduation date if currently pursuing a degree.
+     * 
+ * + * .google.type.Date expected_graduation_date = 3; + */ + public com.google.type.DateOrBuilder getExpectedGraduationDateOrBuilder() { + if (expectedGraduationDateBuilder_ != null) { + return expectedGraduationDateBuilder_.getMessageOrBuilder(); + } else { + return expectedGraduationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : expectedGraduationDate_; + } + } + /** + * + * + *
+     * Optional.
+     * The expected graduation date if currently pursuing a degree.
+     * 
+ * + * .google.type.Date expected_graduation_date = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getExpectedGraduationDateFieldBuilder() { + if (expectedGraduationDateBuilder_ == null) { + expectedGraduationDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getExpectedGraduationDate(), getParentForChildren(), isClean()); + expectedGraduationDate_ = null; + } + return expectedGraduationDateBuilder_; + } + + private java.lang.Object schoolName_ = ""; + /** + * + * + *
+     * Optional.
+     * The name of the school or institution.
+     * For example, "Stanford University", "UC Berkeley", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string school_name = 4; + */ + public java.lang.String getSchoolName() { + java.lang.Object ref = schoolName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schoolName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The name of the school or institution.
+     * For example, "Stanford University", "UC Berkeley", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string school_name = 4; + */ + public com.google.protobuf.ByteString getSchoolNameBytes() { + java.lang.Object ref = schoolName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schoolName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The name of the school or institution.
+     * For example, "Stanford University", "UC Berkeley", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string school_name = 4; + */ + public Builder setSchoolName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + schoolName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The name of the school or institution.
+     * For example, "Stanford University", "UC Berkeley", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string school_name = 4; + */ + public Builder clearSchoolName() { + + schoolName_ = getDefaultInstance().getSchoolName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The name of the school or institution.
+     * For example, "Stanford University", "UC Berkeley", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string school_name = 4; + */ + public Builder setSchoolNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + schoolName_ = value; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.Address address_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Address, + com.google.cloud.talent.v4beta1.Address.Builder, + com.google.cloud.talent.v4beta1.AddressOrBuilder> + addressBuilder_; + /** + * + * + *
+     * Optional.
+     * The physical address of the education institution.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public boolean hasAddress() { + return addressBuilder_ != null || address_ != null; + } + /** + * + * + *
+     * Optional.
+     * The physical address of the education institution.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public com.google.cloud.talent.v4beta1.Address getAddress() { + if (addressBuilder_ == null) { + return address_ == null + ? com.google.cloud.talent.v4beta1.Address.getDefaultInstance() + : address_; + } else { + return addressBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The physical address of the education institution.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public Builder setAddress(com.google.cloud.talent.v4beta1.Address value) { + if (addressBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + address_ = value; + onChanged(); + } else { + addressBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The physical address of the education institution.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public Builder setAddress(com.google.cloud.talent.v4beta1.Address.Builder builderForValue) { + if (addressBuilder_ == null) { + address_ = builderForValue.build(); + onChanged(); + } else { + addressBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The physical address of the education institution.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public Builder mergeAddress(com.google.cloud.talent.v4beta1.Address value) { + if (addressBuilder_ == null) { + if (address_ != null) { + address_ = + com.google.cloud.talent.v4beta1.Address.newBuilder(address_) + .mergeFrom(value) + .buildPartial(); + } else { + address_ = value; + } + onChanged(); + } else { + addressBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The physical address of the education institution.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public Builder clearAddress() { + if (addressBuilder_ == null) { + address_ = null; + onChanged(); + } else { + address_ = null; + addressBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The physical address of the education institution.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public com.google.cloud.talent.v4beta1.Address.Builder getAddressBuilder() { + + onChanged(); + return getAddressFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The physical address of the education institution.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public com.google.cloud.talent.v4beta1.AddressOrBuilder getAddressOrBuilder() { + if (addressBuilder_ != null) { + return addressBuilder_.getMessageOrBuilder(); + } else { + return address_ == null + ? com.google.cloud.talent.v4beta1.Address.getDefaultInstance() + : address_; + } + } + /** + * + * + *
+     * Optional.
+     * The physical address of the education institution.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Address, + com.google.cloud.talent.v4beta1.Address.Builder, + com.google.cloud.talent.v4beta1.AddressOrBuilder> + getAddressFieldBuilder() { + if (addressBuilder_ == null) { + addressBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Address, + com.google.cloud.talent.v4beta1.Address.Builder, + com.google.cloud.talent.v4beta1.AddressOrBuilder>( + getAddress(), getParentForChildren(), isClean()); + address_ = null; + } + return addressBuilder_; + } + + /** + * + * + *
+     * Optional.
+     * The full description of the degree.
+     * For example, "Master of Science in Computer Science", "B.S in Math".
+     * Number of characters allowed is 100.
+     * 
+ * + * string degree_description = 6; + */ + public java.lang.String getDegreeDescription() { + java.lang.Object ref = ""; + if (degreeCase_ == 6) { + ref = degree_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (degreeCase_ == 6) { + degree_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The full description of the degree.
+     * For example, "Master of Science in Computer Science", "B.S in Math".
+     * Number of characters allowed is 100.
+     * 
+ * + * string degree_description = 6; + */ + public com.google.protobuf.ByteString getDegreeDescriptionBytes() { + java.lang.Object ref = ""; + if (degreeCase_ == 6) { + ref = degree_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (degreeCase_ == 6) { + degree_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The full description of the degree.
+     * For example, "Master of Science in Computer Science", "B.S in Math".
+     * Number of characters allowed is 100.
+     * 
+ * + * string degree_description = 6; + */ + public Builder setDegreeDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + degreeCase_ = 6; + degree_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The full description of the degree.
+     * For example, "Master of Science in Computer Science", "B.S in Math".
+     * Number of characters allowed is 100.
+     * 
+ * + * string degree_description = 6; + */ + public Builder clearDegreeDescription() { + if (degreeCase_ == 6) { + degreeCase_ = 0; + degree_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The full description of the degree.
+     * For example, "Master of Science in Computer Science", "B.S in Math".
+     * Number of characters allowed is 100.
+     * 
+ * + * string degree_description = 6; + */ + public Builder setDegreeDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + degreeCase_ = 6; + degree_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Degree, + com.google.cloud.talent.v4beta1.Degree.Builder, + com.google.cloud.talent.v4beta1.DegreeOrBuilder> + structuredDegreeBuilder_; + /** + * + * + *
+     * Optional.
+     * The structured notation of the degree.
+     * 
+ * + * .google.cloud.talent.v4beta1.Degree structured_degree = 7; + */ + public boolean hasStructuredDegree() { + return degreeCase_ == 7; + } + /** + * + * + *
+     * Optional.
+     * The structured notation of the degree.
+     * 
+ * + * .google.cloud.talent.v4beta1.Degree structured_degree = 7; + */ + public com.google.cloud.talent.v4beta1.Degree getStructuredDegree() { + if (structuredDegreeBuilder_ == null) { + if (degreeCase_ == 7) { + return (com.google.cloud.talent.v4beta1.Degree) degree_; + } + return com.google.cloud.talent.v4beta1.Degree.getDefaultInstance(); + } else { + if (degreeCase_ == 7) { + return structuredDegreeBuilder_.getMessage(); + } + return com.google.cloud.talent.v4beta1.Degree.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional.
+     * The structured notation of the degree.
+     * 
+ * + * .google.cloud.talent.v4beta1.Degree structured_degree = 7; + */ + public Builder setStructuredDegree(com.google.cloud.talent.v4beta1.Degree value) { + if (structuredDegreeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + degree_ = value; + onChanged(); + } else { + structuredDegreeBuilder_.setMessage(value); + } + degreeCase_ = 7; + return this; + } + /** + * + * + *
+     * Optional.
+     * The structured notation of the degree.
+     * 
+ * + * .google.cloud.talent.v4beta1.Degree structured_degree = 7; + */ + public Builder setStructuredDegree( + com.google.cloud.talent.v4beta1.Degree.Builder builderForValue) { + if (structuredDegreeBuilder_ == null) { + degree_ = builderForValue.build(); + onChanged(); + } else { + structuredDegreeBuilder_.setMessage(builderForValue.build()); + } + degreeCase_ = 7; + return this; + } + /** + * + * + *
+     * Optional.
+     * The structured notation of the degree.
+     * 
+ * + * .google.cloud.talent.v4beta1.Degree structured_degree = 7; + */ + public Builder mergeStructuredDegree(com.google.cloud.talent.v4beta1.Degree value) { + if (structuredDegreeBuilder_ == null) { + if (degreeCase_ == 7 + && degree_ != com.google.cloud.talent.v4beta1.Degree.getDefaultInstance()) { + degree_ = + com.google.cloud.talent.v4beta1.Degree.newBuilder( + (com.google.cloud.talent.v4beta1.Degree) degree_) + .mergeFrom(value) + .buildPartial(); + } else { + degree_ = value; + } + onChanged(); + } else { + if (degreeCase_ == 7) { + structuredDegreeBuilder_.mergeFrom(value); + } + structuredDegreeBuilder_.setMessage(value); + } + degreeCase_ = 7; + return this; + } + /** + * + * + *
+     * Optional.
+     * The structured notation of the degree.
+     * 
+ * + * .google.cloud.talent.v4beta1.Degree structured_degree = 7; + */ + public Builder clearStructuredDegree() { + if (structuredDegreeBuilder_ == null) { + if (degreeCase_ == 7) { + degreeCase_ = 0; + degree_ = null; + onChanged(); + } + } else { + if (degreeCase_ == 7) { + degreeCase_ = 0; + degree_ = null; + } + structuredDegreeBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The structured notation of the degree.
+     * 
+ * + * .google.cloud.talent.v4beta1.Degree structured_degree = 7; + */ + public com.google.cloud.talent.v4beta1.Degree.Builder getStructuredDegreeBuilder() { + return getStructuredDegreeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The structured notation of the degree.
+     * 
+ * + * .google.cloud.talent.v4beta1.Degree structured_degree = 7; + */ + public com.google.cloud.talent.v4beta1.DegreeOrBuilder getStructuredDegreeOrBuilder() { + if ((degreeCase_ == 7) && (structuredDegreeBuilder_ != null)) { + return structuredDegreeBuilder_.getMessageOrBuilder(); + } else { + if (degreeCase_ == 7) { + return (com.google.cloud.talent.v4beta1.Degree) degree_; + } + return com.google.cloud.talent.v4beta1.Degree.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional.
+     * The structured notation of the degree.
+     * 
+ * + * .google.cloud.talent.v4beta1.Degree structured_degree = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Degree, + com.google.cloud.talent.v4beta1.Degree.Builder, + com.google.cloud.talent.v4beta1.DegreeOrBuilder> + getStructuredDegreeFieldBuilder() { + if (structuredDegreeBuilder_ == null) { + if (!(degreeCase_ == 7)) { + degree_ = com.google.cloud.talent.v4beta1.Degree.getDefaultInstance(); + } + structuredDegreeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Degree, + com.google.cloud.talent.v4beta1.Degree.Builder, + com.google.cloud.talent.v4beta1.DegreeOrBuilder>( + (com.google.cloud.talent.v4beta1.Degree) degree_, + getParentForChildren(), + isClean()); + degree_ = null; + } + degreeCase_ = 7; + onChanged(); + ; + return structuredDegreeBuilder_; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * Optional.
+     * The description of the education.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 8; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The description of the education.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 8; + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The description of the education.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 8; + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The description of the education.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 8; + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The description of the education.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 8; + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.BoolValue isCurrent_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + isCurrentBuilder_; + /** + * + * + *
+     * Optional.
+     * If this education is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 9; + */ + public boolean hasIsCurrent() { + return isCurrentBuilder_ != null || isCurrent_ != null; + } + /** + * + * + *
+     * Optional.
+     * If this education is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 9; + */ + public com.google.protobuf.BoolValue getIsCurrent() { + if (isCurrentBuilder_ == null) { + return isCurrent_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isCurrent_; + } else { + return isCurrentBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * If this education is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 9; + */ + public Builder setIsCurrent(com.google.protobuf.BoolValue value) { + if (isCurrentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + isCurrent_ = value; + onChanged(); + } else { + isCurrentBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If this education is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 9; + */ + public Builder setIsCurrent(com.google.protobuf.BoolValue.Builder builderForValue) { + if (isCurrentBuilder_ == null) { + isCurrent_ = builderForValue.build(); + onChanged(); + } else { + isCurrentBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If this education is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 9; + */ + public Builder mergeIsCurrent(com.google.protobuf.BoolValue value) { + if (isCurrentBuilder_ == null) { + if (isCurrent_ != null) { + isCurrent_ = + com.google.protobuf.BoolValue.newBuilder(isCurrent_).mergeFrom(value).buildPartial(); + } else { + isCurrent_ = value; + } + onChanged(); + } else { + isCurrentBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If this education is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 9; + */ + public Builder clearIsCurrent() { + if (isCurrentBuilder_ == null) { + isCurrent_ = null; + onChanged(); + } else { + isCurrent_ = null; + isCurrentBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If this education is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 9; + */ + public com.google.protobuf.BoolValue.Builder getIsCurrentBuilder() { + + onChanged(); + return getIsCurrentFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * If this education is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 9; + */ + public com.google.protobuf.BoolValueOrBuilder getIsCurrentOrBuilder() { + if (isCurrentBuilder_ != null) { + return isCurrentBuilder_.getMessageOrBuilder(); + } else { + return isCurrent_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isCurrent_; + } + } + /** + * + * + *
+     * Optional.
+     * If this education is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getIsCurrentFieldBuilder() { + if (isCurrentBuilder_ == null) { + isCurrentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getIsCurrent(), getParentForChildren(), isClean()); + isCurrent_ = null; + } + return isCurrentBuilder_; + } + + private java.lang.Object schoolNameSnippet_ = ""; + /** + * + * + *
+     * Output only. The school name snippet shows how the
+     * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name] is
+     * related to a search query in search result. It's empty if the
+     * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name]
+     * isn't related to the search query.
+     * 
+ * + * string school_name_snippet = 10; + */ + public java.lang.String getSchoolNameSnippet() { + java.lang.Object ref = schoolNameSnippet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schoolNameSnippet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The school name snippet shows how the
+     * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name] is
+     * related to a search query in search result. It's empty if the
+     * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name]
+     * isn't related to the search query.
+     * 
+ * + * string school_name_snippet = 10; + */ + public com.google.protobuf.ByteString getSchoolNameSnippetBytes() { + java.lang.Object ref = schoolNameSnippet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schoolNameSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The school name snippet shows how the
+     * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name] is
+     * related to a search query in search result. It's empty if the
+     * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name]
+     * isn't related to the search query.
+     * 
+ * + * string school_name_snippet = 10; + */ + public Builder setSchoolNameSnippet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + schoolNameSnippet_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The school name snippet shows how the
+     * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name] is
+     * related to a search query in search result. It's empty if the
+     * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name]
+     * isn't related to the search query.
+     * 
+ * + * string school_name_snippet = 10; + */ + public Builder clearSchoolNameSnippet() { + + schoolNameSnippet_ = getDefaultInstance().getSchoolNameSnippet(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The school name snippet shows how the
+     * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name] is
+     * related to a search query in search result. It's empty if the
+     * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name]
+     * isn't related to the search query.
+     * 
+ * + * string school_name_snippet = 10; + */ + public Builder setSchoolNameSnippetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + schoolNameSnippet_ = value; + onChanged(); + return this; + } + + private java.lang.Object degreeSnippet_ = ""; + /** + * + * + *
+     * Output only. The job description snippet shows how the
+     * [degree][google.cloud.talent.v4beta1.degree] is related to a search query
+     * in search result. It's empty if the
+     * [degree][google.cloud.talent.v4beta1.degree] isn't related to the search
+     * query.
+     * 
+ * + * string degree_snippet = 11; + */ + public java.lang.String getDegreeSnippet() { + java.lang.Object ref = degreeSnippet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + degreeSnippet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The job description snippet shows how the
+     * [degree][google.cloud.talent.v4beta1.degree] is related to a search query
+     * in search result. It's empty if the
+     * [degree][google.cloud.talent.v4beta1.degree] isn't related to the search
+     * query.
+     * 
+ * + * string degree_snippet = 11; + */ + public com.google.protobuf.ByteString getDegreeSnippetBytes() { + java.lang.Object ref = degreeSnippet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + degreeSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The job description snippet shows how the
+     * [degree][google.cloud.talent.v4beta1.degree] is related to a search query
+     * in search result. It's empty if the
+     * [degree][google.cloud.talent.v4beta1.degree] isn't related to the search
+     * query.
+     * 
+ * + * string degree_snippet = 11; + */ + public Builder setDegreeSnippet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + degreeSnippet_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The job description snippet shows how the
+     * [degree][google.cloud.talent.v4beta1.degree] is related to a search query
+     * in search result. It's empty if the
+     * [degree][google.cloud.talent.v4beta1.degree] isn't related to the search
+     * query.
+     * 
+ * + * string degree_snippet = 11; + */ + public Builder clearDegreeSnippet() { + + degreeSnippet_ = getDefaultInstance().getDegreeSnippet(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The job description snippet shows how the
+     * [degree][google.cloud.talent.v4beta1.degree] is related to a search query
+     * in search result. It's empty if the
+     * [degree][google.cloud.talent.v4beta1.degree] isn't related to the search
+     * query.
+     * 
+ * + * string degree_snippet = 11; + */ + public Builder setDegreeSnippetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + degreeSnippet_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.EducationRecord) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.EducationRecord) + private static final com.google.cloud.talent.v4beta1.EducationRecord DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.EducationRecord(); + } + + public static com.google.cloud.talent.v4beta1.EducationRecord getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EducationRecord parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EducationRecord(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.EducationRecord getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationRecordOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationRecordOrBuilder.java new file mode 100644 index 000000000000..b3f7734d507e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationRecordOrBuilder.java @@ -0,0 +1,353 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public interface EducationRecordOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.EducationRecord) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * The start date of the education.
+   * 
+ * + * .google.type.Date start_date = 1; + */ + boolean hasStartDate(); + /** + * + * + *
+   * Optional.
+   * The start date of the education.
+   * 
+ * + * .google.type.Date start_date = 1; + */ + com.google.type.Date getStartDate(); + /** + * + * + *
+   * Optional.
+   * The start date of the education.
+   * 
+ * + * .google.type.Date start_date = 1; + */ + com.google.type.DateOrBuilder getStartDateOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The end date of the education.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + boolean hasEndDate(); + /** + * + * + *
+   * Optional.
+   * The end date of the education.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + com.google.type.Date getEndDate(); + /** + * + * + *
+   * Optional.
+   * The end date of the education.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + com.google.type.DateOrBuilder getEndDateOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The expected graduation date if currently pursuing a degree.
+   * 
+ * + * .google.type.Date expected_graduation_date = 3; + */ + boolean hasExpectedGraduationDate(); + /** + * + * + *
+   * Optional.
+   * The expected graduation date if currently pursuing a degree.
+   * 
+ * + * .google.type.Date expected_graduation_date = 3; + */ + com.google.type.Date getExpectedGraduationDate(); + /** + * + * + *
+   * Optional.
+   * The expected graduation date if currently pursuing a degree.
+   * 
+ * + * .google.type.Date expected_graduation_date = 3; + */ + com.google.type.DateOrBuilder getExpectedGraduationDateOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The name of the school or institution.
+   * For example, "Stanford University", "UC Berkeley", etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string school_name = 4; + */ + java.lang.String getSchoolName(); + /** + * + * + *
+   * Optional.
+   * The name of the school or institution.
+   * For example, "Stanford University", "UC Berkeley", etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string school_name = 4; + */ + com.google.protobuf.ByteString getSchoolNameBytes(); + + /** + * + * + *
+   * Optional.
+   * The physical address of the education institution.
+   * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + boolean hasAddress(); + /** + * + * + *
+   * Optional.
+   * The physical address of the education institution.
+   * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + com.google.cloud.talent.v4beta1.Address getAddress(); + /** + * + * + *
+   * Optional.
+   * The physical address of the education institution.
+   * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + com.google.cloud.talent.v4beta1.AddressOrBuilder getAddressOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The full description of the degree.
+   * For example, "Master of Science in Computer Science", "B.S in Math".
+   * Number of characters allowed is 100.
+   * 
+ * + * string degree_description = 6; + */ + java.lang.String getDegreeDescription(); + /** + * + * + *
+   * Optional.
+   * The full description of the degree.
+   * For example, "Master of Science in Computer Science", "B.S in Math".
+   * Number of characters allowed is 100.
+   * 
+ * + * string degree_description = 6; + */ + com.google.protobuf.ByteString getDegreeDescriptionBytes(); + + /** + * + * + *
+   * Optional.
+   * The structured notation of the degree.
+   * 
+ * + * .google.cloud.talent.v4beta1.Degree structured_degree = 7; + */ + boolean hasStructuredDegree(); + /** + * + * + *
+   * Optional.
+   * The structured notation of the degree.
+   * 
+ * + * .google.cloud.talent.v4beta1.Degree structured_degree = 7; + */ + com.google.cloud.talent.v4beta1.Degree getStructuredDegree(); + /** + * + * + *
+   * Optional.
+   * The structured notation of the degree.
+   * 
+ * + * .google.cloud.talent.v4beta1.Degree structured_degree = 7; + */ + com.google.cloud.talent.v4beta1.DegreeOrBuilder getStructuredDegreeOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The description of the education.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string description = 8; + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Optional.
+   * The description of the education.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string description = 8; + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Optional.
+   * If this education is current.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 9; + */ + boolean hasIsCurrent(); + /** + * + * + *
+   * Optional.
+   * If this education is current.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 9; + */ + com.google.protobuf.BoolValue getIsCurrent(); + /** + * + * + *
+   * Optional.
+   * If this education is current.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 9; + */ + com.google.protobuf.BoolValueOrBuilder getIsCurrentOrBuilder(); + + /** + * + * + *
+   * Output only. The school name snippet shows how the
+   * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name] is
+   * related to a search query in search result. It's empty if the
+   * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name]
+   * isn't related to the search query.
+   * 
+ * + * string school_name_snippet = 10; + */ + java.lang.String getSchoolNameSnippet(); + /** + * + * + *
+   * Output only. The school name snippet shows how the
+   * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name] is
+   * related to a search query in search result. It's empty if the
+   * [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name]
+   * isn't related to the search query.
+   * 
+ * + * string school_name_snippet = 10; + */ + com.google.protobuf.ByteString getSchoolNameSnippetBytes(); + + /** + * + * + *
+   * Output only. The job description snippet shows how the
+   * [degree][google.cloud.talent.v4beta1.degree] is related to a search query
+   * in search result. It's empty if the
+   * [degree][google.cloud.talent.v4beta1.degree] isn't related to the search
+   * query.
+   * 
+ * + * string degree_snippet = 11; + */ + java.lang.String getDegreeSnippet(); + /** + * + * + *
+   * Output only. The job description snippet shows how the
+   * [degree][google.cloud.talent.v4beta1.degree] is related to a search query
+   * in search result. It's empty if the
+   * [degree][google.cloud.talent.v4beta1.degree] isn't related to the search
+   * query.
+   * 
+ * + * string degree_snippet = 11; + */ + com.google.protobuf.ByteString getDegreeSnippetBytes(); + + public com.google.cloud.talent.v4beta1.EducationRecord.DegreeCase getDegreeCase(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Email.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Email.java new file mode 100644 index 000000000000..8d5623f7194d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Email.java @@ -0,0 +1,751 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Resource that represents a person's email address.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Email} + */ +public final class Email extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Email) + EmailOrBuilder { + private static final long serialVersionUID = 0L; + // Use Email.newBuilder() to construct. + private Email(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Email() { + usage_ = 0; + emailAddress_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Email( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + usage_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + emailAddress_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Email_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Email_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Email.class, + com.google.cloud.talent.v4beta1.Email.Builder.class); + } + + public static final int USAGE_FIELD_NUMBER = 1; + private int usage_; + /** + * + * + *
+   * Optional.
+   * The usage of the email address. For example, SCHOOL, WORK, PERSONAL.
+   * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public int getUsageValue() { + return usage_; + } + /** + * + * + *
+   * Optional.
+   * The usage of the email address. For example, SCHOOL, WORK, PERSONAL.
+   * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public com.google.cloud.talent.v4beta1.ContactInfoUsage getUsage() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.ContactInfoUsage result = + com.google.cloud.talent.v4beta1.ContactInfoUsage.valueOf(usage_); + return result == null ? com.google.cloud.talent.v4beta1.ContactInfoUsage.UNRECOGNIZED : result; + } + + public static final int EMAIL_ADDRESS_FIELD_NUMBER = 2; + private volatile java.lang.Object emailAddress_; + /** + * + * + *
+   * Optional.
+   * Email address.
+   * Number of characters allowed is 4,000.
+   * 
+ * + * string email_address = 2; + */ + public java.lang.String getEmailAddress() { + java.lang.Object ref = emailAddress_; + 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(); + emailAddress_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * Email address.
+   * Number of characters allowed is 4,000.
+   * 
+ * + * string email_address = 2; + */ + public com.google.protobuf.ByteString getEmailAddressBytes() { + java.lang.Object ref = emailAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + emailAddress_ = 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 (usage_ + != com.google.cloud.talent.v4beta1.ContactInfoUsage.CONTACT_INFO_USAGE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, usage_); + } + if (!getEmailAddressBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, emailAddress_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (usage_ + != com.google.cloud.talent.v4beta1.ContactInfoUsage.CONTACT_INFO_USAGE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, usage_); + } + if (!getEmailAddressBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, emailAddress_); + } + size += unknownFields.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.cloud.talent.v4beta1.Email)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Email other = (com.google.cloud.talent.v4beta1.Email) obj; + + boolean result = true; + result = result && usage_ == other.usage_; + result = result && getEmailAddress().equals(other.getEmailAddress()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USAGE_FIELD_NUMBER; + hash = (53 * hash) + usage_; + hash = (37 * hash) + EMAIL_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getEmailAddress().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Email parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Email parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Email parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Email 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.cloud.talent.v4beta1.Email parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Email parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Email parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Email 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.cloud.talent.v4beta1.Email parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Email 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.cloud.talent.v4beta1.Email parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Email 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.cloud.talent.v4beta1.Email 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; + } + /** + * + * + *
+   * Resource that represents a person's email address.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Email} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Email) + com.google.cloud.talent.v4beta1.EmailOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Email_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Email_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Email.class, + com.google.cloud.talent.v4beta1.Email.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Email.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + usage_ = 0; + + emailAddress_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Email_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Email getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Email.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Email build() { + com.google.cloud.talent.v4beta1.Email result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Email buildPartial() { + com.google.cloud.talent.v4beta1.Email result = + new com.google.cloud.talent.v4beta1.Email(this); + result.usage_ = usage_; + result.emailAddress_ = emailAddress_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Email) { + return mergeFrom((com.google.cloud.talent.v4beta1.Email) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Email other) { + if (other == com.google.cloud.talent.v4beta1.Email.getDefaultInstance()) return this; + if (other.usage_ != 0) { + setUsageValue(other.getUsageValue()); + } + if (!other.getEmailAddress().isEmpty()) { + emailAddress_ = other.emailAddress_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.Email parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.Email) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int usage_ = 0; + /** + * + * + *
+     * Optional.
+     * The usage of the email address. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public int getUsageValue() { + return usage_; + } + /** + * + * + *
+     * Optional.
+     * The usage of the email address. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public Builder setUsageValue(int value) { + usage_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The usage of the email address. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public com.google.cloud.talent.v4beta1.ContactInfoUsage getUsage() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.ContactInfoUsage result = + com.google.cloud.talent.v4beta1.ContactInfoUsage.valueOf(usage_); + return result == null + ? com.google.cloud.talent.v4beta1.ContactInfoUsage.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional.
+     * The usage of the email address. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public Builder setUsage(com.google.cloud.talent.v4beta1.ContactInfoUsage value) { + if (value == null) { + throw new NullPointerException(); + } + + usage_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The usage of the email address. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public Builder clearUsage() { + + usage_ = 0; + onChanged(); + return this; + } + + private java.lang.Object emailAddress_ = ""; + /** + * + * + *
+     * Optional.
+     * Email address.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string email_address = 2; + */ + public java.lang.String getEmailAddress() { + java.lang.Object ref = emailAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + emailAddress_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Email address.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string email_address = 2; + */ + public com.google.protobuf.ByteString getEmailAddressBytes() { + java.lang.Object ref = emailAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + emailAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Email address.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string email_address = 2; + */ + public Builder setEmailAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + emailAddress_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Email address.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string email_address = 2; + */ + public Builder clearEmailAddress() { + + emailAddress_ = getDefaultInstance().getEmailAddress(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Email address.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string email_address = 2; + */ + public Builder setEmailAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + emailAddress_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Email) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Email) + private static final com.google.cloud.talent.v4beta1.Email DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Email(); + } + + public static com.google.cloud.talent.v4beta1.Email getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Email parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Email(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.Email getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmailOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmailOrBuilder.java new file mode 100644 index 000000000000..0a978ab2843e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmailOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public interface EmailOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Email) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * The usage of the email address. For example, SCHOOL, WORK, PERSONAL.
+   * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + int getUsageValue(); + /** + * + * + *
+   * Optional.
+   * The usage of the email address. For example, SCHOOL, WORK, PERSONAL.
+   * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + com.google.cloud.talent.v4beta1.ContactInfoUsage getUsage(); + + /** + * + * + *
+   * Optional.
+   * Email address.
+   * Number of characters allowed is 4,000.
+   * 
+ * + * string email_address = 2; + */ + java.lang.String getEmailAddress(); + /** + * + * + *
+   * Optional.
+   * Email address.
+   * Number of characters allowed is 4,000.
+   * 
+ * + * string email_address = 2; + */ + com.google.protobuf.ByteString getEmailAddressBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmployerFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmployerFilter.java new file mode 100644 index 000000000000..1bcb27c02484 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmployerFilter.java @@ -0,0 +1,1047 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Employer filter of the search.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.EmployerFilter} + */ +public final class EmployerFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.EmployerFilter) + EmployerFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use EmployerFilter.newBuilder() to construct. + private EmployerFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EmployerFilter() { + employer_ = ""; + mode_ = 0; + negated_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private EmployerFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + employer_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + mode_ = rawValue; + break; + } + case 24: + { + negated_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_EmployerFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_EmployerFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.EmployerFilter.class, + com.google.cloud.talent.v4beta1.EmployerFilter.Builder.class); + } + + /** + * + * + *
+   * Enum indicating which set of
+   * [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records]
+   * to search against.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode} + */ + public enum EmployerFilterMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value.
+     * 
+ * + * EMPLOYER_FILTER_MODE_UNSPECIFIED = 0; + */ + EMPLOYER_FILTER_MODE_UNSPECIFIED(0), + /** + * + * + *
+     * Apply to all employers in
+     * [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * ALL_EMPLOYMENT_RECORDS = 1; + */ + ALL_EMPLOYMENT_RECORDS(1), + /** + * + * + *
+     * Apply only to current employer in
+     * [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * CURRENT_EMPLOYMENT_RECORDS_ONLY = 2; + */ + CURRENT_EMPLOYMENT_RECORDS_ONLY(2), + /** + * + * + *
+     * Apply only to past (not current) employers in
+     * [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * PAST_EMPLOYMENT_RECORDS_ONLY = 3; + */ + PAST_EMPLOYMENT_RECORDS_ONLY(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value.
+     * 
+ * + * EMPLOYER_FILTER_MODE_UNSPECIFIED = 0; + */ + public static final int EMPLOYER_FILTER_MODE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Apply to all employers in
+     * [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * ALL_EMPLOYMENT_RECORDS = 1; + */ + public static final int ALL_EMPLOYMENT_RECORDS_VALUE = 1; + /** + * + * + *
+     * Apply only to current employer in
+     * [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * CURRENT_EMPLOYMENT_RECORDS_ONLY = 2; + */ + public static final int CURRENT_EMPLOYMENT_RECORDS_ONLY_VALUE = 2; + /** + * + * + *
+     * Apply only to past (not current) employers in
+     * [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * PAST_EMPLOYMENT_RECORDS_ONLY = 3; + */ + public static final int PAST_EMPLOYMENT_RECORDS_ONLY_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static EmployerFilterMode valueOf(int value) { + return forNumber(value); + } + + public static EmployerFilterMode forNumber(int value) { + switch (value) { + case 0: + return EMPLOYER_FILTER_MODE_UNSPECIFIED; + case 1: + return ALL_EMPLOYMENT_RECORDS; + case 2: + return CURRENT_EMPLOYMENT_RECORDS_ONLY; + case 3: + return PAST_EMPLOYMENT_RECORDS_ONLY; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public EmployerFilterMode findValueByNumber(int number) { + return EmployerFilterMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.EmployerFilter.getDescriptor().getEnumTypes().get(0); + } + + private static final EmployerFilterMode[] VALUES = values(); + + public static EmployerFilterMode 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()]; + } + + private final int value; + + private EmployerFilterMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode) + } + + public static final int EMPLOYER_FIELD_NUMBER = 1; + private volatile java.lang.Object employer_; + /** + * + * + *
+   * Required.
+   * The name of the employer, for example "Google", "Alphabet".
+   * 
+ * + * string employer = 1; + */ + public java.lang.String getEmployer() { + java.lang.Object ref = employer_; + 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(); + employer_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The name of the employer, for example "Google", "Alphabet".
+   * 
+ * + * string employer = 1; + */ + public com.google.protobuf.ByteString getEmployerBytes() { + java.lang.Object ref = employer_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + employer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MODE_FIELD_NUMBER = 2; + private int mode_; + /** + * + * + *
+   * Optional.
+   * Define set of
+   * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord]s to search
+   * against.
+   * Defaults to
+   * [EmployerFilterMode.ALL_EMPLOYMENT_RECORDS][google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.ALL_EMPLOYMENT_RECORDS].
+   * 
+ * + * .google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode mode = 2; + */ + public int getModeValue() { + return mode_; + } + /** + * + * + *
+   * Optional.
+   * Define set of
+   * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord]s to search
+   * against.
+   * Defaults to
+   * [EmployerFilterMode.ALL_EMPLOYMENT_RECORDS][google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.ALL_EMPLOYMENT_RECORDS].
+   * 
+ * + * .google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode mode = 2; + */ + public com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode getMode() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode result = + com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.valueOf(mode_); + return result == null + ? com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.UNRECOGNIZED + : result; + } + + public static final int NEGATED_FIELD_NUMBER = 3; + private boolean negated_; + /** + * + * + *
+   * Optional.
+   * Whether to apply negation to the filter so profiles matching the filter
+   * is excluded.
+   * 
+ * + * bool negated = 3; + */ + public boolean getNegated() { + return negated_; + } + + 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 (!getEmployerBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, employer_); + } + if (mode_ + != com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode + .EMPLOYER_FILTER_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, mode_); + } + if (negated_ != false) { + output.writeBool(3, negated_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getEmployerBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, employer_); + } + if (mode_ + != com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode + .EMPLOYER_FILTER_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, mode_); + } + if (negated_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, negated_); + } + size += unknownFields.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.cloud.talent.v4beta1.EmployerFilter)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.EmployerFilter other = + (com.google.cloud.talent.v4beta1.EmployerFilter) obj; + + boolean result = true; + result = result && getEmployer().equals(other.getEmployer()); + result = result && mode_ == other.mode_; + result = result && (getNegated() == other.getNegated()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + EMPLOYER_FIELD_NUMBER; + hash = (53 * hash) + getEmployer().hashCode(); + hash = (37 * hash) + MODE_FIELD_NUMBER; + hash = (53 * hash) + mode_; + hash = (37 * hash) + NEGATED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNegated()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.EmployerFilter parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.EmployerFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.EmployerFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.EmployerFilter 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.cloud.talent.v4beta1.EmployerFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.EmployerFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.EmployerFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.EmployerFilter 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.cloud.talent.v4beta1.EmployerFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.EmployerFilter 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.cloud.talent.v4beta1.EmployerFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.EmployerFilter 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.cloud.talent.v4beta1.EmployerFilter 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; + } + /** + * + * + *
+   * Input only.
+   * Employer filter of the search.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.EmployerFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.EmployerFilter) + com.google.cloud.talent.v4beta1.EmployerFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_EmployerFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_EmployerFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.EmployerFilter.class, + com.google.cloud.talent.v4beta1.EmployerFilter.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.EmployerFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + employer_ = ""; + + mode_ = 0; + + negated_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_EmployerFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.EmployerFilter getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.EmployerFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.EmployerFilter build() { + com.google.cloud.talent.v4beta1.EmployerFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.EmployerFilter buildPartial() { + com.google.cloud.talent.v4beta1.EmployerFilter result = + new com.google.cloud.talent.v4beta1.EmployerFilter(this); + result.employer_ = employer_; + result.mode_ = mode_; + result.negated_ = negated_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.EmployerFilter) { + return mergeFrom((com.google.cloud.talent.v4beta1.EmployerFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.EmployerFilter other) { + if (other == com.google.cloud.talent.v4beta1.EmployerFilter.getDefaultInstance()) return this; + if (!other.getEmployer().isEmpty()) { + employer_ = other.employer_; + onChanged(); + } + if (other.mode_ != 0) { + setModeValue(other.getModeValue()); + } + if (other.getNegated() != false) { + setNegated(other.getNegated()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.EmployerFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.EmployerFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object employer_ = ""; + /** + * + * + *
+     * Required.
+     * The name of the employer, for example "Google", "Alphabet".
+     * 
+ * + * string employer = 1; + */ + public java.lang.String getEmployer() { + java.lang.Object ref = employer_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + employer_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The name of the employer, for example "Google", "Alphabet".
+     * 
+ * + * string employer = 1; + */ + public com.google.protobuf.ByteString getEmployerBytes() { + java.lang.Object ref = employer_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + employer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The name of the employer, for example "Google", "Alphabet".
+     * 
+ * + * string employer = 1; + */ + public Builder setEmployer(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + employer_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The name of the employer, for example "Google", "Alphabet".
+     * 
+ * + * string employer = 1; + */ + public Builder clearEmployer() { + + employer_ = getDefaultInstance().getEmployer(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The name of the employer, for example "Google", "Alphabet".
+     * 
+ * + * string employer = 1; + */ + public Builder setEmployerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + employer_ = value; + onChanged(); + return this; + } + + private int mode_ = 0; + /** + * + * + *
+     * Optional.
+     * Define set of
+     * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord]s to search
+     * against.
+     * Defaults to
+     * [EmployerFilterMode.ALL_EMPLOYMENT_RECORDS][google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.ALL_EMPLOYMENT_RECORDS].
+     * 
+ * + * .google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode mode = 2; + */ + public int getModeValue() { + return mode_; + } + /** + * + * + *
+     * Optional.
+     * Define set of
+     * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord]s to search
+     * against.
+     * Defaults to
+     * [EmployerFilterMode.ALL_EMPLOYMENT_RECORDS][google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.ALL_EMPLOYMENT_RECORDS].
+     * 
+ * + * .google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode mode = 2; + */ + public Builder setModeValue(int value) { + mode_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Define set of
+     * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord]s to search
+     * against.
+     * Defaults to
+     * [EmployerFilterMode.ALL_EMPLOYMENT_RECORDS][google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.ALL_EMPLOYMENT_RECORDS].
+     * 
+ * + * .google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode mode = 2; + */ + public com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode getMode() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode result = + com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.valueOf(mode_); + return result == null + ? com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional.
+     * Define set of
+     * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord]s to search
+     * against.
+     * Defaults to
+     * [EmployerFilterMode.ALL_EMPLOYMENT_RECORDS][google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.ALL_EMPLOYMENT_RECORDS].
+     * 
+ * + * .google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode mode = 2; + */ + public Builder setMode( + com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode value) { + if (value == null) { + throw new NullPointerException(); + } + + mode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Define set of
+     * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord]s to search
+     * against.
+     * Defaults to
+     * [EmployerFilterMode.ALL_EMPLOYMENT_RECORDS][google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.ALL_EMPLOYMENT_RECORDS].
+     * 
+ * + * .google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode mode = 2; + */ + public Builder clearMode() { + + mode_ = 0; + onChanged(); + return this; + } + + private boolean negated_; + /** + * + * + *
+     * Optional.
+     * Whether to apply negation to the filter so profiles matching the filter
+     * is excluded.
+     * 
+ * + * bool negated = 3; + */ + public boolean getNegated() { + return negated_; + } + /** + * + * + *
+     * Optional.
+     * Whether to apply negation to the filter so profiles matching the filter
+     * is excluded.
+     * 
+ * + * bool negated = 3; + */ + public Builder setNegated(boolean value) { + + negated_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Whether to apply negation to the filter so profiles matching the filter
+     * is excluded.
+     * 
+ * + * bool negated = 3; + */ + public Builder clearNegated() { + + negated_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.EmployerFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.EmployerFilter) + private static final com.google.cloud.talent.v4beta1.EmployerFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.EmployerFilter(); + } + + public static com.google.cloud.talent.v4beta1.EmployerFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EmployerFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EmployerFilter(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.EmployerFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmployerFilterOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmployerFilterOrBuilder.java new file mode 100644 index 000000000000..4401704a75af --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmployerFilterOrBuilder.java @@ -0,0 +1,77 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +public interface EmployerFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.EmployerFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The name of the employer, for example "Google", "Alphabet".
+   * 
+ * + * string employer = 1; + */ + java.lang.String getEmployer(); + /** + * + * + *
+   * Required.
+   * The name of the employer, for example "Google", "Alphabet".
+   * 
+ * + * string employer = 1; + */ + com.google.protobuf.ByteString getEmployerBytes(); + + /** + * + * + *
+   * Optional.
+   * Define set of
+   * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord]s to search
+   * against.
+   * Defaults to
+   * [EmployerFilterMode.ALL_EMPLOYMENT_RECORDS][google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.ALL_EMPLOYMENT_RECORDS].
+   * 
+ * + * .google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode mode = 2; + */ + int getModeValue(); + /** + * + * + *
+   * Optional.
+   * Define set of
+   * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord]s to search
+   * against.
+   * Defaults to
+   * [EmployerFilterMode.ALL_EMPLOYMENT_RECORDS][google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.ALL_EMPLOYMENT_RECORDS].
+   * 
+ * + * .google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode mode = 2; + */ + com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode getMode(); + + /** + * + * + *
+   * Optional.
+   * Whether to apply negation to the filter so profiles matching the filter
+   * is excluded.
+   * 
+ * + * bool negated = 3; + */ + boolean getNegated(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmploymentRecord.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmploymentRecord.java new file mode 100644 index 000000000000..5455e7e9e686 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmploymentRecord.java @@ -0,0 +1,3481 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Resource that represents an employment record of a candidate.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.EmploymentRecord} + */ +public final class EmploymentRecord extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.EmploymentRecord) + EmploymentRecordOrBuilder { + private static final long serialVersionUID = 0L; + // Use EmploymentRecord.newBuilder() to construct. + private EmploymentRecord(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EmploymentRecord() { + employerName_ = ""; + divisionName_ = ""; + jobTitle_ = ""; + jobDescription_ = ""; + jobTitleSnippet_ = ""; + jobDescriptionSnippet_ = ""; + employerNameSnippet_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private EmploymentRecord( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.type.Date.Builder subBuilder = null; + if (startDate_ != null) { + subBuilder = startDate_.toBuilder(); + } + startDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startDate_); + startDate_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.type.Date.Builder subBuilder = null; + if (endDate_ != null) { + subBuilder = endDate_.toBuilder(); + } + endDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endDate_); + endDate_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + employerName_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + divisionName_ = s; + break; + } + case 42: + { + com.google.cloud.talent.v4beta1.Address.Builder subBuilder = null; + if (address_ != null) { + subBuilder = address_.toBuilder(); + } + address_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Address.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(address_); + address_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + jobTitle_ = s; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + jobDescription_ = s; + break; + } + case 66: + { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (isSupervisedPosition_ != null) { + subBuilder = isSupervisedPosition_.toBuilder(); + } + isSupervisedPosition_ = + input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(isSupervisedPosition_); + isSupervisedPosition_ = subBuilder.buildPartial(); + } + + break; + } + case 74: + { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (isSelfEmployed_ != null) { + subBuilder = isSelfEmployed_.toBuilder(); + } + isSelfEmployed_ = + input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(isSelfEmployed_); + isSelfEmployed_ = subBuilder.buildPartial(); + } + + break; + } + case 82: + { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (isCurrent_ != null) { + subBuilder = isCurrent_.toBuilder(); + } + isCurrent_ = + input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(isCurrent_); + isCurrent_ = subBuilder.buildPartial(); + } + + break; + } + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + + jobTitleSnippet_ = s; + break; + } + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); + + jobDescriptionSnippet_ = s; + break; + } + case 106: + { + java.lang.String s = input.readStringRequireUtf8(); + + employerNameSnippet_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_EmploymentRecord_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_EmploymentRecord_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.EmploymentRecord.class, + com.google.cloud.talent.v4beta1.EmploymentRecord.Builder.class); + } + + public static final int START_DATE_FIELD_NUMBER = 1; + private com.google.type.Date startDate_; + /** + * + * + *
+   * Optional.
+   * Start date of the employment.
+   * It can be a partial date (only year, or only year and month), but must be
+   * valid. Otherwise an error is thrown.
+   * Examples:
+   * {"year": 2017, "month": 2, "day": 28} is valid.
+   * {"year": 2020, "month": 1, "date": 31} is valid.
+   * {"year": 2018, "month": 12} is valid (partial date).
+   * {"year": 2018} is valid (partial date).
+   * {"year": 2015, "day": 21} is not valid (month is missing but day is
+   * presented).
+   * {"year": 2018, "month": 13} is not valid (invalid month).
+   * {"year": 2017, "month": 1, "day": 32} is not valid (invalid day).
+   * 
+ * + * .google.type.Date start_date = 1; + */ + public boolean hasStartDate() { + return startDate_ != null; + } + /** + * + * + *
+   * Optional.
+   * Start date of the employment.
+   * It can be a partial date (only year, or only year and month), but must be
+   * valid. Otherwise an error is thrown.
+   * Examples:
+   * {"year": 2017, "month": 2, "day": 28} is valid.
+   * {"year": 2020, "month": 1, "date": 31} is valid.
+   * {"year": 2018, "month": 12} is valid (partial date).
+   * {"year": 2018} is valid (partial date).
+   * {"year": 2015, "day": 21} is not valid (month is missing but day is
+   * presented).
+   * {"year": 2018, "month": 13} is not valid (invalid month).
+   * {"year": 2017, "month": 1, "day": 32} is not valid (invalid day).
+   * 
+ * + * .google.type.Date start_date = 1; + */ + public com.google.type.Date getStartDate() { + return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; + } + /** + * + * + *
+   * Optional.
+   * Start date of the employment.
+   * It can be a partial date (only year, or only year and month), but must be
+   * valid. Otherwise an error is thrown.
+   * Examples:
+   * {"year": 2017, "month": 2, "day": 28} is valid.
+   * {"year": 2020, "month": 1, "date": 31} is valid.
+   * {"year": 2018, "month": 12} is valid (partial date).
+   * {"year": 2018} is valid (partial date).
+   * {"year": 2015, "day": 21} is not valid (month is missing but day is
+   * presented).
+   * {"year": 2018, "month": 13} is not valid (invalid month).
+   * {"year": 2017, "month": 1, "day": 32} is not valid (invalid day).
+   * 
+ * + * .google.type.Date start_date = 1; + */ + public com.google.type.DateOrBuilder getStartDateOrBuilder() { + return getStartDate(); + } + + public static final int END_DATE_FIELD_NUMBER = 2; + private com.google.type.Date endDate_; + /** + * + * + *
+   * Optional.
+   * End date of the employment.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + public boolean hasEndDate() { + return endDate_ != null; + } + /** + * + * + *
+   * Optional.
+   * End date of the employment.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + public com.google.type.Date getEndDate() { + return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; + } + /** + * + * + *
+   * Optional.
+   * End date of the employment.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + public com.google.type.DateOrBuilder getEndDateOrBuilder() { + return getEndDate(); + } + + public static final int EMPLOYER_NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object employerName_; + /** + * + * + *
+   * Optional.
+   * The name of the employer company/organization.
+   * For example, "Google", "Alphabet", etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string employer_name = 3; + */ + public java.lang.String getEmployerName() { + java.lang.Object ref = employerName_; + 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(); + employerName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The name of the employer company/organization.
+   * For example, "Google", "Alphabet", etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string employer_name = 3; + */ + public com.google.protobuf.ByteString getEmployerNameBytes() { + java.lang.Object ref = employerName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + employerName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DIVISION_NAME_FIELD_NUMBER = 4; + private volatile java.lang.Object divisionName_; + /** + * + * + *
+   * Optional.
+   * The division name of the employment.
+   * For example, division, department, client, etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string division_name = 4; + */ + public java.lang.String getDivisionName() { + java.lang.Object ref = divisionName_; + 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(); + divisionName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The division name of the employment.
+   * For example, division, department, client, etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string division_name = 4; + */ + public com.google.protobuf.ByteString getDivisionNameBytes() { + java.lang.Object ref = divisionName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + divisionName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADDRESS_FIELD_NUMBER = 5; + private com.google.cloud.talent.v4beta1.Address address_; + /** + * + * + *
+   * Optional.
+   * The physical address of the employer.
+   * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public boolean hasAddress() { + return address_ != null; + } + /** + * + * + *
+   * Optional.
+   * The physical address of the employer.
+   * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public com.google.cloud.talent.v4beta1.Address getAddress() { + return address_ == null + ? com.google.cloud.talent.v4beta1.Address.getDefaultInstance() + : address_; + } + /** + * + * + *
+   * Optional.
+   * The physical address of the employer.
+   * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public com.google.cloud.talent.v4beta1.AddressOrBuilder getAddressOrBuilder() { + return getAddress(); + } + + public static final int JOB_TITLE_FIELD_NUMBER = 6; + private volatile java.lang.Object jobTitle_; + /** + * + * + *
+   * Optional.
+   * The job title of the employment.
+   * For example, "Software Engineer", "Data Scientist", etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string job_title = 6; + */ + public java.lang.String getJobTitle() { + java.lang.Object ref = jobTitle_; + 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(); + jobTitle_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The job title of the employment.
+   * For example, "Software Engineer", "Data Scientist", etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string job_title = 6; + */ + public com.google.protobuf.ByteString getJobTitleBytes() { + java.lang.Object ref = jobTitle_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobTitle_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int JOB_DESCRIPTION_FIELD_NUMBER = 7; + private volatile java.lang.Object jobDescription_; + /** + * + * + *
+   * Optional.
+   * The description of job content.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string job_description = 7; + */ + public java.lang.String getJobDescription() { + java.lang.Object ref = jobDescription_; + 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(); + jobDescription_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The description of job content.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string job_description = 7; + */ + public com.google.protobuf.ByteString getJobDescriptionBytes() { + java.lang.Object ref = jobDescription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IS_SUPERVISED_POSITION_FIELD_NUMBER = 8; + private com.google.protobuf.BoolValue isSupervisedPosition_; + /** + * + * + *
+   * Optional.
+   * If it's a supervised position.
+   * 
+ * + * .google.protobuf.BoolValue is_supervised_position = 8; + */ + public boolean hasIsSupervisedPosition() { + return isSupervisedPosition_ != null; + } + /** + * + * + *
+   * Optional.
+   * If it's a supervised position.
+   * 
+ * + * .google.protobuf.BoolValue is_supervised_position = 8; + */ + public com.google.protobuf.BoolValue getIsSupervisedPosition() { + return isSupervisedPosition_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : isSupervisedPosition_; + } + /** + * + * + *
+   * Optional.
+   * If it's a supervised position.
+   * 
+ * + * .google.protobuf.BoolValue is_supervised_position = 8; + */ + public com.google.protobuf.BoolValueOrBuilder getIsSupervisedPositionOrBuilder() { + return getIsSupervisedPosition(); + } + + public static final int IS_SELF_EMPLOYED_FIELD_NUMBER = 9; + private com.google.protobuf.BoolValue isSelfEmployed_; + /** + * + * + *
+   * Optional.
+   * If this employment is self-employed.
+   * 
+ * + * .google.protobuf.BoolValue is_self_employed = 9; + */ + public boolean hasIsSelfEmployed() { + return isSelfEmployed_ != null; + } + /** + * + * + *
+   * Optional.
+   * If this employment is self-employed.
+   * 
+ * + * .google.protobuf.BoolValue is_self_employed = 9; + */ + public com.google.protobuf.BoolValue getIsSelfEmployed() { + return isSelfEmployed_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : isSelfEmployed_; + } + /** + * + * + *
+   * Optional.
+   * If this employment is self-employed.
+   * 
+ * + * .google.protobuf.BoolValue is_self_employed = 9; + */ + public com.google.protobuf.BoolValueOrBuilder getIsSelfEmployedOrBuilder() { + return getIsSelfEmployed(); + } + + public static final int IS_CURRENT_FIELD_NUMBER = 10; + private com.google.protobuf.BoolValue isCurrent_; + /** + * + * + *
+   * Optional.
+   * If this employment is current.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 10; + */ + public boolean hasIsCurrent() { + return isCurrent_ != null; + } + /** + * + * + *
+   * Optional.
+   * If this employment is current.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 10; + */ + public com.google.protobuf.BoolValue getIsCurrent() { + return isCurrent_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isCurrent_; + } + /** + * + * + *
+   * Optional.
+   * If this employment is current.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 10; + */ + public com.google.protobuf.BoolValueOrBuilder getIsCurrentOrBuilder() { + return getIsCurrent(); + } + + public static final int JOB_TITLE_SNIPPET_FIELD_NUMBER = 11; + private volatile java.lang.Object jobTitleSnippet_; + /** + * + * + *
+   * Output only. The job title snippet shows how the
+   * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] is
+   * related to a search query. It's empty if the
+   * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] isn't
+   * related to the search query.
+   * 
+ * + * string job_title_snippet = 11; + */ + public java.lang.String getJobTitleSnippet() { + java.lang.Object ref = jobTitleSnippet_; + 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(); + jobTitleSnippet_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The job title snippet shows how the
+   * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] is
+   * related to a search query. It's empty if the
+   * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] isn't
+   * related to the search query.
+   * 
+ * + * string job_title_snippet = 11; + */ + public com.google.protobuf.ByteString getJobTitleSnippetBytes() { + java.lang.Object ref = jobTitleSnippet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobTitleSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int JOB_DESCRIPTION_SNIPPET_FIELD_NUMBER = 12; + private volatile java.lang.Object jobDescriptionSnippet_; + /** + * + * + *
+   * Output only. The job description snippet shows how the
+   * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+   * is related to a search query. It's empty if the
+   * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+   * isn't related to the search query.
+   * 
+ * + * string job_description_snippet = 12; + */ + public java.lang.String getJobDescriptionSnippet() { + java.lang.Object ref = jobDescriptionSnippet_; + 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(); + jobDescriptionSnippet_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The job description snippet shows how the
+   * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+   * is related to a search query. It's empty if the
+   * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+   * isn't related to the search query.
+   * 
+ * + * string job_description_snippet = 12; + */ + public com.google.protobuf.ByteString getJobDescriptionSnippetBytes() { + java.lang.Object ref = jobDescriptionSnippet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobDescriptionSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EMPLOYER_NAME_SNIPPET_FIELD_NUMBER = 13; + private volatile java.lang.Object employerNameSnippet_; + /** + * + * + *
+   * Output only. The employer name snippet shows how the
+   * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+   * is related to a search query. It's empty if the
+   * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+   * isn't related to the search query.
+   * 
+ * + * string employer_name_snippet = 13; + */ + public java.lang.String getEmployerNameSnippet() { + java.lang.Object ref = employerNameSnippet_; + 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(); + employerNameSnippet_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The employer name snippet shows how the
+   * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+   * is related to a search query. It's empty if the
+   * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+   * isn't related to the search query.
+   * 
+ * + * string employer_name_snippet = 13; + */ + public com.google.protobuf.ByteString getEmployerNameSnippetBytes() { + java.lang.Object ref = employerNameSnippet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + employerNameSnippet_ = 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 (startDate_ != null) { + output.writeMessage(1, getStartDate()); + } + if (endDate_ != null) { + output.writeMessage(2, getEndDate()); + } + if (!getEmployerNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, employerName_); + } + if (!getDivisionNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, divisionName_); + } + if (address_ != null) { + output.writeMessage(5, getAddress()); + } + if (!getJobTitleBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, jobTitle_); + } + if (!getJobDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, jobDescription_); + } + if (isSupervisedPosition_ != null) { + output.writeMessage(8, getIsSupervisedPosition()); + } + if (isSelfEmployed_ != null) { + output.writeMessage(9, getIsSelfEmployed()); + } + if (isCurrent_ != null) { + output.writeMessage(10, getIsCurrent()); + } + if (!getJobTitleSnippetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, jobTitleSnippet_); + } + if (!getJobDescriptionSnippetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, jobDescriptionSnippet_); + } + if (!getEmployerNameSnippetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, employerNameSnippet_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (startDate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartDate()); + } + if (endDate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndDate()); + } + if (!getEmployerNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, employerName_); + } + if (!getDivisionNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, divisionName_); + } + if (address_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAddress()); + } + if (!getJobTitleBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, jobTitle_); + } + if (!getJobDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, jobDescription_); + } + if (isSupervisedPosition_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(8, getIsSupervisedPosition()); + } + if (isSelfEmployed_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getIsSelfEmployed()); + } + if (isCurrent_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getIsCurrent()); + } + if (!getJobTitleSnippetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, jobTitleSnippet_); + } + if (!getJobDescriptionSnippetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, jobDescriptionSnippet_); + } + if (!getEmployerNameSnippetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, employerNameSnippet_); + } + size += unknownFields.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.cloud.talent.v4beta1.EmploymentRecord)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.EmploymentRecord other = + (com.google.cloud.talent.v4beta1.EmploymentRecord) obj; + + boolean result = true; + result = result && (hasStartDate() == other.hasStartDate()); + if (hasStartDate()) { + result = result && getStartDate().equals(other.getStartDate()); + } + result = result && (hasEndDate() == other.hasEndDate()); + if (hasEndDate()) { + result = result && getEndDate().equals(other.getEndDate()); + } + result = result && getEmployerName().equals(other.getEmployerName()); + result = result && getDivisionName().equals(other.getDivisionName()); + result = result && (hasAddress() == other.hasAddress()); + if (hasAddress()) { + result = result && getAddress().equals(other.getAddress()); + } + result = result && getJobTitle().equals(other.getJobTitle()); + result = result && getJobDescription().equals(other.getJobDescription()); + result = result && (hasIsSupervisedPosition() == other.hasIsSupervisedPosition()); + if (hasIsSupervisedPosition()) { + result = result && getIsSupervisedPosition().equals(other.getIsSupervisedPosition()); + } + result = result && (hasIsSelfEmployed() == other.hasIsSelfEmployed()); + if (hasIsSelfEmployed()) { + result = result && getIsSelfEmployed().equals(other.getIsSelfEmployed()); + } + result = result && (hasIsCurrent() == other.hasIsCurrent()); + if (hasIsCurrent()) { + result = result && getIsCurrent().equals(other.getIsCurrent()); + } + result = result && getJobTitleSnippet().equals(other.getJobTitleSnippet()); + result = result && getJobDescriptionSnippet().equals(other.getJobDescriptionSnippet()); + result = result && getEmployerNameSnippet().equals(other.getEmployerNameSnippet()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStartDate()) { + hash = (37 * hash) + START_DATE_FIELD_NUMBER; + hash = (53 * hash) + getStartDate().hashCode(); + } + if (hasEndDate()) { + hash = (37 * hash) + END_DATE_FIELD_NUMBER; + hash = (53 * hash) + getEndDate().hashCode(); + } + hash = (37 * hash) + EMPLOYER_NAME_FIELD_NUMBER; + hash = (53 * hash) + getEmployerName().hashCode(); + hash = (37 * hash) + DIVISION_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDivisionName().hashCode(); + if (hasAddress()) { + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAddress().hashCode(); + } + hash = (37 * hash) + JOB_TITLE_FIELD_NUMBER; + hash = (53 * hash) + getJobTitle().hashCode(); + hash = (37 * hash) + JOB_DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getJobDescription().hashCode(); + if (hasIsSupervisedPosition()) { + hash = (37 * hash) + IS_SUPERVISED_POSITION_FIELD_NUMBER; + hash = (53 * hash) + getIsSupervisedPosition().hashCode(); + } + if (hasIsSelfEmployed()) { + hash = (37 * hash) + IS_SELF_EMPLOYED_FIELD_NUMBER; + hash = (53 * hash) + getIsSelfEmployed().hashCode(); + } + if (hasIsCurrent()) { + hash = (37 * hash) + IS_CURRENT_FIELD_NUMBER; + hash = (53 * hash) + getIsCurrent().hashCode(); + } + hash = (37 * hash) + JOB_TITLE_SNIPPET_FIELD_NUMBER; + hash = (53 * hash) + getJobTitleSnippet().hashCode(); + hash = (37 * hash) + JOB_DESCRIPTION_SNIPPET_FIELD_NUMBER; + hash = (53 * hash) + getJobDescriptionSnippet().hashCode(); + hash = (37 * hash) + EMPLOYER_NAME_SNIPPET_FIELD_NUMBER; + hash = (53 * hash) + getEmployerNameSnippet().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.EmploymentRecord parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.EmploymentRecord parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.EmploymentRecord parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.EmploymentRecord 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.cloud.talent.v4beta1.EmploymentRecord parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.EmploymentRecord parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.EmploymentRecord parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.EmploymentRecord 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.cloud.talent.v4beta1.EmploymentRecord parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.EmploymentRecord 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.cloud.talent.v4beta1.EmploymentRecord parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.EmploymentRecord 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.cloud.talent.v4beta1.EmploymentRecord 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; + } + /** + * + * + *
+   * Resource that represents an employment record of a candidate.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.EmploymentRecord} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.EmploymentRecord) + com.google.cloud.talent.v4beta1.EmploymentRecordOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_EmploymentRecord_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_EmploymentRecord_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.EmploymentRecord.class, + com.google.cloud.talent.v4beta1.EmploymentRecord.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.EmploymentRecord.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (startDateBuilder_ == null) { + startDate_ = null; + } else { + startDate_ = null; + startDateBuilder_ = null; + } + if (endDateBuilder_ == null) { + endDate_ = null; + } else { + endDate_ = null; + endDateBuilder_ = null; + } + employerName_ = ""; + + divisionName_ = ""; + + if (addressBuilder_ == null) { + address_ = null; + } else { + address_ = null; + addressBuilder_ = null; + } + jobTitle_ = ""; + + jobDescription_ = ""; + + if (isSupervisedPositionBuilder_ == null) { + isSupervisedPosition_ = null; + } else { + isSupervisedPosition_ = null; + isSupervisedPositionBuilder_ = null; + } + if (isSelfEmployedBuilder_ == null) { + isSelfEmployed_ = null; + } else { + isSelfEmployed_ = null; + isSelfEmployedBuilder_ = null; + } + if (isCurrentBuilder_ == null) { + isCurrent_ = null; + } else { + isCurrent_ = null; + isCurrentBuilder_ = null; + } + jobTitleSnippet_ = ""; + + jobDescriptionSnippet_ = ""; + + employerNameSnippet_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_EmploymentRecord_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.EmploymentRecord getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.EmploymentRecord.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.EmploymentRecord build() { + com.google.cloud.talent.v4beta1.EmploymentRecord result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.EmploymentRecord buildPartial() { + com.google.cloud.talent.v4beta1.EmploymentRecord result = + new com.google.cloud.talent.v4beta1.EmploymentRecord(this); + if (startDateBuilder_ == null) { + result.startDate_ = startDate_; + } else { + result.startDate_ = startDateBuilder_.build(); + } + if (endDateBuilder_ == null) { + result.endDate_ = endDate_; + } else { + result.endDate_ = endDateBuilder_.build(); + } + result.employerName_ = employerName_; + result.divisionName_ = divisionName_; + if (addressBuilder_ == null) { + result.address_ = address_; + } else { + result.address_ = addressBuilder_.build(); + } + result.jobTitle_ = jobTitle_; + result.jobDescription_ = jobDescription_; + if (isSupervisedPositionBuilder_ == null) { + result.isSupervisedPosition_ = isSupervisedPosition_; + } else { + result.isSupervisedPosition_ = isSupervisedPositionBuilder_.build(); + } + if (isSelfEmployedBuilder_ == null) { + result.isSelfEmployed_ = isSelfEmployed_; + } else { + result.isSelfEmployed_ = isSelfEmployedBuilder_.build(); + } + if (isCurrentBuilder_ == null) { + result.isCurrent_ = isCurrent_; + } else { + result.isCurrent_ = isCurrentBuilder_.build(); + } + result.jobTitleSnippet_ = jobTitleSnippet_; + result.jobDescriptionSnippet_ = jobDescriptionSnippet_; + result.employerNameSnippet_ = employerNameSnippet_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.EmploymentRecord) { + return mergeFrom((com.google.cloud.talent.v4beta1.EmploymentRecord) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.EmploymentRecord other) { + if (other == com.google.cloud.talent.v4beta1.EmploymentRecord.getDefaultInstance()) + return this; + if (other.hasStartDate()) { + mergeStartDate(other.getStartDate()); + } + if (other.hasEndDate()) { + mergeEndDate(other.getEndDate()); + } + if (!other.getEmployerName().isEmpty()) { + employerName_ = other.employerName_; + onChanged(); + } + if (!other.getDivisionName().isEmpty()) { + divisionName_ = other.divisionName_; + onChanged(); + } + if (other.hasAddress()) { + mergeAddress(other.getAddress()); + } + if (!other.getJobTitle().isEmpty()) { + jobTitle_ = other.jobTitle_; + onChanged(); + } + if (!other.getJobDescription().isEmpty()) { + jobDescription_ = other.jobDescription_; + onChanged(); + } + if (other.hasIsSupervisedPosition()) { + mergeIsSupervisedPosition(other.getIsSupervisedPosition()); + } + if (other.hasIsSelfEmployed()) { + mergeIsSelfEmployed(other.getIsSelfEmployed()); + } + if (other.hasIsCurrent()) { + mergeIsCurrent(other.getIsCurrent()); + } + if (!other.getJobTitleSnippet().isEmpty()) { + jobTitleSnippet_ = other.jobTitleSnippet_; + onChanged(); + } + if (!other.getJobDescriptionSnippet().isEmpty()) { + jobDescriptionSnippet_ = other.jobDescriptionSnippet_; + onChanged(); + } + if (!other.getEmployerNameSnippet().isEmpty()) { + employerNameSnippet_ = other.employerNameSnippet_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.EmploymentRecord parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.EmploymentRecord) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.type.Date startDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + startDateBuilder_; + /** + * + * + *
+     * Optional.
+     * Start date of the employment.
+     * It can be a partial date (only year, or only year and month), but must be
+     * valid. Otherwise an error is thrown.
+     * Examples:
+     * {"year": 2017, "month": 2, "day": 28} is valid.
+     * {"year": 2020, "month": 1, "date": 31} is valid.
+     * {"year": 2018, "month": 12} is valid (partial date).
+     * {"year": 2018} is valid (partial date).
+     * {"year": 2015, "day": 21} is not valid (month is missing but day is
+     * presented).
+     * {"year": 2018, "month": 13} is not valid (invalid month).
+     * {"year": 2017, "month": 1, "day": 32} is not valid (invalid day).
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public boolean hasStartDate() { + return startDateBuilder_ != null || startDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * Start date of the employment.
+     * It can be a partial date (only year, or only year and month), but must be
+     * valid. Otherwise an error is thrown.
+     * Examples:
+     * {"year": 2017, "month": 2, "day": 28} is valid.
+     * {"year": 2020, "month": 1, "date": 31} is valid.
+     * {"year": 2018, "month": 12} is valid (partial date).
+     * {"year": 2018} is valid (partial date).
+     * {"year": 2015, "day": 21} is not valid (month is missing but day is
+     * presented).
+     * {"year": 2018, "month": 13} is not valid (invalid month).
+     * {"year": 2017, "month": 1, "day": 32} is not valid (invalid day).
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public com.google.type.Date getStartDate() { + if (startDateBuilder_ == null) { + return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; + } else { + return startDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * Start date of the employment.
+     * It can be a partial date (only year, or only year and month), but must be
+     * valid. Otherwise an error is thrown.
+     * Examples:
+     * {"year": 2017, "month": 2, "day": 28} is valid.
+     * {"year": 2020, "month": 1, "date": 31} is valid.
+     * {"year": 2018, "month": 12} is valid (partial date).
+     * {"year": 2018} is valid (partial date).
+     * {"year": 2015, "day": 21} is not valid (month is missing but day is
+     * presented).
+     * {"year": 2018, "month": 13} is not valid (invalid month).
+     * {"year": 2017, "month": 1, "day": 32} is not valid (invalid day).
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public Builder setStartDate(com.google.type.Date value) { + if (startDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startDate_ = value; + onChanged(); + } else { + startDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Start date of the employment.
+     * It can be a partial date (only year, or only year and month), but must be
+     * valid. Otherwise an error is thrown.
+     * Examples:
+     * {"year": 2017, "month": 2, "day": 28} is valid.
+     * {"year": 2020, "month": 1, "date": 31} is valid.
+     * {"year": 2018, "month": 12} is valid (partial date).
+     * {"year": 2018} is valid (partial date).
+     * {"year": 2015, "day": 21} is not valid (month is missing but day is
+     * presented).
+     * {"year": 2018, "month": 13} is not valid (invalid month).
+     * {"year": 2017, "month": 1, "day": 32} is not valid (invalid day).
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public Builder setStartDate(com.google.type.Date.Builder builderForValue) { + if (startDateBuilder_ == null) { + startDate_ = builderForValue.build(); + onChanged(); + } else { + startDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Start date of the employment.
+     * It can be a partial date (only year, or only year and month), but must be
+     * valid. Otherwise an error is thrown.
+     * Examples:
+     * {"year": 2017, "month": 2, "day": 28} is valid.
+     * {"year": 2020, "month": 1, "date": 31} is valid.
+     * {"year": 2018, "month": 12} is valid (partial date).
+     * {"year": 2018} is valid (partial date).
+     * {"year": 2015, "day": 21} is not valid (month is missing but day is
+     * presented).
+     * {"year": 2018, "month": 13} is not valid (invalid month).
+     * {"year": 2017, "month": 1, "day": 32} is not valid (invalid day).
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public Builder mergeStartDate(com.google.type.Date value) { + if (startDateBuilder_ == null) { + if (startDate_ != null) { + startDate_ = com.google.type.Date.newBuilder(startDate_).mergeFrom(value).buildPartial(); + } else { + startDate_ = value; + } + onChanged(); + } else { + startDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Start date of the employment.
+     * It can be a partial date (only year, or only year and month), but must be
+     * valid. Otherwise an error is thrown.
+     * Examples:
+     * {"year": 2017, "month": 2, "day": 28} is valid.
+     * {"year": 2020, "month": 1, "date": 31} is valid.
+     * {"year": 2018, "month": 12} is valid (partial date).
+     * {"year": 2018} is valid (partial date).
+     * {"year": 2015, "day": 21} is not valid (month is missing but day is
+     * presented).
+     * {"year": 2018, "month": 13} is not valid (invalid month).
+     * {"year": 2017, "month": 1, "day": 32} is not valid (invalid day).
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public Builder clearStartDate() { + if (startDateBuilder_ == null) { + startDate_ = null; + onChanged(); + } else { + startDate_ = null; + startDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Start date of the employment.
+     * It can be a partial date (only year, or only year and month), but must be
+     * valid. Otherwise an error is thrown.
+     * Examples:
+     * {"year": 2017, "month": 2, "day": 28} is valid.
+     * {"year": 2020, "month": 1, "date": 31} is valid.
+     * {"year": 2018, "month": 12} is valid (partial date).
+     * {"year": 2018} is valid (partial date).
+     * {"year": 2015, "day": 21} is not valid (month is missing but day is
+     * presented).
+     * {"year": 2018, "month": 13} is not valid (invalid month).
+     * {"year": 2017, "month": 1, "day": 32} is not valid (invalid day).
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public com.google.type.Date.Builder getStartDateBuilder() { + + onChanged(); + return getStartDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * Start date of the employment.
+     * It can be a partial date (only year, or only year and month), but must be
+     * valid. Otherwise an error is thrown.
+     * Examples:
+     * {"year": 2017, "month": 2, "day": 28} is valid.
+     * {"year": 2020, "month": 1, "date": 31} is valid.
+     * {"year": 2018, "month": 12} is valid (partial date).
+     * {"year": 2018} is valid (partial date).
+     * {"year": 2015, "day": 21} is not valid (month is missing but day is
+     * presented).
+     * {"year": 2018, "month": 13} is not valid (invalid month).
+     * {"year": 2017, "month": 1, "day": 32} is not valid (invalid day).
+     * 
+ * + * .google.type.Date start_date = 1; + */ + public com.google.type.DateOrBuilder getStartDateOrBuilder() { + if (startDateBuilder_ != null) { + return startDateBuilder_.getMessageOrBuilder(); + } else { + return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; + } + } + /** + * + * + *
+     * Optional.
+     * Start date of the employment.
+     * It can be a partial date (only year, or only year and month), but must be
+     * valid. Otherwise an error is thrown.
+     * Examples:
+     * {"year": 2017, "month": 2, "day": 28} is valid.
+     * {"year": 2020, "month": 1, "date": 31} is valid.
+     * {"year": 2018, "month": 12} is valid (partial date).
+     * {"year": 2018} is valid (partial date).
+     * {"year": 2015, "day": 21} is not valid (month is missing but day is
+     * presented).
+     * {"year": 2018, "month": 13} is not valid (invalid month).
+     * {"year": 2017, "month": 1, "day": 32} is not valid (invalid day).
+     * 
+ * + * .google.type.Date start_date = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getStartDateFieldBuilder() { + if (startDateBuilder_ == null) { + startDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getStartDate(), getParentForChildren(), isClean()); + startDate_ = null; + } + return startDateBuilder_; + } + + private com.google.type.Date endDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + endDateBuilder_; + /** + * + * + *
+     * Optional.
+     * End date of the employment.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public boolean hasEndDate() { + return endDateBuilder_ != null || endDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * End date of the employment.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public com.google.type.Date getEndDate() { + if (endDateBuilder_ == null) { + return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; + } else { + return endDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * End date of the employment.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public Builder setEndDate(com.google.type.Date value) { + if (endDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endDate_ = value; + onChanged(); + } else { + endDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * End date of the employment.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public Builder setEndDate(com.google.type.Date.Builder builderForValue) { + if (endDateBuilder_ == null) { + endDate_ = builderForValue.build(); + onChanged(); + } else { + endDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * End date of the employment.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public Builder mergeEndDate(com.google.type.Date value) { + if (endDateBuilder_ == null) { + if (endDate_ != null) { + endDate_ = com.google.type.Date.newBuilder(endDate_).mergeFrom(value).buildPartial(); + } else { + endDate_ = value; + } + onChanged(); + } else { + endDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * End date of the employment.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public Builder clearEndDate() { + if (endDateBuilder_ == null) { + endDate_ = null; + onChanged(); + } else { + endDate_ = null; + endDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * End date of the employment.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public com.google.type.Date.Builder getEndDateBuilder() { + + onChanged(); + return getEndDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * End date of the employment.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + public com.google.type.DateOrBuilder getEndDateOrBuilder() { + if (endDateBuilder_ != null) { + return endDateBuilder_.getMessageOrBuilder(); + } else { + return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; + } + } + /** + * + * + *
+     * Optional.
+     * End date of the employment.
+     * 
+ * + * .google.type.Date end_date = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getEndDateFieldBuilder() { + if (endDateBuilder_ == null) { + endDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getEndDate(), getParentForChildren(), isClean()); + endDate_ = null; + } + return endDateBuilder_; + } + + private java.lang.Object employerName_ = ""; + /** + * + * + *
+     * Optional.
+     * The name of the employer company/organization.
+     * For example, "Google", "Alphabet", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string employer_name = 3; + */ + public java.lang.String getEmployerName() { + java.lang.Object ref = employerName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + employerName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The name of the employer company/organization.
+     * For example, "Google", "Alphabet", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string employer_name = 3; + */ + public com.google.protobuf.ByteString getEmployerNameBytes() { + java.lang.Object ref = employerName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + employerName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The name of the employer company/organization.
+     * For example, "Google", "Alphabet", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string employer_name = 3; + */ + public Builder setEmployerName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + employerName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The name of the employer company/organization.
+     * For example, "Google", "Alphabet", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string employer_name = 3; + */ + public Builder clearEmployerName() { + + employerName_ = getDefaultInstance().getEmployerName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The name of the employer company/organization.
+     * For example, "Google", "Alphabet", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string employer_name = 3; + */ + public Builder setEmployerNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + employerName_ = value; + onChanged(); + return this; + } + + private java.lang.Object divisionName_ = ""; + /** + * + * + *
+     * Optional.
+     * The division name of the employment.
+     * For example, division, department, client, etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string division_name = 4; + */ + public java.lang.String getDivisionName() { + java.lang.Object ref = divisionName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + divisionName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The division name of the employment.
+     * For example, division, department, client, etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string division_name = 4; + */ + public com.google.protobuf.ByteString getDivisionNameBytes() { + java.lang.Object ref = divisionName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + divisionName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The division name of the employment.
+     * For example, division, department, client, etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string division_name = 4; + */ + public Builder setDivisionName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + divisionName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The division name of the employment.
+     * For example, division, department, client, etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string division_name = 4; + */ + public Builder clearDivisionName() { + + divisionName_ = getDefaultInstance().getDivisionName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The division name of the employment.
+     * For example, division, department, client, etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string division_name = 4; + */ + public Builder setDivisionNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + divisionName_ = value; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.Address address_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Address, + com.google.cloud.talent.v4beta1.Address.Builder, + com.google.cloud.talent.v4beta1.AddressOrBuilder> + addressBuilder_; + /** + * + * + *
+     * Optional.
+     * The physical address of the employer.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public boolean hasAddress() { + return addressBuilder_ != null || address_ != null; + } + /** + * + * + *
+     * Optional.
+     * The physical address of the employer.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public com.google.cloud.talent.v4beta1.Address getAddress() { + if (addressBuilder_ == null) { + return address_ == null + ? com.google.cloud.talent.v4beta1.Address.getDefaultInstance() + : address_; + } else { + return addressBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The physical address of the employer.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public Builder setAddress(com.google.cloud.talent.v4beta1.Address value) { + if (addressBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + address_ = value; + onChanged(); + } else { + addressBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The physical address of the employer.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public Builder setAddress(com.google.cloud.talent.v4beta1.Address.Builder builderForValue) { + if (addressBuilder_ == null) { + address_ = builderForValue.build(); + onChanged(); + } else { + addressBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The physical address of the employer.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public Builder mergeAddress(com.google.cloud.talent.v4beta1.Address value) { + if (addressBuilder_ == null) { + if (address_ != null) { + address_ = + com.google.cloud.talent.v4beta1.Address.newBuilder(address_) + .mergeFrom(value) + .buildPartial(); + } else { + address_ = value; + } + onChanged(); + } else { + addressBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The physical address of the employer.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public Builder clearAddress() { + if (addressBuilder_ == null) { + address_ = null; + onChanged(); + } else { + address_ = null; + addressBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The physical address of the employer.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public com.google.cloud.talent.v4beta1.Address.Builder getAddressBuilder() { + + onChanged(); + return getAddressFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The physical address of the employer.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + public com.google.cloud.talent.v4beta1.AddressOrBuilder getAddressOrBuilder() { + if (addressBuilder_ != null) { + return addressBuilder_.getMessageOrBuilder(); + } else { + return address_ == null + ? com.google.cloud.talent.v4beta1.Address.getDefaultInstance() + : address_; + } + } + /** + * + * + *
+     * Optional.
+     * The physical address of the employer.
+     * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Address, + com.google.cloud.talent.v4beta1.Address.Builder, + com.google.cloud.talent.v4beta1.AddressOrBuilder> + getAddressFieldBuilder() { + if (addressBuilder_ == null) { + addressBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Address, + com.google.cloud.talent.v4beta1.Address.Builder, + com.google.cloud.talent.v4beta1.AddressOrBuilder>( + getAddress(), getParentForChildren(), isClean()); + address_ = null; + } + return addressBuilder_; + } + + private java.lang.Object jobTitle_ = ""; + /** + * + * + *
+     * Optional.
+     * The job title of the employment.
+     * For example, "Software Engineer", "Data Scientist", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string job_title = 6; + */ + public java.lang.String getJobTitle() { + java.lang.Object ref = jobTitle_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobTitle_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The job title of the employment.
+     * For example, "Software Engineer", "Data Scientist", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string job_title = 6; + */ + public com.google.protobuf.ByteString getJobTitleBytes() { + java.lang.Object ref = jobTitle_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobTitle_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The job title of the employment.
+     * For example, "Software Engineer", "Data Scientist", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string job_title = 6; + */ + public Builder setJobTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jobTitle_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The job title of the employment.
+     * For example, "Software Engineer", "Data Scientist", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string job_title = 6; + */ + public Builder clearJobTitle() { + + jobTitle_ = getDefaultInstance().getJobTitle(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The job title of the employment.
+     * For example, "Software Engineer", "Data Scientist", etc.
+     * Number of characters allowed is 100.
+     * 
+ * + * string job_title = 6; + */ + public Builder setJobTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jobTitle_ = value; + onChanged(); + return this; + } + + private java.lang.Object jobDescription_ = ""; + /** + * + * + *
+     * Optional.
+     * The description of job content.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string job_description = 7; + */ + public java.lang.String getJobDescription() { + java.lang.Object ref = jobDescription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobDescription_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The description of job content.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string job_description = 7; + */ + public com.google.protobuf.ByteString getJobDescriptionBytes() { + java.lang.Object ref = jobDescription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The description of job content.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string job_description = 7; + */ + public Builder setJobDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jobDescription_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The description of job content.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string job_description = 7; + */ + public Builder clearJobDescription() { + + jobDescription_ = getDefaultInstance().getJobDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The description of job content.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string job_description = 7; + */ + public Builder setJobDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jobDescription_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.BoolValue isSupervisedPosition_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + isSupervisedPositionBuilder_; + /** + * + * + *
+     * Optional.
+     * If it's a supervised position.
+     * 
+ * + * .google.protobuf.BoolValue is_supervised_position = 8; + */ + public boolean hasIsSupervisedPosition() { + return isSupervisedPositionBuilder_ != null || isSupervisedPosition_ != null; + } + /** + * + * + *
+     * Optional.
+     * If it's a supervised position.
+     * 
+ * + * .google.protobuf.BoolValue is_supervised_position = 8; + */ + public com.google.protobuf.BoolValue getIsSupervisedPosition() { + if (isSupervisedPositionBuilder_ == null) { + return isSupervisedPosition_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : isSupervisedPosition_; + } else { + return isSupervisedPositionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * If it's a supervised position.
+     * 
+ * + * .google.protobuf.BoolValue is_supervised_position = 8; + */ + public Builder setIsSupervisedPosition(com.google.protobuf.BoolValue value) { + if (isSupervisedPositionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + isSupervisedPosition_ = value; + onChanged(); + } else { + isSupervisedPositionBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If it's a supervised position.
+     * 
+ * + * .google.protobuf.BoolValue is_supervised_position = 8; + */ + public Builder setIsSupervisedPosition(com.google.protobuf.BoolValue.Builder builderForValue) { + if (isSupervisedPositionBuilder_ == null) { + isSupervisedPosition_ = builderForValue.build(); + onChanged(); + } else { + isSupervisedPositionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If it's a supervised position.
+     * 
+ * + * .google.protobuf.BoolValue is_supervised_position = 8; + */ + public Builder mergeIsSupervisedPosition(com.google.protobuf.BoolValue value) { + if (isSupervisedPositionBuilder_ == null) { + if (isSupervisedPosition_ != null) { + isSupervisedPosition_ = + com.google.protobuf.BoolValue.newBuilder(isSupervisedPosition_) + .mergeFrom(value) + .buildPartial(); + } else { + isSupervisedPosition_ = value; + } + onChanged(); + } else { + isSupervisedPositionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If it's a supervised position.
+     * 
+ * + * .google.protobuf.BoolValue is_supervised_position = 8; + */ + public Builder clearIsSupervisedPosition() { + if (isSupervisedPositionBuilder_ == null) { + isSupervisedPosition_ = null; + onChanged(); + } else { + isSupervisedPosition_ = null; + isSupervisedPositionBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If it's a supervised position.
+     * 
+ * + * .google.protobuf.BoolValue is_supervised_position = 8; + */ + public com.google.protobuf.BoolValue.Builder getIsSupervisedPositionBuilder() { + + onChanged(); + return getIsSupervisedPositionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * If it's a supervised position.
+     * 
+ * + * .google.protobuf.BoolValue is_supervised_position = 8; + */ + public com.google.protobuf.BoolValueOrBuilder getIsSupervisedPositionOrBuilder() { + if (isSupervisedPositionBuilder_ != null) { + return isSupervisedPositionBuilder_.getMessageOrBuilder(); + } else { + return isSupervisedPosition_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : isSupervisedPosition_; + } + } + /** + * + * + *
+     * Optional.
+     * If it's a supervised position.
+     * 
+ * + * .google.protobuf.BoolValue is_supervised_position = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getIsSupervisedPositionFieldBuilder() { + if (isSupervisedPositionBuilder_ == null) { + isSupervisedPositionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getIsSupervisedPosition(), getParentForChildren(), isClean()); + isSupervisedPosition_ = null; + } + return isSupervisedPositionBuilder_; + } + + private com.google.protobuf.BoolValue isSelfEmployed_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + isSelfEmployedBuilder_; + /** + * + * + *
+     * Optional.
+     * If this employment is self-employed.
+     * 
+ * + * .google.protobuf.BoolValue is_self_employed = 9; + */ + public boolean hasIsSelfEmployed() { + return isSelfEmployedBuilder_ != null || isSelfEmployed_ != null; + } + /** + * + * + *
+     * Optional.
+     * If this employment is self-employed.
+     * 
+ * + * .google.protobuf.BoolValue is_self_employed = 9; + */ + public com.google.protobuf.BoolValue getIsSelfEmployed() { + if (isSelfEmployedBuilder_ == null) { + return isSelfEmployed_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : isSelfEmployed_; + } else { + return isSelfEmployedBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * If this employment is self-employed.
+     * 
+ * + * .google.protobuf.BoolValue is_self_employed = 9; + */ + public Builder setIsSelfEmployed(com.google.protobuf.BoolValue value) { + if (isSelfEmployedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + isSelfEmployed_ = value; + onChanged(); + } else { + isSelfEmployedBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If this employment is self-employed.
+     * 
+ * + * .google.protobuf.BoolValue is_self_employed = 9; + */ + public Builder setIsSelfEmployed(com.google.protobuf.BoolValue.Builder builderForValue) { + if (isSelfEmployedBuilder_ == null) { + isSelfEmployed_ = builderForValue.build(); + onChanged(); + } else { + isSelfEmployedBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If this employment is self-employed.
+     * 
+ * + * .google.protobuf.BoolValue is_self_employed = 9; + */ + public Builder mergeIsSelfEmployed(com.google.protobuf.BoolValue value) { + if (isSelfEmployedBuilder_ == null) { + if (isSelfEmployed_ != null) { + isSelfEmployed_ = + com.google.protobuf.BoolValue.newBuilder(isSelfEmployed_) + .mergeFrom(value) + .buildPartial(); + } else { + isSelfEmployed_ = value; + } + onChanged(); + } else { + isSelfEmployedBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If this employment is self-employed.
+     * 
+ * + * .google.protobuf.BoolValue is_self_employed = 9; + */ + public Builder clearIsSelfEmployed() { + if (isSelfEmployedBuilder_ == null) { + isSelfEmployed_ = null; + onChanged(); + } else { + isSelfEmployed_ = null; + isSelfEmployedBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If this employment is self-employed.
+     * 
+ * + * .google.protobuf.BoolValue is_self_employed = 9; + */ + public com.google.protobuf.BoolValue.Builder getIsSelfEmployedBuilder() { + + onChanged(); + return getIsSelfEmployedFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * If this employment is self-employed.
+     * 
+ * + * .google.protobuf.BoolValue is_self_employed = 9; + */ + public com.google.protobuf.BoolValueOrBuilder getIsSelfEmployedOrBuilder() { + if (isSelfEmployedBuilder_ != null) { + return isSelfEmployedBuilder_.getMessageOrBuilder(); + } else { + return isSelfEmployed_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : isSelfEmployed_; + } + } + /** + * + * + *
+     * Optional.
+     * If this employment is self-employed.
+     * 
+ * + * .google.protobuf.BoolValue is_self_employed = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getIsSelfEmployedFieldBuilder() { + if (isSelfEmployedBuilder_ == null) { + isSelfEmployedBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getIsSelfEmployed(), getParentForChildren(), isClean()); + isSelfEmployed_ = null; + } + return isSelfEmployedBuilder_; + } + + private com.google.protobuf.BoolValue isCurrent_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + isCurrentBuilder_; + /** + * + * + *
+     * Optional.
+     * If this employment is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 10; + */ + public boolean hasIsCurrent() { + return isCurrentBuilder_ != null || isCurrent_ != null; + } + /** + * + * + *
+     * Optional.
+     * If this employment is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 10; + */ + public com.google.protobuf.BoolValue getIsCurrent() { + if (isCurrentBuilder_ == null) { + return isCurrent_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isCurrent_; + } else { + return isCurrentBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * If this employment is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 10; + */ + public Builder setIsCurrent(com.google.protobuf.BoolValue value) { + if (isCurrentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + isCurrent_ = value; + onChanged(); + } else { + isCurrentBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If this employment is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 10; + */ + public Builder setIsCurrent(com.google.protobuf.BoolValue.Builder builderForValue) { + if (isCurrentBuilder_ == null) { + isCurrent_ = builderForValue.build(); + onChanged(); + } else { + isCurrentBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If this employment is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 10; + */ + public Builder mergeIsCurrent(com.google.protobuf.BoolValue value) { + if (isCurrentBuilder_ == null) { + if (isCurrent_ != null) { + isCurrent_ = + com.google.protobuf.BoolValue.newBuilder(isCurrent_).mergeFrom(value).buildPartial(); + } else { + isCurrent_ = value; + } + onChanged(); + } else { + isCurrentBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If this employment is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 10; + */ + public Builder clearIsCurrent() { + if (isCurrentBuilder_ == null) { + isCurrent_ = null; + onChanged(); + } else { + isCurrent_ = null; + isCurrentBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If this employment is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 10; + */ + public com.google.protobuf.BoolValue.Builder getIsCurrentBuilder() { + + onChanged(); + return getIsCurrentFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * If this employment is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 10; + */ + public com.google.protobuf.BoolValueOrBuilder getIsCurrentOrBuilder() { + if (isCurrentBuilder_ != null) { + return isCurrentBuilder_.getMessageOrBuilder(); + } else { + return isCurrent_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isCurrent_; + } + } + /** + * + * + *
+     * Optional.
+     * If this employment is current.
+     * 
+ * + * .google.protobuf.BoolValue is_current = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getIsCurrentFieldBuilder() { + if (isCurrentBuilder_ == null) { + isCurrentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getIsCurrent(), getParentForChildren(), isClean()); + isCurrent_ = null; + } + return isCurrentBuilder_; + } + + private java.lang.Object jobTitleSnippet_ = ""; + /** + * + * + *
+     * Output only. The job title snippet shows how the
+     * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] is
+     * related to a search query. It's empty if the
+     * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] isn't
+     * related to the search query.
+     * 
+ * + * string job_title_snippet = 11; + */ + public java.lang.String getJobTitleSnippet() { + java.lang.Object ref = jobTitleSnippet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobTitleSnippet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The job title snippet shows how the
+     * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] is
+     * related to a search query. It's empty if the
+     * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] isn't
+     * related to the search query.
+     * 
+ * + * string job_title_snippet = 11; + */ + public com.google.protobuf.ByteString getJobTitleSnippetBytes() { + java.lang.Object ref = jobTitleSnippet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobTitleSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The job title snippet shows how the
+     * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] is
+     * related to a search query. It's empty if the
+     * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] isn't
+     * related to the search query.
+     * 
+ * + * string job_title_snippet = 11; + */ + public Builder setJobTitleSnippet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jobTitleSnippet_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The job title snippet shows how the
+     * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] is
+     * related to a search query. It's empty if the
+     * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] isn't
+     * related to the search query.
+     * 
+ * + * string job_title_snippet = 11; + */ + public Builder clearJobTitleSnippet() { + + jobTitleSnippet_ = getDefaultInstance().getJobTitleSnippet(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The job title snippet shows how the
+     * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] is
+     * related to a search query. It's empty if the
+     * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] isn't
+     * related to the search query.
+     * 
+ * + * string job_title_snippet = 11; + */ + public Builder setJobTitleSnippetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jobTitleSnippet_ = value; + onChanged(); + return this; + } + + private java.lang.Object jobDescriptionSnippet_ = ""; + /** + * + * + *
+     * Output only. The job description snippet shows how the
+     * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+     * is related to a search query. It's empty if the
+     * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+     * isn't related to the search query.
+     * 
+ * + * string job_description_snippet = 12; + */ + public java.lang.String getJobDescriptionSnippet() { + java.lang.Object ref = jobDescriptionSnippet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobDescriptionSnippet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The job description snippet shows how the
+     * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+     * is related to a search query. It's empty if the
+     * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+     * isn't related to the search query.
+     * 
+ * + * string job_description_snippet = 12; + */ + public com.google.protobuf.ByteString getJobDescriptionSnippetBytes() { + java.lang.Object ref = jobDescriptionSnippet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobDescriptionSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The job description snippet shows how the
+     * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+     * is related to a search query. It's empty if the
+     * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+     * isn't related to the search query.
+     * 
+ * + * string job_description_snippet = 12; + */ + public Builder setJobDescriptionSnippet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jobDescriptionSnippet_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The job description snippet shows how the
+     * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+     * is related to a search query. It's empty if the
+     * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+     * isn't related to the search query.
+     * 
+ * + * string job_description_snippet = 12; + */ + public Builder clearJobDescriptionSnippet() { + + jobDescriptionSnippet_ = getDefaultInstance().getJobDescriptionSnippet(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The job description snippet shows how the
+     * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+     * is related to a search query. It's empty if the
+     * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+     * isn't related to the search query.
+     * 
+ * + * string job_description_snippet = 12; + */ + public Builder setJobDescriptionSnippetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jobDescriptionSnippet_ = value; + onChanged(); + return this; + } + + private java.lang.Object employerNameSnippet_ = ""; + /** + * + * + *
+     * Output only. The employer name snippet shows how the
+     * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+     * is related to a search query. It's empty if the
+     * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+     * isn't related to the search query.
+     * 
+ * + * string employer_name_snippet = 13; + */ + public java.lang.String getEmployerNameSnippet() { + java.lang.Object ref = employerNameSnippet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + employerNameSnippet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The employer name snippet shows how the
+     * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+     * is related to a search query. It's empty if the
+     * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+     * isn't related to the search query.
+     * 
+ * + * string employer_name_snippet = 13; + */ + public com.google.protobuf.ByteString getEmployerNameSnippetBytes() { + java.lang.Object ref = employerNameSnippet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + employerNameSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The employer name snippet shows how the
+     * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+     * is related to a search query. It's empty if the
+     * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+     * isn't related to the search query.
+     * 
+ * + * string employer_name_snippet = 13; + */ + public Builder setEmployerNameSnippet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + employerNameSnippet_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The employer name snippet shows how the
+     * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+     * is related to a search query. It's empty if the
+     * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+     * isn't related to the search query.
+     * 
+ * + * string employer_name_snippet = 13; + */ + public Builder clearEmployerNameSnippet() { + + employerNameSnippet_ = getDefaultInstance().getEmployerNameSnippet(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The employer name snippet shows how the
+     * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+     * is related to a search query. It's empty if the
+     * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+     * isn't related to the search query.
+     * 
+ * + * string employer_name_snippet = 13; + */ + public Builder setEmployerNameSnippetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + employerNameSnippet_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.EmploymentRecord) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.EmploymentRecord) + private static final com.google.cloud.talent.v4beta1.EmploymentRecord DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.EmploymentRecord(); + } + + public static com.google.cloud.talent.v4beta1.EmploymentRecord getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EmploymentRecord parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EmploymentRecord(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.EmploymentRecord getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmploymentRecordOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmploymentRecordOrBuilder.java new file mode 100644 index 000000000000..547750279263 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmploymentRecordOrBuilder.java @@ -0,0 +1,440 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public interface EmploymentRecordOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.EmploymentRecord) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * Start date of the employment.
+   * It can be a partial date (only year, or only year and month), but must be
+   * valid. Otherwise an error is thrown.
+   * Examples:
+   * {"year": 2017, "month": 2, "day": 28} is valid.
+   * {"year": 2020, "month": 1, "date": 31} is valid.
+   * {"year": 2018, "month": 12} is valid (partial date).
+   * {"year": 2018} is valid (partial date).
+   * {"year": 2015, "day": 21} is not valid (month is missing but day is
+   * presented).
+   * {"year": 2018, "month": 13} is not valid (invalid month).
+   * {"year": 2017, "month": 1, "day": 32} is not valid (invalid day).
+   * 
+ * + * .google.type.Date start_date = 1; + */ + boolean hasStartDate(); + /** + * + * + *
+   * Optional.
+   * Start date of the employment.
+   * It can be a partial date (only year, or only year and month), but must be
+   * valid. Otherwise an error is thrown.
+   * Examples:
+   * {"year": 2017, "month": 2, "day": 28} is valid.
+   * {"year": 2020, "month": 1, "date": 31} is valid.
+   * {"year": 2018, "month": 12} is valid (partial date).
+   * {"year": 2018} is valid (partial date).
+   * {"year": 2015, "day": 21} is not valid (month is missing but day is
+   * presented).
+   * {"year": 2018, "month": 13} is not valid (invalid month).
+   * {"year": 2017, "month": 1, "day": 32} is not valid (invalid day).
+   * 
+ * + * .google.type.Date start_date = 1; + */ + com.google.type.Date getStartDate(); + /** + * + * + *
+   * Optional.
+   * Start date of the employment.
+   * It can be a partial date (only year, or only year and month), but must be
+   * valid. Otherwise an error is thrown.
+   * Examples:
+   * {"year": 2017, "month": 2, "day": 28} is valid.
+   * {"year": 2020, "month": 1, "date": 31} is valid.
+   * {"year": 2018, "month": 12} is valid (partial date).
+   * {"year": 2018} is valid (partial date).
+   * {"year": 2015, "day": 21} is not valid (month is missing but day is
+   * presented).
+   * {"year": 2018, "month": 13} is not valid (invalid month).
+   * {"year": 2017, "month": 1, "day": 32} is not valid (invalid day).
+   * 
+ * + * .google.type.Date start_date = 1; + */ + com.google.type.DateOrBuilder getStartDateOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * End date of the employment.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + boolean hasEndDate(); + /** + * + * + *
+   * Optional.
+   * End date of the employment.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + com.google.type.Date getEndDate(); + /** + * + * + *
+   * Optional.
+   * End date of the employment.
+   * 
+ * + * .google.type.Date end_date = 2; + */ + com.google.type.DateOrBuilder getEndDateOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The name of the employer company/organization.
+   * For example, "Google", "Alphabet", etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string employer_name = 3; + */ + java.lang.String getEmployerName(); + /** + * + * + *
+   * Optional.
+   * The name of the employer company/organization.
+   * For example, "Google", "Alphabet", etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string employer_name = 3; + */ + com.google.protobuf.ByteString getEmployerNameBytes(); + + /** + * + * + *
+   * Optional.
+   * The division name of the employment.
+   * For example, division, department, client, etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string division_name = 4; + */ + java.lang.String getDivisionName(); + /** + * + * + *
+   * Optional.
+   * The division name of the employment.
+   * For example, division, department, client, etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string division_name = 4; + */ + com.google.protobuf.ByteString getDivisionNameBytes(); + + /** + * + * + *
+   * Optional.
+   * The physical address of the employer.
+   * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + boolean hasAddress(); + /** + * + * + *
+   * Optional.
+   * The physical address of the employer.
+   * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + com.google.cloud.talent.v4beta1.Address getAddress(); + /** + * + * + *
+   * Optional.
+   * The physical address of the employer.
+   * 
+ * + * .google.cloud.talent.v4beta1.Address address = 5; + */ + com.google.cloud.talent.v4beta1.AddressOrBuilder getAddressOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The job title of the employment.
+   * For example, "Software Engineer", "Data Scientist", etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string job_title = 6; + */ + java.lang.String getJobTitle(); + /** + * + * + *
+   * Optional.
+   * The job title of the employment.
+   * For example, "Software Engineer", "Data Scientist", etc.
+   * Number of characters allowed is 100.
+   * 
+ * + * string job_title = 6; + */ + com.google.protobuf.ByteString getJobTitleBytes(); + + /** + * + * + *
+   * Optional.
+   * The description of job content.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string job_description = 7; + */ + java.lang.String getJobDescription(); + /** + * + * + *
+   * Optional.
+   * The description of job content.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string job_description = 7; + */ + com.google.protobuf.ByteString getJobDescriptionBytes(); + + /** + * + * + *
+   * Optional.
+   * If it's a supervised position.
+   * 
+ * + * .google.protobuf.BoolValue is_supervised_position = 8; + */ + boolean hasIsSupervisedPosition(); + /** + * + * + *
+   * Optional.
+   * If it's a supervised position.
+   * 
+ * + * .google.protobuf.BoolValue is_supervised_position = 8; + */ + com.google.protobuf.BoolValue getIsSupervisedPosition(); + /** + * + * + *
+   * Optional.
+   * If it's a supervised position.
+   * 
+ * + * .google.protobuf.BoolValue is_supervised_position = 8; + */ + com.google.protobuf.BoolValueOrBuilder getIsSupervisedPositionOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * If this employment is self-employed.
+   * 
+ * + * .google.protobuf.BoolValue is_self_employed = 9; + */ + boolean hasIsSelfEmployed(); + /** + * + * + *
+   * Optional.
+   * If this employment is self-employed.
+   * 
+ * + * .google.protobuf.BoolValue is_self_employed = 9; + */ + com.google.protobuf.BoolValue getIsSelfEmployed(); + /** + * + * + *
+   * Optional.
+   * If this employment is self-employed.
+   * 
+ * + * .google.protobuf.BoolValue is_self_employed = 9; + */ + com.google.protobuf.BoolValueOrBuilder getIsSelfEmployedOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * If this employment is current.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 10; + */ + boolean hasIsCurrent(); + /** + * + * + *
+   * Optional.
+   * If this employment is current.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 10; + */ + com.google.protobuf.BoolValue getIsCurrent(); + /** + * + * + *
+   * Optional.
+   * If this employment is current.
+   * 
+ * + * .google.protobuf.BoolValue is_current = 10; + */ + com.google.protobuf.BoolValueOrBuilder getIsCurrentOrBuilder(); + + /** + * + * + *
+   * Output only. The job title snippet shows how the
+   * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] is
+   * related to a search query. It's empty if the
+   * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] isn't
+   * related to the search query.
+   * 
+ * + * string job_title_snippet = 11; + */ + java.lang.String getJobTitleSnippet(); + /** + * + * + *
+   * Output only. The job title snippet shows how the
+   * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] is
+   * related to a search query. It's empty if the
+   * [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] isn't
+   * related to the search query.
+   * 
+ * + * string job_title_snippet = 11; + */ + com.google.protobuf.ByteString getJobTitleSnippetBytes(); + + /** + * + * + *
+   * Output only. The job description snippet shows how the
+   * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+   * is related to a search query. It's empty if the
+   * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+   * isn't related to the search query.
+   * 
+ * + * string job_description_snippet = 12; + */ + java.lang.String getJobDescriptionSnippet(); + /** + * + * + *
+   * Output only. The job description snippet shows how the
+   * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+   * is related to a search query. It's empty if the
+   * [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description]
+   * isn't related to the search query.
+   * 
+ * + * string job_description_snippet = 12; + */ + com.google.protobuf.ByteString getJobDescriptionSnippetBytes(); + + /** + * + * + *
+   * Output only. The employer name snippet shows how the
+   * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+   * is related to a search query. It's empty if the
+   * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+   * isn't related to the search query.
+   * 
+ * + * string employer_name_snippet = 13; + */ + java.lang.String getEmployerNameSnippet(); + /** + * + * + *
+   * Output only. The employer name snippet shows how the
+   * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+   * is related to a search query. It's empty if the
+   * [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name]
+   * isn't related to the search query.
+   * 
+ * + * string employer_name_snippet = 13; + */ + com.google.protobuf.ByteString getEmployerNameSnippetBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmploymentType.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmploymentType.java new file mode 100644 index 000000000000..60faba65a7ca --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmploymentType.java @@ -0,0 +1,353 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * An enum that represents the employment type of a job.
+ * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.EmploymentType} + */ +public enum EmploymentType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * The default value if the employment type isn't specified.
+   * 
+ * + * EMPLOYMENT_TYPE_UNSPECIFIED = 0; + */ + EMPLOYMENT_TYPE_UNSPECIFIED(0), + /** + * + * + *
+   * The job requires working a number of hours that constitute full
+   * time employment, typically 40 or more hours per week.
+   * 
+ * + * FULL_TIME = 1; + */ + FULL_TIME(1), + /** + * + * + *
+   * The job entails working fewer hours than a full time job,
+   * typically less than 40 hours a week.
+   * 
+ * + * PART_TIME = 2; + */ + PART_TIME(2), + /** + * + * + *
+   * The job is offered as a contracted, as opposed to a salaried employee,
+   * position.
+   * 
+ * + * CONTRACTOR = 3; + */ + CONTRACTOR(3), + /** + * + * + *
+   * The job is offered as a contracted position with the understanding
+   * that it's converted into a full-time position at the end of the
+   * contract. Jobs of this type are also returned by a search for
+   * [EmploymentType.CONTRACTOR][google.cloud.talent.v4beta1.EmploymentType.CONTRACTOR]
+   * jobs.
+   * 
+ * + * CONTRACT_TO_HIRE = 4; + */ + CONTRACT_TO_HIRE(4), + /** + * + * + *
+   * The job is offered as a temporary employment opportunity, usually
+   * a short-term engagement.
+   * 
+ * + * TEMPORARY = 5; + */ + TEMPORARY(5), + /** + * + * + *
+   * The job is a fixed-term opportunity for students or entry-level job
+   * seekers to obtain on-the-job training, typically offered as a summer
+   * position.
+   * 
+ * + * INTERN = 6; + */ + INTERN(6), + /** + * + * + *
+   * The is an opportunity for an individual to volunteer, where there's no
+   * expectation of compensation for the provided services.
+   * 
+ * + * VOLUNTEER = 7; + */ + VOLUNTEER(7), + /** + * + * + *
+   * The job requires an employee to work on an as-needed basis with a
+   * flexible schedule.
+   * 
+ * + * PER_DIEM = 8; + */ + PER_DIEM(8), + /** + * + * + *
+   * The job involves employing people in remote areas and flying them
+   * temporarily to the work site instead of relocating employees and their
+   * families permanently.
+   * 
+ * + * FLY_IN_FLY_OUT = 9; + */ + FLY_IN_FLY_OUT(9), + /** + * + * + *
+   * The job does not fit any of the other listed types.
+   * 
+ * + * OTHER_EMPLOYMENT_TYPE = 10; + */ + OTHER_EMPLOYMENT_TYPE(10), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * The default value if the employment type isn't specified.
+   * 
+ * + * EMPLOYMENT_TYPE_UNSPECIFIED = 0; + */ + public static final int EMPLOYMENT_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * The job requires working a number of hours that constitute full
+   * time employment, typically 40 or more hours per week.
+   * 
+ * + * FULL_TIME = 1; + */ + public static final int FULL_TIME_VALUE = 1; + /** + * + * + *
+   * The job entails working fewer hours than a full time job,
+   * typically less than 40 hours a week.
+   * 
+ * + * PART_TIME = 2; + */ + public static final int PART_TIME_VALUE = 2; + /** + * + * + *
+   * The job is offered as a contracted, as opposed to a salaried employee,
+   * position.
+   * 
+ * + * CONTRACTOR = 3; + */ + public static final int CONTRACTOR_VALUE = 3; + /** + * + * + *
+   * The job is offered as a contracted position with the understanding
+   * that it's converted into a full-time position at the end of the
+   * contract. Jobs of this type are also returned by a search for
+   * [EmploymentType.CONTRACTOR][google.cloud.talent.v4beta1.EmploymentType.CONTRACTOR]
+   * jobs.
+   * 
+ * + * CONTRACT_TO_HIRE = 4; + */ + public static final int CONTRACT_TO_HIRE_VALUE = 4; + /** + * + * + *
+   * The job is offered as a temporary employment opportunity, usually
+   * a short-term engagement.
+   * 
+ * + * TEMPORARY = 5; + */ + public static final int TEMPORARY_VALUE = 5; + /** + * + * + *
+   * The job is a fixed-term opportunity for students or entry-level job
+   * seekers to obtain on-the-job training, typically offered as a summer
+   * position.
+   * 
+ * + * INTERN = 6; + */ + public static final int INTERN_VALUE = 6; + /** + * + * + *
+   * The is an opportunity for an individual to volunteer, where there's no
+   * expectation of compensation for the provided services.
+   * 
+ * + * VOLUNTEER = 7; + */ + public static final int VOLUNTEER_VALUE = 7; + /** + * + * + *
+   * The job requires an employee to work on an as-needed basis with a
+   * flexible schedule.
+   * 
+ * + * PER_DIEM = 8; + */ + public static final int PER_DIEM_VALUE = 8; + /** + * + * + *
+   * The job involves employing people in remote areas and flying them
+   * temporarily to the work site instead of relocating employees and their
+   * families permanently.
+   * 
+ * + * FLY_IN_FLY_OUT = 9; + */ + public static final int FLY_IN_FLY_OUT_VALUE = 9; + /** + * + * + *
+   * The job does not fit any of the other listed types.
+   * 
+ * + * OTHER_EMPLOYMENT_TYPE = 10; + */ + public static final int OTHER_EMPLOYMENT_TYPE_VALUE = 10; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static EmploymentType valueOf(int value) { + return forNumber(value); + } + + public static EmploymentType forNumber(int value) { + switch (value) { + case 0: + return EMPLOYMENT_TYPE_UNSPECIFIED; + case 1: + return FULL_TIME; + case 2: + return PART_TIME; + case 3: + return CONTRACTOR; + case 4: + return CONTRACT_TO_HIRE; + case 5: + return TEMPORARY; + case 6: + return INTERN; + case 7: + return VOLUNTEER; + case 8: + return PER_DIEM; + case 9: + return FLY_IN_FLY_OUT; + case 10: + return OTHER_EMPLOYMENT_TYPE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public EmploymentType findValueByNumber(int number) { + return EmploymentType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto.getDescriptor().getEnumTypes().get(3); + } + + private static final EmploymentType[] VALUES = values(); + + public static EmploymentType 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()]; + } + + private final int value; + + private EmploymentType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.EmploymentType) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EventProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EventProto.java new file mode 100644 index 000000000000..103263f5aae9 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EventProto.java @@ -0,0 +1,137 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/event.proto + +package com.google.cloud.talent.v4beta1; + +public final class EventProto { + private EventProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ClientEvent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ClientEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ClientEvent_ExtraInfoEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ClientEvent_ExtraInfoEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_JobEvent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_JobEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ProfileEvent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ProfileEvent_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n\'google/cloud/talent/v4beta1/event.prot" + + "o\022\033google.cloud.talent.v4beta1\032\034google/a" + + "pi/annotations.proto\032\037google/protobuf/ti" + + "mestamp.proto\"\354\002\n\013ClientEvent\022\022\n\nrequest" + + "_id\030\001 \001(\t\022\020\n\010event_id\030\002 \001(\t\022/\n\013create_ti" + + "me\030\004 \001(\0132\032.google.protobuf.Timestamp\022:\n\t" + + "job_event\030\005 \001(\0132%.google.cloud.talent.v4" + + "beta1.JobEventH\000\022B\n\rprofile_event\030\006 \001(\0132" + + ").google.cloud.talent.v4beta1.ProfileEve" + + "ntH\000\022K\n\nextra_info\030\007 \003(\01327.google.cloud." + + "talent.v4beta1.ClientEvent.ExtraInfoEntr" + + "y\0320\n\016ExtraInfoEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + + "e\030\002 \001(\t:\0028\001B\007\n\005event\"\357\003\n\010JobEvent\022@\n\004typ" + + "e\030\001 \001(\01622.google.cloud.talent.v4beta1.Jo" + + "bEvent.JobEventType\022\014\n\004jobs\030\002 \003(\t\"\222\003\n\014Jo" + + "bEventType\022\036\n\032JOB_EVENT_TYPE_UNSPECIFIED" + + "\020\000\022\016\n\nIMPRESSION\020\001\022\010\n\004VIEW\020\002\022\021\n\rVIEW_RED" + + "IRECT\020\003\022\025\n\021APPLICATION_START\020\004\022\026\n\022APPLIC" + + "ATION_FINISH\020\005\022 \n\034APPLICATION_QUICK_SUBM" + + "ISSION\020\006\022\030\n\024APPLICATION_REDIRECT\020\007\022!\n\035AP" + + "PLICATION_START_FROM_SEARCH\020\010\022$\n APPLICA" + + "TION_REDIRECT_FROM_SEARCH\020\t\022\036\n\032APPLICATI" + + "ON_COMPANY_SUBMIT\020\n\022\014\n\010BOOKMARK\020\013\022\020\n\014NOT" + + "IFICATION\020\014\022\t\n\005HIRED\020\r\022\013\n\007SENT_CV\020\016\022\025\n\021I" + + "NTERVIEW_GRANTED\020\017\022\022\n\016NOT_INTERESTED\020\020\"\361" + + "\002\n\014ProfileEvent\022H\n\004type\030\001 \001(\0162:.google.c" + + "loud.talent.v4beta1.ProfileEvent.Profile" + + "EventType\022\020\n\010profiles\030\002 \003(\t\022\016\n\006job_id\030\003 " + + "\001(\t\"\364\001\n\020ProfileEventType\022\"\n\036PROFILE_EVEN" + + "T_TYPE_UNSPECIFIED\020\000\022\016\n\nIMPRESSION\020\001\022\010\n\004" + + "VIEW\020\002\022\014\n\010BOOKMARK\020\003\022\021\n\rCOMMENT_ADDED\020\004\022" + + "\016\n\nEMAIL_SENT\020\005\022\021\n\rRESUME_VIEWED\020\006\022\016\n\nAD" + + "D_TO_JOB\020\007\022 \n\034POSITIVE_REACTION_TO_PROFI" + + "LE\020\010\022 \n\034NEGATIVE_REACTION_TO_PROFILE\020\t\022\n" + + "\n\006SCREEN\020\nBx\n\037com.google.cloud.talent.v4" + + "beta1B\nEventProtoP\001ZAgoogle.golang.org/g" + + "enproto/googleapis/cloud/talent/v4beta1;" + + "talent\242\002\003CTSb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_talent_v4beta1_ClientEvent_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_talent_v4beta1_ClientEvent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ClientEvent_descriptor, + new java.lang.String[] { + "RequestId", + "EventId", + "CreateTime", + "JobEvent", + "ProfileEvent", + "ExtraInfo", + "Event", + }); + internal_static_google_cloud_talent_v4beta1_ClientEvent_ExtraInfoEntry_descriptor = + internal_static_google_cloud_talent_v4beta1_ClientEvent_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_talent_v4beta1_ClientEvent_ExtraInfoEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ClientEvent_ExtraInfoEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_talent_v4beta1_JobEvent_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_talent_v4beta1_JobEvent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_JobEvent_descriptor, + new java.lang.String[] { + "Type", "Jobs", + }); + internal_static_google_cloud_talent_v4beta1_ProfileEvent_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_talent_v4beta1_ProfileEvent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ProfileEvent_descriptor, + new java.lang.String[] { + "Type", "Profiles", "JobId", + }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EventServiceProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EventServiceProto.java new file mode 100644 index 000000000000..0cf1c3a2ed60 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EventServiceProto.java @@ -0,0 +1,77 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/event_service.proto + +package com.google.cloud.talent.v4beta1; + +public final class EventServiceProto { + private EventServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_CreateClientEventRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_CreateClientEventRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n/google/cloud/talent/v4beta1/event_serv" + + "ice.proto\022\033google.cloud.talent.v4beta1\032\034" + + "google/api/annotations.proto\032\'google/clo" + + "ud/talent/v4beta1/event.proto\"j\n\030CreateC" + + "lientEventRequest\022\016\n\006parent\030\001 \001(\t\022>\n\014cli" + + "ent_event\030\002 \001(\0132(.google.cloud.talent.v4" + + "beta1.ClientEvent2\273\001\n\014EventService\022\252\001\n\021C" + + "reateClientEvent\0225.google.cloud.talent.v" + + "4beta1.CreateClientEventRequest\032(.google" + + ".cloud.talent.v4beta1.ClientEvent\"4\202\323\344\223\002" + + ".\")/v4beta1/{parent=projects/*}/clientEv" + + "ents:\001*B\177\n\037com.google.cloud.talent.v4bet" + + "a1B\021EventServiceProtoP\001ZAgoogle.golang.o" + + "rg/genproto/googleapis/cloud/talent/v4be" + + "ta1;talent\242\002\003CTSb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.talent.v4beta1.EventProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_talent_v4beta1_CreateClientEventRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_talent_v4beta1_CreateClientEventRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_CreateClientEventRequest_descriptor, + new java.lang.String[] { + "Parent", "ClientEvent", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.AnnotationsProto.http); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.talent.v4beta1.EventProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/FiltersProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/FiltersProto.java new file mode 100644 index 000000000000..c7d13f936a44 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/FiltersProto.java @@ -0,0 +1,412 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +public final class FiltersProto { + private FiltersProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_JobQuery_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_JobQuery_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ProfileQuery_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ProfileQuery_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_LocationFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_LocationFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_CompensationFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_CompensationFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_CommuteFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_CommuteFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_JobTitleFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_JobTitleFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_SkillFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_SkillFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_EmployerFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_EmployerFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_EducationFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_EducationFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_WorkExperienceFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_WorkExperienceFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ApplicationDateFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ApplicationDateFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeReasonFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeReasonFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ApplicationLastStageFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ApplicationLastStageFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ApplicationJobFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ApplicationJobFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ApplicationStatusFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ApplicationStatusFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_TimeFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_TimeFilter_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n)google/cloud/talent/v4beta1/filters.pr" + + "oto\022\033google.cloud.talent.v4beta1\032\034google" + + "/api/annotations.proto\032(google/cloud/tal" + + "ent/v4beta1/common.proto\032%google/cloud/t" + + "alent/v4beta1/job.proto\032)google/cloud/ta" + + "lent/v4beta1/profile.proto\032\036google/proto" + + "buf/duration.proto\032\037google/protobuf/time" + + "stamp.proto\032\036google/protobuf/wrappers.pr" + + "oto\032\026google/type/date.proto\032\030google/type" + + "/latlng.proto\032\033google/type/timeofday.pro" + + "to\"\347\004\n\010JobQuery\022\r\n\005query\030\001 \001(\t\022\025\n\rcompan" + + "y_names\030\002 \003(\t\022E\n\020location_filters\030\003 \003(\0132" + + "+.google.cloud.talent.v4beta1.LocationFi" + + "lter\022@\n\016job_categories\030\004 \003(\0162(.google.cl" + + "oud.talent.v4beta1.JobCategory\022B\n\016commut" + + "e_filter\030\005 \001(\0132*.google.cloud.talent.v4b" + + "eta1.CommuteFilter\022\035\n\025company_display_na" + + "mes\030\006 \003(\t\022L\n\023compensation_filter\030\007 \001(\0132/" + + ".google.cloud.talent.v4beta1.Compensatio" + + "nFilter\022\037\n\027custom_attribute_filter\030\010 \001(\t" + + "\022\033\n\023disable_spell_check\030\t \001(\010\022E\n\020employm" + + "ent_types\030\n \003(\0162+.google.cloud.talent.v4" + + "beta1.EmploymentType\022\026\n\016language_codes\030\013" + + " \003(\t\022G\n\022publish_time_range\030\014 \001(\0132+.googl" + + "e.cloud.talent.v4beta1.TimestampRange\022\025\n" + + "\rexcluded_jobs\030\r \003(\t\"\256\010\n\014ProfileQuery\022\r\n" + + "\005query\030\001 \001(\t\022E\n\020location_filters\030\002 \003(\0132+" + + ".google.cloud.talent.v4beta1.LocationFil" + + "ter\022F\n\021job_title_filters\030\003 \003(\0132+.google." + + "cloud.talent.v4beta1.JobTitleFilter\022E\n\020e" + + "mployer_filters\030\004 \003(\0132+.google.cloud.tal" + + "ent.v4beta1.EmployerFilter\022G\n\021education_" + + "filters\030\005 \003(\0132,.google.cloud.talent.v4be" + + "ta1.EducationFilter\022?\n\rskill_filters\030\006 \003" + + "(\0132(.google.cloud.talent.v4beta1.SkillFi" + + "lter\022Q\n\026work_experience_filter\030\007 \003(\01321.g" + + "oogle.cloud.talent.v4beta1.WorkExperienc" + + "eFilter\022=\n\014time_filters\030\010 \003(\0132\'.google.c" + + "loud.talent.v4beta1.TimeFilter\0222\n\016hirabl" + + "e_filter\030\t \001(\0132\032.google.protobuf.BoolVal" + + "ue\022T\n\030application_date_filters\030\n \003(\01322.g" + + "oogle.cloud.talent.v4beta1.ApplicationDa" + + "teFilter\022g\n\"application_outcome_reason_f" + + "ilters\030\013 \003(\0132;.google.cloud.talent.v4bet" + + "a1.ApplicationOutcomeReasonFilter\022_\n\036app" + + "lication_last_stage_filters\030\014 \003(\01327.goog" + + "le.cloud.talent.v4beta1.ApplicationLastS" + + "tageFilter\022R\n\027application_job_filters\030\r " + + "\003(\01321.google.cloud.talent.v4beta1.Applic" + + "ationJobFilter\022X\n\032application_status_fil" + + "ters\030\016 \003(\01324.google.cloud.talent.v4beta1" + + ".ApplicationStatusFilter\022\033\n\023custom_field" + + "_filter\030\017 \001(\t\"\337\002\n\016LocationFilter\022\017\n\007addr" + + "ess\030\001 \001(\t\022\023\n\013region_code\030\002 \001(\t\022$\n\007lat_ln" + + "g\030\003 \001(\0132\023.google.type.LatLng\022\031\n\021distance" + + "_in_miles\030\004 \001(\001\022a\n\026telecommute_preferenc" + + "e\030\005 \001(\0162A.google.cloud.talent.v4beta1.Lo" + + "cationFilter.TelecommutePreference\022\017\n\007ne" + + "gated\030\006 \001(\010\"r\n\025TelecommutePreference\022&\n\"" + + "TELECOMMUTE_PREFERENCE_UNSPECIFIED\020\000\022\030\n\024" + + "TELECOMMUTE_EXCLUDED\020\001\022\027\n\023TELECOMMUTE_AL" + + "LOWED\020\002\"\300\003\n\022CompensationFilter\022H\n\004type\030\001" + + " \001(\0162:.google.cloud.talent.v4beta1.Compe" + + "nsationFilter.FilterType\022M\n\005units\030\002 \003(\0162" + + ">.google.cloud.talent.v4beta1.Compensati" + + "onInfo.CompensationUnit\022N\n\005range\030\003 \001(\0132?" + + ".google.cloud.talent.v4beta1.Compensatio" + + "nInfo.CompensationRange\0228\n0include_jobs_" + + "with_unspecified_compensation_range\030\004 \001(" + + "\010\"\206\001\n\nFilterType\022\033\n\027FILTER_TYPE_UNSPECIF" + + "IED\020\000\022\r\n\tUNIT_ONLY\020\001\022\023\n\017UNIT_AND_AMOUNT\020" + + "\002\022\032\n\026ANNUALIZED_BASE_AMOUNT\020\003\022\033\n\027ANNUALI" + + "ZED_TOTAL_AMOUNT\020\004\"\274\003\n\rCommuteFilter\022B\n\016" + + "commute_method\030\001 \001(\0162*.google.cloud.tale" + + "nt.v4beta1.CommuteMethod\022.\n\021start_coordi" + + "nates\030\002 \001(\0132\023.google.type.LatLng\0222\n\017trav" + + "el_duration\030\003 \001(\0132\031.google.protobuf.Dura" + + "tion\022!\n\031allow_imprecise_addresses\030\004 \001(\010\022" + + "N\n\014road_traffic\030\005 \001(\01626.google.cloud.tal" + + "ent.v4beta1.CommuteFilter.RoadTrafficH\000\022" + + "0\n\016departure_time\030\006 \001(\0132\026.google.type.Ti" + + "meOfDayH\000\"L\n\013RoadTraffic\022\034\n\030ROAD_TRAFFIC" + + "_UNSPECIFIED\020\000\022\020\n\014TRAFFIC_FREE\020\001\022\r\n\tBUSY" + + "_HOUR\020\002B\020\n\016traffic_option\"4\n\016JobTitleFil" + + "ter\022\021\n\tjob_title\030\001 \001(\t\022\017\n\007negated\030\002 \001(\010\"" + + "-\n\013SkillFilter\022\r\n\005skill\030\001 \001(\t\022\017\n\007negated" + + "\030\002 \001(\010\"\241\002\n\016EmployerFilter\022\020\n\010employer\030\001 " + + "\001(\t\022L\n\004mode\030\002 \001(\0162>.google.cloud.talent." + + "v4beta1.EmployerFilter.EmployerFilterMod" + + "e\022\017\n\007negated\030\003 \001(\010\"\235\001\n\022EmployerFilterMod" + + "e\022$\n EMPLOYER_FILTER_MODE_UNSPECIFIED\020\000\022" + + "\032\n\026ALL_EMPLOYMENT_RECORDS\020\001\022#\n\037CURRENT_E" + + "MPLOYMENT_RECORDS_ONLY\020\002\022 \n\034PAST_EMPLOYM" + + "ENT_RECORDS_ONLY\020\003\"\210\001\n\017EducationFilter\022\016" + + "\n\006school\030\001 \001(\t\022\026\n\016field_of_study\030\002 \001(\t\022<" + + "\n\013degree_type\030\003 \001(\0162\'.google.cloud.talen" + + "t.v4beta1.DegreeType\022\017\n\007negated\030\006 \001(\010\"|\n" + + "\024WorkExperienceFilter\0221\n\016min_experience\030" + + "\001 \001(\0132\031.google.protobuf.Duration\0221\n\016max_" + + "experience\030\002 \001(\0132\031.google.protobuf.Durat" + + "ion\"c\n\025ApplicationDateFilter\022%\n\nstart_da" + + "te\030\001 \001(\0132\021.google.type.Date\022#\n\010end_date\030" + + "\002 \001(\0132\021.google.type.Date\"I\n\036ApplicationO" + + "utcomeReasonFilter\022\026\n\016outcome_reason\030\001 \001" + + "(\t\022\017\n\007negated\030\002 \001(\010\"A\n\032ApplicationLastSt" + + "ageFilter\022\022\n\nlast_stage\030\001 \001(\t\022\017\n\007negated" + + "\030\002 \001(\010\"h\n\024ApplicationJobFilter\022\020\n\010job_na" + + "me\030\001 \001(\t\022\032\n\022job_requisition_id\030\002 \001(\t\022\021\n\t" + + "job_title\030\003 \001(\t\022\017\n\007negated\030\004 \001(\010\"\205\001\n\027App" + + "licationStatusFilter\022Y\n\022application_stat" + + "us\030\001 \001(\0162=.google.cloud.talent.v4beta1.J" + + "obApplication.ApplicationStatus\022\017\n\007negat" + + "ed\030\002 \001(\010\"\374\001\n\nTimeFilter\022.\n\nstart_time\030\001 " + + "\001(\0132\032.google.protobuf.Timestamp\022,\n\010end_t" + + "ime\030\002 \001(\0132\032.google.protobuf.Timestamp\022E\n" + + "\ntime_field\030\003 \001(\01621.google.cloud.talent." + + "v4beta1.TimeFilter.TimeField\"I\n\tTimeFiel" + + "d\022\032\n\026TIME_FIELD_UNSPECIFIED\020\000\022\017\n\013CREATE_" + + "TIME\020\001\022\017\n\013UPDATE_TIME\020\002Bz\n\037com.google.cl" + + "oud.talent.v4beta1B\014FiltersProtoP\001ZAgoog" + + "le.golang.org/genproto/googleapis/cloud/" + + "talent/v4beta1;talent\242\002\003CTSb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(), + com.google.cloud.talent.v4beta1.JobResourceProto.getDescriptor(), + com.google.cloud.talent.v4beta1.ProfileResourceProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + com.google.type.DateProto.getDescriptor(), + com.google.type.LatLngProto.getDescriptor(), + com.google.type.TimeOfDayProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_talent_v4beta1_JobQuery_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_talent_v4beta1_JobQuery_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_JobQuery_descriptor, + new java.lang.String[] { + "Query", + "CompanyNames", + "LocationFilters", + "JobCategories", + "CommuteFilter", + "CompanyDisplayNames", + "CompensationFilter", + "CustomAttributeFilter", + "DisableSpellCheck", + "EmploymentTypes", + "LanguageCodes", + "PublishTimeRange", + "ExcludedJobs", + }); + internal_static_google_cloud_talent_v4beta1_ProfileQuery_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_talent_v4beta1_ProfileQuery_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ProfileQuery_descriptor, + new java.lang.String[] { + "Query", + "LocationFilters", + "JobTitleFilters", + "EmployerFilters", + "EducationFilters", + "SkillFilters", + "WorkExperienceFilter", + "TimeFilters", + "HirableFilter", + "ApplicationDateFilters", + "ApplicationOutcomeReasonFilters", + "ApplicationLastStageFilters", + "ApplicationJobFilters", + "ApplicationStatusFilters", + "CustomFieldFilter", + }); + internal_static_google_cloud_talent_v4beta1_LocationFilter_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_talent_v4beta1_LocationFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_LocationFilter_descriptor, + new java.lang.String[] { + "Address", + "RegionCode", + "LatLng", + "DistanceInMiles", + "TelecommutePreference", + "Negated", + }); + internal_static_google_cloud_talent_v4beta1_CompensationFilter_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_talent_v4beta1_CompensationFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_CompensationFilter_descriptor, + new java.lang.String[] { + "Type", "Units", "Range", "IncludeJobsWithUnspecifiedCompensationRange", + }); + internal_static_google_cloud_talent_v4beta1_CommuteFilter_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_talent_v4beta1_CommuteFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_CommuteFilter_descriptor, + new java.lang.String[] { + "CommuteMethod", + "StartCoordinates", + "TravelDuration", + "AllowImpreciseAddresses", + "RoadTraffic", + "DepartureTime", + "TrafficOption", + }); + internal_static_google_cloud_talent_v4beta1_JobTitleFilter_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_talent_v4beta1_JobTitleFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_JobTitleFilter_descriptor, + new java.lang.String[] { + "JobTitle", "Negated", + }); + internal_static_google_cloud_talent_v4beta1_SkillFilter_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_talent_v4beta1_SkillFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_SkillFilter_descriptor, + new java.lang.String[] { + "Skill", "Negated", + }); + internal_static_google_cloud_talent_v4beta1_EmployerFilter_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_talent_v4beta1_EmployerFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_EmployerFilter_descriptor, + new java.lang.String[] { + "Employer", "Mode", "Negated", + }); + internal_static_google_cloud_talent_v4beta1_EducationFilter_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_talent_v4beta1_EducationFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_EducationFilter_descriptor, + new java.lang.String[] { + "School", "FieldOfStudy", "DegreeType", "Negated", + }); + internal_static_google_cloud_talent_v4beta1_WorkExperienceFilter_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_talent_v4beta1_WorkExperienceFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_WorkExperienceFilter_descriptor, + new java.lang.String[] { + "MinExperience", "MaxExperience", + }); + internal_static_google_cloud_talent_v4beta1_ApplicationDateFilter_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_talent_v4beta1_ApplicationDateFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ApplicationDateFilter_descriptor, + new java.lang.String[] { + "StartDate", "EndDate", + }); + internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeReasonFilter_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeReasonFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeReasonFilter_descriptor, + new java.lang.String[] { + "OutcomeReason", "Negated", + }); + internal_static_google_cloud_talent_v4beta1_ApplicationLastStageFilter_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_talent_v4beta1_ApplicationLastStageFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ApplicationLastStageFilter_descriptor, + new java.lang.String[] { + "LastStage", "Negated", + }); + internal_static_google_cloud_talent_v4beta1_ApplicationJobFilter_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_talent_v4beta1_ApplicationJobFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ApplicationJobFilter_descriptor, + new java.lang.String[] { + "JobName", "JobRequisitionId", "JobTitle", "Negated", + }); + internal_static_google_cloud_talent_v4beta1_ApplicationStatusFilter_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_talent_v4beta1_ApplicationStatusFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ApplicationStatusFilter_descriptor, + new java.lang.String[] { + "ApplicationStatus", "Negated", + }); + internal_static_google_cloud_talent_v4beta1_TimeFilter_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_talent_v4beta1_TimeFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_TimeFilter_descriptor, + new java.lang.String[] { + "StartTime", "EndTime", "TimeField", + }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(); + com.google.cloud.talent.v4beta1.JobResourceProto.getDescriptor(); + com.google.cloud.talent.v4beta1.ProfileResourceProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.type.DateProto.getDescriptor(); + com.google.type.LatLngProto.getDescriptor(); + com.google.type.TimeOfDayProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetCompanyRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetCompanyRequest.java new file mode 100644 index 000000000000..ef15568e61ab --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetCompanyRequest.java @@ -0,0 +1,620 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/company_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Request for getting a company by name.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.GetCompanyRequest} + */ +public final class GetCompanyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.GetCompanyRequest) + GetCompanyRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetCompanyRequest.newBuilder() to construct. + private GetCompanyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetCompanyRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetCompanyRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_GetCompanyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_GetCompanyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.GetCompanyRequest.class, + com.google.cloud.talent.v4beta1.GetCompanyRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required.
+   * The resource name of the company to be retrieved.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The resource name of the company to be retrieved.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = 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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.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.cloud.talent.v4beta1.GetCompanyRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.GetCompanyRequest other = + (com.google.cloud.talent.v4beta1.GetCompanyRequest) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.GetCompanyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.GetCompanyRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.GetCompanyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.GetCompanyRequest 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.cloud.talent.v4beta1.GetCompanyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.GetCompanyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.GetCompanyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.GetCompanyRequest 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.cloud.talent.v4beta1.GetCompanyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.GetCompanyRequest 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.cloud.talent.v4beta1.GetCompanyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.GetCompanyRequest 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.cloud.talent.v4beta1.GetCompanyRequest 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; + } + /** + * + * + *
+   * Request for getting a company by name.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.GetCompanyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.GetCompanyRequest) + com.google.cloud.talent.v4beta1.GetCompanyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_GetCompanyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_GetCompanyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.GetCompanyRequest.class, + com.google.cloud.talent.v4beta1.GetCompanyRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.GetCompanyRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_GetCompanyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.GetCompanyRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.GetCompanyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.GetCompanyRequest build() { + com.google.cloud.talent.v4beta1.GetCompanyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.GetCompanyRequest buildPartial() { + com.google.cloud.talent.v4beta1.GetCompanyRequest result = + new com.google.cloud.talent.v4beta1.GetCompanyRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.GetCompanyRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.GetCompanyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.GetCompanyRequest other) { + if (other == com.google.cloud.talent.v4beta1.GetCompanyRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.GetCompanyRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.GetCompanyRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required.
+     * The resource name of the company to be retrieved.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the company to be retrieved.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the company to be retrieved.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the company to be retrieved.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the company to be retrieved.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.GetCompanyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.GetCompanyRequest) + private static final com.google.cloud.talent.v4beta1.GetCompanyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.GetCompanyRequest(); + } + + public static com.google.cloud.talent.v4beta1.GetCompanyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCompanyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetCompanyRequest(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.GetCompanyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetCompanyRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetCompanyRequestOrBuilder.java new file mode 100644 index 000000000000..a9dc06a78964 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetCompanyRequestOrBuilder.java @@ -0,0 +1,37 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/company_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface GetCompanyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.GetCompanyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The resource name of the company to be retrieved.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Required.
+   * The resource name of the company to be retrieved.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetJobRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetJobRequest.java new file mode 100644 index 000000000000..bd8bd4574a68 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetJobRequest.java @@ -0,0 +1,620 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Get job request.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.GetJobRequest} + */ +public final class GetJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.GetJobRequest) + GetJobRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetJobRequest.newBuilder() to construct. + private GetJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetJobRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetJobRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_GetJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_GetJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.GetJobRequest.class, + com.google.cloud.talent.v4beta1.GetJobRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required.
+   * The resource name of the job to retrieve.
+   * The format is "projects/{project_id}/jobs/{job_id}",
+   * for example, "projects/api-test-project/jobs/1234".
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The resource name of the job to retrieve.
+   * The format is "projects/{project_id}/jobs/{job_id}",
+   * for example, "projects/api-test-project/jobs/1234".
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = 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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.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.cloud.talent.v4beta1.GetJobRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.GetJobRequest other = + (com.google.cloud.talent.v4beta1.GetJobRequest) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.GetJobRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.GetJobRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.GetJobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.GetJobRequest 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.cloud.talent.v4beta1.GetJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.GetJobRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.GetJobRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.GetJobRequest 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.cloud.talent.v4beta1.GetJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.GetJobRequest 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.cloud.talent.v4beta1.GetJobRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.GetJobRequest 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.cloud.talent.v4beta1.GetJobRequest 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; + } + /** + * + * + *
+   * Input only.
+   * Get job request.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.GetJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.GetJobRequest) + com.google.cloud.talent.v4beta1.GetJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_GetJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_GetJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.GetJobRequest.class, + com.google.cloud.talent.v4beta1.GetJobRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.GetJobRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_GetJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.GetJobRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.GetJobRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.GetJobRequest build() { + com.google.cloud.talent.v4beta1.GetJobRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.GetJobRequest buildPartial() { + com.google.cloud.talent.v4beta1.GetJobRequest result = + new com.google.cloud.talent.v4beta1.GetJobRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.GetJobRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.GetJobRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.GetJobRequest other) { + if (other == com.google.cloud.talent.v4beta1.GetJobRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.GetJobRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.GetJobRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required.
+     * The resource name of the job to retrieve.
+     * The format is "projects/{project_id}/jobs/{job_id}",
+     * for example, "projects/api-test-project/jobs/1234".
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the job to retrieve.
+     * The format is "projects/{project_id}/jobs/{job_id}",
+     * for example, "projects/api-test-project/jobs/1234".
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the job to retrieve.
+     * The format is "projects/{project_id}/jobs/{job_id}",
+     * for example, "projects/api-test-project/jobs/1234".
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the job to retrieve.
+     * The format is "projects/{project_id}/jobs/{job_id}",
+     * for example, "projects/api-test-project/jobs/1234".
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the job to retrieve.
+     * The format is "projects/{project_id}/jobs/{job_id}",
+     * for example, "projects/api-test-project/jobs/1234".
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.GetJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.GetJobRequest) + private static final com.google.cloud.talent.v4beta1.GetJobRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.GetJobRequest(); + } + + public static com.google.cloud.talent.v4beta1.GetJobRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetJobRequest(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.GetJobRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetJobRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetJobRequestOrBuilder.java new file mode 100644 index 000000000000..29731ee39b5e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetJobRequestOrBuilder.java @@ -0,0 +1,37 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface GetJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.GetJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The resource name of the job to retrieve.
+   * The format is "projects/{project_id}/jobs/{job_id}",
+   * for example, "projects/api-test-project/jobs/1234".
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Required.
+   * The resource name of the job to retrieve.
+   * The format is "projects/{project_id}/jobs/{job_id}",
+   * for example, "projects/api-test-project/jobs/1234".
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetProfileRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetProfileRequest.java new file mode 100644 index 000000000000..aa2092ef850e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetProfileRequest.java @@ -0,0 +1,627 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Get profile request.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.GetProfileRequest} + */ +public final class GetProfileRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.GetProfileRequest) + GetProfileRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetProfileRequest.newBuilder() to construct. + private GetProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetProfileRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetProfileRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_GetProfileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_GetProfileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.GetProfileRequest.class, + com.google.cloud.talent.v4beta1.GetProfileRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required.
+   * Resource name of the profile to get.
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+   * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * Resource name of the profile to get.
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+   * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = 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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.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.cloud.talent.v4beta1.GetProfileRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.GetProfileRequest other = + (com.google.cloud.talent.v4beta1.GetProfileRequest) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.GetProfileRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.GetProfileRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.GetProfileRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.GetProfileRequest 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.cloud.talent.v4beta1.GetProfileRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.GetProfileRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.GetProfileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.GetProfileRequest 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.cloud.talent.v4beta1.GetProfileRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.GetProfileRequest 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.cloud.talent.v4beta1.GetProfileRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.GetProfileRequest 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.cloud.talent.v4beta1.GetProfileRequest 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; + } + /** + * + * + *
+   * Get profile request.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.GetProfileRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.GetProfileRequest) + com.google.cloud.talent.v4beta1.GetProfileRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_GetProfileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_GetProfileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.GetProfileRequest.class, + com.google.cloud.talent.v4beta1.GetProfileRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.GetProfileRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_GetProfileRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.GetProfileRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.GetProfileRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.GetProfileRequest build() { + com.google.cloud.talent.v4beta1.GetProfileRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.GetProfileRequest buildPartial() { + com.google.cloud.talent.v4beta1.GetProfileRequest result = + new com.google.cloud.talent.v4beta1.GetProfileRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.GetProfileRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.GetProfileRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.GetProfileRequest other) { + if (other == com.google.cloud.talent.v4beta1.GetProfileRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.GetProfileRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.GetProfileRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required.
+     * Resource name of the profile to get.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+     * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * Resource name of the profile to get.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+     * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * Resource name of the profile to get.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+     * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Resource name of the profile to get.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+     * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Resource name of the profile to get.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+     * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.GetProfileRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.GetProfileRequest) + private static final com.google.cloud.talent.v4beta1.GetProfileRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.GetProfileRequest(); + } + + public static com.google.cloud.talent.v4beta1.GetProfileRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetProfileRequest(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.GetProfileRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetProfileRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetProfileRequestOrBuilder.java new file mode 100644 index 000000000000..b4f41d5a3624 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetProfileRequestOrBuilder.java @@ -0,0 +1,39 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface GetProfileRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.GetProfileRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * Resource name of the profile to get.
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+   * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Required.
+   * Resource name of the profile to get.
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+   * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetTenantRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetTenantRequest.java new file mode 100644 index 000000000000..947fa851628b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetTenantRequest.java @@ -0,0 +1,619 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/tenant_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Request for getting a tenant by name.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.GetTenantRequest} + */ +public final class GetTenantRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.GetTenantRequest) + GetTenantRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetTenantRequest.newBuilder() to construct. + private GetTenantRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetTenantRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetTenantRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_GetTenantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_GetTenantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.GetTenantRequest.class, + com.google.cloud.talent.v4beta1.GetTenantRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required.
+   * The resource name of the tenant to be retrieved.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The resource name of the tenant to be retrieved.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = 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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.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.cloud.talent.v4beta1.GetTenantRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.GetTenantRequest other = + (com.google.cloud.talent.v4beta1.GetTenantRequest) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.GetTenantRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.GetTenantRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.GetTenantRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.GetTenantRequest 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.cloud.talent.v4beta1.GetTenantRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.GetTenantRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.GetTenantRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.GetTenantRequest 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.cloud.talent.v4beta1.GetTenantRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.GetTenantRequest 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.cloud.talent.v4beta1.GetTenantRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.GetTenantRequest 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.cloud.talent.v4beta1.GetTenantRequest 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; + } + /** + * + * + *
+   * Request for getting a tenant by name.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.GetTenantRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.GetTenantRequest) + com.google.cloud.talent.v4beta1.GetTenantRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_GetTenantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_GetTenantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.GetTenantRequest.class, + com.google.cloud.talent.v4beta1.GetTenantRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.GetTenantRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_GetTenantRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.GetTenantRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.GetTenantRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.GetTenantRequest build() { + com.google.cloud.talent.v4beta1.GetTenantRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.GetTenantRequest buildPartial() { + com.google.cloud.talent.v4beta1.GetTenantRequest result = + new com.google.cloud.talent.v4beta1.GetTenantRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.GetTenantRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.GetTenantRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.GetTenantRequest other) { + if (other == com.google.cloud.talent.v4beta1.GetTenantRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.GetTenantRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.GetTenantRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required.
+     * The resource name of the tenant to be retrieved.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the tenant to be retrieved.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the tenant to be retrieved.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the tenant to be retrieved.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the tenant to be retrieved.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.GetTenantRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.GetTenantRequest) + private static final com.google.cloud.talent.v4beta1.GetTenantRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.GetTenantRequest(); + } + + public static com.google.cloud.talent.v4beta1.GetTenantRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetTenantRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetTenantRequest(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.GetTenantRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetTenantRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetTenantRequestOrBuilder.java new file mode 100644 index 000000000000..c6c8c9e2e154 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetTenantRequestOrBuilder.java @@ -0,0 +1,37 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/tenant_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface GetTenantRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.GetTenantRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The resource name of the tenant to be retrieved.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Required.
+   * The resource name of the tenant to be retrieved.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramProto.java new file mode 100644 index 000000000000..c946e92f6735 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramProto.java @@ -0,0 +1,96 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/histogram.proto + +package com.google.cloud.talent.v4beta1; + +public final class HistogramProto { + private HistogramProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_HistogramQuery_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_HistogramQuery_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_HistogramQueryResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_HistogramQueryResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_HistogramQueryResult_HistogramEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_HistogramQueryResult_HistogramEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n+google/cloud/talent/v4beta1/histogram." + + "proto\022\033google.cloud.talent.v4beta1\032\034goog" + + "le/api/annotations.proto\032\036google/protobu" + + "f/wrappers.proto\")\n\016HistogramQuery\022\027\n\017hi" + + "stogram_query\030\001 \001(\t\"\266\001\n\024HistogramQueryRe" + + "sult\022\027\n\017histogram_query\030\001 \001(\t\022S\n\thistogr" + + "am\030\002 \003(\0132@.google.cloud.talent.v4beta1.H" + + "istogramQueryResult.HistogramEntry\0320\n\016Hi" + + "stogramEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003" + + ":\0028\001B|\n\037com.google.cloud.talent.v4beta1B" + + "\016HistogramProtoP\001ZAgoogle.golang.org/gen" + + "proto/googleapis/cloud/talent/v4beta1;ta" + + "lent\242\002\003CTSb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_talent_v4beta1_HistogramQuery_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_talent_v4beta1_HistogramQuery_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_HistogramQuery_descriptor, + new java.lang.String[] { + "HistogramQuery", + }); + internal_static_google_cloud_talent_v4beta1_HistogramQueryResult_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_talent_v4beta1_HistogramQueryResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_HistogramQueryResult_descriptor, + new java.lang.String[] { + "HistogramQuery", "Histogram", + }); + internal_static_google_cloud_talent_v4beta1_HistogramQueryResult_HistogramEntry_descriptor = + internal_static_google_cloud_talent_v4beta1_HistogramQueryResult_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_talent_v4beta1_HistogramQueryResult_HistogramEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_HistogramQueryResult_HistogramEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramQuery.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramQuery.java new file mode 100644 index 000000000000..148d1eaefbd8 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramQuery.java @@ -0,0 +1,641 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/histogram.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input Only.
+ * The histogram request.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.HistogramQuery} + */ +public final class HistogramQuery extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.HistogramQuery) + HistogramQueryOrBuilder { + private static final long serialVersionUID = 0L; + // Use HistogramQuery.newBuilder() to construct. + private HistogramQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private HistogramQuery() { + histogramQuery_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private HistogramQuery( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + histogramQuery_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.HistogramProto + .internal_static_google_cloud_talent_v4beta1_HistogramQuery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.HistogramProto + .internal_static_google_cloud_talent_v4beta1_HistogramQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.HistogramQuery.class, + com.google.cloud.talent.v4beta1.HistogramQuery.Builder.class); + } + + public static final int HISTOGRAM_QUERY_FIELD_NUMBER = 1; + private volatile java.lang.Object histogramQuery_; + /** + * + * + *
+   * An expression specifies a histogram request against matching resources
+   * (for example, jobs, profiles) for searches.
+   * See
+   * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries]
+   * and
+   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries]
+   * for details about syntax.
+   * 
+ * + * string histogram_query = 1; + */ + public java.lang.String getHistogramQuery() { + java.lang.Object ref = histogramQuery_; + 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(); + histogramQuery_ = s; + return s; + } + } + /** + * + * + *
+   * An expression specifies a histogram request against matching resources
+   * (for example, jobs, profiles) for searches.
+   * See
+   * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries]
+   * and
+   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries]
+   * for details about syntax.
+   * 
+ * + * string histogram_query = 1; + */ + public com.google.protobuf.ByteString getHistogramQueryBytes() { + java.lang.Object ref = histogramQuery_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + histogramQuery_ = 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 (!getHistogramQueryBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, histogramQuery_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getHistogramQueryBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, histogramQuery_); + } + size += unknownFields.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.cloud.talent.v4beta1.HistogramQuery)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.HistogramQuery other = + (com.google.cloud.talent.v4beta1.HistogramQuery) obj; + + boolean result = true; + result = result && getHistogramQuery().equals(other.getHistogramQuery()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + HISTOGRAM_QUERY_FIELD_NUMBER; + hash = (53 * hash) + getHistogramQuery().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.HistogramQuery parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.HistogramQuery parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.HistogramQuery parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.HistogramQuery 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.cloud.talent.v4beta1.HistogramQuery parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.HistogramQuery parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.HistogramQuery parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.HistogramQuery 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.cloud.talent.v4beta1.HistogramQuery parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.HistogramQuery 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.cloud.talent.v4beta1.HistogramQuery parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.HistogramQuery 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.cloud.talent.v4beta1.HistogramQuery 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; + } + /** + * + * + *
+   * Input Only.
+   * The histogram request.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.HistogramQuery} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.HistogramQuery) + com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.HistogramProto + .internal_static_google_cloud_talent_v4beta1_HistogramQuery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.HistogramProto + .internal_static_google_cloud_talent_v4beta1_HistogramQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.HistogramQuery.class, + com.google.cloud.talent.v4beta1.HistogramQuery.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.HistogramQuery.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + histogramQuery_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.HistogramProto + .internal_static_google_cloud_talent_v4beta1_HistogramQuery_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.HistogramQuery getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.HistogramQuery.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.HistogramQuery build() { + com.google.cloud.talent.v4beta1.HistogramQuery result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.HistogramQuery buildPartial() { + com.google.cloud.talent.v4beta1.HistogramQuery result = + new com.google.cloud.talent.v4beta1.HistogramQuery(this); + result.histogramQuery_ = histogramQuery_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.HistogramQuery) { + return mergeFrom((com.google.cloud.talent.v4beta1.HistogramQuery) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.HistogramQuery other) { + if (other == com.google.cloud.talent.v4beta1.HistogramQuery.getDefaultInstance()) return this; + if (!other.getHistogramQuery().isEmpty()) { + histogramQuery_ = other.histogramQuery_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.HistogramQuery parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.HistogramQuery) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object histogramQuery_ = ""; + /** + * + * + *
+     * An expression specifies a histogram request against matching resources
+     * (for example, jobs, profiles) for searches.
+     * See
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries]
+     * and
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries]
+     * for details about syntax.
+     * 
+ * + * string histogram_query = 1; + */ + public java.lang.String getHistogramQuery() { + java.lang.Object ref = histogramQuery_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + histogramQuery_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * An expression specifies a histogram request against matching resources
+     * (for example, jobs, profiles) for searches.
+     * See
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries]
+     * and
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries]
+     * for details about syntax.
+     * 
+ * + * string histogram_query = 1; + */ + public com.google.protobuf.ByteString getHistogramQueryBytes() { + java.lang.Object ref = histogramQuery_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + histogramQuery_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * An expression specifies a histogram request against matching resources
+     * (for example, jobs, profiles) for searches.
+     * See
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries]
+     * and
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries]
+     * for details about syntax.
+     * 
+ * + * string histogram_query = 1; + */ + public Builder setHistogramQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + histogramQuery_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * An expression specifies a histogram request against matching resources
+     * (for example, jobs, profiles) for searches.
+     * See
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries]
+     * and
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries]
+     * for details about syntax.
+     * 
+ * + * string histogram_query = 1; + */ + public Builder clearHistogramQuery() { + + histogramQuery_ = getDefaultInstance().getHistogramQuery(); + onChanged(); + return this; + } + /** + * + * + *
+     * An expression specifies a histogram request against matching resources
+     * (for example, jobs, profiles) for searches.
+     * See
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries]
+     * and
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries]
+     * for details about syntax.
+     * 
+ * + * string histogram_query = 1; + */ + public Builder setHistogramQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + histogramQuery_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.HistogramQuery) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.HistogramQuery) + private static final com.google.cloud.talent.v4beta1.HistogramQuery DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.HistogramQuery(); + } + + public static com.google.cloud.talent.v4beta1.HistogramQuery getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HistogramQuery parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HistogramQuery(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.HistogramQuery getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramQueryOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramQueryOrBuilder.java new file mode 100644 index 000000000000..01adc0f4ad69 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramQueryOrBuilder.java @@ -0,0 +1,43 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/histogram.proto + +package com.google.cloud.talent.v4beta1; + +public interface HistogramQueryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.HistogramQuery) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * An expression specifies a histogram request against matching resources
+   * (for example, jobs, profiles) for searches.
+   * See
+   * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries]
+   * and
+   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries]
+   * for details about syntax.
+   * 
+ * + * string histogram_query = 1; + */ + java.lang.String getHistogramQuery(); + /** + * + * + *
+   * An expression specifies a histogram request against matching resources
+   * (for example, jobs, profiles) for searches.
+   * See
+   * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries]
+   * and
+   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries]
+   * for details about syntax.
+   * 
+ * + * string histogram_query = 1; + */ + com.google.protobuf.ByteString getHistogramQueryBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramQueryResult.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramQueryResult.java new file mode 100644 index 000000000000..3354371df173 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramQueryResult.java @@ -0,0 +1,994 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/histogram.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Output only.
+ * Histogram result that matches [HistogramSpec][] specified in searches.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.HistogramQueryResult} + */ +public final class HistogramQueryResult extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.HistogramQueryResult) + HistogramQueryResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use HistogramQueryResult.newBuilder() to construct. + private HistogramQueryResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private HistogramQueryResult() { + histogramQuery_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private HistogramQueryResult( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + histogramQuery_ = s; + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + histogram_ = + com.google.protobuf.MapField.newMapField( + HistogramDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry histogram__ = + input.readMessage( + HistogramDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + histogram_.getMutableMap().put(histogram__.getKey(), histogram__.getValue()); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.HistogramProto + .internal_static_google_cloud_talent_v4beta1_HistogramQueryResult_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 2: + return internalGetHistogram(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.HistogramProto + .internal_static_google_cloud_talent_v4beta1_HistogramQueryResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.HistogramQueryResult.class, + com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder.class); + } + + private int bitField0_; + public static final int HISTOGRAM_QUERY_FIELD_NUMBER = 1; + private volatile java.lang.Object histogramQuery_; + /** + * + * + *
+   * Requested histogram expression.
+   * 
+ * + * string histogram_query = 1; + */ + public java.lang.String getHistogramQuery() { + java.lang.Object ref = histogramQuery_; + 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(); + histogramQuery_ = s; + return s; + } + } + /** + * + * + *
+   * Requested histogram expression.
+   * 
+ * + * string histogram_query = 1; + */ + public com.google.protobuf.ByteString getHistogramQueryBytes() { + java.lang.Object ref = histogramQuery_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + histogramQuery_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HISTOGRAM_FIELD_NUMBER = 2; + + private static final class HistogramDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.talent.v4beta1.HistogramProto + .internal_static_google_cloud_talent_v4beta1_HistogramQueryResult_HistogramEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.INT64, + 0L); + } + + private com.google.protobuf.MapField histogram_; + + private com.google.protobuf.MapField internalGetHistogram() { + if (histogram_ == null) { + return com.google.protobuf.MapField.emptyMapField(HistogramDefaultEntryHolder.defaultEntry); + } + return histogram_; + } + + public int getHistogramCount() { + return internalGetHistogram().getMap().size(); + } + /** + * + * + *
+   * A map from the values of the facet associated with distinct values to the
+   * number of matching entries with corresponding value.
+   * The key format is:
+   * * (for string histogram) string values stored in the field.
+   * * (for named numeric bucket) name specified in `bucket()` function, like
+   *   for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
+   * * (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
+   * example, `0-1000`, `MIN-0`, and `0-MAX`.
+   * 
+ * + * map<string, int64> histogram = 2; + */ + public boolean containsHistogram(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetHistogram().getMap().containsKey(key); + } + /** Use {@link #getHistogramMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getHistogram() { + return getHistogramMap(); + } + /** + * + * + *
+   * A map from the values of the facet associated with distinct values to the
+   * number of matching entries with corresponding value.
+   * The key format is:
+   * * (for string histogram) string values stored in the field.
+   * * (for named numeric bucket) name specified in `bucket()` function, like
+   *   for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
+   * * (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
+   * example, `0-1000`, `MIN-0`, and `0-MAX`.
+   * 
+ * + * map<string, int64> histogram = 2; + */ + public java.util.Map getHistogramMap() { + return internalGetHistogram().getMap(); + } + /** + * + * + *
+   * A map from the values of the facet associated with distinct values to the
+   * number of matching entries with corresponding value.
+   * The key format is:
+   * * (for string histogram) string values stored in the field.
+   * * (for named numeric bucket) name specified in `bucket()` function, like
+   *   for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
+   * * (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
+   * example, `0-1000`, `MIN-0`, and `0-MAX`.
+   * 
+ * + * map<string, int64> histogram = 2; + */ + public long getHistogramOrDefault(java.lang.String key, long defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetHistogram().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * A map from the values of the facet associated with distinct values to the
+   * number of matching entries with corresponding value.
+   * The key format is:
+   * * (for string histogram) string values stored in the field.
+   * * (for named numeric bucket) name specified in `bucket()` function, like
+   *   for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
+   * * (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
+   * example, `0-1000`, `MIN-0`, and `0-MAX`.
+   * 
+ * + * map<string, int64> histogram = 2; + */ + public long getHistogramOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetHistogram().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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 (!getHistogramQueryBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, histogramQuery_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetHistogram(), HistogramDefaultEntryHolder.defaultEntry, 2); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getHistogramQueryBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, histogramQuery_); + } + for (java.util.Map.Entry entry : + internalGetHistogram().getMap().entrySet()) { + com.google.protobuf.MapEntry histogram__ = + HistogramDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, histogram__); + } + size += unknownFields.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.cloud.talent.v4beta1.HistogramQueryResult)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.HistogramQueryResult other = + (com.google.cloud.talent.v4beta1.HistogramQueryResult) obj; + + boolean result = true; + result = result && getHistogramQuery().equals(other.getHistogramQuery()); + result = result && internalGetHistogram().equals(other.internalGetHistogram()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + HISTOGRAM_QUERY_FIELD_NUMBER; + hash = (53 * hash) + getHistogramQuery().hashCode(); + if (!internalGetHistogram().getMap().isEmpty()) { + hash = (37 * hash) + HISTOGRAM_FIELD_NUMBER; + hash = (53 * hash) + internalGetHistogram().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.HistogramQueryResult parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.HistogramQueryResult parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.HistogramQueryResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.HistogramQueryResult 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.cloud.talent.v4beta1.HistogramQueryResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.HistogramQueryResult parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.HistogramQueryResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.HistogramQueryResult 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.cloud.talent.v4beta1.HistogramQueryResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.HistogramQueryResult 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.cloud.talent.v4beta1.HistogramQueryResult parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.HistogramQueryResult 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.cloud.talent.v4beta1.HistogramQueryResult 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; + } + /** + * + * + *
+   * Output only.
+   * Histogram result that matches [HistogramSpec][] specified in searches.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.HistogramQueryResult} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.HistogramQueryResult) + com.google.cloud.talent.v4beta1.HistogramQueryResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.HistogramProto + .internal_static_google_cloud_talent_v4beta1_HistogramQueryResult_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 2: + return internalGetHistogram(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 2: + return internalGetMutableHistogram(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.HistogramProto + .internal_static_google_cloud_talent_v4beta1_HistogramQueryResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.HistogramQueryResult.class, + com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.HistogramQueryResult.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + histogramQuery_ = ""; + + internalGetMutableHistogram().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.HistogramProto + .internal_static_google_cloud_talent_v4beta1_HistogramQueryResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.HistogramQueryResult getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.HistogramQueryResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.HistogramQueryResult build() { + com.google.cloud.talent.v4beta1.HistogramQueryResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.HistogramQueryResult buildPartial() { + com.google.cloud.talent.v4beta1.HistogramQueryResult result = + new com.google.cloud.talent.v4beta1.HistogramQueryResult(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.histogramQuery_ = histogramQuery_; + result.histogram_ = internalGetHistogram(); + result.histogram_.makeImmutable(); + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.HistogramQueryResult) { + return mergeFrom((com.google.cloud.talent.v4beta1.HistogramQueryResult) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.HistogramQueryResult other) { + if (other == com.google.cloud.talent.v4beta1.HistogramQueryResult.getDefaultInstance()) + return this; + if (!other.getHistogramQuery().isEmpty()) { + histogramQuery_ = other.histogramQuery_; + onChanged(); + } + internalGetMutableHistogram().mergeFrom(other.internalGetHistogram()); + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.HistogramQueryResult parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.HistogramQueryResult) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object histogramQuery_ = ""; + /** + * + * + *
+     * Requested histogram expression.
+     * 
+ * + * string histogram_query = 1; + */ + public java.lang.String getHistogramQuery() { + java.lang.Object ref = histogramQuery_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + histogramQuery_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Requested histogram expression.
+     * 
+ * + * string histogram_query = 1; + */ + public com.google.protobuf.ByteString getHistogramQueryBytes() { + java.lang.Object ref = histogramQuery_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + histogramQuery_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Requested histogram expression.
+     * 
+ * + * string histogram_query = 1; + */ + public Builder setHistogramQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + histogramQuery_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Requested histogram expression.
+     * 
+ * + * string histogram_query = 1; + */ + public Builder clearHistogramQuery() { + + histogramQuery_ = getDefaultInstance().getHistogramQuery(); + onChanged(); + return this; + } + /** + * + * + *
+     * Requested histogram expression.
+     * 
+ * + * string histogram_query = 1; + */ + public Builder setHistogramQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + histogramQuery_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField histogram_; + + private com.google.protobuf.MapField internalGetHistogram() { + if (histogram_ == null) { + return com.google.protobuf.MapField.emptyMapField(HistogramDefaultEntryHolder.defaultEntry); + } + return histogram_; + } + + private com.google.protobuf.MapField + internalGetMutableHistogram() { + onChanged(); + ; + if (histogram_ == null) { + histogram_ = + com.google.protobuf.MapField.newMapField(HistogramDefaultEntryHolder.defaultEntry); + } + if (!histogram_.isMutable()) { + histogram_ = histogram_.copy(); + } + return histogram_; + } + + public int getHistogramCount() { + return internalGetHistogram().getMap().size(); + } + /** + * + * + *
+     * A map from the values of the facet associated with distinct values to the
+     * number of matching entries with corresponding value.
+     * The key format is:
+     * * (for string histogram) string values stored in the field.
+     * * (for named numeric bucket) name specified in `bucket()` function, like
+     *   for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
+     * * (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
+     * example, `0-1000`, `MIN-0`, and `0-MAX`.
+     * 
+ * + * map<string, int64> histogram = 2; + */ + public boolean containsHistogram(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetHistogram().getMap().containsKey(key); + } + /** Use {@link #getHistogramMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getHistogram() { + return getHistogramMap(); + } + /** + * + * + *
+     * A map from the values of the facet associated with distinct values to the
+     * number of matching entries with corresponding value.
+     * The key format is:
+     * * (for string histogram) string values stored in the field.
+     * * (for named numeric bucket) name specified in `bucket()` function, like
+     *   for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
+     * * (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
+     * example, `0-1000`, `MIN-0`, and `0-MAX`.
+     * 
+ * + * map<string, int64> histogram = 2; + */ + public java.util.Map getHistogramMap() { + return internalGetHistogram().getMap(); + } + /** + * + * + *
+     * A map from the values of the facet associated with distinct values to the
+     * number of matching entries with corresponding value.
+     * The key format is:
+     * * (for string histogram) string values stored in the field.
+     * * (for named numeric bucket) name specified in `bucket()` function, like
+     *   for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
+     * * (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
+     * example, `0-1000`, `MIN-0`, and `0-MAX`.
+     * 
+ * + * map<string, int64> histogram = 2; + */ + public long getHistogramOrDefault(java.lang.String key, long defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetHistogram().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * A map from the values of the facet associated with distinct values to the
+     * number of matching entries with corresponding value.
+     * The key format is:
+     * * (for string histogram) string values stored in the field.
+     * * (for named numeric bucket) name specified in `bucket()` function, like
+     *   for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
+     * * (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
+     * example, `0-1000`, `MIN-0`, and `0-MAX`.
+     * 
+ * + * map<string, int64> histogram = 2; + */ + public long getHistogramOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetHistogram().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearHistogram() { + internalGetMutableHistogram().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * A map from the values of the facet associated with distinct values to the
+     * number of matching entries with corresponding value.
+     * The key format is:
+     * * (for string histogram) string values stored in the field.
+     * * (for named numeric bucket) name specified in `bucket()` function, like
+     *   for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
+     * * (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
+     * example, `0-1000`, `MIN-0`, and `0-MAX`.
+     * 
+ * + * map<string, int64> histogram = 2; + */ + public Builder removeHistogram(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableHistogram().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableHistogram() { + return internalGetMutableHistogram().getMutableMap(); + } + /** + * + * + *
+     * A map from the values of the facet associated with distinct values to the
+     * number of matching entries with corresponding value.
+     * The key format is:
+     * * (for string histogram) string values stored in the field.
+     * * (for named numeric bucket) name specified in `bucket()` function, like
+     *   for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
+     * * (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
+     * example, `0-1000`, `MIN-0`, and `0-MAX`.
+     * 
+ * + * map<string, int64> histogram = 2; + */ + public Builder putHistogram(java.lang.String key, long value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + + internalGetMutableHistogram().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * A map from the values of the facet associated with distinct values to the
+     * number of matching entries with corresponding value.
+     * The key format is:
+     * * (for string histogram) string values stored in the field.
+     * * (for named numeric bucket) name specified in `bucket()` function, like
+     *   for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
+     * * (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
+     * example, `0-1000`, `MIN-0`, and `0-MAX`.
+     * 
+ * + * map<string, int64> histogram = 2; + */ + public Builder putAllHistogram(java.util.Map values) { + internalGetMutableHistogram().getMutableMap().putAll(values); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.HistogramQueryResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.HistogramQueryResult) + private static final com.google.cloud.talent.v4beta1.HistogramQueryResult DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.HistogramQueryResult(); + } + + public static com.google.cloud.talent.v4beta1.HistogramQueryResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HistogramQueryResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HistogramQueryResult(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.HistogramQueryResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramQueryResultOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramQueryResultOrBuilder.java new file mode 100644 index 000000000000..ba2661a95da9 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramQueryResultOrBuilder.java @@ -0,0 +1,120 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/histogram.proto + +package com.google.cloud.talent.v4beta1; + +public interface HistogramQueryResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.HistogramQueryResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Requested histogram expression.
+   * 
+ * + * string histogram_query = 1; + */ + java.lang.String getHistogramQuery(); + /** + * + * + *
+   * Requested histogram expression.
+   * 
+ * + * string histogram_query = 1; + */ + com.google.protobuf.ByteString getHistogramQueryBytes(); + + /** + * + * + *
+   * A map from the values of the facet associated with distinct values to the
+   * number of matching entries with corresponding value.
+   * The key format is:
+   * * (for string histogram) string values stored in the field.
+   * * (for named numeric bucket) name specified in `bucket()` function, like
+   *   for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
+   * * (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
+   * example, `0-1000`, `MIN-0`, and `0-MAX`.
+   * 
+ * + * map<string, int64> histogram = 2; + */ + int getHistogramCount(); + /** + * + * + *
+   * A map from the values of the facet associated with distinct values to the
+   * number of matching entries with corresponding value.
+   * The key format is:
+   * * (for string histogram) string values stored in the field.
+   * * (for named numeric bucket) name specified in `bucket()` function, like
+   *   for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
+   * * (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
+   * example, `0-1000`, `MIN-0`, and `0-MAX`.
+   * 
+ * + * map<string, int64> histogram = 2; + */ + boolean containsHistogram(java.lang.String key); + /** Use {@link #getHistogramMap()} instead. */ + @java.lang.Deprecated + java.util.Map getHistogram(); + /** + * + * + *
+   * A map from the values of the facet associated with distinct values to the
+   * number of matching entries with corresponding value.
+   * The key format is:
+   * * (for string histogram) string values stored in the field.
+   * * (for named numeric bucket) name specified in `bucket()` function, like
+   *   for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
+   * * (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
+   * example, `0-1000`, `MIN-0`, and `0-MAX`.
+   * 
+ * + * map<string, int64> histogram = 2; + */ + java.util.Map getHistogramMap(); + /** + * + * + *
+   * A map from the values of the facet associated with distinct values to the
+   * number of matching entries with corresponding value.
+   * The key format is:
+   * * (for string histogram) string values stored in the field.
+   * * (for named numeric bucket) name specified in `bucket()` function, like
+   *   for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
+   * * (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
+   * example, `0-1000`, `MIN-0`, and `0-MAX`.
+   * 
+ * + * map<string, int64> histogram = 2; + */ + long getHistogramOrDefault(java.lang.String key, long defaultValue); + /** + * + * + *
+   * A map from the values of the facet associated with distinct values to the
+   * number of matching entries with corresponding value.
+   * The key format is:
+   * * (for string histogram) string values stored in the field.
+   * * (for named numeric bucket) name specified in `bucket()` function, like
+   *   for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
+   * * (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
+   * example, `0-1000`, `MIN-0`, and `0-MAX`.
+   * 
+ * + * map<string, int64> histogram = 2; + */ + long getHistogramOrThrow(java.lang.String key); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HtmlSanitization.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HtmlSanitization.java new file mode 100644 index 000000000000..9dad7e91641e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HtmlSanitization.java @@ -0,0 +1,154 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Option for HTML content sanitization on user input fields, for example, job
+ * description. By setting this option, user can determine whether and how
+ * sanitization is performed on these fields.
+ * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.HtmlSanitization} + */ +public enum HtmlSanitization implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Default value.
+   * 
+ * + * HTML_SANITIZATION_UNSPECIFIED = 0; + */ + HTML_SANITIZATION_UNSPECIFIED(0), + /** + * + * + *
+   * Disables sanitization on HTML input.
+   * 
+ * + * HTML_SANITIZATION_DISABLED = 1; + */ + HTML_SANITIZATION_DISABLED(1), + /** + * + * + *
+   * Sanitizes HTML input, only accepts bold, italic, ordered list, and
+   * unordered list markup tags.
+   * 
+ * + * SIMPLE_FORMATTING_ONLY = 2; + */ + SIMPLE_FORMATTING_ONLY(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Default value.
+   * 
+ * + * HTML_SANITIZATION_UNSPECIFIED = 0; + */ + public static final int HTML_SANITIZATION_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Disables sanitization on HTML input.
+   * 
+ * + * HTML_SANITIZATION_DISABLED = 1; + */ + public static final int HTML_SANITIZATION_DISABLED_VALUE = 1; + /** + * + * + *
+   * Sanitizes HTML input, only accepts bold, italic, ordered list, and
+   * unordered list markup tags.
+   * 
+ * + * SIMPLE_FORMATTING_ONLY = 2; + */ + public static final int SIMPLE_FORMATTING_ONLY_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static HtmlSanitization valueOf(int value) { + return forNumber(value); + } + + public static HtmlSanitization forNumber(int value) { + switch (value) { + case 0: + return HTML_SANITIZATION_UNSPECIFIED; + case 1: + return HTML_SANITIZATION_DISABLED; + case 2: + return SIMPLE_FORMATTING_ONLY; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public HtmlSanitization findValueByNumber(int number) { + return HtmlSanitization.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto.getDescriptor().getEnumTypes().get(9); + } + + private static final HtmlSanitization[] VALUES = values(); + + public static HtmlSanitization 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()]; + } + + private final int value; + + private HtmlSanitization(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.HtmlSanitization) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Job.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Job.java new file mode 100644 index 000000000000..b3a27d40fbe1 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Job.java @@ -0,0 +1,12269 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * A Job resource represents a job posting (also referred to as a "job listing"
+ * or "job requisition"). A job belongs to a
+ * [Company][google.cloud.talent.v4beta1.Company], which is the hiring entity
+ * responsible for the job.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Job} + */ +public final class Job extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Job) + JobOrBuilder { + private static final long serialVersionUID = 0L; + // Use Job.newBuilder() to construct. + private Job(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Job() { + name_ = ""; + companyName_ = ""; + requisitionId_ = ""; + title_ = ""; + description_ = ""; + addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; + jobBenefits_ = java.util.Collections.emptyList(); + degreeTypes_ = java.util.Collections.emptyList(); + department_ = ""; + employmentTypes_ = java.util.Collections.emptyList(); + incentives_ = ""; + languageCode_ = ""; + jobLevel_ = 0; + promotionValue_ = 0; + qualifications_ = ""; + responsibilities_ = ""; + postingRegion_ = 0; + visibility_ = 0; + companyDisplayName_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Job( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + companyName_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + requisitionId_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + title_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + addresses_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000020; + } + addresses_.add(s); + break; + } + case 58: + { + com.google.cloud.talent.v4beta1.Job.ApplicationInfo.Builder subBuilder = null; + if (applicationInfo_ != null) { + subBuilder = applicationInfo_.toBuilder(); + } + applicationInfo_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Job.ApplicationInfo.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(applicationInfo_); + applicationInfo_ = subBuilder.buildPartial(); + } + + break; + } + case 64: + { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + jobBenefits_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000080; + } + jobBenefits_.add(rawValue); + break; + } + case 66: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + jobBenefits_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000080; + } + jobBenefits_.add(rawValue); + } + input.popLimit(oldLimit); + break; + } + case 74: + { + com.google.cloud.talent.v4beta1.CompensationInfo.Builder subBuilder = null; + if (compensationInfo_ != null) { + subBuilder = compensationInfo_.toBuilder(); + } + compensationInfo_ = + input.readMessage( + com.google.cloud.talent.v4beta1.CompensationInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(compensationInfo_); + compensationInfo_ = subBuilder.buildPartial(); + } + + break; + } + case 82: + { + if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + customAttributes_ = + com.google.protobuf.MapField.newMapField( + CustomAttributesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000200; + } + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> + customAttributes__ = + input.readMessage( + CustomAttributesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + customAttributes_ + .getMutableMap() + .put(customAttributes__.getKey(), customAttributes__.getValue()); + break; + } + case 88: + { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + degreeTypes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000400; + } + degreeTypes_.add(rawValue); + break; + } + case 90: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + degreeTypes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000400; + } + degreeTypes_.add(rawValue); + } + input.popLimit(oldLimit); + break; + } + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); + + department_ = s; + break; + } + case 104: + { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00001000) == 0x00001000)) { + employmentTypes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00001000; + } + employmentTypes_.add(rawValue); + break; + } + case 106: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00001000) == 0x00001000)) { + employmentTypes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00001000; + } + employmentTypes_.add(rawValue); + } + input.popLimit(oldLimit); + break; + } + case 114: + { + java.lang.String s = input.readStringRequireUtf8(); + + incentives_ = s; + break; + } + case 122: + { + java.lang.String s = input.readStringRequireUtf8(); + + languageCode_ = s; + break; + } + case 128: + { + int rawValue = input.readEnum(); + + jobLevel_ = rawValue; + break; + } + case 136: + { + promotionValue_ = input.readInt32(); + break; + } + case 146: + { + java.lang.String s = input.readStringRequireUtf8(); + + qualifications_ = s; + break; + } + case 154: + { + java.lang.String s = input.readStringRequireUtf8(); + + responsibilities_ = s; + break; + } + case 160: + { + int rawValue = input.readEnum(); + + postingRegion_ = rawValue; + break; + } + case 168: + { + int rawValue = input.readEnum(); + + visibility_ = rawValue; + break; + } + case 178: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (jobStartTime_ != null) { + subBuilder = jobStartTime_.toBuilder(); + } + jobStartTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(jobStartTime_); + jobStartTime_ = subBuilder.buildPartial(); + } + + break; + } + case 186: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (jobEndTime_ != null) { + subBuilder = jobEndTime_.toBuilder(); + } + jobEndTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(jobEndTime_); + jobEndTime_ = subBuilder.buildPartial(); + } + + break; + } + case 194: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (postingPublishTime_ != null) { + subBuilder = postingPublishTime_.toBuilder(); + } + postingPublishTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(postingPublishTime_); + postingPublishTime_ = subBuilder.buildPartial(); + } + + break; + } + case 202: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (postingExpireTime_ != null) { + subBuilder = postingExpireTime_.toBuilder(); + } + postingExpireTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(postingExpireTime_); + postingExpireTime_ = subBuilder.buildPartial(); + } + + break; + } + case 210: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (postingCreateTime_ != null) { + subBuilder = postingCreateTime_.toBuilder(); + } + postingCreateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(postingCreateTime_); + postingCreateTime_ = subBuilder.buildPartial(); + } + + break; + } + case 218: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (postingUpdateTime_ != null) { + subBuilder = postingUpdateTime_.toBuilder(); + } + postingUpdateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(postingUpdateTime_); + postingUpdateTime_ = subBuilder.buildPartial(); + } + + break; + } + case 226: + { + java.lang.String s = input.readStringRequireUtf8(); + + companyDisplayName_ = s; + break; + } + case 234: + { + com.google.cloud.talent.v4beta1.Job.DerivedInfo.Builder subBuilder = null; + if (derivedInfo_ != null) { + subBuilder = derivedInfo_.toBuilder(); + } + derivedInfo_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Job.DerivedInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(derivedInfo_); + derivedInfo_ = subBuilder.buildPartial(); + } + + break; + } + case 242: + { + com.google.cloud.talent.v4beta1.Job.ProcessingOptions.Builder subBuilder = null; + if (processingOptions_ != null) { + subBuilder = processingOptions_.toBuilder(); + } + processingOptions_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Job.ProcessingOptions.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(processingOptions_); + processingOptions_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + addresses_ = addresses_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + jobBenefits_ = java.util.Collections.unmodifiableList(jobBenefits_); + } + if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + degreeTypes_ = java.util.Collections.unmodifiableList(degreeTypes_); + } + if (((mutable_bitField0_ & 0x00001000) == 0x00001000)) { + employmentTypes_ = java.util.Collections.unmodifiableList(employmentTypes_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 10: + return internalGetCustomAttributes(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Job.class, + com.google.cloud.talent.v4beta1.Job.Builder.class); + } + + public interface ApplicationInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Job.ApplicationInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this field to specify email address(es) to which resumes or
+     * applications can be sent.
+     * The maximum number of allowed characters for each entry is 255.
+     * 
+ * + * repeated string emails = 1; + */ + java.util.List getEmailsList(); + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this field to specify email address(es) to which resumes or
+     * applications can be sent.
+     * The maximum number of allowed characters for each entry is 255.
+     * 
+ * + * repeated string emails = 1; + */ + int getEmailsCount(); + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this field to specify email address(es) to which resumes or
+     * applications can be sent.
+     * The maximum number of allowed characters for each entry is 255.
+     * 
+ * + * repeated string emails = 1; + */ + java.lang.String getEmails(int index); + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this field to specify email address(es) to which resumes or
+     * applications can be sent.
+     * The maximum number of allowed characters for each entry is 255.
+     * 
+ * + * repeated string emails = 1; + */ + com.google.protobuf.ByteString getEmailsBytes(int index); + + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this field to provide instructions, such as "Mail your application
+     * to ...", that a candidate can follow to apply for the job.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 3,000.
+     * 
+ * + * string instruction = 2; + */ + java.lang.String getInstruction(); + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this field to provide instructions, such as "Mail your application
+     * to ...", that a candidate can follow to apply for the job.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 3,000.
+     * 
+ * + * string instruction = 2; + */ + com.google.protobuf.ByteString getInstructionBytes(); + + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this URI field to direct an applicant to a website, for example to
+     * link to an online application form.
+     * The maximum number of allowed characters for each entry is 2,000.
+     * 
+ * + * repeated string uris = 3; + */ + java.util.List getUrisList(); + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this URI field to direct an applicant to a website, for example to
+     * link to an online application form.
+     * The maximum number of allowed characters for each entry is 2,000.
+     * 
+ * + * repeated string uris = 3; + */ + int getUrisCount(); + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this URI field to direct an applicant to a website, for example to
+     * link to an online application form.
+     * The maximum number of allowed characters for each entry is 2,000.
+     * 
+ * + * repeated string uris = 3; + */ + java.lang.String getUris(int index); + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this URI field to direct an applicant to a website, for example to
+     * link to an online application form.
+     * The maximum number of allowed characters for each entry is 2,000.
+     * 
+ * + * repeated string uris = 3; + */ + com.google.protobuf.ByteString getUrisBytes(int index); + } + /** + * + * + *
+   * Application related details of a job posting.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Job.ApplicationInfo} + */ + public static final class ApplicationInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Job.ApplicationInfo) + ApplicationInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use ApplicationInfo.newBuilder() to construct. + private ApplicationInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ApplicationInfo() { + emails_ = com.google.protobuf.LazyStringArrayList.EMPTY; + instruction_ = ""; + uris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ApplicationInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + emails_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + emails_.add(s); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + instruction_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + uris_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + uris_.add(s); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + emails_ = emails_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + uris_ = uris_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_ApplicationInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_ApplicationInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Job.ApplicationInfo.class, + com.google.cloud.talent.v4beta1.Job.ApplicationInfo.Builder.class); + } + + private int bitField0_; + public static final int EMAILS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList emails_; + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this field to specify email address(es) to which resumes or
+     * applications can be sent.
+     * The maximum number of allowed characters for each entry is 255.
+     * 
+ * + * repeated string emails = 1; + */ + public com.google.protobuf.ProtocolStringList getEmailsList() { + return emails_; + } + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this field to specify email address(es) to which resumes or
+     * applications can be sent.
+     * The maximum number of allowed characters for each entry is 255.
+     * 
+ * + * repeated string emails = 1; + */ + public int getEmailsCount() { + return emails_.size(); + } + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this field to specify email address(es) to which resumes or
+     * applications can be sent.
+     * The maximum number of allowed characters for each entry is 255.
+     * 
+ * + * repeated string emails = 1; + */ + public java.lang.String getEmails(int index) { + return emails_.get(index); + } + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this field to specify email address(es) to which resumes or
+     * applications can be sent.
+     * The maximum number of allowed characters for each entry is 255.
+     * 
+ * + * repeated string emails = 1; + */ + public com.google.protobuf.ByteString getEmailsBytes(int index) { + return emails_.getByteString(index); + } + + public static final int INSTRUCTION_FIELD_NUMBER = 2; + private volatile java.lang.Object instruction_; + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this field to provide instructions, such as "Mail your application
+     * to ...", that a candidate can follow to apply for the job.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 3,000.
+     * 
+ * + * string instruction = 2; + */ + public java.lang.String getInstruction() { + java.lang.Object ref = instruction_; + 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(); + instruction_ = s; + return s; + } + } + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this field to provide instructions, such as "Mail your application
+     * to ...", that a candidate can follow to apply for the job.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 3,000.
+     * 
+ * + * string instruction = 2; + */ + public com.google.protobuf.ByteString getInstructionBytes() { + java.lang.Object ref = instruction_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instruction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int URIS_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList uris_; + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this URI field to direct an applicant to a website, for example to
+     * link to an online application form.
+     * The maximum number of allowed characters for each entry is 2,000.
+     * 
+ * + * repeated string uris = 3; + */ + public com.google.protobuf.ProtocolStringList getUrisList() { + return uris_; + } + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this URI field to direct an applicant to a website, for example to
+     * link to an online application form.
+     * The maximum number of allowed characters for each entry is 2,000.
+     * 
+ * + * repeated string uris = 3; + */ + public int getUrisCount() { + return uris_.size(); + } + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this URI field to direct an applicant to a website, for example to
+     * link to an online application form.
+     * The maximum number of allowed characters for each entry is 2,000.
+     * 
+ * + * repeated string uris = 3; + */ + public java.lang.String getUris(int index) { + return uris_.get(index); + } + /** + * + * + *
+     * Optional but at least one of
+     * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+     * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+     * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+     * must be specified.
+     * Use this URI field to direct an applicant to a website, for example to
+     * link to an online application form.
+     * The maximum number of allowed characters for each entry is 2,000.
+     * 
+ * + * repeated string uris = 3; + */ + public com.google.protobuf.ByteString getUrisBytes(int index) { + return uris_.getByteString(index); + } + + 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 { + for (int i = 0; i < emails_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, emails_.getRaw(i)); + } + if (!getInstructionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instruction_); + } + for (int i = 0; i < uris_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, uris_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < emails_.size(); i++) { + dataSize += computeStringSizeNoTag(emails_.getRaw(i)); + } + size += dataSize; + size += 1 * getEmailsList().size(); + } + if (!getInstructionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instruction_); + } + { + int dataSize = 0; + for (int i = 0; i < uris_.size(); i++) { + dataSize += computeStringSizeNoTag(uris_.getRaw(i)); + } + size += dataSize; + size += 1 * getUrisList().size(); + } + size += unknownFields.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.cloud.talent.v4beta1.Job.ApplicationInfo)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Job.ApplicationInfo other = + (com.google.cloud.talent.v4beta1.Job.ApplicationInfo) obj; + + boolean result = true; + result = result && getEmailsList().equals(other.getEmailsList()); + result = result && getInstruction().equals(other.getInstruction()); + result = result && getUrisList().equals(other.getUrisList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEmailsCount() > 0) { + hash = (37 * hash) + EMAILS_FIELD_NUMBER; + hash = (53 * hash) + getEmailsList().hashCode(); + } + hash = (37 * hash) + INSTRUCTION_FIELD_NUMBER; + hash = (53 * hash) + getInstruction().hashCode(); + if (getUrisCount() > 0) { + hash = (37 * hash) + URIS_FIELD_NUMBER; + hash = (53 * hash) + getUrisList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Job.ApplicationInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Job.ApplicationInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Job.ApplicationInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Job.ApplicationInfo 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.cloud.talent.v4beta1.Job.ApplicationInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Job.ApplicationInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Job.ApplicationInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Job.ApplicationInfo 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.cloud.talent.v4beta1.Job.ApplicationInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Job.ApplicationInfo 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.cloud.talent.v4beta1.Job.ApplicationInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Job.ApplicationInfo 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.cloud.talent.v4beta1.Job.ApplicationInfo 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; + } + /** + * + * + *
+     * Application related details of a job posting.
+     * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Job.ApplicationInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Job.ApplicationInfo) + com.google.cloud.talent.v4beta1.Job.ApplicationInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_ApplicationInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_ApplicationInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Job.ApplicationInfo.class, + com.google.cloud.talent.v4beta1.Job.ApplicationInfo.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Job.ApplicationInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + emails_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + instruction_ = ""; + + uris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_ApplicationInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Job.ApplicationInfo getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Job.ApplicationInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Job.ApplicationInfo build() { + com.google.cloud.talent.v4beta1.Job.ApplicationInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Job.ApplicationInfo buildPartial() { + com.google.cloud.talent.v4beta1.Job.ApplicationInfo result = + new com.google.cloud.talent.v4beta1.Job.ApplicationInfo(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + emails_ = emails_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.emails_ = emails_; + result.instruction_ = instruction_; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + uris_ = uris_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.uris_ = uris_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Job.ApplicationInfo) { + return mergeFrom((com.google.cloud.talent.v4beta1.Job.ApplicationInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Job.ApplicationInfo other) { + if (other == com.google.cloud.talent.v4beta1.Job.ApplicationInfo.getDefaultInstance()) + return this; + if (!other.emails_.isEmpty()) { + if (emails_.isEmpty()) { + emails_ = other.emails_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEmailsIsMutable(); + emails_.addAll(other.emails_); + } + onChanged(); + } + if (!other.getInstruction().isEmpty()) { + instruction_ = other.instruction_; + onChanged(); + } + if (!other.uris_.isEmpty()) { + if (uris_.isEmpty()) { + uris_ = other.uris_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureUrisIsMutable(); + uris_.addAll(other.uris_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.Job.ApplicationInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.Job.ApplicationInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList emails_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureEmailsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + emails_ = new com.google.protobuf.LazyStringArrayList(emails_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this field to specify email address(es) to which resumes or
+       * applications can be sent.
+       * The maximum number of allowed characters for each entry is 255.
+       * 
+ * + * repeated string emails = 1; + */ + public com.google.protobuf.ProtocolStringList getEmailsList() { + return emails_.getUnmodifiableView(); + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this field to specify email address(es) to which resumes or
+       * applications can be sent.
+       * The maximum number of allowed characters for each entry is 255.
+       * 
+ * + * repeated string emails = 1; + */ + public int getEmailsCount() { + return emails_.size(); + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this field to specify email address(es) to which resumes or
+       * applications can be sent.
+       * The maximum number of allowed characters for each entry is 255.
+       * 
+ * + * repeated string emails = 1; + */ + public java.lang.String getEmails(int index) { + return emails_.get(index); + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this field to specify email address(es) to which resumes or
+       * applications can be sent.
+       * The maximum number of allowed characters for each entry is 255.
+       * 
+ * + * repeated string emails = 1; + */ + public com.google.protobuf.ByteString getEmailsBytes(int index) { + return emails_.getByteString(index); + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this field to specify email address(es) to which resumes or
+       * applications can be sent.
+       * The maximum number of allowed characters for each entry is 255.
+       * 
+ * + * repeated string emails = 1; + */ + public Builder setEmails(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmailsIsMutable(); + emails_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this field to specify email address(es) to which resumes or
+       * applications can be sent.
+       * The maximum number of allowed characters for each entry is 255.
+       * 
+ * + * repeated string emails = 1; + */ + public Builder addEmails(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmailsIsMutable(); + emails_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this field to specify email address(es) to which resumes or
+       * applications can be sent.
+       * The maximum number of allowed characters for each entry is 255.
+       * 
+ * + * repeated string emails = 1; + */ + public Builder addAllEmails(java.lang.Iterable values) { + ensureEmailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, emails_); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this field to specify email address(es) to which resumes or
+       * applications can be sent.
+       * The maximum number of allowed characters for each entry is 255.
+       * 
+ * + * repeated string emails = 1; + */ + public Builder clearEmails() { + emails_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this field to specify email address(es) to which resumes or
+       * applications can be sent.
+       * The maximum number of allowed characters for each entry is 255.
+       * 
+ * + * repeated string emails = 1; + */ + public Builder addEmailsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureEmailsIsMutable(); + emails_.add(value); + onChanged(); + return this; + } + + private java.lang.Object instruction_ = ""; + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this field to provide instructions, such as "Mail your application
+       * to ...", that a candidate can follow to apply for the job.
+       * This field accepts and sanitizes HTML input, and also accepts
+       * bold, italic, ordered list, and unordered list markup tags.
+       * The maximum number of allowed characters is 3,000.
+       * 
+ * + * string instruction = 2; + */ + public java.lang.String getInstruction() { + java.lang.Object ref = instruction_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instruction_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this field to provide instructions, such as "Mail your application
+       * to ...", that a candidate can follow to apply for the job.
+       * This field accepts and sanitizes HTML input, and also accepts
+       * bold, italic, ordered list, and unordered list markup tags.
+       * The maximum number of allowed characters is 3,000.
+       * 
+ * + * string instruction = 2; + */ + public com.google.protobuf.ByteString getInstructionBytes() { + java.lang.Object ref = instruction_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instruction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this field to provide instructions, such as "Mail your application
+       * to ...", that a candidate can follow to apply for the job.
+       * This field accepts and sanitizes HTML input, and also accepts
+       * bold, italic, ordered list, and unordered list markup tags.
+       * The maximum number of allowed characters is 3,000.
+       * 
+ * + * string instruction = 2; + */ + public Builder setInstruction(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + instruction_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this field to provide instructions, such as "Mail your application
+       * to ...", that a candidate can follow to apply for the job.
+       * This field accepts and sanitizes HTML input, and also accepts
+       * bold, italic, ordered list, and unordered list markup tags.
+       * The maximum number of allowed characters is 3,000.
+       * 
+ * + * string instruction = 2; + */ + public Builder clearInstruction() { + + instruction_ = getDefaultInstance().getInstruction(); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this field to provide instructions, such as "Mail your application
+       * to ...", that a candidate can follow to apply for the job.
+       * This field accepts and sanitizes HTML input, and also accepts
+       * bold, italic, ordered list, and unordered list markup tags.
+       * The maximum number of allowed characters is 3,000.
+       * 
+ * + * string instruction = 2; + */ + public Builder setInstructionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + instruction_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList uris_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureUrisIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + uris_ = new com.google.protobuf.LazyStringArrayList(uris_); + bitField0_ |= 0x00000004; + } + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this URI field to direct an applicant to a website, for example to
+       * link to an online application form.
+       * The maximum number of allowed characters for each entry is 2,000.
+       * 
+ * + * repeated string uris = 3; + */ + public com.google.protobuf.ProtocolStringList getUrisList() { + return uris_.getUnmodifiableView(); + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this URI field to direct an applicant to a website, for example to
+       * link to an online application form.
+       * The maximum number of allowed characters for each entry is 2,000.
+       * 
+ * + * repeated string uris = 3; + */ + public int getUrisCount() { + return uris_.size(); + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this URI field to direct an applicant to a website, for example to
+       * link to an online application form.
+       * The maximum number of allowed characters for each entry is 2,000.
+       * 
+ * + * repeated string uris = 3; + */ + public java.lang.String getUris(int index) { + return uris_.get(index); + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this URI field to direct an applicant to a website, for example to
+       * link to an online application form.
+       * The maximum number of allowed characters for each entry is 2,000.
+       * 
+ * + * repeated string uris = 3; + */ + public com.google.protobuf.ByteString getUrisBytes(int index) { + return uris_.getByteString(index); + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this URI field to direct an applicant to a website, for example to
+       * link to an online application form.
+       * The maximum number of allowed characters for each entry is 2,000.
+       * 
+ * + * repeated string uris = 3; + */ + public Builder setUris(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUrisIsMutable(); + uris_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this URI field to direct an applicant to a website, for example to
+       * link to an online application form.
+       * The maximum number of allowed characters for each entry is 2,000.
+       * 
+ * + * repeated string uris = 3; + */ + public Builder addUris(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUrisIsMutable(); + uris_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this URI field to direct an applicant to a website, for example to
+       * link to an online application form.
+       * The maximum number of allowed characters for each entry is 2,000.
+       * 
+ * + * repeated string uris = 3; + */ + public Builder addAllUris(java.lang.Iterable values) { + ensureUrisIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, uris_); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this URI field to direct an applicant to a website, for example to
+       * link to an online application form.
+       * The maximum number of allowed characters for each entry is 2,000.
+       * 
+ * + * repeated string uris = 3; + */ + public Builder clearUris() { + uris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional but at least one of
+       * [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris],
+       * [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or
+       * [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction]
+       * must be specified.
+       * Use this URI field to direct an applicant to a website, for example to
+       * link to an online application form.
+       * The maximum number of allowed characters for each entry is 2,000.
+       * 
+ * + * repeated string uris = 3; + */ + public Builder addUrisBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUrisIsMutable(); + uris_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Job.ApplicationInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Job.ApplicationInfo) + private static final com.google.cloud.talent.v4beta1.Job.ApplicationInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Job.ApplicationInfo(); + } + + public static com.google.cloud.talent.v4beta1.Job.ApplicationInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApplicationInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ApplicationInfo(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.Job.ApplicationInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface DerivedInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Job.DerivedInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Structured locations of the job, resolved from
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+     * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+     * exactly matched to
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+     * order.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + java.util.List getLocationsList(); + /** + * + * + *
+     * Structured locations of the job, resolved from
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+     * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+     * exactly matched to
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+     * order.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + com.google.cloud.talent.v4beta1.Location getLocations(int index); + /** + * + * + *
+     * Structured locations of the job, resolved from
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+     * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+     * exactly matched to
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+     * order.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + int getLocationsCount(); + /** + * + * + *
+     * Structured locations of the job, resolved from
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+     * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+     * exactly matched to
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+     * order.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + java.util.List + getLocationsOrBuilderList(); + /** + * + * + *
+     * Structured locations of the job, resolved from
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+     * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+     * exactly matched to
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+     * order.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + com.google.cloud.talent.v4beta1.LocationOrBuilder getLocationsOrBuilder(int index); + + /** + * + * + *
+     * Job categories derived from
+     * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+     * [Job.description][google.cloud.talent.v4beta1.Job.description].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + java.util.List getJobCategoriesList(); + /** + * + * + *
+     * Job categories derived from
+     * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+     * [Job.description][google.cloud.talent.v4beta1.Job.description].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + int getJobCategoriesCount(); + /** + * + * + *
+     * Job categories derived from
+     * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+     * [Job.description][google.cloud.talent.v4beta1.Job.description].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + com.google.cloud.talent.v4beta1.JobCategory getJobCategories(int index); + /** + * + * + *
+     * Job categories derived from
+     * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+     * [Job.description][google.cloud.talent.v4beta1.Job.description].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + java.util.List getJobCategoriesValueList(); + /** + * + * + *
+     * Job categories derived from
+     * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+     * [Job.description][google.cloud.talent.v4beta1.Job.description].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + int getJobCategoriesValue(int index); + } + /** + * + * + *
+   * Output only.
+   * Derived details about the job posting.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Job.DerivedInfo} + */ + public static final class DerivedInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Job.DerivedInfo) + DerivedInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use DerivedInfo.newBuilder() to construct. + private DerivedInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DerivedInfo() { + locations_ = java.util.Collections.emptyList(); + jobCategories_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DerivedInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + locations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + locations_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.Location.parser(), extensionRegistry)); + break; + } + case 24: + { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + jobCategories_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + jobCategories_.add(rawValue); + break; + } + case 26: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + jobCategories_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + jobCategories_.add(rawValue); + } + input.popLimit(oldLimit); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + locations_ = java.util.Collections.unmodifiableList(locations_); + } + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + jobCategories_ = java.util.Collections.unmodifiableList(jobCategories_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_DerivedInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_DerivedInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Job.DerivedInfo.class, + com.google.cloud.talent.v4beta1.Job.DerivedInfo.Builder.class); + } + + public static final int LOCATIONS_FIELD_NUMBER = 1; + private java.util.List locations_; + /** + * + * + *
+     * Structured locations of the job, resolved from
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+     * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+     * exactly matched to
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+     * order.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public java.util.List getLocationsList() { + return locations_; + } + /** + * + * + *
+     * Structured locations of the job, resolved from
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+     * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+     * exactly matched to
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+     * order.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public java.util.List + getLocationsOrBuilderList() { + return locations_; + } + /** + * + * + *
+     * Structured locations of the job, resolved from
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+     * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+     * exactly matched to
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+     * order.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public int getLocationsCount() { + return locations_.size(); + } + /** + * + * + *
+     * Structured locations of the job, resolved from
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+     * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+     * exactly matched to
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+     * order.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public com.google.cloud.talent.v4beta1.Location getLocations(int index) { + return locations_.get(index); + } + /** + * + * + *
+     * Structured locations of the job, resolved from
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+     * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+     * exactly matched to
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+     * order.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public com.google.cloud.talent.v4beta1.LocationOrBuilder getLocationsOrBuilder(int index) { + return locations_.get(index); + } + + public static final int JOB_CATEGORIES_FIELD_NUMBER = 3; + private java.util.List jobCategories_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.talent.v4beta1.JobCategory> + jobCategories_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.talent.v4beta1.JobCategory>() { + public com.google.cloud.talent.v4beta1.JobCategory convert(java.lang.Integer from) { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.JobCategory result = + com.google.cloud.talent.v4beta1.JobCategory.valueOf(from); + return result == null + ? com.google.cloud.talent.v4beta1.JobCategory.UNRECOGNIZED + : result; + } + }; + /** + * + * + *
+     * Job categories derived from
+     * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+     * [Job.description][google.cloud.talent.v4beta1.Job.description].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + public java.util.List getJobCategoriesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.talent.v4beta1.JobCategory>( + jobCategories_, jobCategories_converter_); + } + /** + * + * + *
+     * Job categories derived from
+     * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+     * [Job.description][google.cloud.talent.v4beta1.Job.description].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + public int getJobCategoriesCount() { + return jobCategories_.size(); + } + /** + * + * + *
+     * Job categories derived from
+     * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+     * [Job.description][google.cloud.talent.v4beta1.Job.description].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + public com.google.cloud.talent.v4beta1.JobCategory getJobCategories(int index) { + return jobCategories_converter_.convert(jobCategories_.get(index)); + } + /** + * + * + *
+     * Job categories derived from
+     * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+     * [Job.description][google.cloud.talent.v4beta1.Job.description].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + public java.util.List getJobCategoriesValueList() { + return jobCategories_; + } + /** + * + * + *
+     * Job categories derived from
+     * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+     * [Job.description][google.cloud.talent.v4beta1.Job.description].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + public int getJobCategoriesValue(int index) { + return jobCategories_.get(index); + } + + private int jobCategoriesMemoizedSerializedSize; + + 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 { + getSerializedSize(); + for (int i = 0; i < locations_.size(); i++) { + output.writeMessage(1, locations_.get(i)); + } + if (getJobCategoriesList().size() > 0) { + output.writeUInt32NoTag(26); + output.writeUInt32NoTag(jobCategoriesMemoizedSerializedSize); + } + for (int i = 0; i < jobCategories_.size(); i++) { + output.writeEnumNoTag(jobCategories_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < locations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, locations_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < jobCategories_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(jobCategories_.get(i)); + } + size += dataSize; + if (!getJobCategoriesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + jobCategoriesMemoizedSerializedSize = dataSize; + } + size += unknownFields.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.cloud.talent.v4beta1.Job.DerivedInfo)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Job.DerivedInfo other = + (com.google.cloud.talent.v4beta1.Job.DerivedInfo) obj; + + boolean result = true; + result = result && getLocationsList().equals(other.getLocationsList()); + result = result && jobCategories_.equals(other.jobCategories_); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getLocationsCount() > 0) { + hash = (37 * hash) + LOCATIONS_FIELD_NUMBER; + hash = (53 * hash) + getLocationsList().hashCode(); + } + if (getJobCategoriesCount() > 0) { + hash = (37 * hash) + JOB_CATEGORIES_FIELD_NUMBER; + hash = (53 * hash) + jobCategories_.hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Job.DerivedInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Job.DerivedInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Job.DerivedInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Job.DerivedInfo 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.cloud.talent.v4beta1.Job.DerivedInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Job.DerivedInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Job.DerivedInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Job.DerivedInfo 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.cloud.talent.v4beta1.Job.DerivedInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Job.DerivedInfo 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.cloud.talent.v4beta1.Job.DerivedInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Job.DerivedInfo 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.cloud.talent.v4beta1.Job.DerivedInfo 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; + } + /** + * + * + *
+     * Output only.
+     * Derived details about the job posting.
+     * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Job.DerivedInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Job.DerivedInfo) + com.google.cloud.talent.v4beta1.Job.DerivedInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_DerivedInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_DerivedInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Job.DerivedInfo.class, + com.google.cloud.talent.v4beta1.Job.DerivedInfo.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Job.DerivedInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getLocationsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (locationsBuilder_ == null) { + locations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + locationsBuilder_.clear(); + } + jobCategories_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_DerivedInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Job.DerivedInfo getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Job.DerivedInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Job.DerivedInfo build() { + com.google.cloud.talent.v4beta1.Job.DerivedInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Job.DerivedInfo buildPartial() { + com.google.cloud.talent.v4beta1.Job.DerivedInfo result = + new com.google.cloud.talent.v4beta1.Job.DerivedInfo(this); + int from_bitField0_ = bitField0_; + if (locationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + locations_ = java.util.Collections.unmodifiableList(locations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.locations_ = locations_; + } else { + result.locations_ = locationsBuilder_.build(); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + jobCategories_ = java.util.Collections.unmodifiableList(jobCategories_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.jobCategories_ = jobCategories_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Job.DerivedInfo) { + return mergeFrom((com.google.cloud.talent.v4beta1.Job.DerivedInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Job.DerivedInfo other) { + if (other == com.google.cloud.talent.v4beta1.Job.DerivedInfo.getDefaultInstance()) + return this; + if (locationsBuilder_ == null) { + if (!other.locations_.isEmpty()) { + if (locations_.isEmpty()) { + locations_ = other.locations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLocationsIsMutable(); + locations_.addAll(other.locations_); + } + onChanged(); + } + } else { + if (!other.locations_.isEmpty()) { + if (locationsBuilder_.isEmpty()) { + locationsBuilder_.dispose(); + locationsBuilder_ = null; + locations_ = other.locations_; + bitField0_ = (bitField0_ & ~0x00000001); + locationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLocationsFieldBuilder() + : null; + } else { + locationsBuilder_.addAllMessages(other.locations_); + } + } + } + if (!other.jobCategories_.isEmpty()) { + if (jobCategories_.isEmpty()) { + jobCategories_ = other.jobCategories_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureJobCategoriesIsMutable(); + jobCategories_.addAll(other.jobCategories_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.Job.DerivedInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.Job.DerivedInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List locations_ = + java.util.Collections.emptyList(); + + private void ensureLocationsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + locations_ = + new java.util.ArrayList(locations_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Location, + com.google.cloud.talent.v4beta1.Location.Builder, + com.google.cloud.talent.v4beta1.LocationOrBuilder> + locationsBuilder_; + + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public java.util.List getLocationsList() { + if (locationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(locations_); + } else { + return locationsBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public int getLocationsCount() { + if (locationsBuilder_ == null) { + return locations_.size(); + } else { + return locationsBuilder_.getCount(); + } + } + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public com.google.cloud.talent.v4beta1.Location getLocations(int index) { + if (locationsBuilder_ == null) { + return locations_.get(index); + } else { + return locationsBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public Builder setLocations(int index, com.google.cloud.talent.v4beta1.Location value) { + if (locationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.set(index, value); + onChanged(); + } else { + locationsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public Builder setLocations( + int index, com.google.cloud.talent.v4beta1.Location.Builder builderForValue) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.set(index, builderForValue.build()); + onChanged(); + } else { + locationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public Builder addLocations(com.google.cloud.talent.v4beta1.Location value) { + if (locationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.add(value); + onChanged(); + } else { + locationsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public Builder addLocations(int index, com.google.cloud.talent.v4beta1.Location value) { + if (locationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.add(index, value); + onChanged(); + } else { + locationsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public Builder addLocations( + com.google.cloud.talent.v4beta1.Location.Builder builderForValue) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.add(builderForValue.build()); + onChanged(); + } else { + locationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public Builder addLocations( + int index, com.google.cloud.talent.v4beta1.Location.Builder builderForValue) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.add(index, builderForValue.build()); + onChanged(); + } else { + locationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public Builder addAllLocations( + java.lang.Iterable values) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locations_); + onChanged(); + } else { + locationsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public Builder clearLocations() { + if (locationsBuilder_ == null) { + locations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + locationsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public Builder removeLocations(int index) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.remove(index); + onChanged(); + } else { + locationsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public com.google.cloud.talent.v4beta1.Location.Builder getLocationsBuilder(int index) { + return getLocationsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public com.google.cloud.talent.v4beta1.LocationOrBuilder getLocationsOrBuilder(int index) { + if (locationsBuilder_ == null) { + return locations_.get(index); + } else { + return locationsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public java.util.List + getLocationsOrBuilderList() { + if (locationsBuilder_ != null) { + return locationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(locations_); + } + } + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public com.google.cloud.talent.v4beta1.Location.Builder addLocationsBuilder() { + return getLocationsFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.Location.getDefaultInstance()); + } + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public com.google.cloud.talent.v4beta1.Location.Builder addLocationsBuilder(int index) { + return getLocationsFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.Location.getDefaultInstance()); + } + /** + * + * + *
+       * Structured locations of the job, resolved from
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
+       * [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are
+       * exactly matched to
+       * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
+       * order.
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.Location locations = 1; + */ + public java.util.List + getLocationsBuilderList() { + return getLocationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Location, + com.google.cloud.talent.v4beta1.Location.Builder, + com.google.cloud.talent.v4beta1.LocationOrBuilder> + getLocationsFieldBuilder() { + if (locationsBuilder_ == null) { + locationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Location, + com.google.cloud.talent.v4beta1.Location.Builder, + com.google.cloud.talent.v4beta1.LocationOrBuilder>( + locations_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + locations_ = null; + } + return locationsBuilder_; + } + + private java.util.List jobCategories_ = java.util.Collections.emptyList(); + + private void ensureJobCategoriesIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + jobCategories_ = new java.util.ArrayList(jobCategories_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+       * Job categories derived from
+       * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+       * [Job.description][google.cloud.talent.v4beta1.Job.description].
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + public java.util.List getJobCategoriesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.talent.v4beta1.JobCategory>( + jobCategories_, jobCategories_converter_); + } + /** + * + * + *
+       * Job categories derived from
+       * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+       * [Job.description][google.cloud.talent.v4beta1.Job.description].
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + public int getJobCategoriesCount() { + return jobCategories_.size(); + } + /** + * + * + *
+       * Job categories derived from
+       * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+       * [Job.description][google.cloud.talent.v4beta1.Job.description].
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + public com.google.cloud.talent.v4beta1.JobCategory getJobCategories(int index) { + return jobCategories_converter_.convert(jobCategories_.get(index)); + } + /** + * + * + *
+       * Job categories derived from
+       * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+       * [Job.description][google.cloud.talent.v4beta1.Job.description].
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + public Builder setJobCategories( + int index, com.google.cloud.talent.v4beta1.JobCategory value) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobCategoriesIsMutable(); + jobCategories_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+       * Job categories derived from
+       * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+       * [Job.description][google.cloud.talent.v4beta1.Job.description].
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + public Builder addJobCategories(com.google.cloud.talent.v4beta1.JobCategory value) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobCategoriesIsMutable(); + jobCategories_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+       * Job categories derived from
+       * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+       * [Job.description][google.cloud.talent.v4beta1.Job.description].
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + public Builder addAllJobCategories( + java.lang.Iterable values) { + ensureJobCategoriesIsMutable(); + for (com.google.cloud.talent.v4beta1.JobCategory value : values) { + jobCategories_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
+       * Job categories derived from
+       * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+       * [Job.description][google.cloud.talent.v4beta1.Job.description].
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + public Builder clearJobCategories() { + jobCategories_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * Job categories derived from
+       * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+       * [Job.description][google.cloud.talent.v4beta1.Job.description].
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + public java.util.List getJobCategoriesValueList() { + return java.util.Collections.unmodifiableList(jobCategories_); + } + /** + * + * + *
+       * Job categories derived from
+       * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+       * [Job.description][google.cloud.talent.v4beta1.Job.description].
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + public int getJobCategoriesValue(int index) { + return jobCategories_.get(index); + } + /** + * + * + *
+       * Job categories derived from
+       * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+       * [Job.description][google.cloud.talent.v4beta1.Job.description].
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + public Builder setJobCategoriesValue(int index, int value) { + ensureJobCategoriesIsMutable(); + jobCategories_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+       * Job categories derived from
+       * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+       * [Job.description][google.cloud.talent.v4beta1.Job.description].
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + public Builder addJobCategoriesValue(int value) { + ensureJobCategoriesIsMutable(); + jobCategories_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+       * Job categories derived from
+       * [Job.title][google.cloud.talent.v4beta1.Job.title] and
+       * [Job.description][google.cloud.talent.v4beta1.Job.description].
+       * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 3; + */ + public Builder addAllJobCategoriesValue(java.lang.Iterable values) { + ensureJobCategoriesIsMutable(); + for (int value : values) { + jobCategories_.add(value); + } + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Job.DerivedInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Job.DerivedInfo) + private static final com.google.cloud.talent.v4beta1.Job.DerivedInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Job.DerivedInfo(); + } + + public static com.google.cloud.talent.v4beta1.Job.DerivedInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DerivedInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DerivedInfo(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.Job.DerivedInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ProcessingOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Job.ProcessingOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional.
+     * If set to `true`, the service does not attempt to resolve a
+     * more precise address for the job.
+     * 
+ * + * bool disable_street_address_resolution = 1; + */ + boolean getDisableStreetAddressResolution(); + + /** + * + * + *
+     * Optional.
+     * Option for job HTML content sanitization. Applied fields are:
+     * * description
+     * * applicationInfo.instruction
+     * * incentives
+     * * qualifications
+     * * responsibilities
+     * HTML tags in these fields may be stripped if sanitiazation isn't
+     * disabled.
+     * Defaults to
+     * [HtmlSanitization.SIMPLE_FORMATTING_ONLY][google.cloud.talent.v4beta1.HtmlSanitization.SIMPLE_FORMATTING_ONLY].
+     * 
+ * + * .google.cloud.talent.v4beta1.HtmlSanitization html_sanitization = 2; + */ + int getHtmlSanitizationValue(); + /** + * + * + *
+     * Optional.
+     * Option for job HTML content sanitization. Applied fields are:
+     * * description
+     * * applicationInfo.instruction
+     * * incentives
+     * * qualifications
+     * * responsibilities
+     * HTML tags in these fields may be stripped if sanitiazation isn't
+     * disabled.
+     * Defaults to
+     * [HtmlSanitization.SIMPLE_FORMATTING_ONLY][google.cloud.talent.v4beta1.HtmlSanitization.SIMPLE_FORMATTING_ONLY].
+     * 
+ * + * .google.cloud.talent.v4beta1.HtmlSanitization html_sanitization = 2; + */ + com.google.cloud.talent.v4beta1.HtmlSanitization getHtmlSanitization(); + } + /** + * + * + *
+   * Input only.
+   * Options for job processing.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Job.ProcessingOptions} + */ + public static final class ProcessingOptions extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Job.ProcessingOptions) + ProcessingOptionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProcessingOptions.newBuilder() to construct. + private ProcessingOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ProcessingOptions() { + disableStreetAddressResolution_ = false; + htmlSanitization_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ProcessingOptions( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + disableStreetAddressResolution_ = input.readBool(); + break; + } + case 16: + { + int rawValue = input.readEnum(); + + htmlSanitization_ = rawValue; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_ProcessingOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_ProcessingOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Job.ProcessingOptions.class, + com.google.cloud.talent.v4beta1.Job.ProcessingOptions.Builder.class); + } + + public static final int DISABLE_STREET_ADDRESS_RESOLUTION_FIELD_NUMBER = 1; + private boolean disableStreetAddressResolution_; + /** + * + * + *
+     * Optional.
+     * If set to `true`, the service does not attempt to resolve a
+     * more precise address for the job.
+     * 
+ * + * bool disable_street_address_resolution = 1; + */ + public boolean getDisableStreetAddressResolution() { + return disableStreetAddressResolution_; + } + + public static final int HTML_SANITIZATION_FIELD_NUMBER = 2; + private int htmlSanitization_; + /** + * + * + *
+     * Optional.
+     * Option for job HTML content sanitization. Applied fields are:
+     * * description
+     * * applicationInfo.instruction
+     * * incentives
+     * * qualifications
+     * * responsibilities
+     * HTML tags in these fields may be stripped if sanitiazation isn't
+     * disabled.
+     * Defaults to
+     * [HtmlSanitization.SIMPLE_FORMATTING_ONLY][google.cloud.talent.v4beta1.HtmlSanitization.SIMPLE_FORMATTING_ONLY].
+     * 
+ * + * .google.cloud.talent.v4beta1.HtmlSanitization html_sanitization = 2; + */ + public int getHtmlSanitizationValue() { + return htmlSanitization_; + } + /** + * + * + *
+     * Optional.
+     * Option for job HTML content sanitization. Applied fields are:
+     * * description
+     * * applicationInfo.instruction
+     * * incentives
+     * * qualifications
+     * * responsibilities
+     * HTML tags in these fields may be stripped if sanitiazation isn't
+     * disabled.
+     * Defaults to
+     * [HtmlSanitization.SIMPLE_FORMATTING_ONLY][google.cloud.talent.v4beta1.HtmlSanitization.SIMPLE_FORMATTING_ONLY].
+     * 
+ * + * .google.cloud.talent.v4beta1.HtmlSanitization html_sanitization = 2; + */ + public com.google.cloud.talent.v4beta1.HtmlSanitization getHtmlSanitization() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.HtmlSanitization result = + com.google.cloud.talent.v4beta1.HtmlSanitization.valueOf(htmlSanitization_); + return result == null + ? com.google.cloud.talent.v4beta1.HtmlSanitization.UNRECOGNIZED + : result; + } + + 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 (disableStreetAddressResolution_ != false) { + output.writeBool(1, disableStreetAddressResolution_); + } + if (htmlSanitization_ + != com.google.cloud.talent.v4beta1.HtmlSanitization.HTML_SANITIZATION_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, htmlSanitization_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (disableStreetAddressResolution_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 1, disableStreetAddressResolution_); + } + if (htmlSanitization_ + != com.google.cloud.talent.v4beta1.HtmlSanitization.HTML_SANITIZATION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, htmlSanitization_); + } + size += unknownFields.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.cloud.talent.v4beta1.Job.ProcessingOptions)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Job.ProcessingOptions other = + (com.google.cloud.talent.v4beta1.Job.ProcessingOptions) obj; + + boolean result = true; + result = + result + && (getDisableStreetAddressResolution() == other.getDisableStreetAddressResolution()); + result = result && htmlSanitization_ == other.htmlSanitization_; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISABLE_STREET_ADDRESS_RESOLUTION_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getDisableStreetAddressResolution()); + hash = (37 * hash) + HTML_SANITIZATION_FIELD_NUMBER; + hash = (53 * hash) + htmlSanitization_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Job.ProcessingOptions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Job.ProcessingOptions parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Job.ProcessingOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Job.ProcessingOptions 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.cloud.talent.v4beta1.Job.ProcessingOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Job.ProcessingOptions parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Job.ProcessingOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Job.ProcessingOptions 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.cloud.talent.v4beta1.Job.ProcessingOptions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Job.ProcessingOptions 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.cloud.talent.v4beta1.Job.ProcessingOptions parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Job.ProcessingOptions 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.cloud.talent.v4beta1.Job.ProcessingOptions 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; + } + /** + * + * + *
+     * Input only.
+     * Options for job processing.
+     * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Job.ProcessingOptions} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Job.ProcessingOptions) + com.google.cloud.talent.v4beta1.Job.ProcessingOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_ProcessingOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_ProcessingOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Job.ProcessingOptions.class, + com.google.cloud.talent.v4beta1.Job.ProcessingOptions.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Job.ProcessingOptions.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + disableStreetAddressResolution_ = false; + + htmlSanitization_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_ProcessingOptions_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Job.ProcessingOptions getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Job.ProcessingOptions.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Job.ProcessingOptions build() { + com.google.cloud.talent.v4beta1.Job.ProcessingOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Job.ProcessingOptions buildPartial() { + com.google.cloud.talent.v4beta1.Job.ProcessingOptions result = + new com.google.cloud.talent.v4beta1.Job.ProcessingOptions(this); + result.disableStreetAddressResolution_ = disableStreetAddressResolution_; + result.htmlSanitization_ = htmlSanitization_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Job.ProcessingOptions) { + return mergeFrom((com.google.cloud.talent.v4beta1.Job.ProcessingOptions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Job.ProcessingOptions other) { + if (other == com.google.cloud.talent.v4beta1.Job.ProcessingOptions.getDefaultInstance()) + return this; + if (other.getDisableStreetAddressResolution() != false) { + setDisableStreetAddressResolution(other.getDisableStreetAddressResolution()); + } + if (other.htmlSanitization_ != 0) { + setHtmlSanitizationValue(other.getHtmlSanitizationValue()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.Job.ProcessingOptions parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.Job.ProcessingOptions) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean disableStreetAddressResolution_; + /** + * + * + *
+       * Optional.
+       * If set to `true`, the service does not attempt to resolve a
+       * more precise address for the job.
+       * 
+ * + * bool disable_street_address_resolution = 1; + */ + public boolean getDisableStreetAddressResolution() { + return disableStreetAddressResolution_; + } + /** + * + * + *
+       * Optional.
+       * If set to `true`, the service does not attempt to resolve a
+       * more precise address for the job.
+       * 
+ * + * bool disable_street_address_resolution = 1; + */ + public Builder setDisableStreetAddressResolution(boolean value) { + + disableStreetAddressResolution_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * If set to `true`, the service does not attempt to resolve a
+       * more precise address for the job.
+       * 
+ * + * bool disable_street_address_resolution = 1; + */ + public Builder clearDisableStreetAddressResolution() { + + disableStreetAddressResolution_ = false; + onChanged(); + return this; + } + + private int htmlSanitization_ = 0; + /** + * + * + *
+       * Optional.
+       * Option for job HTML content sanitization. Applied fields are:
+       * * description
+       * * applicationInfo.instruction
+       * * incentives
+       * * qualifications
+       * * responsibilities
+       * HTML tags in these fields may be stripped if sanitiazation isn't
+       * disabled.
+       * Defaults to
+       * [HtmlSanitization.SIMPLE_FORMATTING_ONLY][google.cloud.talent.v4beta1.HtmlSanitization.SIMPLE_FORMATTING_ONLY].
+       * 
+ * + * .google.cloud.talent.v4beta1.HtmlSanitization html_sanitization = 2; + */ + public int getHtmlSanitizationValue() { + return htmlSanitization_; + } + /** + * + * + *
+       * Optional.
+       * Option for job HTML content sanitization. Applied fields are:
+       * * description
+       * * applicationInfo.instruction
+       * * incentives
+       * * qualifications
+       * * responsibilities
+       * HTML tags in these fields may be stripped if sanitiazation isn't
+       * disabled.
+       * Defaults to
+       * [HtmlSanitization.SIMPLE_FORMATTING_ONLY][google.cloud.talent.v4beta1.HtmlSanitization.SIMPLE_FORMATTING_ONLY].
+       * 
+ * + * .google.cloud.talent.v4beta1.HtmlSanitization html_sanitization = 2; + */ + public Builder setHtmlSanitizationValue(int value) { + htmlSanitization_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Option for job HTML content sanitization. Applied fields are:
+       * * description
+       * * applicationInfo.instruction
+       * * incentives
+       * * qualifications
+       * * responsibilities
+       * HTML tags in these fields may be stripped if sanitiazation isn't
+       * disabled.
+       * Defaults to
+       * [HtmlSanitization.SIMPLE_FORMATTING_ONLY][google.cloud.talent.v4beta1.HtmlSanitization.SIMPLE_FORMATTING_ONLY].
+       * 
+ * + * .google.cloud.talent.v4beta1.HtmlSanitization html_sanitization = 2; + */ + public com.google.cloud.talent.v4beta1.HtmlSanitization getHtmlSanitization() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.HtmlSanitization result = + com.google.cloud.talent.v4beta1.HtmlSanitization.valueOf(htmlSanitization_); + return result == null + ? com.google.cloud.talent.v4beta1.HtmlSanitization.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Optional.
+       * Option for job HTML content sanitization. Applied fields are:
+       * * description
+       * * applicationInfo.instruction
+       * * incentives
+       * * qualifications
+       * * responsibilities
+       * HTML tags in these fields may be stripped if sanitiazation isn't
+       * disabled.
+       * Defaults to
+       * [HtmlSanitization.SIMPLE_FORMATTING_ONLY][google.cloud.talent.v4beta1.HtmlSanitization.SIMPLE_FORMATTING_ONLY].
+       * 
+ * + * .google.cloud.talent.v4beta1.HtmlSanitization html_sanitization = 2; + */ + public Builder setHtmlSanitization(com.google.cloud.talent.v4beta1.HtmlSanitization value) { + if (value == null) { + throw new NullPointerException(); + } + + htmlSanitization_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Option for job HTML content sanitization. Applied fields are:
+       * * description
+       * * applicationInfo.instruction
+       * * incentives
+       * * qualifications
+       * * responsibilities
+       * HTML tags in these fields may be stripped if sanitiazation isn't
+       * disabled.
+       * Defaults to
+       * [HtmlSanitization.SIMPLE_FORMATTING_ONLY][google.cloud.talent.v4beta1.HtmlSanitization.SIMPLE_FORMATTING_ONLY].
+       * 
+ * + * .google.cloud.talent.v4beta1.HtmlSanitization html_sanitization = 2; + */ + public Builder clearHtmlSanitization() { + + htmlSanitization_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Job.ProcessingOptions) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Job.ProcessingOptions) + private static final com.google.cloud.talent.v4beta1.Job.ProcessingOptions DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Job.ProcessingOptions(); + } + + public static com.google.cloud.talent.v4beta1.Job.ProcessingOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProcessingOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProcessingOptions(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.Job.ProcessingOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required during job update.
+   * The resource name for the job. This is generated by the service when a
+   * job is created.
+   * The format is "projects/{project_id}/jobs/{job_id}",
+   * for example, "projects/api-test-project/jobs/1234".
+   * Use of this field in job queries and API calls is preferred over the use of
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] since this
+   * value is unique.
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required during job update.
+   * The resource name for the job. This is generated by the service when a
+   * job is created.
+   * The format is "projects/{project_id}/jobs/{job_id}",
+   * for example, "projects/api-test-project/jobs/1234".
+   * Use of this field in job queries and API calls is preferred over the use of
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] since this
+   * value is unique.
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMPANY_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object companyName_; + /** + * + * + *
+   * Required.
+   * The resource name of the company listing the job, such as
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string company_name = 2; + */ + public java.lang.String getCompanyName() { + java.lang.Object ref = companyName_; + 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(); + companyName_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The resource name of the company listing the job, such as
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string company_name = 2; + */ + public com.google.protobuf.ByteString getCompanyNameBytes() { + java.lang.Object ref = companyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + companyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUISITION_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object requisitionId_; + /** + * + * + *
+   * Required.
+   * The requisition ID, also referred to as the posting ID, is assigned by the
+   * client to identify a job. This field is intended to be used by clients
+   * for client identification and tracking of postings. A job isn't allowed
+   * to be created if there is another job with the same
+   * [company][google.cloud.talent.v4beta1.Job.name],
+   * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string requisition_id = 3; + */ + public java.lang.String getRequisitionId() { + java.lang.Object ref = requisitionId_; + 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(); + requisitionId_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The requisition ID, also referred to as the posting ID, is assigned by the
+   * client to identify a job. This field is intended to be used by clients
+   * for client identification and tracking of postings. A job isn't allowed
+   * to be created if there is another job with the same
+   * [company][google.cloud.talent.v4beta1.Job.name],
+   * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string requisition_id = 3; + */ + public com.google.protobuf.ByteString getRequisitionIdBytes() { + java.lang.Object ref = requisitionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requisitionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TITLE_FIELD_NUMBER = 4; + private volatile java.lang.Object title_; + /** + * + * + *
+   * Required.
+   * The title of the job, such as "Software Engineer"
+   * The maximum number of allowed characters is 500.
+   * 
+ * + * string title = 4; + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + 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(); + title_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The title of the job, such as "Software Engineer"
+   * The maximum number of allowed characters is 500.
+   * 
+ * + * string title = 4; + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 5; + private volatile java.lang.Object description_; + /** + * + * + *
+   * Required.
+   * The description of the job, which typically includes a multi-paragraph
+   * description of the company and related information. Separate fields are
+   * provided on the job object for
+   * [responsibilities][google.cloud.talent.v4beta1.Job.responsibilities],
+   * [qualifications][google.cloud.talent.v4beta1.Job.qualifications], and other
+   * job characteristics. Use of these separate job fields is recommended.
+   * This field accepts and sanitizes HTML input, and also accepts
+   * bold, italic, ordered list, and unordered list markup tags.
+   * The maximum number of allowed characters is 100,000.
+   * 
+ * + * string description = 5; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The description of the job, which typically includes a multi-paragraph
+   * description of the company and related information. Separate fields are
+   * provided on the job object for
+   * [responsibilities][google.cloud.talent.v4beta1.Job.responsibilities],
+   * [qualifications][google.cloud.talent.v4beta1.Job.qualifications], and other
+   * job characteristics. Use of these separate job fields is recommended.
+   * This field accepts and sanitizes HTML input, and also accepts
+   * bold, italic, ordered list, and unordered list markup tags.
+   * The maximum number of allowed characters is 100,000.
+   * 
+ * + * string description = 5; + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADDRESSES_FIELD_NUMBER = 6; + private com.google.protobuf.LazyStringList addresses_; + /** + * + * + *
+   * Optional but strongly recommended for the best service experience.
+   * Location(s) where the employer is looking to hire for this job posting.
+   * Specifying the full street address(es) of the hiring location enables
+   * better API results, especially job searches by commute time.
+   * At most 50 locations are allowed for best search performance. If a job has
+   * more locations, it is suggested to split it into multiple jobs with unique
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g.
+   * 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same
+   * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not
+   * allowed. If the original
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be
+   * preserved, a custom field should be used for storage. It is also suggested
+   * to group the locations that close to each other in the same job for better
+   * search experience.
+   * The maximum number of allowed characters is 500.
+   * 
+ * + * repeated string addresses = 6; + */ + public com.google.protobuf.ProtocolStringList getAddressesList() { + return addresses_; + } + /** + * + * + *
+   * Optional but strongly recommended for the best service experience.
+   * Location(s) where the employer is looking to hire for this job posting.
+   * Specifying the full street address(es) of the hiring location enables
+   * better API results, especially job searches by commute time.
+   * At most 50 locations are allowed for best search performance. If a job has
+   * more locations, it is suggested to split it into multiple jobs with unique
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g.
+   * 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same
+   * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not
+   * allowed. If the original
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be
+   * preserved, a custom field should be used for storage. It is also suggested
+   * to group the locations that close to each other in the same job for better
+   * search experience.
+   * The maximum number of allowed characters is 500.
+   * 
+ * + * repeated string addresses = 6; + */ + public int getAddressesCount() { + return addresses_.size(); + } + /** + * + * + *
+   * Optional but strongly recommended for the best service experience.
+   * Location(s) where the employer is looking to hire for this job posting.
+   * Specifying the full street address(es) of the hiring location enables
+   * better API results, especially job searches by commute time.
+   * At most 50 locations are allowed for best search performance. If a job has
+   * more locations, it is suggested to split it into multiple jobs with unique
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g.
+   * 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same
+   * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not
+   * allowed. If the original
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be
+   * preserved, a custom field should be used for storage. It is also suggested
+   * to group the locations that close to each other in the same job for better
+   * search experience.
+   * The maximum number of allowed characters is 500.
+   * 
+ * + * repeated string addresses = 6; + */ + public java.lang.String getAddresses(int index) { + return addresses_.get(index); + } + /** + * + * + *
+   * Optional but strongly recommended for the best service experience.
+   * Location(s) where the employer is looking to hire for this job posting.
+   * Specifying the full street address(es) of the hiring location enables
+   * better API results, especially job searches by commute time.
+   * At most 50 locations are allowed for best search performance. If a job has
+   * more locations, it is suggested to split it into multiple jobs with unique
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g.
+   * 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same
+   * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not
+   * allowed. If the original
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be
+   * preserved, a custom field should be used for storage. It is also suggested
+   * to group the locations that close to each other in the same job for better
+   * search experience.
+   * The maximum number of allowed characters is 500.
+   * 
+ * + * repeated string addresses = 6; + */ + public com.google.protobuf.ByteString getAddressesBytes(int index) { + return addresses_.getByteString(index); + } + + public static final int APPLICATION_INFO_FIELD_NUMBER = 7; + private com.google.cloud.talent.v4beta1.Job.ApplicationInfo applicationInfo_; + /** + * + * + *
+   * Required. At least one field within
+   * [ApplicationInfo][google.cloud.talent.v4beta1.Job.ApplicationInfo] must be
+   * specified.
+   * Job application information.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.ApplicationInfo application_info = 7; + */ + public boolean hasApplicationInfo() { + return applicationInfo_ != null; + } + /** + * + * + *
+   * Required. At least one field within
+   * [ApplicationInfo][google.cloud.talent.v4beta1.Job.ApplicationInfo] must be
+   * specified.
+   * Job application information.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.ApplicationInfo application_info = 7; + */ + public com.google.cloud.talent.v4beta1.Job.ApplicationInfo getApplicationInfo() { + return applicationInfo_ == null + ? com.google.cloud.talent.v4beta1.Job.ApplicationInfo.getDefaultInstance() + : applicationInfo_; + } + /** + * + * + *
+   * Required. At least one field within
+   * [ApplicationInfo][google.cloud.talent.v4beta1.Job.ApplicationInfo] must be
+   * specified.
+   * Job application information.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.ApplicationInfo application_info = 7; + */ + public com.google.cloud.talent.v4beta1.Job.ApplicationInfoOrBuilder + getApplicationInfoOrBuilder() { + return getApplicationInfo(); + } + + public static final int JOB_BENEFITS_FIELD_NUMBER = 8; + private java.util.List jobBenefits_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.talent.v4beta1.JobBenefit> + jobBenefits_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.talent.v4beta1.JobBenefit>() { + public com.google.cloud.talent.v4beta1.JobBenefit convert(java.lang.Integer from) { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.JobBenefit result = + com.google.cloud.talent.v4beta1.JobBenefit.valueOf(from); + return result == null + ? com.google.cloud.talent.v4beta1.JobBenefit.UNRECOGNIZED + : result; + } + }; + /** + * + * + *
+   * Optional.
+   * The benefits included with the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + public java.util.List getJobBenefitsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.talent.v4beta1.JobBenefit>( + jobBenefits_, jobBenefits_converter_); + } + /** + * + * + *
+   * Optional.
+   * The benefits included with the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + public int getJobBenefitsCount() { + return jobBenefits_.size(); + } + /** + * + * + *
+   * Optional.
+   * The benefits included with the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + public com.google.cloud.talent.v4beta1.JobBenefit getJobBenefits(int index) { + return jobBenefits_converter_.convert(jobBenefits_.get(index)); + } + /** + * + * + *
+   * Optional.
+   * The benefits included with the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + public java.util.List getJobBenefitsValueList() { + return jobBenefits_; + } + /** + * + * + *
+   * Optional.
+   * The benefits included with the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + public int getJobBenefitsValue(int index) { + return jobBenefits_.get(index); + } + + private int jobBenefitsMemoizedSerializedSize; + + public static final int COMPENSATION_INFO_FIELD_NUMBER = 9; + private com.google.cloud.talent.v4beta1.CompensationInfo compensationInfo_; + /** + * + * + *
+   * Optional.
+   * Job compensation information.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; + */ + public boolean hasCompensationInfo() { + return compensationInfo_ != null; + } + /** + * + * + *
+   * Optional.
+   * Job compensation information.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo getCompensationInfo() { + return compensationInfo_ == null + ? com.google.cloud.talent.v4beta1.CompensationInfo.getDefaultInstance() + : compensationInfo_; + } + /** + * + * + *
+   * Optional.
+   * Job compensation information.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; + */ + public com.google.cloud.talent.v4beta1.CompensationInfoOrBuilder getCompensationInfoOrBuilder() { + return getCompensationInfo(); + } + + public static final int CUSTOM_ATTRIBUTES_FIELD_NUMBER = 10; + + private static final class CustomAttributesDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_CustomAttributesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.talent.v4beta1.CustomAttribute.getDefaultInstance()); + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> + customAttributes_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> + internalGetCustomAttributes() { + if (customAttributes_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CustomAttributesDefaultEntryHolder.defaultEntry); + } + return customAttributes_; + } + + public int getCustomAttributesCount() { + return internalGetCustomAttributes().getMap().size(); + } + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom job
+   * attributes that are not covered by the provided structured fields.
+   * The keys of the map are strings up to 64 bytes and must match the
+   * pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or
+   * KEY_1_LIKE_THIS.
+   * At most 100 filterable and at most 100 unfilterable keys are supported.
+   * For filterable `string_values`, across all keys at most 200 values are
+   * allowed, with each string no more than 255 characters. For unfilterable
+   * `string_values`, the maximum total size of `string_values` across all keys
+   * is 50KB.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 10; + * + */ + public boolean containsCustomAttributes(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetCustomAttributes().getMap().containsKey(key); + } + /** Use {@link #getCustomAttributesMap()} instead. */ + @java.lang.Deprecated + public java.util.Map + getCustomAttributes() { + return getCustomAttributesMap(); + } + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom job
+   * attributes that are not covered by the provided structured fields.
+   * The keys of the map are strings up to 64 bytes and must match the
+   * pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or
+   * KEY_1_LIKE_THIS.
+   * At most 100 filterable and at most 100 unfilterable keys are supported.
+   * For filterable `string_values`, across all keys at most 200 values are
+   * allowed, with each string no more than 255 characters. For unfilterable
+   * `string_values`, the maximum total size of `string_values` across all keys
+   * is 50KB.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 10; + * + */ + public java.util.Map + getCustomAttributesMap() { + return internalGetCustomAttributes().getMap(); + } + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom job
+   * attributes that are not covered by the provided structured fields.
+   * The keys of the map are strings up to 64 bytes and must match the
+   * pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or
+   * KEY_1_LIKE_THIS.
+   * At most 100 filterable and at most 100 unfilterable keys are supported.
+   * For filterable `string_values`, across all keys at most 200 values are
+   * allowed, with each string no more than 255 characters. For unfilterable
+   * `string_values`, the maximum total size of `string_values` across all keys
+   * is 50KB.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 10; + * + */ + public com.google.cloud.talent.v4beta1.CustomAttribute getCustomAttributesOrDefault( + java.lang.String key, com.google.cloud.talent.v4beta1.CustomAttribute defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetCustomAttributes().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom job
+   * attributes that are not covered by the provided structured fields.
+   * The keys of the map are strings up to 64 bytes and must match the
+   * pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or
+   * KEY_1_LIKE_THIS.
+   * At most 100 filterable and at most 100 unfilterable keys are supported.
+   * For filterable `string_values`, across all keys at most 200 values are
+   * allowed, with each string no more than 255 characters. For unfilterable
+   * `string_values`, the maximum total size of `string_values` across all keys
+   * is 50KB.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 10; + * + */ + public com.google.cloud.talent.v4beta1.CustomAttribute getCustomAttributesOrThrow( + java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetCustomAttributes().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int DEGREE_TYPES_FIELD_NUMBER = 11; + private java.util.List degreeTypes_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.talent.v4beta1.DegreeType> + degreeTypes_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.talent.v4beta1.DegreeType>() { + public com.google.cloud.talent.v4beta1.DegreeType convert(java.lang.Integer from) { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.DegreeType result = + com.google.cloud.talent.v4beta1.DegreeType.valueOf(from); + return result == null + ? com.google.cloud.talent.v4beta1.DegreeType.UNRECOGNIZED + : result; + } + }; + /** + * + * + *
+   * Optional.
+   * The desired education degrees for the job, such as Bachelors, Masters.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + public java.util.List getDegreeTypesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.talent.v4beta1.DegreeType>( + degreeTypes_, degreeTypes_converter_); + } + /** + * + * + *
+   * Optional.
+   * The desired education degrees for the job, such as Bachelors, Masters.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + public int getDegreeTypesCount() { + return degreeTypes_.size(); + } + /** + * + * + *
+   * Optional.
+   * The desired education degrees for the job, such as Bachelors, Masters.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + public com.google.cloud.talent.v4beta1.DegreeType getDegreeTypes(int index) { + return degreeTypes_converter_.convert(degreeTypes_.get(index)); + } + /** + * + * + *
+   * Optional.
+   * The desired education degrees for the job, such as Bachelors, Masters.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + public java.util.List getDegreeTypesValueList() { + return degreeTypes_; + } + /** + * + * + *
+   * Optional.
+   * The desired education degrees for the job, such as Bachelors, Masters.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + public int getDegreeTypesValue(int index) { + return degreeTypes_.get(index); + } + + private int degreeTypesMemoizedSerializedSize; + + public static final int DEPARTMENT_FIELD_NUMBER = 12; + private volatile java.lang.Object department_; + /** + * + * + *
+   * Optional.
+   * The department or functional area within the company with the open
+   * position.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string department = 12; + */ + public java.lang.String getDepartment() { + java.lang.Object ref = department_; + 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(); + department_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The department or functional area within the company with the open
+   * position.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string department = 12; + */ + public com.google.protobuf.ByteString getDepartmentBytes() { + java.lang.Object ref = department_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + department_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EMPLOYMENT_TYPES_FIELD_NUMBER = 13; + private java.util.List employmentTypes_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.talent.v4beta1.EmploymentType> + employmentTypes_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.talent.v4beta1.EmploymentType>() { + public com.google.cloud.talent.v4beta1.EmploymentType convert(java.lang.Integer from) { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.EmploymentType result = + com.google.cloud.talent.v4beta1.EmploymentType.valueOf(from); + return result == null + ? com.google.cloud.talent.v4beta1.EmploymentType.UNRECOGNIZED + : result; + } + }; + /** + * + * + *
+   * Optional.
+   * The employment type(s) of a job, for example,
+   * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+   * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + public java.util.List getEmploymentTypesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.talent.v4beta1.EmploymentType>( + employmentTypes_, employmentTypes_converter_); + } + /** + * + * + *
+   * Optional.
+   * The employment type(s) of a job, for example,
+   * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+   * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + public int getEmploymentTypesCount() { + return employmentTypes_.size(); + } + /** + * + * + *
+   * Optional.
+   * The employment type(s) of a job, for example,
+   * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+   * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + public com.google.cloud.talent.v4beta1.EmploymentType getEmploymentTypes(int index) { + return employmentTypes_converter_.convert(employmentTypes_.get(index)); + } + /** + * + * + *
+   * Optional.
+   * The employment type(s) of a job, for example,
+   * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+   * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + public java.util.List getEmploymentTypesValueList() { + return employmentTypes_; + } + /** + * + * + *
+   * Optional.
+   * The employment type(s) of a job, for example,
+   * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+   * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + public int getEmploymentTypesValue(int index) { + return employmentTypes_.get(index); + } + + private int employmentTypesMemoizedSerializedSize; + + public static final int INCENTIVES_FIELD_NUMBER = 14; + private volatile java.lang.Object incentives_; + /** + * + * + *
+   * Optional.
+   * A description of bonus, commission, and other compensation
+   * incentives associated with the job not including salary or pay.
+   * The maximum number of allowed characters is 10,000.
+   * 
+ * + * string incentives = 14; + */ + public java.lang.String getIncentives() { + java.lang.Object ref = incentives_; + 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(); + incentives_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * A description of bonus, commission, and other compensation
+   * incentives associated with the job not including salary or pay.
+   * The maximum number of allowed characters is 10,000.
+   * 
+ * + * string incentives = 14; + */ + public com.google.protobuf.ByteString getIncentivesBytes() { + java.lang.Object ref = incentives_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + incentives_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LANGUAGE_CODE_FIELD_NUMBER = 15; + private volatile java.lang.Object languageCode_; + /** + * + * + *
+   * Optional.
+   * The language of the posting. This field is distinct from
+   * any requirements for fluency that are associated with the job.
+   * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+   * class="external" target="_blank" }.
+   * If this field is unspecified and
+   * [Job.description][google.cloud.talent.v4beta1.Job.description] is present,
+   * detected language code based on
+   * [Job.description][google.cloud.talent.v4beta1.Job.description] is assigned,
+   * otherwise defaults to 'en_US'.
+   * 
+ * + * string language_code = 15; + */ + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + 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(); + languageCode_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The language of the posting. This field is distinct from
+   * any requirements for fluency that are associated with the job.
+   * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+   * class="external" target="_blank" }.
+   * If this field is unspecified and
+   * [Job.description][google.cloud.talent.v4beta1.Job.description] is present,
+   * detected language code based on
+   * [Job.description][google.cloud.talent.v4beta1.Job.description] is assigned,
+   * otherwise defaults to 'en_US'.
+   * 
+ * + * string language_code = 15; + */ + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int JOB_LEVEL_FIELD_NUMBER = 16; + private int jobLevel_; + /** + * + * + *
+   * Optional.
+   * The experience level associated with the job, such as "Entry Level".
+   * 
+ * + * .google.cloud.talent.v4beta1.JobLevel job_level = 16; + */ + public int getJobLevelValue() { + return jobLevel_; + } + /** + * + * + *
+   * Optional.
+   * The experience level associated with the job, such as "Entry Level".
+   * 
+ * + * .google.cloud.talent.v4beta1.JobLevel job_level = 16; + */ + public com.google.cloud.talent.v4beta1.JobLevel getJobLevel() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.JobLevel result = + com.google.cloud.talent.v4beta1.JobLevel.valueOf(jobLevel_); + return result == null ? com.google.cloud.talent.v4beta1.JobLevel.UNRECOGNIZED : result; + } + + public static final int PROMOTION_VALUE_FIELD_NUMBER = 17; + private int promotionValue_; + /** + * + * + *
+   * Optional.
+   * A promotion value of the job, as determined by the client.
+   * The value determines the sort order of the jobs returned when searching for
+   * jobs using the featured jobs search call, with higher promotional values
+   * being returned first and ties being resolved by relevance sort. Only the
+   * jobs with a promotionValue >0 are returned in a FEATURED_JOB_SEARCH.
+   * Default value is 0, and negative values are treated as 0.
+   * 
+ * + * int32 promotion_value = 17; + */ + public int getPromotionValue() { + return promotionValue_; + } + + public static final int QUALIFICATIONS_FIELD_NUMBER = 18; + private volatile java.lang.Object qualifications_; + /** + * + * + *
+   * Optional.
+   * A description of the qualifications required to perform the
+   * job. The use of this field is recommended
+   * as an alternative to using the more general
+   * [description][google.cloud.talent.v4beta1.Job.description] field.
+   * This field accepts and sanitizes HTML input, and also accepts
+   * bold, italic, ordered list, and unordered list markup tags.
+   * The maximum number of allowed characters is 10,000.
+   * 
+ * + * string qualifications = 18; + */ + public java.lang.String getQualifications() { + java.lang.Object ref = qualifications_; + 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(); + qualifications_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * A description of the qualifications required to perform the
+   * job. The use of this field is recommended
+   * as an alternative to using the more general
+   * [description][google.cloud.talent.v4beta1.Job.description] field.
+   * This field accepts and sanitizes HTML input, and also accepts
+   * bold, italic, ordered list, and unordered list markup tags.
+   * The maximum number of allowed characters is 10,000.
+   * 
+ * + * string qualifications = 18; + */ + public com.google.protobuf.ByteString getQualificationsBytes() { + java.lang.Object ref = qualifications_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + qualifications_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESPONSIBILITIES_FIELD_NUMBER = 19; + private volatile java.lang.Object responsibilities_; + /** + * + * + *
+   * Optional.
+   * A description of job responsibilities. The use of this field is
+   * recommended as an alternative to using the more general
+   * [description][google.cloud.talent.v4beta1.Job.description] field.
+   * This field accepts and sanitizes HTML input, and also accepts
+   * bold, italic, ordered list, and unordered list markup tags.
+   * The maximum number of allowed characters is 10,000.
+   * 
+ * + * string responsibilities = 19; + */ + public java.lang.String getResponsibilities() { + java.lang.Object ref = responsibilities_; + 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(); + responsibilities_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * A description of job responsibilities. The use of this field is
+   * recommended as an alternative to using the more general
+   * [description][google.cloud.talent.v4beta1.Job.description] field.
+   * This field accepts and sanitizes HTML input, and also accepts
+   * bold, italic, ordered list, and unordered list markup tags.
+   * The maximum number of allowed characters is 10,000.
+   * 
+ * + * string responsibilities = 19; + */ + public com.google.protobuf.ByteString getResponsibilitiesBytes() { + java.lang.Object ref = responsibilities_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + responsibilities_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POSTING_REGION_FIELD_NUMBER = 20; + private int postingRegion_; + /** + * + * + *
+   * Optional.
+   * The job [PostingRegion][google.cloud.talent.v4beta1.PostingRegion] (for
+   * example, state, country) throughout which the job is available. If this
+   * field is set, a
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in a search
+   * query within the job region finds this job posting if an exact location
+   * match isn't specified. If this field is set to
+   * [PostingRegion.NATION][google.cloud.talent.v4beta1.PostingRegion.NATION] or
+   * [PostingRegion.ADMINISTRATIVE_AREA][google.cloud.talent.v4beta1.PostingRegion.ADMINISTRATIVE_AREA],
+   * setting job [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] to
+   * the same location level as this field is strongly recommended.
+   * 
+ * + * .google.cloud.talent.v4beta1.PostingRegion posting_region = 20; + */ + public int getPostingRegionValue() { + return postingRegion_; + } + /** + * + * + *
+   * Optional.
+   * The job [PostingRegion][google.cloud.talent.v4beta1.PostingRegion] (for
+   * example, state, country) throughout which the job is available. If this
+   * field is set, a
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in a search
+   * query within the job region finds this job posting if an exact location
+   * match isn't specified. If this field is set to
+   * [PostingRegion.NATION][google.cloud.talent.v4beta1.PostingRegion.NATION] or
+   * [PostingRegion.ADMINISTRATIVE_AREA][google.cloud.talent.v4beta1.PostingRegion.ADMINISTRATIVE_AREA],
+   * setting job [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] to
+   * the same location level as this field is strongly recommended.
+   * 
+ * + * .google.cloud.talent.v4beta1.PostingRegion posting_region = 20; + */ + public com.google.cloud.talent.v4beta1.PostingRegion getPostingRegion() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.PostingRegion result = + com.google.cloud.talent.v4beta1.PostingRegion.valueOf(postingRegion_); + return result == null ? com.google.cloud.talent.v4beta1.PostingRegion.UNRECOGNIZED : result; + } + + public static final int VISIBILITY_FIELD_NUMBER = 21; + private int visibility_; + /** + * + * + *
+   * Optional.
+   * The visibility of the job.
+   * Defaults to
+   * [Visibility.ACCOUNT_ONLY][google.cloud.talent.v4beta1.Visibility.ACCOUNT_ONLY]
+   * if not specified.
+   * 
+ * + * .google.cloud.talent.v4beta1.Visibility visibility = 21; + */ + public int getVisibilityValue() { + return visibility_; + } + /** + * + * + *
+   * Optional.
+   * The visibility of the job.
+   * Defaults to
+   * [Visibility.ACCOUNT_ONLY][google.cloud.talent.v4beta1.Visibility.ACCOUNT_ONLY]
+   * if not specified.
+   * 
+ * + * .google.cloud.talent.v4beta1.Visibility visibility = 21; + */ + public com.google.cloud.talent.v4beta1.Visibility getVisibility() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.Visibility result = + com.google.cloud.talent.v4beta1.Visibility.valueOf(visibility_); + return result == null ? com.google.cloud.talent.v4beta1.Visibility.UNRECOGNIZED : result; + } + + public static final int JOB_START_TIME_FIELD_NUMBER = 22; + private com.google.protobuf.Timestamp jobStartTime_; + /** + * + * + *
+   * Optional.
+   * The start timestamp of the job in UTC time zone. Typically this field
+   * is used for contracting engagements. Invalid timestamps are ignored.
+   * 
+ * + * .google.protobuf.Timestamp job_start_time = 22; + */ + public boolean hasJobStartTime() { + return jobStartTime_ != null; + } + /** + * + * + *
+   * Optional.
+   * The start timestamp of the job in UTC time zone. Typically this field
+   * is used for contracting engagements. Invalid timestamps are ignored.
+   * 
+ * + * .google.protobuf.Timestamp job_start_time = 22; + */ + public com.google.protobuf.Timestamp getJobStartTime() { + return jobStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : jobStartTime_; + } + /** + * + * + *
+   * Optional.
+   * The start timestamp of the job in UTC time zone. Typically this field
+   * is used for contracting engagements. Invalid timestamps are ignored.
+   * 
+ * + * .google.protobuf.Timestamp job_start_time = 22; + */ + public com.google.protobuf.TimestampOrBuilder getJobStartTimeOrBuilder() { + return getJobStartTime(); + } + + public static final int JOB_END_TIME_FIELD_NUMBER = 23; + private com.google.protobuf.Timestamp jobEndTime_; + /** + * + * + *
+   * Optional.
+   * The end timestamp of the job. Typically this field is used for contracting
+   * engagements. Invalid timestamps are ignored.
+   * 
+ * + * .google.protobuf.Timestamp job_end_time = 23; + */ + public boolean hasJobEndTime() { + return jobEndTime_ != null; + } + /** + * + * + *
+   * Optional.
+   * The end timestamp of the job. Typically this field is used for contracting
+   * engagements. Invalid timestamps are ignored.
+   * 
+ * + * .google.protobuf.Timestamp job_end_time = 23; + */ + public com.google.protobuf.Timestamp getJobEndTime() { + return jobEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : jobEndTime_; + } + /** + * + * + *
+   * Optional.
+   * The end timestamp of the job. Typically this field is used for contracting
+   * engagements. Invalid timestamps are ignored.
+   * 
+ * + * .google.protobuf.Timestamp job_end_time = 23; + */ + public com.google.protobuf.TimestampOrBuilder getJobEndTimeOrBuilder() { + return getJobEndTime(); + } + + public static final int POSTING_PUBLISH_TIME_FIELD_NUMBER = 24; + private com.google.protobuf.Timestamp postingPublishTime_; + /** + * + * + *
+   * Optional.
+   * The timestamp this job posting was most recently published. The default
+   * value is the time the request arrives at the server. Invalid timestamps are
+   * ignored.
+   * 
+ * + * .google.protobuf.Timestamp posting_publish_time = 24; + */ + public boolean hasPostingPublishTime() { + return postingPublishTime_ != null; + } + /** + * + * + *
+   * Optional.
+   * The timestamp this job posting was most recently published. The default
+   * value is the time the request arrives at the server. Invalid timestamps are
+   * ignored.
+   * 
+ * + * .google.protobuf.Timestamp posting_publish_time = 24; + */ + public com.google.protobuf.Timestamp getPostingPublishTime() { + return postingPublishTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : postingPublishTime_; + } + /** + * + * + *
+   * Optional.
+   * The timestamp this job posting was most recently published. The default
+   * value is the time the request arrives at the server. Invalid timestamps are
+   * ignored.
+   * 
+ * + * .google.protobuf.Timestamp posting_publish_time = 24; + */ + public com.google.protobuf.TimestampOrBuilder getPostingPublishTimeOrBuilder() { + return getPostingPublishTime(); + } + + public static final int POSTING_EXPIRE_TIME_FIELD_NUMBER = 25; + private com.google.protobuf.Timestamp postingExpireTime_; + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * The expiration timestamp of the job. After this timestamp, the
+   * job is marked as expired, and it no longer appears in search results. The
+   * expired job can't be deleted or listed by the [DeleteJob][] and
+   * [ListJobs][] APIs, but it can be retrieved with the [GetJob][] API or
+   * updated with the [UpdateJob][] API. An expired job can be updated and
+   * opened again by using a future expiration timestamp. Updating an expired
+   * job fails if there is another existing open job with same
+   * [company][google.cloud.talent.v4beta1.Job.name][],
+   * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+   * The expired jobs are retained in our system for 90 days. However, the
+   * overall expired job count cannot exceed 3 times the maximum of open jobs
+   * count over the past week, otherwise jobs with earlier expire time are
+   * cleaned first. Expired jobs are no longer accessible after they are cleaned
+   * out.
+   * Invalid timestamps are ignored, and treated as expire time not provided.
+   * Timestamp before the instant request is made is considered valid, the job
+   * will be treated as expired immediately.
+   * If this value isn't provided at the time of job creation or is invalid,
+   * the job posting expires after 30 days from the job's creation time. For
+   * example, if the job was created on 2017/01/01 13:00AM UTC with an
+   * unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC.
+   * If this value isn't provided on job update, it depends on the field masks
+   * set by
+   * [UpdateJobRequest.update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask].
+   * If the field masks include [expiry_time][], or the masks are empty meaning
+   * that every field is updated, the job posting expires after 30 days from the
+   * job's last update time. Otherwise the expiration date isn't updated.
+   * 
+ * + * .google.protobuf.Timestamp posting_expire_time = 25; + */ + public boolean hasPostingExpireTime() { + return postingExpireTime_ != null; + } + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * The expiration timestamp of the job. After this timestamp, the
+   * job is marked as expired, and it no longer appears in search results. The
+   * expired job can't be deleted or listed by the [DeleteJob][] and
+   * [ListJobs][] APIs, but it can be retrieved with the [GetJob][] API or
+   * updated with the [UpdateJob][] API. An expired job can be updated and
+   * opened again by using a future expiration timestamp. Updating an expired
+   * job fails if there is another existing open job with same
+   * [company][google.cloud.talent.v4beta1.Job.name][],
+   * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+   * The expired jobs are retained in our system for 90 days. However, the
+   * overall expired job count cannot exceed 3 times the maximum of open jobs
+   * count over the past week, otherwise jobs with earlier expire time are
+   * cleaned first. Expired jobs are no longer accessible after they are cleaned
+   * out.
+   * Invalid timestamps are ignored, and treated as expire time not provided.
+   * Timestamp before the instant request is made is considered valid, the job
+   * will be treated as expired immediately.
+   * If this value isn't provided at the time of job creation or is invalid,
+   * the job posting expires after 30 days from the job's creation time. For
+   * example, if the job was created on 2017/01/01 13:00AM UTC with an
+   * unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC.
+   * If this value isn't provided on job update, it depends on the field masks
+   * set by
+   * [UpdateJobRequest.update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask].
+   * If the field masks include [expiry_time][], or the masks are empty meaning
+   * that every field is updated, the job posting expires after 30 days from the
+   * job's last update time. Otherwise the expiration date isn't updated.
+   * 
+ * + * .google.protobuf.Timestamp posting_expire_time = 25; + */ + public com.google.protobuf.Timestamp getPostingExpireTime() { + return postingExpireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : postingExpireTime_; + } + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * The expiration timestamp of the job. After this timestamp, the
+   * job is marked as expired, and it no longer appears in search results. The
+   * expired job can't be deleted or listed by the [DeleteJob][] and
+   * [ListJobs][] APIs, but it can be retrieved with the [GetJob][] API or
+   * updated with the [UpdateJob][] API. An expired job can be updated and
+   * opened again by using a future expiration timestamp. Updating an expired
+   * job fails if there is another existing open job with same
+   * [company][google.cloud.talent.v4beta1.Job.name][],
+   * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+   * The expired jobs are retained in our system for 90 days. However, the
+   * overall expired job count cannot exceed 3 times the maximum of open jobs
+   * count over the past week, otherwise jobs with earlier expire time are
+   * cleaned first. Expired jobs are no longer accessible after they are cleaned
+   * out.
+   * Invalid timestamps are ignored, and treated as expire time not provided.
+   * Timestamp before the instant request is made is considered valid, the job
+   * will be treated as expired immediately.
+   * If this value isn't provided at the time of job creation or is invalid,
+   * the job posting expires after 30 days from the job's creation time. For
+   * example, if the job was created on 2017/01/01 13:00AM UTC with an
+   * unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC.
+   * If this value isn't provided on job update, it depends on the field masks
+   * set by
+   * [UpdateJobRequest.update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask].
+   * If the field masks include [expiry_time][], or the masks are empty meaning
+   * that every field is updated, the job posting expires after 30 days from the
+   * job's last update time. Otherwise the expiration date isn't updated.
+   * 
+ * + * .google.protobuf.Timestamp posting_expire_time = 25; + */ + public com.google.protobuf.TimestampOrBuilder getPostingExpireTimeOrBuilder() { + return getPostingExpireTime(); + } + + public static final int POSTING_CREATE_TIME_FIELD_NUMBER = 26; + private com.google.protobuf.Timestamp postingCreateTime_; + /** + * + * + *
+   * Output only. The timestamp when this job posting was created.
+   * 
+ * + * .google.protobuf.Timestamp posting_create_time = 26; + */ + public boolean hasPostingCreateTime() { + return postingCreateTime_ != null; + } + /** + * + * + *
+   * Output only. The timestamp when this job posting was created.
+   * 
+ * + * .google.protobuf.Timestamp posting_create_time = 26; + */ + public com.google.protobuf.Timestamp getPostingCreateTime() { + return postingCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : postingCreateTime_; + } + /** + * + * + *
+   * Output only. The timestamp when this job posting was created.
+   * 
+ * + * .google.protobuf.Timestamp posting_create_time = 26; + */ + public com.google.protobuf.TimestampOrBuilder getPostingCreateTimeOrBuilder() { + return getPostingCreateTime(); + } + + public static final int POSTING_UPDATE_TIME_FIELD_NUMBER = 27; + private com.google.protobuf.Timestamp postingUpdateTime_; + /** + * + * + *
+   * Output only. The timestamp when this job posting was last updated.
+   * 
+ * + * .google.protobuf.Timestamp posting_update_time = 27; + */ + public boolean hasPostingUpdateTime() { + return postingUpdateTime_ != null; + } + /** + * + * + *
+   * Output only. The timestamp when this job posting was last updated.
+   * 
+ * + * .google.protobuf.Timestamp posting_update_time = 27; + */ + public com.google.protobuf.Timestamp getPostingUpdateTime() { + return postingUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : postingUpdateTime_; + } + /** + * + * + *
+   * Output only. The timestamp when this job posting was last updated.
+   * 
+ * + * .google.protobuf.Timestamp posting_update_time = 27; + */ + public com.google.protobuf.TimestampOrBuilder getPostingUpdateTimeOrBuilder() { + return getPostingUpdateTime(); + } + + public static final int COMPANY_DISPLAY_NAME_FIELD_NUMBER = 28; + private volatile java.lang.Object companyDisplayName_; + /** + * + * + *
+   * Output only. Display name of the company listing the job.
+   * 
+ * + * string company_display_name = 28; + */ + public java.lang.String getCompanyDisplayName() { + java.lang.Object ref = companyDisplayName_; + 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(); + companyDisplayName_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Display name of the company listing the job.
+   * 
+ * + * string company_display_name = 28; + */ + public com.google.protobuf.ByteString getCompanyDisplayNameBytes() { + java.lang.Object ref = companyDisplayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + companyDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DERIVED_INFO_FIELD_NUMBER = 29; + private com.google.cloud.talent.v4beta1.Job.DerivedInfo derivedInfo_; + /** + * + * + *
+   * Output only. Derived details about the job posting.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.DerivedInfo derived_info = 29; + */ + public boolean hasDerivedInfo() { + return derivedInfo_ != null; + } + /** + * + * + *
+   * Output only. Derived details about the job posting.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.DerivedInfo derived_info = 29; + */ + public com.google.cloud.talent.v4beta1.Job.DerivedInfo getDerivedInfo() { + return derivedInfo_ == null + ? com.google.cloud.talent.v4beta1.Job.DerivedInfo.getDefaultInstance() + : derivedInfo_; + } + /** + * + * + *
+   * Output only. Derived details about the job posting.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.DerivedInfo derived_info = 29; + */ + public com.google.cloud.talent.v4beta1.Job.DerivedInfoOrBuilder getDerivedInfoOrBuilder() { + return getDerivedInfo(); + } + + public static final int PROCESSING_OPTIONS_FIELD_NUMBER = 30; + private com.google.cloud.talent.v4beta1.Job.ProcessingOptions processingOptions_; + /** + * + * + *
+   * Optional.
+   * Options for job processing.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.ProcessingOptions processing_options = 30; + */ + public boolean hasProcessingOptions() { + return processingOptions_ != null; + } + /** + * + * + *
+   * Optional.
+   * Options for job processing.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.ProcessingOptions processing_options = 30; + */ + public com.google.cloud.talent.v4beta1.Job.ProcessingOptions getProcessingOptions() { + return processingOptions_ == null + ? com.google.cloud.talent.v4beta1.Job.ProcessingOptions.getDefaultInstance() + : processingOptions_; + } + /** + * + * + *
+   * Optional.
+   * Options for job processing.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.ProcessingOptions processing_options = 30; + */ + public com.google.cloud.talent.v4beta1.Job.ProcessingOptionsOrBuilder + getProcessingOptionsOrBuilder() { + return getProcessingOptions(); + } + + 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 { + getSerializedSize(); + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getCompanyNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, companyName_); + } + if (!getRequisitionIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requisitionId_); + } + if (!getTitleBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, title_); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); + } + for (int i = 0; i < addresses_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, addresses_.getRaw(i)); + } + if (applicationInfo_ != null) { + output.writeMessage(7, getApplicationInfo()); + } + if (getJobBenefitsList().size() > 0) { + output.writeUInt32NoTag(66); + output.writeUInt32NoTag(jobBenefitsMemoizedSerializedSize); + } + for (int i = 0; i < jobBenefits_.size(); i++) { + output.writeEnumNoTag(jobBenefits_.get(i)); + } + if (compensationInfo_ != null) { + output.writeMessage(9, getCompensationInfo()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetCustomAttributes(), CustomAttributesDefaultEntryHolder.defaultEntry, 10); + if (getDegreeTypesList().size() > 0) { + output.writeUInt32NoTag(90); + output.writeUInt32NoTag(degreeTypesMemoizedSerializedSize); + } + for (int i = 0; i < degreeTypes_.size(); i++) { + output.writeEnumNoTag(degreeTypes_.get(i)); + } + if (!getDepartmentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, department_); + } + if (getEmploymentTypesList().size() > 0) { + output.writeUInt32NoTag(106); + output.writeUInt32NoTag(employmentTypesMemoizedSerializedSize); + } + for (int i = 0; i < employmentTypes_.size(); i++) { + output.writeEnumNoTag(employmentTypes_.get(i)); + } + if (!getIncentivesBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, incentives_); + } + if (!getLanguageCodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 15, languageCode_); + } + if (jobLevel_ != com.google.cloud.talent.v4beta1.JobLevel.JOB_LEVEL_UNSPECIFIED.getNumber()) { + output.writeEnum(16, jobLevel_); + } + if (promotionValue_ != 0) { + output.writeInt32(17, promotionValue_); + } + if (!getQualificationsBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 18, qualifications_); + } + if (!getResponsibilitiesBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 19, responsibilities_); + } + if (postingRegion_ + != com.google.cloud.talent.v4beta1.PostingRegion.POSTING_REGION_UNSPECIFIED.getNumber()) { + output.writeEnum(20, postingRegion_); + } + if (visibility_ + != com.google.cloud.talent.v4beta1.Visibility.VISIBILITY_UNSPECIFIED.getNumber()) { + output.writeEnum(21, visibility_); + } + if (jobStartTime_ != null) { + output.writeMessage(22, getJobStartTime()); + } + if (jobEndTime_ != null) { + output.writeMessage(23, getJobEndTime()); + } + if (postingPublishTime_ != null) { + output.writeMessage(24, getPostingPublishTime()); + } + if (postingExpireTime_ != null) { + output.writeMessage(25, getPostingExpireTime()); + } + if (postingCreateTime_ != null) { + output.writeMessage(26, getPostingCreateTime()); + } + if (postingUpdateTime_ != null) { + output.writeMessage(27, getPostingUpdateTime()); + } + if (!getCompanyDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 28, companyDisplayName_); + } + if (derivedInfo_ != null) { + output.writeMessage(29, getDerivedInfo()); + } + if (processingOptions_ != null) { + output.writeMessage(30, getProcessingOptions()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getCompanyNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, companyName_); + } + if (!getRequisitionIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requisitionId_); + } + if (!getTitleBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, title_); + } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); + } + { + int dataSize = 0; + for (int i = 0; i < addresses_.size(); i++) { + dataSize += computeStringSizeNoTag(addresses_.getRaw(i)); + } + size += dataSize; + size += 1 * getAddressesList().size(); + } + if (applicationInfo_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getApplicationInfo()); + } + { + int dataSize = 0; + for (int i = 0; i < jobBenefits_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(jobBenefits_.get(i)); + } + size += dataSize; + if (!getJobBenefitsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + jobBenefitsMemoizedSerializedSize = dataSize; + } + if (compensationInfo_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getCompensationInfo()); + } + for (java.util.Map.Entry + entry : internalGetCustomAttributes().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> + customAttributes__ = + CustomAttributesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, customAttributes__); + } + { + int dataSize = 0; + for (int i = 0; i < degreeTypes_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(degreeTypes_.get(i)); + } + size += dataSize; + if (!getDegreeTypesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + degreeTypesMemoizedSerializedSize = dataSize; + } + if (!getDepartmentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, department_); + } + { + int dataSize = 0; + for (int i = 0; i < employmentTypes_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(employmentTypes_.get(i)); + } + size += dataSize; + if (!getEmploymentTypesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + employmentTypesMemoizedSerializedSize = dataSize; + } + if (!getIncentivesBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, incentives_); + } + if (!getLanguageCodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, languageCode_); + } + if (jobLevel_ != com.google.cloud.talent.v4beta1.JobLevel.JOB_LEVEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(16, jobLevel_); + } + if (promotionValue_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(17, promotionValue_); + } + if (!getQualificationsBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, qualifications_); + } + if (!getResponsibilitiesBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, responsibilities_); + } + if (postingRegion_ + != com.google.cloud.talent.v4beta1.PostingRegion.POSTING_REGION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(20, postingRegion_); + } + if (visibility_ + != com.google.cloud.talent.v4beta1.Visibility.VISIBILITY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(21, visibility_); + } + if (jobStartTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getJobStartTime()); + } + if (jobEndTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getJobEndTime()); + } + if (postingPublishTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, getPostingPublishTime()); + } + if (postingExpireTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, getPostingExpireTime()); + } + if (postingCreateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(26, getPostingCreateTime()); + } + if (postingUpdateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(27, getPostingUpdateTime()); + } + if (!getCompanyDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(28, companyDisplayName_); + } + if (derivedInfo_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, getDerivedInfo()); + } + if (processingOptions_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(30, getProcessingOptions()); + } + size += unknownFields.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.cloud.talent.v4beta1.Job)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Job other = (com.google.cloud.talent.v4beta1.Job) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && getCompanyName().equals(other.getCompanyName()); + result = result && getRequisitionId().equals(other.getRequisitionId()); + result = result && getTitle().equals(other.getTitle()); + result = result && getDescription().equals(other.getDescription()); + result = result && getAddressesList().equals(other.getAddressesList()); + result = result && (hasApplicationInfo() == other.hasApplicationInfo()); + if (hasApplicationInfo()) { + result = result && getApplicationInfo().equals(other.getApplicationInfo()); + } + result = result && jobBenefits_.equals(other.jobBenefits_); + result = result && (hasCompensationInfo() == other.hasCompensationInfo()); + if (hasCompensationInfo()) { + result = result && getCompensationInfo().equals(other.getCompensationInfo()); + } + result = result && internalGetCustomAttributes().equals(other.internalGetCustomAttributes()); + result = result && degreeTypes_.equals(other.degreeTypes_); + result = result && getDepartment().equals(other.getDepartment()); + result = result && employmentTypes_.equals(other.employmentTypes_); + result = result && getIncentives().equals(other.getIncentives()); + result = result && getLanguageCode().equals(other.getLanguageCode()); + result = result && jobLevel_ == other.jobLevel_; + result = result && (getPromotionValue() == other.getPromotionValue()); + result = result && getQualifications().equals(other.getQualifications()); + result = result && getResponsibilities().equals(other.getResponsibilities()); + result = result && postingRegion_ == other.postingRegion_; + result = result && visibility_ == other.visibility_; + result = result && (hasJobStartTime() == other.hasJobStartTime()); + if (hasJobStartTime()) { + result = result && getJobStartTime().equals(other.getJobStartTime()); + } + result = result && (hasJobEndTime() == other.hasJobEndTime()); + if (hasJobEndTime()) { + result = result && getJobEndTime().equals(other.getJobEndTime()); + } + result = result && (hasPostingPublishTime() == other.hasPostingPublishTime()); + if (hasPostingPublishTime()) { + result = result && getPostingPublishTime().equals(other.getPostingPublishTime()); + } + result = result && (hasPostingExpireTime() == other.hasPostingExpireTime()); + if (hasPostingExpireTime()) { + result = result && getPostingExpireTime().equals(other.getPostingExpireTime()); + } + result = result && (hasPostingCreateTime() == other.hasPostingCreateTime()); + if (hasPostingCreateTime()) { + result = result && getPostingCreateTime().equals(other.getPostingCreateTime()); + } + result = result && (hasPostingUpdateTime() == other.hasPostingUpdateTime()); + if (hasPostingUpdateTime()) { + result = result && getPostingUpdateTime().equals(other.getPostingUpdateTime()); + } + result = result && getCompanyDisplayName().equals(other.getCompanyDisplayName()); + result = result && (hasDerivedInfo() == other.hasDerivedInfo()); + if (hasDerivedInfo()) { + result = result && getDerivedInfo().equals(other.getDerivedInfo()); + } + result = result && (hasProcessingOptions() == other.hasProcessingOptions()); + if (hasProcessingOptions()) { + result = result && getProcessingOptions().equals(other.getProcessingOptions()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + COMPANY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getCompanyName().hashCode(); + hash = (37 * hash) + REQUISITION_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequisitionId().hashCode(); + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (getAddressesCount() > 0) { + hash = (37 * hash) + ADDRESSES_FIELD_NUMBER; + hash = (53 * hash) + getAddressesList().hashCode(); + } + if (hasApplicationInfo()) { + hash = (37 * hash) + APPLICATION_INFO_FIELD_NUMBER; + hash = (53 * hash) + getApplicationInfo().hashCode(); + } + if (getJobBenefitsCount() > 0) { + hash = (37 * hash) + JOB_BENEFITS_FIELD_NUMBER; + hash = (53 * hash) + jobBenefits_.hashCode(); + } + if (hasCompensationInfo()) { + hash = (37 * hash) + COMPENSATION_INFO_FIELD_NUMBER; + hash = (53 * hash) + getCompensationInfo().hashCode(); + } + if (!internalGetCustomAttributes().getMap().isEmpty()) { + hash = (37 * hash) + CUSTOM_ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + internalGetCustomAttributes().hashCode(); + } + if (getDegreeTypesCount() > 0) { + hash = (37 * hash) + DEGREE_TYPES_FIELD_NUMBER; + hash = (53 * hash) + degreeTypes_.hashCode(); + } + hash = (37 * hash) + DEPARTMENT_FIELD_NUMBER; + hash = (53 * hash) + getDepartment().hashCode(); + if (getEmploymentTypesCount() > 0) { + hash = (37 * hash) + EMPLOYMENT_TYPES_FIELD_NUMBER; + hash = (53 * hash) + employmentTypes_.hashCode(); + } + hash = (37 * hash) + INCENTIVES_FIELD_NUMBER; + hash = (53 * hash) + getIncentives().hashCode(); + hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getLanguageCode().hashCode(); + hash = (37 * hash) + JOB_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + jobLevel_; + hash = (37 * hash) + PROMOTION_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getPromotionValue(); + hash = (37 * hash) + QUALIFICATIONS_FIELD_NUMBER; + hash = (53 * hash) + getQualifications().hashCode(); + hash = (37 * hash) + RESPONSIBILITIES_FIELD_NUMBER; + hash = (53 * hash) + getResponsibilities().hashCode(); + hash = (37 * hash) + POSTING_REGION_FIELD_NUMBER; + hash = (53 * hash) + postingRegion_; + hash = (37 * hash) + VISIBILITY_FIELD_NUMBER; + hash = (53 * hash) + visibility_; + if (hasJobStartTime()) { + hash = (37 * hash) + JOB_START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getJobStartTime().hashCode(); + } + if (hasJobEndTime()) { + hash = (37 * hash) + JOB_END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getJobEndTime().hashCode(); + } + if (hasPostingPublishTime()) { + hash = (37 * hash) + POSTING_PUBLISH_TIME_FIELD_NUMBER; + hash = (53 * hash) + getPostingPublishTime().hashCode(); + } + if (hasPostingExpireTime()) { + hash = (37 * hash) + POSTING_EXPIRE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getPostingExpireTime().hashCode(); + } + if (hasPostingCreateTime()) { + hash = (37 * hash) + POSTING_CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getPostingCreateTime().hashCode(); + } + if (hasPostingUpdateTime()) { + hash = (37 * hash) + POSTING_UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getPostingUpdateTime().hashCode(); + } + hash = (37 * hash) + COMPANY_DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getCompanyDisplayName().hashCode(); + if (hasDerivedInfo()) { + hash = (37 * hash) + DERIVED_INFO_FIELD_NUMBER; + hash = (53 * hash) + getDerivedInfo().hashCode(); + } + if (hasProcessingOptions()) { + hash = (37 * hash) + PROCESSING_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getProcessingOptions().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Job parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Job parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Job parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Job 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.cloud.talent.v4beta1.Job parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Job parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Job parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Job 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.cloud.talent.v4beta1.Job parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Job 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.cloud.talent.v4beta1.Job parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Job 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.cloud.talent.v4beta1.Job 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 Job resource represents a job posting (also referred to as a "job listing"
+   * or "job requisition"). A job belongs to a
+   * [Company][google.cloud.talent.v4beta1.Company], which is the hiring entity
+   * responsible for the job.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Job} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Job) + com.google.cloud.talent.v4beta1.JobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 10: + return internalGetCustomAttributes(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 10: + return internalGetMutableCustomAttributes(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Job.class, + com.google.cloud.talent.v4beta1.Job.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Job.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + companyName_ = ""; + + requisitionId_ = ""; + + title_ = ""; + + description_ = ""; + + addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000020); + if (applicationInfoBuilder_ == null) { + applicationInfo_ = null; + } else { + applicationInfo_ = null; + applicationInfoBuilder_ = null; + } + jobBenefits_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + if (compensationInfoBuilder_ == null) { + compensationInfo_ = null; + } else { + compensationInfo_ = null; + compensationInfoBuilder_ = null; + } + internalGetMutableCustomAttributes().clear(); + degreeTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + department_ = ""; + + employmentTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + incentives_ = ""; + + languageCode_ = ""; + + jobLevel_ = 0; + + promotionValue_ = 0; + + qualifications_ = ""; + + responsibilities_ = ""; + + postingRegion_ = 0; + + visibility_ = 0; + + if (jobStartTimeBuilder_ == null) { + jobStartTime_ = null; + } else { + jobStartTime_ = null; + jobStartTimeBuilder_ = null; + } + if (jobEndTimeBuilder_ == null) { + jobEndTime_ = null; + } else { + jobEndTime_ = null; + jobEndTimeBuilder_ = null; + } + if (postingPublishTimeBuilder_ == null) { + postingPublishTime_ = null; + } else { + postingPublishTime_ = null; + postingPublishTimeBuilder_ = null; + } + if (postingExpireTimeBuilder_ == null) { + postingExpireTime_ = null; + } else { + postingExpireTime_ = null; + postingExpireTimeBuilder_ = null; + } + if (postingCreateTimeBuilder_ == null) { + postingCreateTime_ = null; + } else { + postingCreateTime_ = null; + postingCreateTimeBuilder_ = null; + } + if (postingUpdateTimeBuilder_ == null) { + postingUpdateTime_ = null; + } else { + postingUpdateTime_ = null; + postingUpdateTimeBuilder_ = null; + } + companyDisplayName_ = ""; + + if (derivedInfoBuilder_ == null) { + derivedInfo_ = null; + } else { + derivedInfo_ = null; + derivedInfoBuilder_ = null; + } + if (processingOptionsBuilder_ == null) { + processingOptions_ = null; + } else { + processingOptions_ = null; + processingOptionsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.JobResourceProto + .internal_static_google_cloud_talent_v4beta1_Job_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Job getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Job.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Job build() { + com.google.cloud.talent.v4beta1.Job result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Job buildPartial() { + com.google.cloud.talent.v4beta1.Job result = new com.google.cloud.talent.v4beta1.Job(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.name_ = name_; + result.companyName_ = companyName_; + result.requisitionId_ = requisitionId_; + result.title_ = title_; + result.description_ = description_; + if (((bitField0_ & 0x00000020) == 0x00000020)) { + addresses_ = addresses_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.addresses_ = addresses_; + if (applicationInfoBuilder_ == null) { + result.applicationInfo_ = applicationInfo_; + } else { + result.applicationInfo_ = applicationInfoBuilder_.build(); + } + if (((bitField0_ & 0x00000080) == 0x00000080)) { + jobBenefits_ = java.util.Collections.unmodifiableList(jobBenefits_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.jobBenefits_ = jobBenefits_; + if (compensationInfoBuilder_ == null) { + result.compensationInfo_ = compensationInfo_; + } else { + result.compensationInfo_ = compensationInfoBuilder_.build(); + } + result.customAttributes_ = internalGetCustomAttributes(); + result.customAttributes_.makeImmutable(); + if (((bitField0_ & 0x00000400) == 0x00000400)) { + degreeTypes_ = java.util.Collections.unmodifiableList(degreeTypes_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.degreeTypes_ = degreeTypes_; + result.department_ = department_; + if (((bitField0_ & 0x00001000) == 0x00001000)) { + employmentTypes_ = java.util.Collections.unmodifiableList(employmentTypes_); + bitField0_ = (bitField0_ & ~0x00001000); + } + result.employmentTypes_ = employmentTypes_; + result.incentives_ = incentives_; + result.languageCode_ = languageCode_; + result.jobLevel_ = jobLevel_; + result.promotionValue_ = promotionValue_; + result.qualifications_ = qualifications_; + result.responsibilities_ = responsibilities_; + result.postingRegion_ = postingRegion_; + result.visibility_ = visibility_; + if (jobStartTimeBuilder_ == null) { + result.jobStartTime_ = jobStartTime_; + } else { + result.jobStartTime_ = jobStartTimeBuilder_.build(); + } + if (jobEndTimeBuilder_ == null) { + result.jobEndTime_ = jobEndTime_; + } else { + result.jobEndTime_ = jobEndTimeBuilder_.build(); + } + if (postingPublishTimeBuilder_ == null) { + result.postingPublishTime_ = postingPublishTime_; + } else { + result.postingPublishTime_ = postingPublishTimeBuilder_.build(); + } + if (postingExpireTimeBuilder_ == null) { + result.postingExpireTime_ = postingExpireTime_; + } else { + result.postingExpireTime_ = postingExpireTimeBuilder_.build(); + } + if (postingCreateTimeBuilder_ == null) { + result.postingCreateTime_ = postingCreateTime_; + } else { + result.postingCreateTime_ = postingCreateTimeBuilder_.build(); + } + if (postingUpdateTimeBuilder_ == null) { + result.postingUpdateTime_ = postingUpdateTime_; + } else { + result.postingUpdateTime_ = postingUpdateTimeBuilder_.build(); + } + result.companyDisplayName_ = companyDisplayName_; + if (derivedInfoBuilder_ == null) { + result.derivedInfo_ = derivedInfo_; + } else { + result.derivedInfo_ = derivedInfoBuilder_.build(); + } + if (processingOptionsBuilder_ == null) { + result.processingOptions_ = processingOptions_; + } else { + result.processingOptions_ = processingOptionsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Job) { + return mergeFrom((com.google.cloud.talent.v4beta1.Job) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Job other) { + if (other == com.google.cloud.talent.v4beta1.Job.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getCompanyName().isEmpty()) { + companyName_ = other.companyName_; + onChanged(); + } + if (!other.getRequisitionId().isEmpty()) { + requisitionId_ = other.requisitionId_; + onChanged(); + } + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (!other.addresses_.isEmpty()) { + if (addresses_.isEmpty()) { + addresses_ = other.addresses_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureAddressesIsMutable(); + addresses_.addAll(other.addresses_); + } + onChanged(); + } + if (other.hasApplicationInfo()) { + mergeApplicationInfo(other.getApplicationInfo()); + } + if (!other.jobBenefits_.isEmpty()) { + if (jobBenefits_.isEmpty()) { + jobBenefits_ = other.jobBenefits_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureJobBenefitsIsMutable(); + jobBenefits_.addAll(other.jobBenefits_); + } + onChanged(); + } + if (other.hasCompensationInfo()) { + mergeCompensationInfo(other.getCompensationInfo()); + } + internalGetMutableCustomAttributes().mergeFrom(other.internalGetCustomAttributes()); + if (!other.degreeTypes_.isEmpty()) { + if (degreeTypes_.isEmpty()) { + degreeTypes_ = other.degreeTypes_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureDegreeTypesIsMutable(); + degreeTypes_.addAll(other.degreeTypes_); + } + onChanged(); + } + if (!other.getDepartment().isEmpty()) { + department_ = other.department_; + onChanged(); + } + if (!other.employmentTypes_.isEmpty()) { + if (employmentTypes_.isEmpty()) { + employmentTypes_ = other.employmentTypes_; + bitField0_ = (bitField0_ & ~0x00001000); + } else { + ensureEmploymentTypesIsMutable(); + employmentTypes_.addAll(other.employmentTypes_); + } + onChanged(); + } + if (!other.getIncentives().isEmpty()) { + incentives_ = other.incentives_; + onChanged(); + } + if (!other.getLanguageCode().isEmpty()) { + languageCode_ = other.languageCode_; + onChanged(); + } + if (other.jobLevel_ != 0) { + setJobLevelValue(other.getJobLevelValue()); + } + if (other.getPromotionValue() != 0) { + setPromotionValue(other.getPromotionValue()); + } + if (!other.getQualifications().isEmpty()) { + qualifications_ = other.qualifications_; + onChanged(); + } + if (!other.getResponsibilities().isEmpty()) { + responsibilities_ = other.responsibilities_; + onChanged(); + } + if (other.postingRegion_ != 0) { + setPostingRegionValue(other.getPostingRegionValue()); + } + if (other.visibility_ != 0) { + setVisibilityValue(other.getVisibilityValue()); + } + if (other.hasJobStartTime()) { + mergeJobStartTime(other.getJobStartTime()); + } + if (other.hasJobEndTime()) { + mergeJobEndTime(other.getJobEndTime()); + } + if (other.hasPostingPublishTime()) { + mergePostingPublishTime(other.getPostingPublishTime()); + } + if (other.hasPostingExpireTime()) { + mergePostingExpireTime(other.getPostingExpireTime()); + } + if (other.hasPostingCreateTime()) { + mergePostingCreateTime(other.getPostingCreateTime()); + } + if (other.hasPostingUpdateTime()) { + mergePostingUpdateTime(other.getPostingUpdateTime()); + } + if (!other.getCompanyDisplayName().isEmpty()) { + companyDisplayName_ = other.companyDisplayName_; + onChanged(); + } + if (other.hasDerivedInfo()) { + mergeDerivedInfo(other.getDerivedInfo()); + } + if (other.hasProcessingOptions()) { + mergeProcessingOptions(other.getProcessingOptions()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.Job parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.Job) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required during job update.
+     * The resource name for the job. This is generated by the service when a
+     * job is created.
+     * The format is "projects/{project_id}/jobs/{job_id}",
+     * for example, "projects/api-test-project/jobs/1234".
+     * Use of this field in job queries and API calls is preferred over the use of
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] since this
+     * value is unique.
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required during job update.
+     * The resource name for the job. This is generated by the service when a
+     * job is created.
+     * The format is "projects/{project_id}/jobs/{job_id}",
+     * for example, "projects/api-test-project/jobs/1234".
+     * Use of this field in job queries and API calls is preferred over the use of
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] since this
+     * value is unique.
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required during job update.
+     * The resource name for the job. This is generated by the service when a
+     * job is created.
+     * The format is "projects/{project_id}/jobs/{job_id}",
+     * for example, "projects/api-test-project/jobs/1234".
+     * Use of this field in job queries and API calls is preferred over the use of
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] since this
+     * value is unique.
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required during job update.
+     * The resource name for the job. This is generated by the service when a
+     * job is created.
+     * The format is "projects/{project_id}/jobs/{job_id}",
+     * for example, "projects/api-test-project/jobs/1234".
+     * Use of this field in job queries and API calls is preferred over the use of
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] since this
+     * value is unique.
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required during job update.
+     * The resource name for the job. This is generated by the service when a
+     * job is created.
+     * The format is "projects/{project_id}/jobs/{job_id}",
+     * for example, "projects/api-test-project/jobs/1234".
+     * Use of this field in job queries and API calls is preferred over the use of
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] since this
+     * value is unique.
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object companyName_ = ""; + /** + * + * + *
+     * Required.
+     * The resource name of the company listing the job, such as
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string company_name = 2; + */ + public java.lang.String getCompanyName() { + java.lang.Object ref = companyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + companyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the company listing the job, such as
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string company_name = 2; + */ + public com.google.protobuf.ByteString getCompanyNameBytes() { + java.lang.Object ref = companyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + companyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the company listing the job, such as
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string company_name = 2; + */ + public Builder setCompanyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + companyName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the company listing the job, such as
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string company_name = 2; + */ + public Builder clearCompanyName() { + + companyName_ = getDefaultInstance().getCompanyName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the company listing the job, such as
+     * "projects/api-test-project/companies/foo".
+     * 
+ * + * string company_name = 2; + */ + public Builder setCompanyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + companyName_ = value; + onChanged(); + return this; + } + + private java.lang.Object requisitionId_ = ""; + /** + * + * + *
+     * Required.
+     * The requisition ID, also referred to as the posting ID, is assigned by the
+     * client to identify a job. This field is intended to be used by clients
+     * for client identification and tracking of postings. A job isn't allowed
+     * to be created if there is another job with the same
+     * [company][google.cloud.talent.v4beta1.Job.name],
+     * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string requisition_id = 3; + */ + public java.lang.String getRequisitionId() { + java.lang.Object ref = requisitionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requisitionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The requisition ID, also referred to as the posting ID, is assigned by the
+     * client to identify a job. This field is intended to be used by clients
+     * for client identification and tracking of postings. A job isn't allowed
+     * to be created if there is another job with the same
+     * [company][google.cloud.talent.v4beta1.Job.name],
+     * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string requisition_id = 3; + */ + public com.google.protobuf.ByteString getRequisitionIdBytes() { + java.lang.Object ref = requisitionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requisitionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The requisition ID, also referred to as the posting ID, is assigned by the
+     * client to identify a job. This field is intended to be used by clients
+     * for client identification and tracking of postings. A job isn't allowed
+     * to be created if there is another job with the same
+     * [company][google.cloud.talent.v4beta1.Job.name],
+     * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string requisition_id = 3; + */ + public Builder setRequisitionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + requisitionId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The requisition ID, also referred to as the posting ID, is assigned by the
+     * client to identify a job. This field is intended to be used by clients
+     * for client identification and tracking of postings. A job isn't allowed
+     * to be created if there is another job with the same
+     * [company][google.cloud.talent.v4beta1.Job.name],
+     * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string requisition_id = 3; + */ + public Builder clearRequisitionId() { + + requisitionId_ = getDefaultInstance().getRequisitionId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The requisition ID, also referred to as the posting ID, is assigned by the
+     * client to identify a job. This field is intended to be used by clients
+     * for client identification and tracking of postings. A job isn't allowed
+     * to be created if there is another job with the same
+     * [company][google.cloud.talent.v4beta1.Job.name],
+     * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string requisition_id = 3; + */ + public Builder setRequisitionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requisitionId_ = value; + onChanged(); + return this; + } + + private java.lang.Object title_ = ""; + /** + * + * + *
+     * Required.
+     * The title of the job, such as "Software Engineer"
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * string title = 4; + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The title of the job, such as "Software Engineer"
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * string title = 4; + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The title of the job, such as "Software Engineer"
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * string title = 4; + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + title_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The title of the job, such as "Software Engineer"
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * string title = 4; + */ + public Builder clearTitle() { + + title_ = getDefaultInstance().getTitle(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The title of the job, such as "Software Engineer"
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * string title = 4; + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + title_ = value; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * Required.
+     * The description of the job, which typically includes a multi-paragraph
+     * description of the company and related information. Separate fields are
+     * provided on the job object for
+     * [responsibilities][google.cloud.talent.v4beta1.Job.responsibilities],
+     * [qualifications][google.cloud.talent.v4beta1.Job.qualifications], and other
+     * job characteristics. Use of these separate job fields is recommended.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 100,000.
+     * 
+ * + * string description = 5; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The description of the job, which typically includes a multi-paragraph
+     * description of the company and related information. Separate fields are
+     * provided on the job object for
+     * [responsibilities][google.cloud.talent.v4beta1.Job.responsibilities],
+     * [qualifications][google.cloud.talent.v4beta1.Job.qualifications], and other
+     * job characteristics. Use of these separate job fields is recommended.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 100,000.
+     * 
+ * + * string description = 5; + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The description of the job, which typically includes a multi-paragraph
+     * description of the company and related information. Separate fields are
+     * provided on the job object for
+     * [responsibilities][google.cloud.talent.v4beta1.Job.responsibilities],
+     * [qualifications][google.cloud.talent.v4beta1.Job.qualifications], and other
+     * job characteristics. Use of these separate job fields is recommended.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 100,000.
+     * 
+ * + * string description = 5; + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The description of the job, which typically includes a multi-paragraph
+     * description of the company and related information. Separate fields are
+     * provided on the job object for
+     * [responsibilities][google.cloud.talent.v4beta1.Job.responsibilities],
+     * [qualifications][google.cloud.talent.v4beta1.Job.qualifications], and other
+     * job characteristics. Use of these separate job fields is recommended.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 100,000.
+     * 
+ * + * string description = 5; + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The description of the job, which typically includes a multi-paragraph
+     * description of the company and related information. Separate fields are
+     * provided on the job object for
+     * [responsibilities][google.cloud.talent.v4beta1.Job.responsibilities],
+     * [qualifications][google.cloud.talent.v4beta1.Job.qualifications], and other
+     * job characteristics. Use of these separate job fields is recommended.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 100,000.
+     * 
+ * + * string description = 5; + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList addresses_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureAddressesIsMutable() { + if (!((bitField0_ & 0x00000020) == 0x00000020)) { + addresses_ = new com.google.protobuf.LazyStringArrayList(addresses_); + bitField0_ |= 0x00000020; + } + } + /** + * + * + *
+     * Optional but strongly recommended for the best service experience.
+     * Location(s) where the employer is looking to hire for this job posting.
+     * Specifying the full street address(es) of the hiring location enables
+     * better API results, especially job searches by commute time.
+     * At most 50 locations are allowed for best search performance. If a job has
+     * more locations, it is suggested to split it into multiple jobs with unique
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g.
+     * 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same
+     * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not
+     * allowed. If the original
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be
+     * preserved, a custom field should be used for storage. It is also suggested
+     * to group the locations that close to each other in the same job for better
+     * search experience.
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * repeated string addresses = 6; + */ + public com.google.protobuf.ProtocolStringList getAddressesList() { + return addresses_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional but strongly recommended for the best service experience.
+     * Location(s) where the employer is looking to hire for this job posting.
+     * Specifying the full street address(es) of the hiring location enables
+     * better API results, especially job searches by commute time.
+     * At most 50 locations are allowed for best search performance. If a job has
+     * more locations, it is suggested to split it into multiple jobs with unique
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g.
+     * 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same
+     * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not
+     * allowed. If the original
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be
+     * preserved, a custom field should be used for storage. It is also suggested
+     * to group the locations that close to each other in the same job for better
+     * search experience.
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * repeated string addresses = 6; + */ + public int getAddressesCount() { + return addresses_.size(); + } + /** + * + * + *
+     * Optional but strongly recommended for the best service experience.
+     * Location(s) where the employer is looking to hire for this job posting.
+     * Specifying the full street address(es) of the hiring location enables
+     * better API results, especially job searches by commute time.
+     * At most 50 locations are allowed for best search performance. If a job has
+     * more locations, it is suggested to split it into multiple jobs with unique
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g.
+     * 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same
+     * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not
+     * allowed. If the original
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be
+     * preserved, a custom field should be used for storage. It is also suggested
+     * to group the locations that close to each other in the same job for better
+     * search experience.
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * repeated string addresses = 6; + */ + public java.lang.String getAddresses(int index) { + return addresses_.get(index); + } + /** + * + * + *
+     * Optional but strongly recommended for the best service experience.
+     * Location(s) where the employer is looking to hire for this job posting.
+     * Specifying the full street address(es) of the hiring location enables
+     * better API results, especially job searches by commute time.
+     * At most 50 locations are allowed for best search performance. If a job has
+     * more locations, it is suggested to split it into multiple jobs with unique
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g.
+     * 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same
+     * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not
+     * allowed. If the original
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be
+     * preserved, a custom field should be used for storage. It is also suggested
+     * to group the locations that close to each other in the same job for better
+     * search experience.
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * repeated string addresses = 6; + */ + public com.google.protobuf.ByteString getAddressesBytes(int index) { + return addresses_.getByteString(index); + } + /** + * + * + *
+     * Optional but strongly recommended for the best service experience.
+     * Location(s) where the employer is looking to hire for this job posting.
+     * Specifying the full street address(es) of the hiring location enables
+     * better API results, especially job searches by commute time.
+     * At most 50 locations are allowed for best search performance. If a job has
+     * more locations, it is suggested to split it into multiple jobs with unique
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g.
+     * 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same
+     * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not
+     * allowed. If the original
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be
+     * preserved, a custom field should be used for storage. It is also suggested
+     * to group the locations that close to each other in the same job for better
+     * search experience.
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * repeated string addresses = 6; + */ + public Builder setAddresses(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressesIsMutable(); + addresses_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service experience.
+     * Location(s) where the employer is looking to hire for this job posting.
+     * Specifying the full street address(es) of the hiring location enables
+     * better API results, especially job searches by commute time.
+     * At most 50 locations are allowed for best search performance. If a job has
+     * more locations, it is suggested to split it into multiple jobs with unique
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g.
+     * 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same
+     * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not
+     * allowed. If the original
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be
+     * preserved, a custom field should be used for storage. It is also suggested
+     * to group the locations that close to each other in the same job for better
+     * search experience.
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * repeated string addresses = 6; + */ + public Builder addAddresses(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressesIsMutable(); + addresses_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service experience.
+     * Location(s) where the employer is looking to hire for this job posting.
+     * Specifying the full street address(es) of the hiring location enables
+     * better API results, especially job searches by commute time.
+     * At most 50 locations are allowed for best search performance. If a job has
+     * more locations, it is suggested to split it into multiple jobs with unique
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g.
+     * 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same
+     * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not
+     * allowed. If the original
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be
+     * preserved, a custom field should be used for storage. It is also suggested
+     * to group the locations that close to each other in the same job for better
+     * search experience.
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * repeated string addresses = 6; + */ + public Builder addAllAddresses(java.lang.Iterable values) { + ensureAddressesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, addresses_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service experience.
+     * Location(s) where the employer is looking to hire for this job posting.
+     * Specifying the full street address(es) of the hiring location enables
+     * better API results, especially job searches by commute time.
+     * At most 50 locations are allowed for best search performance. If a job has
+     * more locations, it is suggested to split it into multiple jobs with unique
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g.
+     * 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same
+     * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not
+     * allowed. If the original
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be
+     * preserved, a custom field should be used for storage. It is also suggested
+     * to group the locations that close to each other in the same job for better
+     * search experience.
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * repeated string addresses = 6; + */ + public Builder clearAddresses() { + addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service experience.
+     * Location(s) where the employer is looking to hire for this job posting.
+     * Specifying the full street address(es) of the hiring location enables
+     * better API results, especially job searches by commute time.
+     * At most 50 locations are allowed for best search performance. If a job has
+     * more locations, it is suggested to split it into multiple jobs with unique
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g.
+     * 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same
+     * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not
+     * allowed. If the original
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be
+     * preserved, a custom field should be used for storage. It is also suggested
+     * to group the locations that close to each other in the same job for better
+     * search experience.
+     * The maximum number of allowed characters is 500.
+     * 
+ * + * repeated string addresses = 6; + */ + public Builder addAddressesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAddressesIsMutable(); + addresses_.add(value); + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.Job.ApplicationInfo applicationInfo_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job.ApplicationInfo, + com.google.cloud.talent.v4beta1.Job.ApplicationInfo.Builder, + com.google.cloud.talent.v4beta1.Job.ApplicationInfoOrBuilder> + applicationInfoBuilder_; + /** + * + * + *
+     * Required. At least one field within
+     * [ApplicationInfo][google.cloud.talent.v4beta1.Job.ApplicationInfo] must be
+     * specified.
+     * Job application information.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ApplicationInfo application_info = 7; + */ + public boolean hasApplicationInfo() { + return applicationInfoBuilder_ != null || applicationInfo_ != null; + } + /** + * + * + *
+     * Required. At least one field within
+     * [ApplicationInfo][google.cloud.talent.v4beta1.Job.ApplicationInfo] must be
+     * specified.
+     * Job application information.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ApplicationInfo application_info = 7; + */ + public com.google.cloud.talent.v4beta1.Job.ApplicationInfo getApplicationInfo() { + if (applicationInfoBuilder_ == null) { + return applicationInfo_ == null + ? com.google.cloud.talent.v4beta1.Job.ApplicationInfo.getDefaultInstance() + : applicationInfo_; + } else { + return applicationInfoBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. At least one field within
+     * [ApplicationInfo][google.cloud.talent.v4beta1.Job.ApplicationInfo] must be
+     * specified.
+     * Job application information.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ApplicationInfo application_info = 7; + */ + public Builder setApplicationInfo(com.google.cloud.talent.v4beta1.Job.ApplicationInfo value) { + if (applicationInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + applicationInfo_ = value; + onChanged(); + } else { + applicationInfoBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. At least one field within
+     * [ApplicationInfo][google.cloud.talent.v4beta1.Job.ApplicationInfo] must be
+     * specified.
+     * Job application information.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ApplicationInfo application_info = 7; + */ + public Builder setApplicationInfo( + com.google.cloud.talent.v4beta1.Job.ApplicationInfo.Builder builderForValue) { + if (applicationInfoBuilder_ == null) { + applicationInfo_ = builderForValue.build(); + onChanged(); + } else { + applicationInfoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. At least one field within
+     * [ApplicationInfo][google.cloud.talent.v4beta1.Job.ApplicationInfo] must be
+     * specified.
+     * Job application information.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ApplicationInfo application_info = 7; + */ + public Builder mergeApplicationInfo(com.google.cloud.talent.v4beta1.Job.ApplicationInfo value) { + if (applicationInfoBuilder_ == null) { + if (applicationInfo_ != null) { + applicationInfo_ = + com.google.cloud.talent.v4beta1.Job.ApplicationInfo.newBuilder(applicationInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + applicationInfo_ = value; + } + onChanged(); + } else { + applicationInfoBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. At least one field within
+     * [ApplicationInfo][google.cloud.talent.v4beta1.Job.ApplicationInfo] must be
+     * specified.
+     * Job application information.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ApplicationInfo application_info = 7; + */ + public Builder clearApplicationInfo() { + if (applicationInfoBuilder_ == null) { + applicationInfo_ = null; + onChanged(); + } else { + applicationInfo_ = null; + applicationInfoBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. At least one field within
+     * [ApplicationInfo][google.cloud.talent.v4beta1.Job.ApplicationInfo] must be
+     * specified.
+     * Job application information.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ApplicationInfo application_info = 7; + */ + public com.google.cloud.talent.v4beta1.Job.ApplicationInfo.Builder getApplicationInfoBuilder() { + + onChanged(); + return getApplicationInfoFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. At least one field within
+     * [ApplicationInfo][google.cloud.talent.v4beta1.Job.ApplicationInfo] must be
+     * specified.
+     * Job application information.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ApplicationInfo application_info = 7; + */ + public com.google.cloud.talent.v4beta1.Job.ApplicationInfoOrBuilder + getApplicationInfoOrBuilder() { + if (applicationInfoBuilder_ != null) { + return applicationInfoBuilder_.getMessageOrBuilder(); + } else { + return applicationInfo_ == null + ? com.google.cloud.talent.v4beta1.Job.ApplicationInfo.getDefaultInstance() + : applicationInfo_; + } + } + /** + * + * + *
+     * Required. At least one field within
+     * [ApplicationInfo][google.cloud.talent.v4beta1.Job.ApplicationInfo] must be
+     * specified.
+     * Job application information.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ApplicationInfo application_info = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job.ApplicationInfo, + com.google.cloud.talent.v4beta1.Job.ApplicationInfo.Builder, + com.google.cloud.talent.v4beta1.Job.ApplicationInfoOrBuilder> + getApplicationInfoFieldBuilder() { + if (applicationInfoBuilder_ == null) { + applicationInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job.ApplicationInfo, + com.google.cloud.talent.v4beta1.Job.ApplicationInfo.Builder, + com.google.cloud.talent.v4beta1.Job.ApplicationInfoOrBuilder>( + getApplicationInfo(), getParentForChildren(), isClean()); + applicationInfo_ = null; + } + return applicationInfoBuilder_; + } + + private java.util.List jobBenefits_ = java.util.Collections.emptyList(); + + private void ensureJobBenefitsIsMutable() { + if (!((bitField0_ & 0x00000080) == 0x00000080)) { + jobBenefits_ = new java.util.ArrayList(jobBenefits_); + bitField0_ |= 0x00000080; + } + } + /** + * + * + *
+     * Optional.
+     * The benefits included with the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + public java.util.List getJobBenefitsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.talent.v4beta1.JobBenefit>( + jobBenefits_, jobBenefits_converter_); + } + /** + * + * + *
+     * Optional.
+     * The benefits included with the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + public int getJobBenefitsCount() { + return jobBenefits_.size(); + } + /** + * + * + *
+     * Optional.
+     * The benefits included with the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + public com.google.cloud.talent.v4beta1.JobBenefit getJobBenefits(int index) { + return jobBenefits_converter_.convert(jobBenefits_.get(index)); + } + /** + * + * + *
+     * Optional.
+     * The benefits included with the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + public Builder setJobBenefits(int index, com.google.cloud.talent.v4beta1.JobBenefit value) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobBenefitsIsMutable(); + jobBenefits_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The benefits included with the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + public Builder addJobBenefits(com.google.cloud.talent.v4beta1.JobBenefit value) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobBenefitsIsMutable(); + jobBenefits_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The benefits included with the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + public Builder addAllJobBenefits( + java.lang.Iterable values) { + ensureJobBenefitsIsMutable(); + for (com.google.cloud.talent.v4beta1.JobBenefit value : values) { + jobBenefits_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The benefits included with the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + public Builder clearJobBenefits() { + jobBenefits_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The benefits included with the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + public java.util.List getJobBenefitsValueList() { + return java.util.Collections.unmodifiableList(jobBenefits_); + } + /** + * + * + *
+     * Optional.
+     * The benefits included with the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + public int getJobBenefitsValue(int index) { + return jobBenefits_.get(index); + } + /** + * + * + *
+     * Optional.
+     * The benefits included with the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + public Builder setJobBenefitsValue(int index, int value) { + ensureJobBenefitsIsMutable(); + jobBenefits_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The benefits included with the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + public Builder addJobBenefitsValue(int value) { + ensureJobBenefitsIsMutable(); + jobBenefits_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The benefits included with the job.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + public Builder addAllJobBenefitsValue(java.lang.Iterable values) { + ensureJobBenefitsIsMutable(); + for (int value : values) { + jobBenefits_.add(value); + } + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.CompensationInfo compensationInfo_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo, + com.google.cloud.talent.v4beta1.CompensationInfo.Builder, + com.google.cloud.talent.v4beta1.CompensationInfoOrBuilder> + compensationInfoBuilder_; + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; + */ + public boolean hasCompensationInfo() { + return compensationInfoBuilder_ != null || compensationInfo_ != null; + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo getCompensationInfo() { + if (compensationInfoBuilder_ == null) { + return compensationInfo_ == null + ? com.google.cloud.talent.v4beta1.CompensationInfo.getDefaultInstance() + : compensationInfo_; + } else { + return compensationInfoBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; + */ + public Builder setCompensationInfo(com.google.cloud.talent.v4beta1.CompensationInfo value) { + if (compensationInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + compensationInfo_ = value; + onChanged(); + } else { + compensationInfoBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; + */ + public Builder setCompensationInfo( + com.google.cloud.talent.v4beta1.CompensationInfo.Builder builderForValue) { + if (compensationInfoBuilder_ == null) { + compensationInfo_ = builderForValue.build(); + onChanged(); + } else { + compensationInfoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; + */ + public Builder mergeCompensationInfo(com.google.cloud.talent.v4beta1.CompensationInfo value) { + if (compensationInfoBuilder_ == null) { + if (compensationInfo_ != null) { + compensationInfo_ = + com.google.cloud.talent.v4beta1.CompensationInfo.newBuilder(compensationInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + compensationInfo_ = value; + } + onChanged(); + } else { + compensationInfoBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; + */ + public Builder clearCompensationInfo() { + if (compensationInfoBuilder_ == null) { + compensationInfo_ = null; + onChanged(); + } else { + compensationInfo_ = null; + compensationInfoBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; + */ + public com.google.cloud.talent.v4beta1.CompensationInfo.Builder getCompensationInfoBuilder() { + + onChanged(); + return getCompensationInfoFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; + */ + public com.google.cloud.talent.v4beta1.CompensationInfoOrBuilder + getCompensationInfoOrBuilder() { + if (compensationInfoBuilder_ != null) { + return compensationInfoBuilder_.getMessageOrBuilder(); + } else { + return compensationInfo_ == null + ? com.google.cloud.talent.v4beta1.CompensationInfo.getDefaultInstance() + : compensationInfo_; + } + } + /** + * + * + *
+     * Optional.
+     * Job compensation information.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo, + com.google.cloud.talent.v4beta1.CompensationInfo.Builder, + com.google.cloud.talent.v4beta1.CompensationInfoOrBuilder> + getCompensationInfoFieldBuilder() { + if (compensationInfoBuilder_ == null) { + compensationInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationInfo, + com.google.cloud.talent.v4beta1.CompensationInfo.Builder, + com.google.cloud.talent.v4beta1.CompensationInfoOrBuilder>( + getCompensationInfo(), getParentForChildren(), isClean()); + compensationInfo_ = null; + } + return compensationInfoBuilder_; + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> + customAttributes_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> + internalGetCustomAttributes() { + if (customAttributes_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CustomAttributesDefaultEntryHolder.defaultEntry); + } + return customAttributes_; + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> + internalGetMutableCustomAttributes() { + onChanged(); + ; + if (customAttributes_ == null) { + customAttributes_ = + com.google.protobuf.MapField.newMapField( + CustomAttributesDefaultEntryHolder.defaultEntry); + } + if (!customAttributes_.isMutable()) { + customAttributes_ = customAttributes_.copy(); + } + return customAttributes_; + } + + public int getCustomAttributesCount() { + return internalGetCustomAttributes().getMap().size(); + } + /** + * + * + *
+     * Optional.
+     * A map of fields to hold both filterable and non-filterable custom job
+     * attributes that are not covered by the provided structured fields.
+     * The keys of the map are strings up to 64 bytes and must match the
+     * pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or
+     * KEY_1_LIKE_THIS.
+     * At most 100 filterable and at most 100 unfilterable keys are supported.
+     * For filterable `string_values`, across all keys at most 200 values are
+     * allowed, with each string no more than 255 characters. For unfilterable
+     * `string_values`, the maximum total size of `string_values` across all keys
+     * is 50KB.
+     * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 10; + * + */ + public boolean containsCustomAttributes(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetCustomAttributes().getMap().containsKey(key); + } + /** Use {@link #getCustomAttributesMap()} instead. */ + @java.lang.Deprecated + public java.util.Map + getCustomAttributes() { + return getCustomAttributesMap(); + } + /** + * + * + *
+     * Optional.
+     * A map of fields to hold both filterable and non-filterable custom job
+     * attributes that are not covered by the provided structured fields.
+     * The keys of the map are strings up to 64 bytes and must match the
+     * pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or
+     * KEY_1_LIKE_THIS.
+     * At most 100 filterable and at most 100 unfilterable keys are supported.
+     * For filterable `string_values`, across all keys at most 200 values are
+     * allowed, with each string no more than 255 characters. For unfilterable
+     * `string_values`, the maximum total size of `string_values` across all keys
+     * is 50KB.
+     * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 10; + * + */ + public java.util.Map + getCustomAttributesMap() { + return internalGetCustomAttributes().getMap(); + } + /** + * + * + *
+     * Optional.
+     * A map of fields to hold both filterable and non-filterable custom job
+     * attributes that are not covered by the provided structured fields.
+     * The keys of the map are strings up to 64 bytes and must match the
+     * pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or
+     * KEY_1_LIKE_THIS.
+     * At most 100 filterable and at most 100 unfilterable keys are supported.
+     * For filterable `string_values`, across all keys at most 200 values are
+     * allowed, with each string no more than 255 characters. For unfilterable
+     * `string_values`, the maximum total size of `string_values` across all keys
+     * is 50KB.
+     * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 10; + * + */ + public com.google.cloud.talent.v4beta1.CustomAttribute getCustomAttributesOrDefault( + java.lang.String key, com.google.cloud.talent.v4beta1.CustomAttribute defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetCustomAttributes().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Optional.
+     * A map of fields to hold both filterable and non-filterable custom job
+     * attributes that are not covered by the provided structured fields.
+     * The keys of the map are strings up to 64 bytes and must match the
+     * pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or
+     * KEY_1_LIKE_THIS.
+     * At most 100 filterable and at most 100 unfilterable keys are supported.
+     * For filterable `string_values`, across all keys at most 200 values are
+     * allowed, with each string no more than 255 characters. For unfilterable
+     * `string_values`, the maximum total size of `string_values` across all keys
+     * is 50KB.
+     * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 10; + * + */ + public com.google.cloud.talent.v4beta1.CustomAttribute getCustomAttributesOrThrow( + java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetCustomAttributes().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearCustomAttributes() { + internalGetMutableCustomAttributes().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A map of fields to hold both filterable and non-filterable custom job
+     * attributes that are not covered by the provided structured fields.
+     * The keys of the map are strings up to 64 bytes and must match the
+     * pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or
+     * KEY_1_LIKE_THIS.
+     * At most 100 filterable and at most 100 unfilterable keys are supported.
+     * For filterable `string_values`, across all keys at most 200 values are
+     * allowed, with each string no more than 255 characters. For unfilterable
+     * `string_values`, the maximum total size of `string_values` across all keys
+     * is 50KB.
+     * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 10; + * + */ + public Builder removeCustomAttributes(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableCustomAttributes().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableCustomAttributes() { + return internalGetMutableCustomAttributes().getMutableMap(); + } + /** + * + * + *
+     * Optional.
+     * A map of fields to hold both filterable and non-filterable custom job
+     * attributes that are not covered by the provided structured fields.
+     * The keys of the map are strings up to 64 bytes and must match the
+     * pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or
+     * KEY_1_LIKE_THIS.
+     * At most 100 filterable and at most 100 unfilterable keys are supported.
+     * For filterable `string_values`, across all keys at most 200 values are
+     * allowed, with each string no more than 255 characters. For unfilterable
+     * `string_values`, the maximum total size of `string_values` across all keys
+     * is 50KB.
+     * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 10; + * + */ + public Builder putCustomAttributes( + java.lang.String key, com.google.cloud.talent.v4beta1.CustomAttribute value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableCustomAttributes().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * Optional.
+     * A map of fields to hold both filterable and non-filterable custom job
+     * attributes that are not covered by the provided structured fields.
+     * The keys of the map are strings up to 64 bytes and must match the
+     * pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or
+     * KEY_1_LIKE_THIS.
+     * At most 100 filterable and at most 100 unfilterable keys are supported.
+     * For filterable `string_values`, across all keys at most 200 values are
+     * allowed, with each string no more than 255 characters. For unfilterable
+     * `string_values`, the maximum total size of `string_values` across all keys
+     * is 50KB.
+     * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 10; + * + */ + public Builder putAllCustomAttributes( + java.util.Map values) { + internalGetMutableCustomAttributes().getMutableMap().putAll(values); + return this; + } + + private java.util.List degreeTypes_ = java.util.Collections.emptyList(); + + private void ensureDegreeTypesIsMutable() { + if (!((bitField0_ & 0x00000400) == 0x00000400)) { + degreeTypes_ = new java.util.ArrayList(degreeTypes_); + bitField0_ |= 0x00000400; + } + } + /** + * + * + *
+     * Optional.
+     * The desired education degrees for the job, such as Bachelors, Masters.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + public java.util.List getDegreeTypesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.talent.v4beta1.DegreeType>( + degreeTypes_, degreeTypes_converter_); + } + /** + * + * + *
+     * Optional.
+     * The desired education degrees for the job, such as Bachelors, Masters.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + public int getDegreeTypesCount() { + return degreeTypes_.size(); + } + /** + * + * + *
+     * Optional.
+     * The desired education degrees for the job, such as Bachelors, Masters.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + public com.google.cloud.talent.v4beta1.DegreeType getDegreeTypes(int index) { + return degreeTypes_converter_.convert(degreeTypes_.get(index)); + } + /** + * + * + *
+     * Optional.
+     * The desired education degrees for the job, such as Bachelors, Masters.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + public Builder setDegreeTypes(int index, com.google.cloud.talent.v4beta1.DegreeType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDegreeTypesIsMutable(); + degreeTypes_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The desired education degrees for the job, such as Bachelors, Masters.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + public Builder addDegreeTypes(com.google.cloud.talent.v4beta1.DegreeType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDegreeTypesIsMutable(); + degreeTypes_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The desired education degrees for the job, such as Bachelors, Masters.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + public Builder addAllDegreeTypes( + java.lang.Iterable values) { + ensureDegreeTypesIsMutable(); + for (com.google.cloud.talent.v4beta1.DegreeType value : values) { + degreeTypes_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The desired education degrees for the job, such as Bachelors, Masters.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + public Builder clearDegreeTypes() { + degreeTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The desired education degrees for the job, such as Bachelors, Masters.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + public java.util.List getDegreeTypesValueList() { + return java.util.Collections.unmodifiableList(degreeTypes_); + } + /** + * + * + *
+     * Optional.
+     * The desired education degrees for the job, such as Bachelors, Masters.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + public int getDegreeTypesValue(int index) { + return degreeTypes_.get(index); + } + /** + * + * + *
+     * Optional.
+     * The desired education degrees for the job, such as Bachelors, Masters.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + public Builder setDegreeTypesValue(int index, int value) { + ensureDegreeTypesIsMutable(); + degreeTypes_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The desired education degrees for the job, such as Bachelors, Masters.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + public Builder addDegreeTypesValue(int value) { + ensureDegreeTypesIsMutable(); + degreeTypes_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The desired education degrees for the job, such as Bachelors, Masters.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + public Builder addAllDegreeTypesValue(java.lang.Iterable values) { + ensureDegreeTypesIsMutable(); + for (int value : values) { + degreeTypes_.add(value); + } + onChanged(); + return this; + } + + private java.lang.Object department_ = ""; + /** + * + * + *
+     * Optional.
+     * The department or functional area within the company with the open
+     * position.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string department = 12; + */ + public java.lang.String getDepartment() { + java.lang.Object ref = department_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + department_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The department or functional area within the company with the open
+     * position.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string department = 12; + */ + public com.google.protobuf.ByteString getDepartmentBytes() { + java.lang.Object ref = department_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + department_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The department or functional area within the company with the open
+     * position.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string department = 12; + */ + public Builder setDepartment(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + department_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The department or functional area within the company with the open
+     * position.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string department = 12; + */ + public Builder clearDepartment() { + + department_ = getDefaultInstance().getDepartment(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The department or functional area within the company with the open
+     * position.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string department = 12; + */ + public Builder setDepartmentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + department_ = value; + onChanged(); + return this; + } + + private java.util.List employmentTypes_ = java.util.Collections.emptyList(); + + private void ensureEmploymentTypesIsMutable() { + if (!((bitField0_ & 0x00001000) == 0x00001000)) { + employmentTypes_ = new java.util.ArrayList(employmentTypes_); + bitField0_ |= 0x00001000; + } + } + /** + * + * + *
+     * Optional.
+     * The employment type(s) of a job, for example,
+     * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+     * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + public java.util.List getEmploymentTypesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.talent.v4beta1.EmploymentType>( + employmentTypes_, employmentTypes_converter_); + } + /** + * + * + *
+     * Optional.
+     * The employment type(s) of a job, for example,
+     * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+     * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + public int getEmploymentTypesCount() { + return employmentTypes_.size(); + } + /** + * + * + *
+     * Optional.
+     * The employment type(s) of a job, for example,
+     * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+     * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + public com.google.cloud.talent.v4beta1.EmploymentType getEmploymentTypes(int index) { + return employmentTypes_converter_.convert(employmentTypes_.get(index)); + } + /** + * + * + *
+     * Optional.
+     * The employment type(s) of a job, for example,
+     * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+     * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + public Builder setEmploymentTypes( + int index, com.google.cloud.talent.v4beta1.EmploymentType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmploymentTypesIsMutable(); + employmentTypes_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment type(s) of a job, for example,
+     * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+     * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + public Builder addEmploymentTypes(com.google.cloud.talent.v4beta1.EmploymentType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmploymentTypesIsMutable(); + employmentTypes_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment type(s) of a job, for example,
+     * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+     * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + public Builder addAllEmploymentTypes( + java.lang.Iterable values) { + ensureEmploymentTypesIsMutable(); + for (com.google.cloud.talent.v4beta1.EmploymentType value : values) { + employmentTypes_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment type(s) of a job, for example,
+     * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+     * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + public Builder clearEmploymentTypes() { + employmentTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment type(s) of a job, for example,
+     * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+     * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + public java.util.List getEmploymentTypesValueList() { + return java.util.Collections.unmodifiableList(employmentTypes_); + } + /** + * + * + *
+     * Optional.
+     * The employment type(s) of a job, for example,
+     * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+     * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + public int getEmploymentTypesValue(int index) { + return employmentTypes_.get(index); + } + /** + * + * + *
+     * Optional.
+     * The employment type(s) of a job, for example,
+     * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+     * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + public Builder setEmploymentTypesValue(int index, int value) { + ensureEmploymentTypesIsMutable(); + employmentTypes_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment type(s) of a job, for example,
+     * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+     * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + public Builder addEmploymentTypesValue(int value) { + ensureEmploymentTypesIsMutable(); + employmentTypes_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment type(s) of a job, for example,
+     * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+     * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + public Builder addAllEmploymentTypesValue(java.lang.Iterable values) { + ensureEmploymentTypesIsMutable(); + for (int value : values) { + employmentTypes_.add(value); + } + onChanged(); + return this; + } + + private java.lang.Object incentives_ = ""; + /** + * + * + *
+     * Optional.
+     * A description of bonus, commission, and other compensation
+     * incentives associated with the job not including salary or pay.
+     * The maximum number of allowed characters is 10,000.
+     * 
+ * + * string incentives = 14; + */ + public java.lang.String getIncentives() { + java.lang.Object ref = incentives_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + incentives_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * A description of bonus, commission, and other compensation
+     * incentives associated with the job not including salary or pay.
+     * The maximum number of allowed characters is 10,000.
+     * 
+ * + * string incentives = 14; + */ + public com.google.protobuf.ByteString getIncentivesBytes() { + java.lang.Object ref = incentives_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + incentives_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * A description of bonus, commission, and other compensation
+     * incentives associated with the job not including salary or pay.
+     * The maximum number of allowed characters is 10,000.
+     * 
+ * + * string incentives = 14; + */ + public Builder setIncentives(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + incentives_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A description of bonus, commission, and other compensation
+     * incentives associated with the job not including salary or pay.
+     * The maximum number of allowed characters is 10,000.
+     * 
+ * + * string incentives = 14; + */ + public Builder clearIncentives() { + + incentives_ = getDefaultInstance().getIncentives(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A description of bonus, commission, and other compensation
+     * incentives associated with the job not including salary or pay.
+     * The maximum number of allowed characters is 10,000.
+     * 
+ * + * string incentives = 14; + */ + public Builder setIncentivesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + incentives_ = value; + onChanged(); + return this; + } + + private java.lang.Object languageCode_ = ""; + /** + * + * + *
+     * Optional.
+     * The language of the posting. This field is distinct from
+     * any requirements for fluency that are associated with the job.
+     * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+     * class="external" target="_blank" }.
+     * If this field is unspecified and
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] is present,
+     * detected language code based on
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] is assigned,
+     * otherwise defaults to 'en_US'.
+     * 
+ * + * string language_code = 15; + */ + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The language of the posting. This field is distinct from
+     * any requirements for fluency that are associated with the job.
+     * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+     * class="external" target="_blank" }.
+     * If this field is unspecified and
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] is present,
+     * detected language code based on
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] is assigned,
+     * otherwise defaults to 'en_US'.
+     * 
+ * + * string language_code = 15; + */ + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The language of the posting. This field is distinct from
+     * any requirements for fluency that are associated with the job.
+     * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+     * class="external" target="_blank" }.
+     * If this field is unspecified and
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] is present,
+     * detected language code based on
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] is assigned,
+     * otherwise defaults to 'en_US'.
+     * 
+ * + * string language_code = 15; + */ + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + languageCode_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The language of the posting. This field is distinct from
+     * any requirements for fluency that are associated with the job.
+     * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+     * class="external" target="_blank" }.
+     * If this field is unspecified and
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] is present,
+     * detected language code based on
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] is assigned,
+     * otherwise defaults to 'en_US'.
+     * 
+ * + * string language_code = 15; + */ + public Builder clearLanguageCode() { + + languageCode_ = getDefaultInstance().getLanguageCode(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The language of the posting. This field is distinct from
+     * any requirements for fluency that are associated with the job.
+     * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+     * class="external" target="_blank" }.
+     * If this field is unspecified and
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] is present,
+     * detected language code based on
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] is assigned,
+     * otherwise defaults to 'en_US'.
+     * 
+ * + * string language_code = 15; + */ + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + languageCode_ = value; + onChanged(); + return this; + } + + private int jobLevel_ = 0; + /** + * + * + *
+     * Optional.
+     * The experience level associated with the job, such as "Entry Level".
+     * 
+ * + * .google.cloud.talent.v4beta1.JobLevel job_level = 16; + */ + public int getJobLevelValue() { + return jobLevel_; + } + /** + * + * + *
+     * Optional.
+     * The experience level associated with the job, such as "Entry Level".
+     * 
+ * + * .google.cloud.talent.v4beta1.JobLevel job_level = 16; + */ + public Builder setJobLevelValue(int value) { + jobLevel_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The experience level associated with the job, such as "Entry Level".
+     * 
+ * + * .google.cloud.talent.v4beta1.JobLevel job_level = 16; + */ + public com.google.cloud.talent.v4beta1.JobLevel getJobLevel() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.JobLevel result = + com.google.cloud.talent.v4beta1.JobLevel.valueOf(jobLevel_); + return result == null ? com.google.cloud.talent.v4beta1.JobLevel.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Optional.
+     * The experience level associated with the job, such as "Entry Level".
+     * 
+ * + * .google.cloud.talent.v4beta1.JobLevel job_level = 16; + */ + public Builder setJobLevel(com.google.cloud.talent.v4beta1.JobLevel value) { + if (value == null) { + throw new NullPointerException(); + } + + jobLevel_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The experience level associated with the job, such as "Entry Level".
+     * 
+ * + * .google.cloud.talent.v4beta1.JobLevel job_level = 16; + */ + public Builder clearJobLevel() { + + jobLevel_ = 0; + onChanged(); + return this; + } + + private int promotionValue_; + /** + * + * + *
+     * Optional.
+     * A promotion value of the job, as determined by the client.
+     * The value determines the sort order of the jobs returned when searching for
+     * jobs using the featured jobs search call, with higher promotional values
+     * being returned first and ties being resolved by relevance sort. Only the
+     * jobs with a promotionValue >0 are returned in a FEATURED_JOB_SEARCH.
+     * Default value is 0, and negative values are treated as 0.
+     * 
+ * + * int32 promotion_value = 17; + */ + public int getPromotionValue() { + return promotionValue_; + } + /** + * + * + *
+     * Optional.
+     * A promotion value of the job, as determined by the client.
+     * The value determines the sort order of the jobs returned when searching for
+     * jobs using the featured jobs search call, with higher promotional values
+     * being returned first and ties being resolved by relevance sort. Only the
+     * jobs with a promotionValue >0 are returned in a FEATURED_JOB_SEARCH.
+     * Default value is 0, and negative values are treated as 0.
+     * 
+ * + * int32 promotion_value = 17; + */ + public Builder setPromotionValue(int value) { + + promotionValue_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A promotion value of the job, as determined by the client.
+     * The value determines the sort order of the jobs returned when searching for
+     * jobs using the featured jobs search call, with higher promotional values
+     * being returned first and ties being resolved by relevance sort. Only the
+     * jobs with a promotionValue >0 are returned in a FEATURED_JOB_SEARCH.
+     * Default value is 0, and negative values are treated as 0.
+     * 
+ * + * int32 promotion_value = 17; + */ + public Builder clearPromotionValue() { + + promotionValue_ = 0; + onChanged(); + return this; + } + + private java.lang.Object qualifications_ = ""; + /** + * + * + *
+     * Optional.
+     * A description of the qualifications required to perform the
+     * job. The use of this field is recommended
+     * as an alternative to using the more general
+     * [description][google.cloud.talent.v4beta1.Job.description] field.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 10,000.
+     * 
+ * + * string qualifications = 18; + */ + public java.lang.String getQualifications() { + java.lang.Object ref = qualifications_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + qualifications_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * A description of the qualifications required to perform the
+     * job. The use of this field is recommended
+     * as an alternative to using the more general
+     * [description][google.cloud.talent.v4beta1.Job.description] field.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 10,000.
+     * 
+ * + * string qualifications = 18; + */ + public com.google.protobuf.ByteString getQualificationsBytes() { + java.lang.Object ref = qualifications_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + qualifications_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * A description of the qualifications required to perform the
+     * job. The use of this field is recommended
+     * as an alternative to using the more general
+     * [description][google.cloud.talent.v4beta1.Job.description] field.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 10,000.
+     * 
+ * + * string qualifications = 18; + */ + public Builder setQualifications(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + qualifications_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A description of the qualifications required to perform the
+     * job. The use of this field is recommended
+     * as an alternative to using the more general
+     * [description][google.cloud.talent.v4beta1.Job.description] field.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 10,000.
+     * 
+ * + * string qualifications = 18; + */ + public Builder clearQualifications() { + + qualifications_ = getDefaultInstance().getQualifications(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A description of the qualifications required to perform the
+     * job. The use of this field is recommended
+     * as an alternative to using the more general
+     * [description][google.cloud.talent.v4beta1.Job.description] field.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 10,000.
+     * 
+ * + * string qualifications = 18; + */ + public Builder setQualificationsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + qualifications_ = value; + onChanged(); + return this; + } + + private java.lang.Object responsibilities_ = ""; + /** + * + * + *
+     * Optional.
+     * A description of job responsibilities. The use of this field is
+     * recommended as an alternative to using the more general
+     * [description][google.cloud.talent.v4beta1.Job.description] field.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 10,000.
+     * 
+ * + * string responsibilities = 19; + */ + public java.lang.String getResponsibilities() { + java.lang.Object ref = responsibilities_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + responsibilities_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * A description of job responsibilities. The use of this field is
+     * recommended as an alternative to using the more general
+     * [description][google.cloud.talent.v4beta1.Job.description] field.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 10,000.
+     * 
+ * + * string responsibilities = 19; + */ + public com.google.protobuf.ByteString getResponsibilitiesBytes() { + java.lang.Object ref = responsibilities_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + responsibilities_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * A description of job responsibilities. The use of this field is
+     * recommended as an alternative to using the more general
+     * [description][google.cloud.talent.v4beta1.Job.description] field.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 10,000.
+     * 
+ * + * string responsibilities = 19; + */ + public Builder setResponsibilities(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + responsibilities_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A description of job responsibilities. The use of this field is
+     * recommended as an alternative to using the more general
+     * [description][google.cloud.talent.v4beta1.Job.description] field.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 10,000.
+     * 
+ * + * string responsibilities = 19; + */ + public Builder clearResponsibilities() { + + responsibilities_ = getDefaultInstance().getResponsibilities(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A description of job responsibilities. The use of this field is
+     * recommended as an alternative to using the more general
+     * [description][google.cloud.talent.v4beta1.Job.description] field.
+     * This field accepts and sanitizes HTML input, and also accepts
+     * bold, italic, ordered list, and unordered list markup tags.
+     * The maximum number of allowed characters is 10,000.
+     * 
+ * + * string responsibilities = 19; + */ + public Builder setResponsibilitiesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + responsibilities_ = value; + onChanged(); + return this; + } + + private int postingRegion_ = 0; + /** + * + * + *
+     * Optional.
+     * The job [PostingRegion][google.cloud.talent.v4beta1.PostingRegion] (for
+     * example, state, country) throughout which the job is available. If this
+     * field is set, a
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in a search
+     * query within the job region finds this job posting if an exact location
+     * match isn't specified. If this field is set to
+     * [PostingRegion.NATION][google.cloud.talent.v4beta1.PostingRegion.NATION] or
+     * [PostingRegion.ADMINISTRATIVE_AREA][google.cloud.talent.v4beta1.PostingRegion.ADMINISTRATIVE_AREA],
+     * setting job [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] to
+     * the same location level as this field is strongly recommended.
+     * 
+ * + * .google.cloud.talent.v4beta1.PostingRegion posting_region = 20; + */ + public int getPostingRegionValue() { + return postingRegion_; + } + /** + * + * + *
+     * Optional.
+     * The job [PostingRegion][google.cloud.talent.v4beta1.PostingRegion] (for
+     * example, state, country) throughout which the job is available. If this
+     * field is set, a
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in a search
+     * query within the job region finds this job posting if an exact location
+     * match isn't specified. If this field is set to
+     * [PostingRegion.NATION][google.cloud.talent.v4beta1.PostingRegion.NATION] or
+     * [PostingRegion.ADMINISTRATIVE_AREA][google.cloud.talent.v4beta1.PostingRegion.ADMINISTRATIVE_AREA],
+     * setting job [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] to
+     * the same location level as this field is strongly recommended.
+     * 
+ * + * .google.cloud.talent.v4beta1.PostingRegion posting_region = 20; + */ + public Builder setPostingRegionValue(int value) { + postingRegion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The job [PostingRegion][google.cloud.talent.v4beta1.PostingRegion] (for
+     * example, state, country) throughout which the job is available. If this
+     * field is set, a
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in a search
+     * query within the job region finds this job posting if an exact location
+     * match isn't specified. If this field is set to
+     * [PostingRegion.NATION][google.cloud.talent.v4beta1.PostingRegion.NATION] or
+     * [PostingRegion.ADMINISTRATIVE_AREA][google.cloud.talent.v4beta1.PostingRegion.ADMINISTRATIVE_AREA],
+     * setting job [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] to
+     * the same location level as this field is strongly recommended.
+     * 
+ * + * .google.cloud.talent.v4beta1.PostingRegion posting_region = 20; + */ + public com.google.cloud.talent.v4beta1.PostingRegion getPostingRegion() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.PostingRegion result = + com.google.cloud.talent.v4beta1.PostingRegion.valueOf(postingRegion_); + return result == null ? com.google.cloud.talent.v4beta1.PostingRegion.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Optional.
+     * The job [PostingRegion][google.cloud.talent.v4beta1.PostingRegion] (for
+     * example, state, country) throughout which the job is available. If this
+     * field is set, a
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in a search
+     * query within the job region finds this job posting if an exact location
+     * match isn't specified. If this field is set to
+     * [PostingRegion.NATION][google.cloud.talent.v4beta1.PostingRegion.NATION] or
+     * [PostingRegion.ADMINISTRATIVE_AREA][google.cloud.talent.v4beta1.PostingRegion.ADMINISTRATIVE_AREA],
+     * setting job [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] to
+     * the same location level as this field is strongly recommended.
+     * 
+ * + * .google.cloud.talent.v4beta1.PostingRegion posting_region = 20; + */ + public Builder setPostingRegion(com.google.cloud.talent.v4beta1.PostingRegion value) { + if (value == null) { + throw new NullPointerException(); + } + + postingRegion_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The job [PostingRegion][google.cloud.talent.v4beta1.PostingRegion] (for
+     * example, state, country) throughout which the job is available. If this
+     * field is set, a
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in a search
+     * query within the job region finds this job posting if an exact location
+     * match isn't specified. If this field is set to
+     * [PostingRegion.NATION][google.cloud.talent.v4beta1.PostingRegion.NATION] or
+     * [PostingRegion.ADMINISTRATIVE_AREA][google.cloud.talent.v4beta1.PostingRegion.ADMINISTRATIVE_AREA],
+     * setting job [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] to
+     * the same location level as this field is strongly recommended.
+     * 
+ * + * .google.cloud.talent.v4beta1.PostingRegion posting_region = 20; + */ + public Builder clearPostingRegion() { + + postingRegion_ = 0; + onChanged(); + return this; + } + + private int visibility_ = 0; + /** + * + * + *
+     * Optional.
+     * The visibility of the job.
+     * Defaults to
+     * [Visibility.ACCOUNT_ONLY][google.cloud.talent.v4beta1.Visibility.ACCOUNT_ONLY]
+     * if not specified.
+     * 
+ * + * .google.cloud.talent.v4beta1.Visibility visibility = 21; + */ + public int getVisibilityValue() { + return visibility_; + } + /** + * + * + *
+     * Optional.
+     * The visibility of the job.
+     * Defaults to
+     * [Visibility.ACCOUNT_ONLY][google.cloud.talent.v4beta1.Visibility.ACCOUNT_ONLY]
+     * if not specified.
+     * 
+ * + * .google.cloud.talent.v4beta1.Visibility visibility = 21; + */ + public Builder setVisibilityValue(int value) { + visibility_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The visibility of the job.
+     * Defaults to
+     * [Visibility.ACCOUNT_ONLY][google.cloud.talent.v4beta1.Visibility.ACCOUNT_ONLY]
+     * if not specified.
+     * 
+ * + * .google.cloud.talent.v4beta1.Visibility visibility = 21; + */ + public com.google.cloud.talent.v4beta1.Visibility getVisibility() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.Visibility result = + com.google.cloud.talent.v4beta1.Visibility.valueOf(visibility_); + return result == null ? com.google.cloud.talent.v4beta1.Visibility.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Optional.
+     * The visibility of the job.
+     * Defaults to
+     * [Visibility.ACCOUNT_ONLY][google.cloud.talent.v4beta1.Visibility.ACCOUNT_ONLY]
+     * if not specified.
+     * 
+ * + * .google.cloud.talent.v4beta1.Visibility visibility = 21; + */ + public Builder setVisibility(com.google.cloud.talent.v4beta1.Visibility value) { + if (value == null) { + throw new NullPointerException(); + } + + visibility_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The visibility of the job.
+     * Defaults to
+     * [Visibility.ACCOUNT_ONLY][google.cloud.talent.v4beta1.Visibility.ACCOUNT_ONLY]
+     * if not specified.
+     * 
+ * + * .google.cloud.talent.v4beta1.Visibility visibility = 21; + */ + public Builder clearVisibility() { + + visibility_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp jobStartTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + jobStartTimeBuilder_; + /** + * + * + *
+     * Optional.
+     * The start timestamp of the job in UTC time zone. Typically this field
+     * is used for contracting engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_start_time = 22; + */ + public boolean hasJobStartTime() { + return jobStartTimeBuilder_ != null || jobStartTime_ != null; + } + /** + * + * + *
+     * Optional.
+     * The start timestamp of the job in UTC time zone. Typically this field
+     * is used for contracting engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_start_time = 22; + */ + public com.google.protobuf.Timestamp getJobStartTime() { + if (jobStartTimeBuilder_ == null) { + return jobStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : jobStartTime_; + } else { + return jobStartTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The start timestamp of the job in UTC time zone. Typically this field
+     * is used for contracting engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_start_time = 22; + */ + public Builder setJobStartTime(com.google.protobuf.Timestamp value) { + if (jobStartTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + jobStartTime_ = value; + onChanged(); + } else { + jobStartTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The start timestamp of the job in UTC time zone. Typically this field
+     * is used for contracting engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_start_time = 22; + */ + public Builder setJobStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (jobStartTimeBuilder_ == null) { + jobStartTime_ = builderForValue.build(); + onChanged(); + } else { + jobStartTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The start timestamp of the job in UTC time zone. Typically this field
+     * is used for contracting engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_start_time = 22; + */ + public Builder mergeJobStartTime(com.google.protobuf.Timestamp value) { + if (jobStartTimeBuilder_ == null) { + if (jobStartTime_ != null) { + jobStartTime_ = + com.google.protobuf.Timestamp.newBuilder(jobStartTime_) + .mergeFrom(value) + .buildPartial(); + } else { + jobStartTime_ = value; + } + onChanged(); + } else { + jobStartTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The start timestamp of the job in UTC time zone. Typically this field
+     * is used for contracting engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_start_time = 22; + */ + public Builder clearJobStartTime() { + if (jobStartTimeBuilder_ == null) { + jobStartTime_ = null; + onChanged(); + } else { + jobStartTime_ = null; + jobStartTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The start timestamp of the job in UTC time zone. Typically this field
+     * is used for contracting engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_start_time = 22; + */ + public com.google.protobuf.Timestamp.Builder getJobStartTimeBuilder() { + + onChanged(); + return getJobStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The start timestamp of the job in UTC time zone. Typically this field
+     * is used for contracting engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_start_time = 22; + */ + public com.google.protobuf.TimestampOrBuilder getJobStartTimeOrBuilder() { + if (jobStartTimeBuilder_ != null) { + return jobStartTimeBuilder_.getMessageOrBuilder(); + } else { + return jobStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : jobStartTime_; + } + } + /** + * + * + *
+     * Optional.
+     * The start timestamp of the job in UTC time zone. Typically this field
+     * is used for contracting engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_start_time = 22; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getJobStartTimeFieldBuilder() { + if (jobStartTimeBuilder_ == null) { + jobStartTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getJobStartTime(), getParentForChildren(), isClean()); + jobStartTime_ = null; + } + return jobStartTimeBuilder_; + } + + private com.google.protobuf.Timestamp jobEndTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + jobEndTimeBuilder_; + /** + * + * + *
+     * Optional.
+     * The end timestamp of the job. Typically this field is used for contracting
+     * engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_end_time = 23; + */ + public boolean hasJobEndTime() { + return jobEndTimeBuilder_ != null || jobEndTime_ != null; + } + /** + * + * + *
+     * Optional.
+     * The end timestamp of the job. Typically this field is used for contracting
+     * engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_end_time = 23; + */ + public com.google.protobuf.Timestamp getJobEndTime() { + if (jobEndTimeBuilder_ == null) { + return jobEndTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : jobEndTime_; + } else { + return jobEndTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The end timestamp of the job. Typically this field is used for contracting
+     * engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_end_time = 23; + */ + public Builder setJobEndTime(com.google.protobuf.Timestamp value) { + if (jobEndTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + jobEndTime_ = value; + onChanged(); + } else { + jobEndTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The end timestamp of the job. Typically this field is used for contracting
+     * engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_end_time = 23; + */ + public Builder setJobEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (jobEndTimeBuilder_ == null) { + jobEndTime_ = builderForValue.build(); + onChanged(); + } else { + jobEndTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The end timestamp of the job. Typically this field is used for contracting
+     * engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_end_time = 23; + */ + public Builder mergeJobEndTime(com.google.protobuf.Timestamp value) { + if (jobEndTimeBuilder_ == null) { + if (jobEndTime_ != null) { + jobEndTime_ = + com.google.protobuf.Timestamp.newBuilder(jobEndTime_).mergeFrom(value).buildPartial(); + } else { + jobEndTime_ = value; + } + onChanged(); + } else { + jobEndTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The end timestamp of the job. Typically this field is used for contracting
+     * engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_end_time = 23; + */ + public Builder clearJobEndTime() { + if (jobEndTimeBuilder_ == null) { + jobEndTime_ = null; + onChanged(); + } else { + jobEndTime_ = null; + jobEndTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The end timestamp of the job. Typically this field is used for contracting
+     * engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_end_time = 23; + */ + public com.google.protobuf.Timestamp.Builder getJobEndTimeBuilder() { + + onChanged(); + return getJobEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The end timestamp of the job. Typically this field is used for contracting
+     * engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_end_time = 23; + */ + public com.google.protobuf.TimestampOrBuilder getJobEndTimeOrBuilder() { + if (jobEndTimeBuilder_ != null) { + return jobEndTimeBuilder_.getMessageOrBuilder(); + } else { + return jobEndTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : jobEndTime_; + } + } + /** + * + * + *
+     * Optional.
+     * The end timestamp of the job. Typically this field is used for contracting
+     * engagements. Invalid timestamps are ignored.
+     * 
+ * + * .google.protobuf.Timestamp job_end_time = 23; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getJobEndTimeFieldBuilder() { + if (jobEndTimeBuilder_ == null) { + jobEndTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getJobEndTime(), getParentForChildren(), isClean()); + jobEndTime_ = null; + } + return jobEndTimeBuilder_; + } + + private com.google.protobuf.Timestamp postingPublishTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + postingPublishTimeBuilder_; + /** + * + * + *
+     * Optional.
+     * The timestamp this job posting was most recently published. The default
+     * value is the time the request arrives at the server. Invalid timestamps are
+     * ignored.
+     * 
+ * + * .google.protobuf.Timestamp posting_publish_time = 24; + */ + public boolean hasPostingPublishTime() { + return postingPublishTimeBuilder_ != null || postingPublishTime_ != null; + } + /** + * + * + *
+     * Optional.
+     * The timestamp this job posting was most recently published. The default
+     * value is the time the request arrives at the server. Invalid timestamps are
+     * ignored.
+     * 
+ * + * .google.protobuf.Timestamp posting_publish_time = 24; + */ + public com.google.protobuf.Timestamp getPostingPublishTime() { + if (postingPublishTimeBuilder_ == null) { + return postingPublishTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : postingPublishTime_; + } else { + return postingPublishTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The timestamp this job posting was most recently published. The default
+     * value is the time the request arrives at the server. Invalid timestamps are
+     * ignored.
+     * 
+ * + * .google.protobuf.Timestamp posting_publish_time = 24; + */ + public Builder setPostingPublishTime(com.google.protobuf.Timestamp value) { + if (postingPublishTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + postingPublishTime_ = value; + onChanged(); + } else { + postingPublishTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The timestamp this job posting was most recently published. The default
+     * value is the time the request arrives at the server. Invalid timestamps are
+     * ignored.
+     * 
+ * + * .google.protobuf.Timestamp posting_publish_time = 24; + */ + public Builder setPostingPublishTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (postingPublishTimeBuilder_ == null) { + postingPublishTime_ = builderForValue.build(); + onChanged(); + } else { + postingPublishTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The timestamp this job posting was most recently published. The default
+     * value is the time the request arrives at the server. Invalid timestamps are
+     * ignored.
+     * 
+ * + * .google.protobuf.Timestamp posting_publish_time = 24; + */ + public Builder mergePostingPublishTime(com.google.protobuf.Timestamp value) { + if (postingPublishTimeBuilder_ == null) { + if (postingPublishTime_ != null) { + postingPublishTime_ = + com.google.protobuf.Timestamp.newBuilder(postingPublishTime_) + .mergeFrom(value) + .buildPartial(); + } else { + postingPublishTime_ = value; + } + onChanged(); + } else { + postingPublishTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The timestamp this job posting was most recently published. The default
+     * value is the time the request arrives at the server. Invalid timestamps are
+     * ignored.
+     * 
+ * + * .google.protobuf.Timestamp posting_publish_time = 24; + */ + public Builder clearPostingPublishTime() { + if (postingPublishTimeBuilder_ == null) { + postingPublishTime_ = null; + onChanged(); + } else { + postingPublishTime_ = null; + postingPublishTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The timestamp this job posting was most recently published. The default
+     * value is the time the request arrives at the server. Invalid timestamps are
+     * ignored.
+     * 
+ * + * .google.protobuf.Timestamp posting_publish_time = 24; + */ + public com.google.protobuf.Timestamp.Builder getPostingPublishTimeBuilder() { + + onChanged(); + return getPostingPublishTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The timestamp this job posting was most recently published. The default
+     * value is the time the request arrives at the server. Invalid timestamps are
+     * ignored.
+     * 
+ * + * .google.protobuf.Timestamp posting_publish_time = 24; + */ + public com.google.protobuf.TimestampOrBuilder getPostingPublishTimeOrBuilder() { + if (postingPublishTimeBuilder_ != null) { + return postingPublishTimeBuilder_.getMessageOrBuilder(); + } else { + return postingPublishTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : postingPublishTime_; + } + } + /** + * + * + *
+     * Optional.
+     * The timestamp this job posting was most recently published. The default
+     * value is the time the request arrives at the server. Invalid timestamps are
+     * ignored.
+     * 
+ * + * .google.protobuf.Timestamp posting_publish_time = 24; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getPostingPublishTimeFieldBuilder() { + if (postingPublishTimeBuilder_ == null) { + postingPublishTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getPostingPublishTime(), getParentForChildren(), isClean()); + postingPublishTime_ = null; + } + return postingPublishTimeBuilder_; + } + + private com.google.protobuf.Timestamp postingExpireTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + postingExpireTimeBuilder_; + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * The expiration timestamp of the job. After this timestamp, the
+     * job is marked as expired, and it no longer appears in search results. The
+     * expired job can't be deleted or listed by the [DeleteJob][] and
+     * [ListJobs][] APIs, but it can be retrieved with the [GetJob][] API or
+     * updated with the [UpdateJob][] API. An expired job can be updated and
+     * opened again by using a future expiration timestamp. Updating an expired
+     * job fails if there is another existing open job with same
+     * [company][google.cloud.talent.v4beta1.Job.name][],
+     * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+     * The expired jobs are retained in our system for 90 days. However, the
+     * overall expired job count cannot exceed 3 times the maximum of open jobs
+     * count over the past week, otherwise jobs with earlier expire time are
+     * cleaned first. Expired jobs are no longer accessible after they are cleaned
+     * out.
+     * Invalid timestamps are ignored, and treated as expire time not provided.
+     * Timestamp before the instant request is made is considered valid, the job
+     * will be treated as expired immediately.
+     * If this value isn't provided at the time of job creation or is invalid,
+     * the job posting expires after 30 days from the job's creation time. For
+     * example, if the job was created on 2017/01/01 13:00AM UTC with an
+     * unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC.
+     * If this value isn't provided on job update, it depends on the field masks
+     * set by
+     * [UpdateJobRequest.update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask].
+     * If the field masks include [expiry_time][], or the masks are empty meaning
+     * that every field is updated, the job posting expires after 30 days from the
+     * job's last update time. Otherwise the expiration date isn't updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_expire_time = 25; + */ + public boolean hasPostingExpireTime() { + return postingExpireTimeBuilder_ != null || postingExpireTime_ != null; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * The expiration timestamp of the job. After this timestamp, the
+     * job is marked as expired, and it no longer appears in search results. The
+     * expired job can't be deleted or listed by the [DeleteJob][] and
+     * [ListJobs][] APIs, but it can be retrieved with the [GetJob][] API or
+     * updated with the [UpdateJob][] API. An expired job can be updated and
+     * opened again by using a future expiration timestamp. Updating an expired
+     * job fails if there is another existing open job with same
+     * [company][google.cloud.talent.v4beta1.Job.name][],
+     * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+     * The expired jobs are retained in our system for 90 days. However, the
+     * overall expired job count cannot exceed 3 times the maximum of open jobs
+     * count over the past week, otherwise jobs with earlier expire time are
+     * cleaned first. Expired jobs are no longer accessible after they are cleaned
+     * out.
+     * Invalid timestamps are ignored, and treated as expire time not provided.
+     * Timestamp before the instant request is made is considered valid, the job
+     * will be treated as expired immediately.
+     * If this value isn't provided at the time of job creation or is invalid,
+     * the job posting expires after 30 days from the job's creation time. For
+     * example, if the job was created on 2017/01/01 13:00AM UTC with an
+     * unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC.
+     * If this value isn't provided on job update, it depends on the field masks
+     * set by
+     * [UpdateJobRequest.update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask].
+     * If the field masks include [expiry_time][], or the masks are empty meaning
+     * that every field is updated, the job posting expires after 30 days from the
+     * job's last update time. Otherwise the expiration date isn't updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_expire_time = 25; + */ + public com.google.protobuf.Timestamp getPostingExpireTime() { + if (postingExpireTimeBuilder_ == null) { + return postingExpireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : postingExpireTime_; + } else { + return postingExpireTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * The expiration timestamp of the job. After this timestamp, the
+     * job is marked as expired, and it no longer appears in search results. The
+     * expired job can't be deleted or listed by the [DeleteJob][] and
+     * [ListJobs][] APIs, but it can be retrieved with the [GetJob][] API or
+     * updated with the [UpdateJob][] API. An expired job can be updated and
+     * opened again by using a future expiration timestamp. Updating an expired
+     * job fails if there is another existing open job with same
+     * [company][google.cloud.talent.v4beta1.Job.name][],
+     * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+     * The expired jobs are retained in our system for 90 days. However, the
+     * overall expired job count cannot exceed 3 times the maximum of open jobs
+     * count over the past week, otherwise jobs with earlier expire time are
+     * cleaned first. Expired jobs are no longer accessible after they are cleaned
+     * out.
+     * Invalid timestamps are ignored, and treated as expire time not provided.
+     * Timestamp before the instant request is made is considered valid, the job
+     * will be treated as expired immediately.
+     * If this value isn't provided at the time of job creation or is invalid,
+     * the job posting expires after 30 days from the job's creation time. For
+     * example, if the job was created on 2017/01/01 13:00AM UTC with an
+     * unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC.
+     * If this value isn't provided on job update, it depends on the field masks
+     * set by
+     * [UpdateJobRequest.update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask].
+     * If the field masks include [expiry_time][], or the masks are empty meaning
+     * that every field is updated, the job posting expires after 30 days from the
+     * job's last update time. Otherwise the expiration date isn't updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_expire_time = 25; + */ + public Builder setPostingExpireTime(com.google.protobuf.Timestamp value) { + if (postingExpireTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + postingExpireTime_ = value; + onChanged(); + } else { + postingExpireTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * The expiration timestamp of the job. After this timestamp, the
+     * job is marked as expired, and it no longer appears in search results. The
+     * expired job can't be deleted or listed by the [DeleteJob][] and
+     * [ListJobs][] APIs, but it can be retrieved with the [GetJob][] API or
+     * updated with the [UpdateJob][] API. An expired job can be updated and
+     * opened again by using a future expiration timestamp. Updating an expired
+     * job fails if there is another existing open job with same
+     * [company][google.cloud.talent.v4beta1.Job.name][],
+     * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+     * The expired jobs are retained in our system for 90 days. However, the
+     * overall expired job count cannot exceed 3 times the maximum of open jobs
+     * count over the past week, otherwise jobs with earlier expire time are
+     * cleaned first. Expired jobs are no longer accessible after they are cleaned
+     * out.
+     * Invalid timestamps are ignored, and treated as expire time not provided.
+     * Timestamp before the instant request is made is considered valid, the job
+     * will be treated as expired immediately.
+     * If this value isn't provided at the time of job creation or is invalid,
+     * the job posting expires after 30 days from the job's creation time. For
+     * example, if the job was created on 2017/01/01 13:00AM UTC with an
+     * unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC.
+     * If this value isn't provided on job update, it depends on the field masks
+     * set by
+     * [UpdateJobRequest.update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask].
+     * If the field masks include [expiry_time][], or the masks are empty meaning
+     * that every field is updated, the job posting expires after 30 days from the
+     * job's last update time. Otherwise the expiration date isn't updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_expire_time = 25; + */ + public Builder setPostingExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (postingExpireTimeBuilder_ == null) { + postingExpireTime_ = builderForValue.build(); + onChanged(); + } else { + postingExpireTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * The expiration timestamp of the job. After this timestamp, the
+     * job is marked as expired, and it no longer appears in search results. The
+     * expired job can't be deleted or listed by the [DeleteJob][] and
+     * [ListJobs][] APIs, but it can be retrieved with the [GetJob][] API or
+     * updated with the [UpdateJob][] API. An expired job can be updated and
+     * opened again by using a future expiration timestamp. Updating an expired
+     * job fails if there is another existing open job with same
+     * [company][google.cloud.talent.v4beta1.Job.name][],
+     * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+     * The expired jobs are retained in our system for 90 days. However, the
+     * overall expired job count cannot exceed 3 times the maximum of open jobs
+     * count over the past week, otherwise jobs with earlier expire time are
+     * cleaned first. Expired jobs are no longer accessible after they are cleaned
+     * out.
+     * Invalid timestamps are ignored, and treated as expire time not provided.
+     * Timestamp before the instant request is made is considered valid, the job
+     * will be treated as expired immediately.
+     * If this value isn't provided at the time of job creation or is invalid,
+     * the job posting expires after 30 days from the job's creation time. For
+     * example, if the job was created on 2017/01/01 13:00AM UTC with an
+     * unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC.
+     * If this value isn't provided on job update, it depends on the field masks
+     * set by
+     * [UpdateJobRequest.update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask].
+     * If the field masks include [expiry_time][], or the masks are empty meaning
+     * that every field is updated, the job posting expires after 30 days from the
+     * job's last update time. Otherwise the expiration date isn't updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_expire_time = 25; + */ + public Builder mergePostingExpireTime(com.google.protobuf.Timestamp value) { + if (postingExpireTimeBuilder_ == null) { + if (postingExpireTime_ != null) { + postingExpireTime_ = + com.google.protobuf.Timestamp.newBuilder(postingExpireTime_) + .mergeFrom(value) + .buildPartial(); + } else { + postingExpireTime_ = value; + } + onChanged(); + } else { + postingExpireTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * The expiration timestamp of the job. After this timestamp, the
+     * job is marked as expired, and it no longer appears in search results. The
+     * expired job can't be deleted or listed by the [DeleteJob][] and
+     * [ListJobs][] APIs, but it can be retrieved with the [GetJob][] API or
+     * updated with the [UpdateJob][] API. An expired job can be updated and
+     * opened again by using a future expiration timestamp. Updating an expired
+     * job fails if there is another existing open job with same
+     * [company][google.cloud.talent.v4beta1.Job.name][],
+     * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+     * The expired jobs are retained in our system for 90 days. However, the
+     * overall expired job count cannot exceed 3 times the maximum of open jobs
+     * count over the past week, otherwise jobs with earlier expire time are
+     * cleaned first. Expired jobs are no longer accessible after they are cleaned
+     * out.
+     * Invalid timestamps are ignored, and treated as expire time not provided.
+     * Timestamp before the instant request is made is considered valid, the job
+     * will be treated as expired immediately.
+     * If this value isn't provided at the time of job creation or is invalid,
+     * the job posting expires after 30 days from the job's creation time. For
+     * example, if the job was created on 2017/01/01 13:00AM UTC with an
+     * unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC.
+     * If this value isn't provided on job update, it depends on the field masks
+     * set by
+     * [UpdateJobRequest.update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask].
+     * If the field masks include [expiry_time][], or the masks are empty meaning
+     * that every field is updated, the job posting expires after 30 days from the
+     * job's last update time. Otherwise the expiration date isn't updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_expire_time = 25; + */ + public Builder clearPostingExpireTime() { + if (postingExpireTimeBuilder_ == null) { + postingExpireTime_ = null; + onChanged(); + } else { + postingExpireTime_ = null; + postingExpireTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * The expiration timestamp of the job. After this timestamp, the
+     * job is marked as expired, and it no longer appears in search results. The
+     * expired job can't be deleted or listed by the [DeleteJob][] and
+     * [ListJobs][] APIs, but it can be retrieved with the [GetJob][] API or
+     * updated with the [UpdateJob][] API. An expired job can be updated and
+     * opened again by using a future expiration timestamp. Updating an expired
+     * job fails if there is another existing open job with same
+     * [company][google.cloud.talent.v4beta1.Job.name][],
+     * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+     * The expired jobs are retained in our system for 90 days. However, the
+     * overall expired job count cannot exceed 3 times the maximum of open jobs
+     * count over the past week, otherwise jobs with earlier expire time are
+     * cleaned first. Expired jobs are no longer accessible after they are cleaned
+     * out.
+     * Invalid timestamps are ignored, and treated as expire time not provided.
+     * Timestamp before the instant request is made is considered valid, the job
+     * will be treated as expired immediately.
+     * If this value isn't provided at the time of job creation or is invalid,
+     * the job posting expires after 30 days from the job's creation time. For
+     * example, if the job was created on 2017/01/01 13:00AM UTC with an
+     * unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC.
+     * If this value isn't provided on job update, it depends on the field masks
+     * set by
+     * [UpdateJobRequest.update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask].
+     * If the field masks include [expiry_time][], or the masks are empty meaning
+     * that every field is updated, the job posting expires after 30 days from the
+     * job's last update time. Otherwise the expiration date isn't updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_expire_time = 25; + */ + public com.google.protobuf.Timestamp.Builder getPostingExpireTimeBuilder() { + + onChanged(); + return getPostingExpireTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * The expiration timestamp of the job. After this timestamp, the
+     * job is marked as expired, and it no longer appears in search results. The
+     * expired job can't be deleted or listed by the [DeleteJob][] and
+     * [ListJobs][] APIs, but it can be retrieved with the [GetJob][] API or
+     * updated with the [UpdateJob][] API. An expired job can be updated and
+     * opened again by using a future expiration timestamp. Updating an expired
+     * job fails if there is another existing open job with same
+     * [company][google.cloud.talent.v4beta1.Job.name][],
+     * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+     * The expired jobs are retained in our system for 90 days. However, the
+     * overall expired job count cannot exceed 3 times the maximum of open jobs
+     * count over the past week, otherwise jobs with earlier expire time are
+     * cleaned first. Expired jobs are no longer accessible after they are cleaned
+     * out.
+     * Invalid timestamps are ignored, and treated as expire time not provided.
+     * Timestamp before the instant request is made is considered valid, the job
+     * will be treated as expired immediately.
+     * If this value isn't provided at the time of job creation or is invalid,
+     * the job posting expires after 30 days from the job's creation time. For
+     * example, if the job was created on 2017/01/01 13:00AM UTC with an
+     * unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC.
+     * If this value isn't provided on job update, it depends on the field masks
+     * set by
+     * [UpdateJobRequest.update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask].
+     * If the field masks include [expiry_time][], or the masks are empty meaning
+     * that every field is updated, the job posting expires after 30 days from the
+     * job's last update time. Otherwise the expiration date isn't updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_expire_time = 25; + */ + public com.google.protobuf.TimestampOrBuilder getPostingExpireTimeOrBuilder() { + if (postingExpireTimeBuilder_ != null) { + return postingExpireTimeBuilder_.getMessageOrBuilder(); + } else { + return postingExpireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : postingExpireTime_; + } + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * The expiration timestamp of the job. After this timestamp, the
+     * job is marked as expired, and it no longer appears in search results. The
+     * expired job can't be deleted or listed by the [DeleteJob][] and
+     * [ListJobs][] APIs, but it can be retrieved with the [GetJob][] API or
+     * updated with the [UpdateJob][] API. An expired job can be updated and
+     * opened again by using a future expiration timestamp. Updating an expired
+     * job fails if there is another existing open job with same
+     * [company][google.cloud.talent.v4beta1.Job.name][],
+     * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+     * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+     * The expired jobs are retained in our system for 90 days. However, the
+     * overall expired job count cannot exceed 3 times the maximum of open jobs
+     * count over the past week, otherwise jobs with earlier expire time are
+     * cleaned first. Expired jobs are no longer accessible after they are cleaned
+     * out.
+     * Invalid timestamps are ignored, and treated as expire time not provided.
+     * Timestamp before the instant request is made is considered valid, the job
+     * will be treated as expired immediately.
+     * If this value isn't provided at the time of job creation or is invalid,
+     * the job posting expires after 30 days from the job's creation time. For
+     * example, if the job was created on 2017/01/01 13:00AM UTC with an
+     * unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC.
+     * If this value isn't provided on job update, it depends on the field masks
+     * set by
+     * [UpdateJobRequest.update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask].
+     * If the field masks include [expiry_time][], or the masks are empty meaning
+     * that every field is updated, the job posting expires after 30 days from the
+     * job's last update time. Otherwise the expiration date isn't updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_expire_time = 25; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getPostingExpireTimeFieldBuilder() { + if (postingExpireTimeBuilder_ == null) { + postingExpireTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getPostingExpireTime(), getParentForChildren(), isClean()); + postingExpireTime_ = null; + } + return postingExpireTimeBuilder_; + } + + private com.google.protobuf.Timestamp postingCreateTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + postingCreateTimeBuilder_; + /** + * + * + *
+     * Output only. The timestamp when this job posting was created.
+     * 
+ * + * .google.protobuf.Timestamp posting_create_time = 26; + */ + public boolean hasPostingCreateTime() { + return postingCreateTimeBuilder_ != null || postingCreateTime_ != null; + } + /** + * + * + *
+     * Output only. The timestamp when this job posting was created.
+     * 
+ * + * .google.protobuf.Timestamp posting_create_time = 26; + */ + public com.google.protobuf.Timestamp getPostingCreateTime() { + if (postingCreateTimeBuilder_ == null) { + return postingCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : postingCreateTime_; + } else { + return postingCreateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The timestamp when this job posting was created.
+     * 
+ * + * .google.protobuf.Timestamp posting_create_time = 26; + */ + public Builder setPostingCreateTime(com.google.protobuf.Timestamp value) { + if (postingCreateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + postingCreateTime_ = value; + onChanged(); + } else { + postingCreateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The timestamp when this job posting was created.
+     * 
+ * + * .google.protobuf.Timestamp posting_create_time = 26; + */ + public Builder setPostingCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (postingCreateTimeBuilder_ == null) { + postingCreateTime_ = builderForValue.build(); + onChanged(); + } else { + postingCreateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. The timestamp when this job posting was created.
+     * 
+ * + * .google.protobuf.Timestamp posting_create_time = 26; + */ + public Builder mergePostingCreateTime(com.google.protobuf.Timestamp value) { + if (postingCreateTimeBuilder_ == null) { + if (postingCreateTime_ != null) { + postingCreateTime_ = + com.google.protobuf.Timestamp.newBuilder(postingCreateTime_) + .mergeFrom(value) + .buildPartial(); + } else { + postingCreateTime_ = value; + } + onChanged(); + } else { + postingCreateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The timestamp when this job posting was created.
+     * 
+ * + * .google.protobuf.Timestamp posting_create_time = 26; + */ + public Builder clearPostingCreateTime() { + if (postingCreateTimeBuilder_ == null) { + postingCreateTime_ = null; + onChanged(); + } else { + postingCreateTime_ = null; + postingCreateTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. The timestamp when this job posting was created.
+     * 
+ * + * .google.protobuf.Timestamp posting_create_time = 26; + */ + public com.google.protobuf.Timestamp.Builder getPostingCreateTimeBuilder() { + + onChanged(); + return getPostingCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The timestamp when this job posting was created.
+     * 
+ * + * .google.protobuf.Timestamp posting_create_time = 26; + */ + public com.google.protobuf.TimestampOrBuilder getPostingCreateTimeOrBuilder() { + if (postingCreateTimeBuilder_ != null) { + return postingCreateTimeBuilder_.getMessageOrBuilder(); + } else { + return postingCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : postingCreateTime_; + } + } + /** + * + * + *
+     * Output only. The timestamp when this job posting was created.
+     * 
+ * + * .google.protobuf.Timestamp posting_create_time = 26; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getPostingCreateTimeFieldBuilder() { + if (postingCreateTimeBuilder_ == null) { + postingCreateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getPostingCreateTime(), getParentForChildren(), isClean()); + postingCreateTime_ = null; + } + return postingCreateTimeBuilder_; + } + + private com.google.protobuf.Timestamp postingUpdateTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + postingUpdateTimeBuilder_; + /** + * + * + *
+     * Output only. The timestamp when this job posting was last updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_update_time = 27; + */ + public boolean hasPostingUpdateTime() { + return postingUpdateTimeBuilder_ != null || postingUpdateTime_ != null; + } + /** + * + * + *
+     * Output only. The timestamp when this job posting was last updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_update_time = 27; + */ + public com.google.protobuf.Timestamp getPostingUpdateTime() { + if (postingUpdateTimeBuilder_ == null) { + return postingUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : postingUpdateTime_; + } else { + return postingUpdateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The timestamp when this job posting was last updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_update_time = 27; + */ + public Builder setPostingUpdateTime(com.google.protobuf.Timestamp value) { + if (postingUpdateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + postingUpdateTime_ = value; + onChanged(); + } else { + postingUpdateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The timestamp when this job posting was last updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_update_time = 27; + */ + public Builder setPostingUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (postingUpdateTimeBuilder_ == null) { + postingUpdateTime_ = builderForValue.build(); + onChanged(); + } else { + postingUpdateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. The timestamp when this job posting was last updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_update_time = 27; + */ + public Builder mergePostingUpdateTime(com.google.protobuf.Timestamp value) { + if (postingUpdateTimeBuilder_ == null) { + if (postingUpdateTime_ != null) { + postingUpdateTime_ = + com.google.protobuf.Timestamp.newBuilder(postingUpdateTime_) + .mergeFrom(value) + .buildPartial(); + } else { + postingUpdateTime_ = value; + } + onChanged(); + } else { + postingUpdateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The timestamp when this job posting was last updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_update_time = 27; + */ + public Builder clearPostingUpdateTime() { + if (postingUpdateTimeBuilder_ == null) { + postingUpdateTime_ = null; + onChanged(); + } else { + postingUpdateTime_ = null; + postingUpdateTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. The timestamp when this job posting was last updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_update_time = 27; + */ + public com.google.protobuf.Timestamp.Builder getPostingUpdateTimeBuilder() { + + onChanged(); + return getPostingUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The timestamp when this job posting was last updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_update_time = 27; + */ + public com.google.protobuf.TimestampOrBuilder getPostingUpdateTimeOrBuilder() { + if (postingUpdateTimeBuilder_ != null) { + return postingUpdateTimeBuilder_.getMessageOrBuilder(); + } else { + return postingUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : postingUpdateTime_; + } + } + /** + * + * + *
+     * Output only. The timestamp when this job posting was last updated.
+     * 
+ * + * .google.protobuf.Timestamp posting_update_time = 27; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getPostingUpdateTimeFieldBuilder() { + if (postingUpdateTimeBuilder_ == null) { + postingUpdateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getPostingUpdateTime(), getParentForChildren(), isClean()); + postingUpdateTime_ = null; + } + return postingUpdateTimeBuilder_; + } + + private java.lang.Object companyDisplayName_ = ""; + /** + * + * + *
+     * Output only. Display name of the company listing the job.
+     * 
+ * + * string company_display_name = 28; + */ + public java.lang.String getCompanyDisplayName() { + java.lang.Object ref = companyDisplayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + companyDisplayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Display name of the company listing the job.
+     * 
+ * + * string company_display_name = 28; + */ + public com.google.protobuf.ByteString getCompanyDisplayNameBytes() { + java.lang.Object ref = companyDisplayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + companyDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Display name of the company listing the job.
+     * 
+ * + * string company_display_name = 28; + */ + public Builder setCompanyDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + companyDisplayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Display name of the company listing the job.
+     * 
+ * + * string company_display_name = 28; + */ + public Builder clearCompanyDisplayName() { + + companyDisplayName_ = getDefaultInstance().getCompanyDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Display name of the company listing the job.
+     * 
+ * + * string company_display_name = 28; + */ + public Builder setCompanyDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + companyDisplayName_ = value; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.Job.DerivedInfo derivedInfo_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job.DerivedInfo, + com.google.cloud.talent.v4beta1.Job.DerivedInfo.Builder, + com.google.cloud.talent.v4beta1.Job.DerivedInfoOrBuilder> + derivedInfoBuilder_; + /** + * + * + *
+     * Output only. Derived details about the job posting.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.DerivedInfo derived_info = 29; + */ + public boolean hasDerivedInfo() { + return derivedInfoBuilder_ != null || derivedInfo_ != null; + } + /** + * + * + *
+     * Output only. Derived details about the job posting.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.DerivedInfo derived_info = 29; + */ + public com.google.cloud.talent.v4beta1.Job.DerivedInfo getDerivedInfo() { + if (derivedInfoBuilder_ == null) { + return derivedInfo_ == null + ? com.google.cloud.talent.v4beta1.Job.DerivedInfo.getDefaultInstance() + : derivedInfo_; + } else { + return derivedInfoBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Derived details about the job posting.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.DerivedInfo derived_info = 29; + */ + public Builder setDerivedInfo(com.google.cloud.talent.v4beta1.Job.DerivedInfo value) { + if (derivedInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + derivedInfo_ = value; + onChanged(); + } else { + derivedInfoBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Derived details about the job posting.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.DerivedInfo derived_info = 29; + */ + public Builder setDerivedInfo( + com.google.cloud.talent.v4beta1.Job.DerivedInfo.Builder builderForValue) { + if (derivedInfoBuilder_ == null) { + derivedInfo_ = builderForValue.build(); + onChanged(); + } else { + derivedInfoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Derived details about the job posting.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.DerivedInfo derived_info = 29; + */ + public Builder mergeDerivedInfo(com.google.cloud.talent.v4beta1.Job.DerivedInfo value) { + if (derivedInfoBuilder_ == null) { + if (derivedInfo_ != null) { + derivedInfo_ = + com.google.cloud.talent.v4beta1.Job.DerivedInfo.newBuilder(derivedInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + derivedInfo_ = value; + } + onChanged(); + } else { + derivedInfoBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Derived details about the job posting.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.DerivedInfo derived_info = 29; + */ + public Builder clearDerivedInfo() { + if (derivedInfoBuilder_ == null) { + derivedInfo_ = null; + onChanged(); + } else { + derivedInfo_ = null; + derivedInfoBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Derived details about the job posting.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.DerivedInfo derived_info = 29; + */ + public com.google.cloud.talent.v4beta1.Job.DerivedInfo.Builder getDerivedInfoBuilder() { + + onChanged(); + return getDerivedInfoFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Derived details about the job posting.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.DerivedInfo derived_info = 29; + */ + public com.google.cloud.talent.v4beta1.Job.DerivedInfoOrBuilder getDerivedInfoOrBuilder() { + if (derivedInfoBuilder_ != null) { + return derivedInfoBuilder_.getMessageOrBuilder(); + } else { + return derivedInfo_ == null + ? com.google.cloud.talent.v4beta1.Job.DerivedInfo.getDefaultInstance() + : derivedInfo_; + } + } + /** + * + * + *
+     * Output only. Derived details about the job posting.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.DerivedInfo derived_info = 29; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job.DerivedInfo, + com.google.cloud.talent.v4beta1.Job.DerivedInfo.Builder, + com.google.cloud.talent.v4beta1.Job.DerivedInfoOrBuilder> + getDerivedInfoFieldBuilder() { + if (derivedInfoBuilder_ == null) { + derivedInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job.DerivedInfo, + com.google.cloud.talent.v4beta1.Job.DerivedInfo.Builder, + com.google.cloud.talent.v4beta1.Job.DerivedInfoOrBuilder>( + getDerivedInfo(), getParentForChildren(), isClean()); + derivedInfo_ = null; + } + return derivedInfoBuilder_; + } + + private com.google.cloud.talent.v4beta1.Job.ProcessingOptions processingOptions_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job.ProcessingOptions, + com.google.cloud.talent.v4beta1.Job.ProcessingOptions.Builder, + com.google.cloud.talent.v4beta1.Job.ProcessingOptionsOrBuilder> + processingOptionsBuilder_; + /** + * + * + *
+     * Optional.
+     * Options for job processing.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ProcessingOptions processing_options = 30; + */ + public boolean hasProcessingOptions() { + return processingOptionsBuilder_ != null || processingOptions_ != null; + } + /** + * + * + *
+     * Optional.
+     * Options for job processing.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ProcessingOptions processing_options = 30; + */ + public com.google.cloud.talent.v4beta1.Job.ProcessingOptions getProcessingOptions() { + if (processingOptionsBuilder_ == null) { + return processingOptions_ == null + ? com.google.cloud.talent.v4beta1.Job.ProcessingOptions.getDefaultInstance() + : processingOptions_; + } else { + return processingOptionsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * Options for job processing.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ProcessingOptions processing_options = 30; + */ + public Builder setProcessingOptions( + com.google.cloud.talent.v4beta1.Job.ProcessingOptions value) { + if (processingOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + processingOptions_ = value; + onChanged(); + } else { + processingOptionsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Options for job processing.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ProcessingOptions processing_options = 30; + */ + public Builder setProcessingOptions( + com.google.cloud.talent.v4beta1.Job.ProcessingOptions.Builder builderForValue) { + if (processingOptionsBuilder_ == null) { + processingOptions_ = builderForValue.build(); + onChanged(); + } else { + processingOptionsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Options for job processing.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ProcessingOptions processing_options = 30; + */ + public Builder mergeProcessingOptions( + com.google.cloud.talent.v4beta1.Job.ProcessingOptions value) { + if (processingOptionsBuilder_ == null) { + if (processingOptions_ != null) { + processingOptions_ = + com.google.cloud.talent.v4beta1.Job.ProcessingOptions.newBuilder(processingOptions_) + .mergeFrom(value) + .buildPartial(); + } else { + processingOptions_ = value; + } + onChanged(); + } else { + processingOptionsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Options for job processing.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ProcessingOptions processing_options = 30; + */ + public Builder clearProcessingOptions() { + if (processingOptionsBuilder_ == null) { + processingOptions_ = null; + onChanged(); + } else { + processingOptions_ = null; + processingOptionsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Options for job processing.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ProcessingOptions processing_options = 30; + */ + public com.google.cloud.talent.v4beta1.Job.ProcessingOptions.Builder + getProcessingOptionsBuilder() { + + onChanged(); + return getProcessingOptionsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * Options for job processing.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ProcessingOptions processing_options = 30; + */ + public com.google.cloud.talent.v4beta1.Job.ProcessingOptionsOrBuilder + getProcessingOptionsOrBuilder() { + if (processingOptionsBuilder_ != null) { + return processingOptionsBuilder_.getMessageOrBuilder(); + } else { + return processingOptions_ == null + ? com.google.cloud.talent.v4beta1.Job.ProcessingOptions.getDefaultInstance() + : processingOptions_; + } + } + /** + * + * + *
+     * Optional.
+     * Options for job processing.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job.ProcessingOptions processing_options = 30; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job.ProcessingOptions, + com.google.cloud.talent.v4beta1.Job.ProcessingOptions.Builder, + com.google.cloud.talent.v4beta1.Job.ProcessingOptionsOrBuilder> + getProcessingOptionsFieldBuilder() { + if (processingOptionsBuilder_ == null) { + processingOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job.ProcessingOptions, + com.google.cloud.talent.v4beta1.Job.ProcessingOptions.Builder, + com.google.cloud.talent.v4beta1.Job.ProcessingOptionsOrBuilder>( + getProcessingOptions(), getParentForChildren(), isClean()); + processingOptions_ = null; + } + return processingOptionsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Job) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Job) + private static final com.google.cloud.talent.v4beta1.Job DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Job(); + } + + public static com.google.cloud.talent.v4beta1.Job getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Job parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Job(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.Job getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobApplication.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobApplication.java new file mode 100644 index 000000000000..50fe42668444 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobApplication.java @@ -0,0 +1,3468 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Resource that represents a job application record of a candidate.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.JobApplication} + */ +public final class JobApplication extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.JobApplication) + JobApplicationOrBuilder { + private static final long serialVersionUID = 0L; + // Use JobApplication.newBuilder() to construct. + private JobApplication(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private JobApplication() { + applicationId_ = ""; + lastStage_ = ""; + state_ = 0; + averageInterviewScore_ = 0D; + interviewScoreScaleId_ = ""; + numberOfInterviews_ = 0; + outcomeReason_ = ""; + outcomePositiveness_ = 0D; + jobTitleSnippet_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private JobApplication( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.talent.v4beta1.Job.Builder subBuilder = null; + if (job_ != null) { + subBuilder = job_.toBuilder(); + } + job_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Job.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(job_); + job_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + applicationId_ = s; + break; + } + case 26: + { + com.google.type.Date.Builder subBuilder = null; + if (applicationDate_ != null) { + subBuilder = applicationDate_.toBuilder(); + } + applicationDate_ = + input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(applicationDate_); + applicationDate_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + lastStage_ = s; + break; + } + case 40: + { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + case 49: + { + averageInterviewScore_ = input.readDouble(); + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + interviewScoreScaleId_ = s; + break; + } + case 64: + { + numberOfInterviews_ = input.readInt32(); + break; + } + case 74: + { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (isEmployeeReferred_ != null) { + subBuilder = isEmployeeReferred_.toBuilder(); + } + isEmployeeReferred_ = + input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(isEmployeeReferred_); + isEmployeeReferred_ = subBuilder.buildPartial(); + } + + break; + } + case 82: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; + } + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + + outcomeReason_ = s; + break; + } + case 97: + { + outcomePositiveness_ = input.readDouble(); + break; + } + case 106: + { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (isMatch_ != null) { + subBuilder = isMatch_.toBuilder(); + } + isMatch_ = + input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(isMatch_); + isMatch_ = subBuilder.buildPartial(); + } + + break; + } + case 114: + { + java.lang.String s = input.readStringRequireUtf8(); + + jobTitleSnippet_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_JobApplication_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_JobApplication_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.JobApplication.class, + com.google.cloud.talent.v4beta1.JobApplication.Builder.class); + } + + /** + * + * + *
+   * Enum that represents the application status.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.JobApplication.ApplicationStatus} + */ + public enum ApplicationStatus implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value.
+     * 
+ * + * APPLICATION_STATUS_UNSPECIFIED = 0; + */ + APPLICATION_STATUS_UNSPECIFIED(0), + /** + * + * + *
+     * The offer is extended.
+     * 
+ * + * OFFER_EXTENDED = 1; + */ + OFFER_EXTENDED(1), + /** + * + * + *
+     * The offer is rejected by candidate.
+     * 
+ * + * REJECTED_BY_CANDIDATE = 2; + */ + REJECTED_BY_CANDIDATE(2), + /** + * + * + *
+     * The application is active.
+     * 
+ * + * ACTIVE = 3; + */ + ACTIVE(3), + /** + * + * + *
+     * The candidate is rejected by employer.
+     * 
+ * + * REJECTED_BY_EMPLOYER = 4; + */ + REJECTED_BY_EMPLOYER(4), + /** + * + * + *
+     * The candidate is hired and hasn't started the new job.
+     * 
+ * + * HIRED_PENDING_DATE = 5; + */ + HIRED_PENDING_DATE(5), + /** + * + * + *
+     * The candidate is hired started.
+     * 
+ * + * HIRED_STARTED = 6; + */ + HIRED_STARTED(6), + /** + * + * + *
+     * The candidate is a prospect candidate.
+     * 
+ * + * PROSPECTED = 7; + */ + PROSPECTED(7), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value.
+     * 
+ * + * APPLICATION_STATUS_UNSPECIFIED = 0; + */ + public static final int APPLICATION_STATUS_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The offer is extended.
+     * 
+ * + * OFFER_EXTENDED = 1; + */ + public static final int OFFER_EXTENDED_VALUE = 1; + /** + * + * + *
+     * The offer is rejected by candidate.
+     * 
+ * + * REJECTED_BY_CANDIDATE = 2; + */ + public static final int REJECTED_BY_CANDIDATE_VALUE = 2; + /** + * + * + *
+     * The application is active.
+     * 
+ * + * ACTIVE = 3; + */ + public static final int ACTIVE_VALUE = 3; + /** + * + * + *
+     * The candidate is rejected by employer.
+     * 
+ * + * REJECTED_BY_EMPLOYER = 4; + */ + public static final int REJECTED_BY_EMPLOYER_VALUE = 4; + /** + * + * + *
+     * The candidate is hired and hasn't started the new job.
+     * 
+ * + * HIRED_PENDING_DATE = 5; + */ + public static final int HIRED_PENDING_DATE_VALUE = 5; + /** + * + * + *
+     * The candidate is hired started.
+     * 
+ * + * HIRED_STARTED = 6; + */ + public static final int HIRED_STARTED_VALUE = 6; + /** + * + * + *
+     * The candidate is a prospect candidate.
+     * 
+ * + * PROSPECTED = 7; + */ + public static final int PROSPECTED_VALUE = 7; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static ApplicationStatus valueOf(int value) { + return forNumber(value); + } + + public static ApplicationStatus forNumber(int value) { + switch (value) { + case 0: + return APPLICATION_STATUS_UNSPECIFIED; + case 1: + return OFFER_EXTENDED; + case 2: + return REJECTED_BY_CANDIDATE; + case 3: + return ACTIVE; + case 4: + return REJECTED_BY_EMPLOYER; + case 5: + return HIRED_PENDING_DATE; + case 6: + return HIRED_STARTED; + case 7: + return PROSPECTED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ApplicationStatus findValueByNumber(int number) { + return ApplicationStatus.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobApplication.getDescriptor().getEnumTypes().get(0); + } + + private static final ApplicationStatus[] VALUES = values(); + + public static ApplicationStatus 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()]; + } + + private final int value; + + private ApplicationStatus(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.JobApplication.ApplicationStatus) + } + + public static final int JOB_FIELD_NUMBER = 1; + private com.google.cloud.talent.v4beta1.Job job_; + /** + * + * + *
+   * Optional.
+   * The information of job which the candidate applied for.
+   * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
+   * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
+   * Otherwise, only
+   * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+   * [Job.title][google.cloud.talent.v4beta1.Job.title],
+   * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+   * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
+   * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
+   * entity is created in this case.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public boolean hasJob() { + return job_ != null; + } + /** + * + * + *
+   * Optional.
+   * The information of job which the candidate applied for.
+   * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
+   * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
+   * Otherwise, only
+   * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+   * [Job.title][google.cloud.talent.v4beta1.Job.title],
+   * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+   * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
+   * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
+   * entity is created in this case.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public com.google.cloud.talent.v4beta1.Job getJob() { + return job_ == null ? com.google.cloud.talent.v4beta1.Job.getDefaultInstance() : job_; + } + /** + * + * + *
+   * Optional.
+   * The information of job which the candidate applied for.
+   * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
+   * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
+   * Otherwise, only
+   * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+   * [Job.title][google.cloud.talent.v4beta1.Job.title],
+   * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+   * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
+   * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
+   * entity is created in this case.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public com.google.cloud.talent.v4beta1.JobOrBuilder getJobOrBuilder() { + return getJob(); + } + + public static final int APPLICATION_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object applicationId_; + /** + * + * + *
+   * Optional.
+   * The job application id.
+   * Number of characters allowed is 100.
+   * 
+ * + * string application_id = 2; + */ + public java.lang.String getApplicationId() { + java.lang.Object ref = applicationId_; + 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(); + applicationId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The job application id.
+   * Number of characters allowed is 100.
+   * 
+ * + * string application_id = 2; + */ + public com.google.protobuf.ByteString getApplicationIdBytes() { + java.lang.Object ref = applicationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + applicationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int APPLICATION_DATE_FIELD_NUMBER = 3; + private com.google.type.Date applicationDate_; + /** + * + * + *
+   * Optional.
+   * The application date.
+   * 
+ * + * .google.type.Date application_date = 3; + */ + public boolean hasApplicationDate() { + return applicationDate_ != null; + } + /** + * + * + *
+   * Optional.
+   * The application date.
+   * 
+ * + * .google.type.Date application_date = 3; + */ + public com.google.type.Date getApplicationDate() { + return applicationDate_ == null ? com.google.type.Date.getDefaultInstance() : applicationDate_; + } + /** + * + * + *
+   * Optional.
+   * The application date.
+   * 
+ * + * .google.type.Date application_date = 3; + */ + public com.google.type.DateOrBuilder getApplicationDateOrBuilder() { + return getApplicationDate(); + } + + public static final int LAST_STAGE_FIELD_NUMBER = 4; + private volatile java.lang.Object lastStage_; + /** + * + * + *
+   * Optional.
+   * The last stage the candidate reached in the application progress.
+   * For example, "new", "phone screen", "interview".
+   * 
+ * + * string last_stage = 4; + */ + public java.lang.String getLastStage() { + java.lang.Object ref = lastStage_; + 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(); + lastStage_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The last stage the candidate reached in the application progress.
+   * For example, "new", "phone screen", "interview".
+   * 
+ * + * string last_stage = 4; + */ + public com.google.protobuf.ByteString getLastStageBytes() { + java.lang.Object ref = lastStage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + lastStage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 5; + private int state_; + /** + * + * + *
+   * Optional.
+   * The application state.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus state = 5; + */ + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * Optional.
+   * The application state.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus state = 5; + */ + public com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus getState() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus result = + com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus.valueOf(state_); + return result == null + ? com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus.UNRECOGNIZED + : result; + } + + public static final int AVERAGE_INTERVIEW_SCORE_FIELD_NUMBER = 6; + private double averageInterviewScore_; + /** + * + * + *
+   * Optional.
+   * The average interview score.
+   * 
+ * + * double average_interview_score = 6; + */ + public double getAverageInterviewScore() { + return averageInterviewScore_; + } + + public static final int INTERVIEW_SCORE_SCALE_ID_FIELD_NUMBER = 7; + private volatile java.lang.Object interviewScoreScaleId_; + /** + * + * + *
+   * Optional.
+   * The scale id of the interview score.
+   * Number of characters allowed is 100.
+   * 
+ * + * string interview_score_scale_id = 7; + */ + public java.lang.String getInterviewScoreScaleId() { + java.lang.Object ref = interviewScoreScaleId_; + 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(); + interviewScoreScaleId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The scale id of the interview score.
+   * Number of characters allowed is 100.
+   * 
+ * + * string interview_score_scale_id = 7; + */ + public com.google.protobuf.ByteString getInterviewScoreScaleIdBytes() { + java.lang.Object ref = interviewScoreScaleId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + interviewScoreScaleId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NUMBER_OF_INTERVIEWS_FIELD_NUMBER = 8; + private int numberOfInterviews_; + /** + * + * + *
+   * Optional.
+   * The number of interviews.
+   * 
+ * + * int32 number_of_interviews = 8; + */ + public int getNumberOfInterviews() { + return numberOfInterviews_; + } + + public static final int IS_EMPLOYEE_REFERRED_FIELD_NUMBER = 9; + private com.google.protobuf.BoolValue isEmployeeReferred_; + /** + * + * + *
+   * Optional.
+   * If the candidate is referred by a employee.
+   * 
+ * + * .google.protobuf.BoolValue is_employee_referred = 9; + */ + public boolean hasIsEmployeeReferred() { + return isEmployeeReferred_ != null; + } + /** + * + * + *
+   * Optional.
+   * If the candidate is referred by a employee.
+   * 
+ * + * .google.protobuf.BoolValue is_employee_referred = 9; + */ + public com.google.protobuf.BoolValue getIsEmployeeReferred() { + return isEmployeeReferred_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : isEmployeeReferred_; + } + /** + * + * + *
+   * Optional.
+   * If the candidate is referred by a employee.
+   * 
+ * + * .google.protobuf.BoolValue is_employee_referred = 9; + */ + public com.google.protobuf.BoolValueOrBuilder getIsEmployeeReferredOrBuilder() { + return getIsEmployeeReferred(); + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 10; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Optional.
+   * The last update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + * + * + *
+   * Optional.
+   * The last update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Optional.
+   * The last update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + public static final int OUTCOME_REASON_FIELD_NUMBER = 11; + private volatile java.lang.Object outcomeReason_; + /** + * + * + *
+   * Optional.
+   * The outcome reason for the job application.
+   * Number of characters allowed is 100.
+   * 
+ * + * string outcome_reason = 11; + */ + public java.lang.String getOutcomeReason() { + java.lang.Object ref = outcomeReason_; + 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(); + outcomeReason_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The outcome reason for the job application.
+   * Number of characters allowed is 100.
+   * 
+ * + * string outcome_reason = 11; + */ + public com.google.protobuf.ByteString getOutcomeReasonBytes() { + java.lang.Object ref = outcomeReason_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outcomeReason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OUTCOME_POSITIVENESS_FIELD_NUMBER = 12; + private double outcomePositiveness_; + /** + * + * + *
+   * Optional.
+   * Outcome positiveness shows how positive the outcome is.
+   * Currently only -1, 0 and 1 are accepted, where -1 means not positive, 0
+   * means neutral and 1 means positive. An error is thrown if other value is
+   * set.
+   * 
+ * + * double outcome_positiveness = 12; + */ + public double getOutcomePositiveness() { + return outcomePositiveness_; + } + + public static final int IS_MATCH_FIELD_NUMBER = 13; + private com.google.protobuf.BoolValue isMatch_; + /** + * + * + *
+   * Output only. Indicates whether this job application is a match to
+   * application related filters. This value is only applicable in profile
+   * search response.
+   * 
+ * + * .google.protobuf.BoolValue is_match = 13; + */ + public boolean hasIsMatch() { + return isMatch_ != null; + } + /** + * + * + *
+   * Output only. Indicates whether this job application is a match to
+   * application related filters. This value is only applicable in profile
+   * search response.
+   * 
+ * + * .google.protobuf.BoolValue is_match = 13; + */ + public com.google.protobuf.BoolValue getIsMatch() { + return isMatch_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isMatch_; + } + /** + * + * + *
+   * Output only. Indicates whether this job application is a match to
+   * application related filters. This value is only applicable in profile
+   * search response.
+   * 
+ * + * .google.protobuf.BoolValue is_match = 13; + */ + public com.google.protobuf.BoolValueOrBuilder getIsMatchOrBuilder() { + return getIsMatch(); + } + + public static final int JOB_TITLE_SNIPPET_FIELD_NUMBER = 14; + private volatile java.lang.Object jobTitleSnippet_; + /** + * + * + *
+   * Output only. Job title snippet shows how the job title is related to a
+   * search query. It's empty if the job title isn't related to the search
+   * query.
+   * 
+ * + * string job_title_snippet = 14; + */ + public java.lang.String getJobTitleSnippet() { + java.lang.Object ref = jobTitleSnippet_; + 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(); + jobTitleSnippet_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Job title snippet shows how the job title is related to a
+   * search query. It's empty if the job title isn't related to the search
+   * query.
+   * 
+ * + * string job_title_snippet = 14; + */ + public com.google.protobuf.ByteString getJobTitleSnippetBytes() { + java.lang.Object ref = jobTitleSnippet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobTitleSnippet_ = 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 (job_ != null) { + output.writeMessage(1, getJob()); + } + if (!getApplicationIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, applicationId_); + } + if (applicationDate_ != null) { + output.writeMessage(3, getApplicationDate()); + } + if (!getLastStageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, lastStage_); + } + if (state_ + != com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus + .APPLICATION_STATUS_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, state_); + } + if (averageInterviewScore_ != 0D) { + output.writeDouble(6, averageInterviewScore_); + } + if (!getInterviewScoreScaleIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, interviewScoreScaleId_); + } + if (numberOfInterviews_ != 0) { + output.writeInt32(8, numberOfInterviews_); + } + if (isEmployeeReferred_ != null) { + output.writeMessage(9, getIsEmployeeReferred()); + } + if (updateTime_ != null) { + output.writeMessage(10, getUpdateTime()); + } + if (!getOutcomeReasonBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, outcomeReason_); + } + if (outcomePositiveness_ != 0D) { + output.writeDouble(12, outcomePositiveness_); + } + if (isMatch_ != null) { + output.writeMessage(13, getIsMatch()); + } + if (!getJobTitleSnippetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, jobTitleSnippet_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (job_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getJob()); + } + if (!getApplicationIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, applicationId_); + } + if (applicationDate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getApplicationDate()); + } + if (!getLastStageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, lastStage_); + } + if (state_ + != com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus + .APPLICATION_STATUS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); + } + if (averageInterviewScore_ != 0D) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(6, averageInterviewScore_); + } + if (!getInterviewScoreScaleIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, interviewScoreScaleId_); + } + if (numberOfInterviews_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, numberOfInterviews_); + } + if (isEmployeeReferred_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getIsEmployeeReferred()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getUpdateTime()); + } + if (!getOutcomeReasonBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, outcomeReason_); + } + if (outcomePositiveness_ != 0D) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(12, outcomePositiveness_); + } + if (isMatch_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getIsMatch()); + } + if (!getJobTitleSnippetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, jobTitleSnippet_); + } + size += unknownFields.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.cloud.talent.v4beta1.JobApplication)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.JobApplication other = + (com.google.cloud.talent.v4beta1.JobApplication) obj; + + boolean result = true; + result = result && (hasJob() == other.hasJob()); + if (hasJob()) { + result = result && getJob().equals(other.getJob()); + } + result = result && getApplicationId().equals(other.getApplicationId()); + result = result && (hasApplicationDate() == other.hasApplicationDate()); + if (hasApplicationDate()) { + result = result && getApplicationDate().equals(other.getApplicationDate()); + } + result = result && getLastStage().equals(other.getLastStage()); + result = result && state_ == other.state_; + result = + result + && (java.lang.Double.doubleToLongBits(getAverageInterviewScore()) + == java.lang.Double.doubleToLongBits(other.getAverageInterviewScore())); + result = result && getInterviewScoreScaleId().equals(other.getInterviewScoreScaleId()); + result = result && (getNumberOfInterviews() == other.getNumberOfInterviews()); + result = result && (hasIsEmployeeReferred() == other.hasIsEmployeeReferred()); + if (hasIsEmployeeReferred()) { + result = result && getIsEmployeeReferred().equals(other.getIsEmployeeReferred()); + } + result = result && (hasUpdateTime() == other.hasUpdateTime()); + if (hasUpdateTime()) { + result = result && getUpdateTime().equals(other.getUpdateTime()); + } + result = result && getOutcomeReason().equals(other.getOutcomeReason()); + result = + result + && (java.lang.Double.doubleToLongBits(getOutcomePositiveness()) + == java.lang.Double.doubleToLongBits(other.getOutcomePositiveness())); + result = result && (hasIsMatch() == other.hasIsMatch()); + if (hasIsMatch()) { + result = result && getIsMatch().equals(other.getIsMatch()); + } + result = result && getJobTitleSnippet().equals(other.getJobTitleSnippet()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasJob()) { + hash = (37 * hash) + JOB_FIELD_NUMBER; + hash = (53 * hash) + getJob().hashCode(); + } + hash = (37 * hash) + APPLICATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getApplicationId().hashCode(); + if (hasApplicationDate()) { + hash = (37 * hash) + APPLICATION_DATE_FIELD_NUMBER; + hash = (53 * hash) + getApplicationDate().hashCode(); + } + hash = (37 * hash) + LAST_STAGE_FIELD_NUMBER; + hash = (53 * hash) + getLastStage().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + AVERAGE_INTERVIEW_SCORE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getAverageInterviewScore())); + hash = (37 * hash) + INTERVIEW_SCORE_SCALE_ID_FIELD_NUMBER; + hash = (53 * hash) + getInterviewScoreScaleId().hashCode(); + hash = (37 * hash) + NUMBER_OF_INTERVIEWS_FIELD_NUMBER; + hash = (53 * hash) + getNumberOfInterviews(); + if (hasIsEmployeeReferred()) { + hash = (37 * hash) + IS_EMPLOYEE_REFERRED_FIELD_NUMBER; + hash = (53 * hash) + getIsEmployeeReferred().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + OUTCOME_REASON_FIELD_NUMBER; + hash = (53 * hash) + getOutcomeReason().hashCode(); + hash = (37 * hash) + OUTCOME_POSITIVENESS_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getOutcomePositiveness())); + if (hasIsMatch()) { + hash = (37 * hash) + IS_MATCH_FIELD_NUMBER; + hash = (53 * hash) + getIsMatch().hashCode(); + } + hash = (37 * hash) + JOB_TITLE_SNIPPET_FIELD_NUMBER; + hash = (53 * hash) + getJobTitleSnippet().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.JobApplication parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.JobApplication parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.JobApplication parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.JobApplication 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.cloud.talent.v4beta1.JobApplication parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.JobApplication parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.JobApplication parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.JobApplication 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.cloud.talent.v4beta1.JobApplication parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.JobApplication 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.cloud.talent.v4beta1.JobApplication parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.JobApplication 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.cloud.talent.v4beta1.JobApplication 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; + } + /** + * + * + *
+   * Resource that represents a job application record of a candidate.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.JobApplication} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.JobApplication) + com.google.cloud.talent.v4beta1.JobApplicationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_JobApplication_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_JobApplication_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.JobApplication.class, + com.google.cloud.talent.v4beta1.JobApplication.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.JobApplication.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (jobBuilder_ == null) { + job_ = null; + } else { + job_ = null; + jobBuilder_ = null; + } + applicationId_ = ""; + + if (applicationDateBuilder_ == null) { + applicationDate_ = null; + } else { + applicationDate_ = null; + applicationDateBuilder_ = null; + } + lastStage_ = ""; + + state_ = 0; + + averageInterviewScore_ = 0D; + + interviewScoreScaleId_ = ""; + + numberOfInterviews_ = 0; + + if (isEmployeeReferredBuilder_ == null) { + isEmployeeReferred_ = null; + } else { + isEmployeeReferred_ = null; + isEmployeeReferredBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + outcomeReason_ = ""; + + outcomePositiveness_ = 0D; + + if (isMatchBuilder_ == null) { + isMatch_ = null; + } else { + isMatch_ = null; + isMatchBuilder_ = null; + } + jobTitleSnippet_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_JobApplication_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.JobApplication getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.JobApplication.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.JobApplication build() { + com.google.cloud.talent.v4beta1.JobApplication result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.JobApplication buildPartial() { + com.google.cloud.talent.v4beta1.JobApplication result = + new com.google.cloud.talent.v4beta1.JobApplication(this); + if (jobBuilder_ == null) { + result.job_ = job_; + } else { + result.job_ = jobBuilder_.build(); + } + result.applicationId_ = applicationId_; + if (applicationDateBuilder_ == null) { + result.applicationDate_ = applicationDate_; + } else { + result.applicationDate_ = applicationDateBuilder_.build(); + } + result.lastStage_ = lastStage_; + result.state_ = state_; + result.averageInterviewScore_ = averageInterviewScore_; + result.interviewScoreScaleId_ = interviewScoreScaleId_; + result.numberOfInterviews_ = numberOfInterviews_; + if (isEmployeeReferredBuilder_ == null) { + result.isEmployeeReferred_ = isEmployeeReferred_; + } else { + result.isEmployeeReferred_ = isEmployeeReferredBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + result.outcomeReason_ = outcomeReason_; + result.outcomePositiveness_ = outcomePositiveness_; + if (isMatchBuilder_ == null) { + result.isMatch_ = isMatch_; + } else { + result.isMatch_ = isMatchBuilder_.build(); + } + result.jobTitleSnippet_ = jobTitleSnippet_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.JobApplication) { + return mergeFrom((com.google.cloud.talent.v4beta1.JobApplication) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.JobApplication other) { + if (other == com.google.cloud.talent.v4beta1.JobApplication.getDefaultInstance()) return this; + if (other.hasJob()) { + mergeJob(other.getJob()); + } + if (!other.getApplicationId().isEmpty()) { + applicationId_ = other.applicationId_; + onChanged(); + } + if (other.hasApplicationDate()) { + mergeApplicationDate(other.getApplicationDate()); + } + if (!other.getLastStage().isEmpty()) { + lastStage_ = other.lastStage_; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.getAverageInterviewScore() != 0D) { + setAverageInterviewScore(other.getAverageInterviewScore()); + } + if (!other.getInterviewScoreScaleId().isEmpty()) { + interviewScoreScaleId_ = other.interviewScoreScaleId_; + onChanged(); + } + if (other.getNumberOfInterviews() != 0) { + setNumberOfInterviews(other.getNumberOfInterviews()); + } + if (other.hasIsEmployeeReferred()) { + mergeIsEmployeeReferred(other.getIsEmployeeReferred()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getOutcomeReason().isEmpty()) { + outcomeReason_ = other.outcomeReason_; + onChanged(); + } + if (other.getOutcomePositiveness() != 0D) { + setOutcomePositiveness(other.getOutcomePositiveness()); + } + if (other.hasIsMatch()) { + mergeIsMatch(other.getIsMatch()); + } + if (!other.getJobTitleSnippet().isEmpty()) { + jobTitleSnippet_ = other.jobTitleSnippet_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.JobApplication parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.JobApplication) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.talent.v4beta1.Job job_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job, + com.google.cloud.talent.v4beta1.Job.Builder, + com.google.cloud.talent.v4beta1.JobOrBuilder> + jobBuilder_; + /** + * + * + *
+     * Optional.
+     * The information of job which the candidate applied for.
+     * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
+     * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
+     * Otherwise, only
+     * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+     * [Job.title][google.cloud.talent.v4beta1.Job.title],
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
+     * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
+     * entity is created in this case.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public boolean hasJob() { + return jobBuilder_ != null || job_ != null; + } + /** + * + * + *
+     * Optional.
+     * The information of job which the candidate applied for.
+     * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
+     * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
+     * Otherwise, only
+     * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+     * [Job.title][google.cloud.talent.v4beta1.Job.title],
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
+     * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
+     * entity is created in this case.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public com.google.cloud.talent.v4beta1.Job getJob() { + if (jobBuilder_ == null) { + return job_ == null ? com.google.cloud.talent.v4beta1.Job.getDefaultInstance() : job_; + } else { + return jobBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The information of job which the candidate applied for.
+     * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
+     * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
+     * Otherwise, only
+     * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+     * [Job.title][google.cloud.talent.v4beta1.Job.title],
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
+     * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
+     * entity is created in this case.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public Builder setJob(com.google.cloud.talent.v4beta1.Job value) { + if (jobBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + job_ = value; + onChanged(); + } else { + jobBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The information of job which the candidate applied for.
+     * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
+     * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
+     * Otherwise, only
+     * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+     * [Job.title][google.cloud.talent.v4beta1.Job.title],
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
+     * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
+     * entity is created in this case.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public Builder setJob(com.google.cloud.talent.v4beta1.Job.Builder builderForValue) { + if (jobBuilder_ == null) { + job_ = builderForValue.build(); + onChanged(); + } else { + jobBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The information of job which the candidate applied for.
+     * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
+     * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
+     * Otherwise, only
+     * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+     * [Job.title][google.cloud.talent.v4beta1.Job.title],
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
+     * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
+     * entity is created in this case.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public Builder mergeJob(com.google.cloud.talent.v4beta1.Job value) { + if (jobBuilder_ == null) { + if (job_ != null) { + job_ = + com.google.cloud.talent.v4beta1.Job.newBuilder(job_).mergeFrom(value).buildPartial(); + } else { + job_ = value; + } + onChanged(); + } else { + jobBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The information of job which the candidate applied for.
+     * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
+     * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
+     * Otherwise, only
+     * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+     * [Job.title][google.cloud.talent.v4beta1.Job.title],
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
+     * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
+     * entity is created in this case.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public Builder clearJob() { + if (jobBuilder_ == null) { + job_ = null; + onChanged(); + } else { + job_ = null; + jobBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The information of job which the candidate applied for.
+     * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
+     * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
+     * Otherwise, only
+     * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+     * [Job.title][google.cloud.talent.v4beta1.Job.title],
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
+     * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
+     * entity is created in this case.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public com.google.cloud.talent.v4beta1.Job.Builder getJobBuilder() { + + onChanged(); + return getJobFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The information of job which the candidate applied for.
+     * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
+     * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
+     * Otherwise, only
+     * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+     * [Job.title][google.cloud.talent.v4beta1.Job.title],
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
+     * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
+     * entity is created in this case.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public com.google.cloud.talent.v4beta1.JobOrBuilder getJobOrBuilder() { + if (jobBuilder_ != null) { + return jobBuilder_.getMessageOrBuilder(); + } else { + return job_ == null ? com.google.cloud.talent.v4beta1.Job.getDefaultInstance() : job_; + } + } + /** + * + * + *
+     * Optional.
+     * The information of job which the candidate applied for.
+     * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
+     * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
+     * Otherwise, only
+     * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+     * [Job.title][google.cloud.talent.v4beta1.Job.title],
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
+     * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
+     * entity is created in this case.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job, + com.google.cloud.talent.v4beta1.Job.Builder, + com.google.cloud.talent.v4beta1.JobOrBuilder> + getJobFieldBuilder() { + if (jobBuilder_ == null) { + jobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job, + com.google.cloud.talent.v4beta1.Job.Builder, + com.google.cloud.talent.v4beta1.JobOrBuilder>( + getJob(), getParentForChildren(), isClean()); + job_ = null; + } + return jobBuilder_; + } + + private java.lang.Object applicationId_ = ""; + /** + * + * + *
+     * Optional.
+     * The job application id.
+     * Number of characters allowed is 100.
+     * 
+ * + * string application_id = 2; + */ + public java.lang.String getApplicationId() { + java.lang.Object ref = applicationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + applicationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The job application id.
+     * Number of characters allowed is 100.
+     * 
+ * + * string application_id = 2; + */ + public com.google.protobuf.ByteString getApplicationIdBytes() { + java.lang.Object ref = applicationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + applicationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The job application id.
+     * Number of characters allowed is 100.
+     * 
+ * + * string application_id = 2; + */ + public Builder setApplicationId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + applicationId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The job application id.
+     * Number of characters allowed is 100.
+     * 
+ * + * string application_id = 2; + */ + public Builder clearApplicationId() { + + applicationId_ = getDefaultInstance().getApplicationId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The job application id.
+     * Number of characters allowed is 100.
+     * 
+ * + * string application_id = 2; + */ + public Builder setApplicationIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + applicationId_ = value; + onChanged(); + return this; + } + + private com.google.type.Date applicationDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + applicationDateBuilder_; + /** + * + * + *
+     * Optional.
+     * The application date.
+     * 
+ * + * .google.type.Date application_date = 3; + */ + public boolean hasApplicationDate() { + return applicationDateBuilder_ != null || applicationDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * The application date.
+     * 
+ * + * .google.type.Date application_date = 3; + */ + public com.google.type.Date getApplicationDate() { + if (applicationDateBuilder_ == null) { + return applicationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : applicationDate_; + } else { + return applicationDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The application date.
+     * 
+ * + * .google.type.Date application_date = 3; + */ + public Builder setApplicationDate(com.google.type.Date value) { + if (applicationDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + applicationDate_ = value; + onChanged(); + } else { + applicationDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The application date.
+     * 
+ * + * .google.type.Date application_date = 3; + */ + public Builder setApplicationDate(com.google.type.Date.Builder builderForValue) { + if (applicationDateBuilder_ == null) { + applicationDate_ = builderForValue.build(); + onChanged(); + } else { + applicationDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The application date.
+     * 
+ * + * .google.type.Date application_date = 3; + */ + public Builder mergeApplicationDate(com.google.type.Date value) { + if (applicationDateBuilder_ == null) { + if (applicationDate_ != null) { + applicationDate_ = + com.google.type.Date.newBuilder(applicationDate_).mergeFrom(value).buildPartial(); + } else { + applicationDate_ = value; + } + onChanged(); + } else { + applicationDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The application date.
+     * 
+ * + * .google.type.Date application_date = 3; + */ + public Builder clearApplicationDate() { + if (applicationDateBuilder_ == null) { + applicationDate_ = null; + onChanged(); + } else { + applicationDate_ = null; + applicationDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The application date.
+     * 
+ * + * .google.type.Date application_date = 3; + */ + public com.google.type.Date.Builder getApplicationDateBuilder() { + + onChanged(); + return getApplicationDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The application date.
+     * 
+ * + * .google.type.Date application_date = 3; + */ + public com.google.type.DateOrBuilder getApplicationDateOrBuilder() { + if (applicationDateBuilder_ != null) { + return applicationDateBuilder_.getMessageOrBuilder(); + } else { + return applicationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : applicationDate_; + } + } + /** + * + * + *
+     * Optional.
+     * The application date.
+     * 
+ * + * .google.type.Date application_date = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getApplicationDateFieldBuilder() { + if (applicationDateBuilder_ == null) { + applicationDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getApplicationDate(), getParentForChildren(), isClean()); + applicationDate_ = null; + } + return applicationDateBuilder_; + } + + private java.lang.Object lastStage_ = ""; + /** + * + * + *
+     * Optional.
+     * The last stage the candidate reached in the application progress.
+     * For example, "new", "phone screen", "interview".
+     * 
+ * + * string last_stage = 4; + */ + public java.lang.String getLastStage() { + java.lang.Object ref = lastStage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + lastStage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The last stage the candidate reached in the application progress.
+     * For example, "new", "phone screen", "interview".
+     * 
+ * + * string last_stage = 4; + */ + public com.google.protobuf.ByteString getLastStageBytes() { + java.lang.Object ref = lastStage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + lastStage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The last stage the candidate reached in the application progress.
+     * For example, "new", "phone screen", "interview".
+     * 
+ * + * string last_stage = 4; + */ + public Builder setLastStage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + lastStage_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The last stage the candidate reached in the application progress.
+     * For example, "new", "phone screen", "interview".
+     * 
+ * + * string last_stage = 4; + */ + public Builder clearLastStage() { + + lastStage_ = getDefaultInstance().getLastStage(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The last stage the candidate reached in the application progress.
+     * For example, "new", "phone screen", "interview".
+     * 
+ * + * string last_stage = 4; + */ + public Builder setLastStageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + lastStage_ = value; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * + * + *
+     * Optional.
+     * The application state.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus state = 5; + */ + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * Optional.
+     * The application state.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus state = 5; + */ + public Builder setStateValue(int value) { + state_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The application state.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus state = 5; + */ + public com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus getState() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus result = + com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus.valueOf(state_); + return result == null + ? com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional.
+     * The application state.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus state = 5; + */ + public Builder setState( + com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The application state.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus state = 5; + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private double averageInterviewScore_; + /** + * + * + *
+     * Optional.
+     * The average interview score.
+     * 
+ * + * double average_interview_score = 6; + */ + public double getAverageInterviewScore() { + return averageInterviewScore_; + } + /** + * + * + *
+     * Optional.
+     * The average interview score.
+     * 
+ * + * double average_interview_score = 6; + */ + public Builder setAverageInterviewScore(double value) { + + averageInterviewScore_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The average interview score.
+     * 
+ * + * double average_interview_score = 6; + */ + public Builder clearAverageInterviewScore() { + + averageInterviewScore_ = 0D; + onChanged(); + return this; + } + + private java.lang.Object interviewScoreScaleId_ = ""; + /** + * + * + *
+     * Optional.
+     * The scale id of the interview score.
+     * Number of characters allowed is 100.
+     * 
+ * + * string interview_score_scale_id = 7; + */ + public java.lang.String getInterviewScoreScaleId() { + java.lang.Object ref = interviewScoreScaleId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + interviewScoreScaleId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The scale id of the interview score.
+     * Number of characters allowed is 100.
+     * 
+ * + * string interview_score_scale_id = 7; + */ + public com.google.protobuf.ByteString getInterviewScoreScaleIdBytes() { + java.lang.Object ref = interviewScoreScaleId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + interviewScoreScaleId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The scale id of the interview score.
+     * Number of characters allowed is 100.
+     * 
+ * + * string interview_score_scale_id = 7; + */ + public Builder setInterviewScoreScaleId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + interviewScoreScaleId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The scale id of the interview score.
+     * Number of characters allowed is 100.
+     * 
+ * + * string interview_score_scale_id = 7; + */ + public Builder clearInterviewScoreScaleId() { + + interviewScoreScaleId_ = getDefaultInstance().getInterviewScoreScaleId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The scale id of the interview score.
+     * Number of characters allowed is 100.
+     * 
+ * + * string interview_score_scale_id = 7; + */ + public Builder setInterviewScoreScaleIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + interviewScoreScaleId_ = value; + onChanged(); + return this; + } + + private int numberOfInterviews_; + /** + * + * + *
+     * Optional.
+     * The number of interviews.
+     * 
+ * + * int32 number_of_interviews = 8; + */ + public int getNumberOfInterviews() { + return numberOfInterviews_; + } + /** + * + * + *
+     * Optional.
+     * The number of interviews.
+     * 
+ * + * int32 number_of_interviews = 8; + */ + public Builder setNumberOfInterviews(int value) { + + numberOfInterviews_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The number of interviews.
+     * 
+ * + * int32 number_of_interviews = 8; + */ + public Builder clearNumberOfInterviews() { + + numberOfInterviews_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.BoolValue isEmployeeReferred_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + isEmployeeReferredBuilder_; + /** + * + * + *
+     * Optional.
+     * If the candidate is referred by a employee.
+     * 
+ * + * .google.protobuf.BoolValue is_employee_referred = 9; + */ + public boolean hasIsEmployeeReferred() { + return isEmployeeReferredBuilder_ != null || isEmployeeReferred_ != null; + } + /** + * + * + *
+     * Optional.
+     * If the candidate is referred by a employee.
+     * 
+ * + * .google.protobuf.BoolValue is_employee_referred = 9; + */ + public com.google.protobuf.BoolValue getIsEmployeeReferred() { + if (isEmployeeReferredBuilder_ == null) { + return isEmployeeReferred_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : isEmployeeReferred_; + } else { + return isEmployeeReferredBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * If the candidate is referred by a employee.
+     * 
+ * + * .google.protobuf.BoolValue is_employee_referred = 9; + */ + public Builder setIsEmployeeReferred(com.google.protobuf.BoolValue value) { + if (isEmployeeReferredBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + isEmployeeReferred_ = value; + onChanged(); + } else { + isEmployeeReferredBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If the candidate is referred by a employee.
+     * 
+ * + * .google.protobuf.BoolValue is_employee_referred = 9; + */ + public Builder setIsEmployeeReferred(com.google.protobuf.BoolValue.Builder builderForValue) { + if (isEmployeeReferredBuilder_ == null) { + isEmployeeReferred_ = builderForValue.build(); + onChanged(); + } else { + isEmployeeReferredBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If the candidate is referred by a employee.
+     * 
+ * + * .google.protobuf.BoolValue is_employee_referred = 9; + */ + public Builder mergeIsEmployeeReferred(com.google.protobuf.BoolValue value) { + if (isEmployeeReferredBuilder_ == null) { + if (isEmployeeReferred_ != null) { + isEmployeeReferred_ = + com.google.protobuf.BoolValue.newBuilder(isEmployeeReferred_) + .mergeFrom(value) + .buildPartial(); + } else { + isEmployeeReferred_ = value; + } + onChanged(); + } else { + isEmployeeReferredBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If the candidate is referred by a employee.
+     * 
+ * + * .google.protobuf.BoolValue is_employee_referred = 9; + */ + public Builder clearIsEmployeeReferred() { + if (isEmployeeReferredBuilder_ == null) { + isEmployeeReferred_ = null; + onChanged(); + } else { + isEmployeeReferred_ = null; + isEmployeeReferredBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * If the candidate is referred by a employee.
+     * 
+ * + * .google.protobuf.BoolValue is_employee_referred = 9; + */ + public com.google.protobuf.BoolValue.Builder getIsEmployeeReferredBuilder() { + + onChanged(); + return getIsEmployeeReferredFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * If the candidate is referred by a employee.
+     * 
+ * + * .google.protobuf.BoolValue is_employee_referred = 9; + */ + public com.google.protobuf.BoolValueOrBuilder getIsEmployeeReferredOrBuilder() { + if (isEmployeeReferredBuilder_ != null) { + return isEmployeeReferredBuilder_.getMessageOrBuilder(); + } else { + return isEmployeeReferred_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : isEmployeeReferred_; + } + } + /** + * + * + *
+     * Optional.
+     * If the candidate is referred by a employee.
+     * 
+ * + * .google.protobuf.BoolValue is_employee_referred = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getIsEmployeeReferredFieldBuilder() { + if (isEmployeeReferredBuilder_ == null) { + isEmployeeReferredBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getIsEmployeeReferred(), getParentForChildren(), isClean()); + isEmployeeReferred_ = null; + } + return isEmployeeReferredBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * Optional.
+     * The last update timestamp.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public boolean hasUpdateTime() { + return updateTimeBuilder_ != null || updateTime_ != null; + } + /** + * + * + *
+     * Optional.
+     * The last update timestamp.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The last update timestamp.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + onChanged(); + } else { + updateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The last update timestamp.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + onChanged(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The last update timestamp.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (updateTime_ != null) { + updateTime_ = + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + } else { + updateTime_ = value; + } + onChanged(); + } else { + updateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The last update timestamp.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public Builder clearUpdateTime() { + if (updateTimeBuilder_ == null) { + updateTime_ = null; + onChanged(); + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The last update timestamp.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The last update timestamp.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
+     * Optional.
+     * The last update timestamp.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object outcomeReason_ = ""; + /** + * + * + *
+     * Optional.
+     * The outcome reason for the job application.
+     * Number of characters allowed is 100.
+     * 
+ * + * string outcome_reason = 11; + */ + public java.lang.String getOutcomeReason() { + java.lang.Object ref = outcomeReason_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outcomeReason_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The outcome reason for the job application.
+     * Number of characters allowed is 100.
+     * 
+ * + * string outcome_reason = 11; + */ + public com.google.protobuf.ByteString getOutcomeReasonBytes() { + java.lang.Object ref = outcomeReason_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outcomeReason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The outcome reason for the job application.
+     * Number of characters allowed is 100.
+     * 
+ * + * string outcome_reason = 11; + */ + public Builder setOutcomeReason(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + outcomeReason_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The outcome reason for the job application.
+     * Number of characters allowed is 100.
+     * 
+ * + * string outcome_reason = 11; + */ + public Builder clearOutcomeReason() { + + outcomeReason_ = getDefaultInstance().getOutcomeReason(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The outcome reason for the job application.
+     * Number of characters allowed is 100.
+     * 
+ * + * string outcome_reason = 11; + */ + public Builder setOutcomeReasonBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + outcomeReason_ = value; + onChanged(); + return this; + } + + private double outcomePositiveness_; + /** + * + * + *
+     * Optional.
+     * Outcome positiveness shows how positive the outcome is.
+     * Currently only -1, 0 and 1 are accepted, where -1 means not positive, 0
+     * means neutral and 1 means positive. An error is thrown if other value is
+     * set.
+     * 
+ * + * double outcome_positiveness = 12; + */ + public double getOutcomePositiveness() { + return outcomePositiveness_; + } + /** + * + * + *
+     * Optional.
+     * Outcome positiveness shows how positive the outcome is.
+     * Currently only -1, 0 and 1 are accepted, where -1 means not positive, 0
+     * means neutral and 1 means positive. An error is thrown if other value is
+     * set.
+     * 
+ * + * double outcome_positiveness = 12; + */ + public Builder setOutcomePositiveness(double value) { + + outcomePositiveness_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Outcome positiveness shows how positive the outcome is.
+     * Currently only -1, 0 and 1 are accepted, where -1 means not positive, 0
+     * means neutral and 1 means positive. An error is thrown if other value is
+     * set.
+     * 
+ * + * double outcome_positiveness = 12; + */ + public Builder clearOutcomePositiveness() { + + outcomePositiveness_ = 0D; + onChanged(); + return this; + } + + private com.google.protobuf.BoolValue isMatch_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + isMatchBuilder_; + /** + * + * + *
+     * Output only. Indicates whether this job application is a match to
+     * application related filters. This value is only applicable in profile
+     * search response.
+     * 
+ * + * .google.protobuf.BoolValue is_match = 13; + */ + public boolean hasIsMatch() { + return isMatchBuilder_ != null || isMatch_ != null; + } + /** + * + * + *
+     * Output only. Indicates whether this job application is a match to
+     * application related filters. This value is only applicable in profile
+     * search response.
+     * 
+ * + * .google.protobuf.BoolValue is_match = 13; + */ + public com.google.protobuf.BoolValue getIsMatch() { + if (isMatchBuilder_ == null) { + return isMatch_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isMatch_; + } else { + return isMatchBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Indicates whether this job application is a match to
+     * application related filters. This value is only applicable in profile
+     * search response.
+     * 
+ * + * .google.protobuf.BoolValue is_match = 13; + */ + public Builder setIsMatch(com.google.protobuf.BoolValue value) { + if (isMatchBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + isMatch_ = value; + onChanged(); + } else { + isMatchBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Indicates whether this job application is a match to
+     * application related filters. This value is only applicable in profile
+     * search response.
+     * 
+ * + * .google.protobuf.BoolValue is_match = 13; + */ + public Builder setIsMatch(com.google.protobuf.BoolValue.Builder builderForValue) { + if (isMatchBuilder_ == null) { + isMatch_ = builderForValue.build(); + onChanged(); + } else { + isMatchBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Indicates whether this job application is a match to
+     * application related filters. This value is only applicable in profile
+     * search response.
+     * 
+ * + * .google.protobuf.BoolValue is_match = 13; + */ + public Builder mergeIsMatch(com.google.protobuf.BoolValue value) { + if (isMatchBuilder_ == null) { + if (isMatch_ != null) { + isMatch_ = + com.google.protobuf.BoolValue.newBuilder(isMatch_).mergeFrom(value).buildPartial(); + } else { + isMatch_ = value; + } + onChanged(); + } else { + isMatchBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Indicates whether this job application is a match to
+     * application related filters. This value is only applicable in profile
+     * search response.
+     * 
+ * + * .google.protobuf.BoolValue is_match = 13; + */ + public Builder clearIsMatch() { + if (isMatchBuilder_ == null) { + isMatch_ = null; + onChanged(); + } else { + isMatch_ = null; + isMatchBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Indicates whether this job application is a match to
+     * application related filters. This value is only applicable in profile
+     * search response.
+     * 
+ * + * .google.protobuf.BoolValue is_match = 13; + */ + public com.google.protobuf.BoolValue.Builder getIsMatchBuilder() { + + onChanged(); + return getIsMatchFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Indicates whether this job application is a match to
+     * application related filters. This value is only applicable in profile
+     * search response.
+     * 
+ * + * .google.protobuf.BoolValue is_match = 13; + */ + public com.google.protobuf.BoolValueOrBuilder getIsMatchOrBuilder() { + if (isMatchBuilder_ != null) { + return isMatchBuilder_.getMessageOrBuilder(); + } else { + return isMatch_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isMatch_; + } + } + /** + * + * + *
+     * Output only. Indicates whether this job application is a match to
+     * application related filters. This value is only applicable in profile
+     * search response.
+     * 
+ * + * .google.protobuf.BoolValue is_match = 13; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getIsMatchFieldBuilder() { + if (isMatchBuilder_ == null) { + isMatchBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getIsMatch(), getParentForChildren(), isClean()); + isMatch_ = null; + } + return isMatchBuilder_; + } + + private java.lang.Object jobTitleSnippet_ = ""; + /** + * + * + *
+     * Output only. Job title snippet shows how the job title is related to a
+     * search query. It's empty if the job title isn't related to the search
+     * query.
+     * 
+ * + * string job_title_snippet = 14; + */ + public java.lang.String getJobTitleSnippet() { + java.lang.Object ref = jobTitleSnippet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobTitleSnippet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Job title snippet shows how the job title is related to a
+     * search query. It's empty if the job title isn't related to the search
+     * query.
+     * 
+ * + * string job_title_snippet = 14; + */ + public com.google.protobuf.ByteString getJobTitleSnippetBytes() { + java.lang.Object ref = jobTitleSnippet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobTitleSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Job title snippet shows how the job title is related to a
+     * search query. It's empty if the job title isn't related to the search
+     * query.
+     * 
+ * + * string job_title_snippet = 14; + */ + public Builder setJobTitleSnippet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jobTitleSnippet_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Job title snippet shows how the job title is related to a
+     * search query. It's empty if the job title isn't related to the search
+     * query.
+     * 
+ * + * string job_title_snippet = 14; + */ + public Builder clearJobTitleSnippet() { + + jobTitleSnippet_ = getDefaultInstance().getJobTitleSnippet(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Job title snippet shows how the job title is related to a
+     * search query. It's empty if the job title isn't related to the search
+     * query.
+     * 
+ * + * string job_title_snippet = 14; + */ + public Builder setJobTitleSnippetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jobTitleSnippet_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.JobApplication) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.JobApplication) + private static final com.google.cloud.talent.v4beta1.JobApplication DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.JobApplication(); + } + + public static com.google.cloud.talent.v4beta1.JobApplication getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public JobApplication parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new JobApplication(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.JobApplication getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobApplicationOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobApplicationOrBuilder.java new file mode 100644 index 000000000000..1b49e17ee3ba --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobApplicationOrBuilder.java @@ -0,0 +1,397 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public interface JobApplicationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.JobApplication) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * The information of job which the candidate applied for.
+   * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
+   * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
+   * Otherwise, only
+   * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+   * [Job.title][google.cloud.talent.v4beta1.Job.title],
+   * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+   * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
+   * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
+   * entity is created in this case.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + boolean hasJob(); + /** + * + * + *
+   * Optional.
+   * The information of job which the candidate applied for.
+   * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
+   * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
+   * Otherwise, only
+   * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+   * [Job.title][google.cloud.talent.v4beta1.Job.title],
+   * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+   * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
+   * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
+   * entity is created in this case.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + com.google.cloud.talent.v4beta1.Job getJob(); + /** + * + * + *
+   * Optional.
+   * The information of job which the candidate applied for.
+   * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
+   * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
+   * Otherwise, only
+   * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+   * [Job.title][google.cloud.talent.v4beta1.Job.title],
+   * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+   * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
+   * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
+   * entity is created in this case.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + com.google.cloud.talent.v4beta1.JobOrBuilder getJobOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The job application id.
+   * Number of characters allowed is 100.
+   * 
+ * + * string application_id = 2; + */ + java.lang.String getApplicationId(); + /** + * + * + *
+   * Optional.
+   * The job application id.
+   * Number of characters allowed is 100.
+   * 
+ * + * string application_id = 2; + */ + com.google.protobuf.ByteString getApplicationIdBytes(); + + /** + * + * + *
+   * Optional.
+   * The application date.
+   * 
+ * + * .google.type.Date application_date = 3; + */ + boolean hasApplicationDate(); + /** + * + * + *
+   * Optional.
+   * The application date.
+   * 
+ * + * .google.type.Date application_date = 3; + */ + com.google.type.Date getApplicationDate(); + /** + * + * + *
+   * Optional.
+   * The application date.
+   * 
+ * + * .google.type.Date application_date = 3; + */ + com.google.type.DateOrBuilder getApplicationDateOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The last stage the candidate reached in the application progress.
+   * For example, "new", "phone screen", "interview".
+   * 
+ * + * string last_stage = 4; + */ + java.lang.String getLastStage(); + /** + * + * + *
+   * Optional.
+   * The last stage the candidate reached in the application progress.
+   * For example, "new", "phone screen", "interview".
+   * 
+ * + * string last_stage = 4; + */ + com.google.protobuf.ByteString getLastStageBytes(); + + /** + * + * + *
+   * Optional.
+   * The application state.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus state = 5; + */ + int getStateValue(); + /** + * + * + *
+   * Optional.
+   * The application state.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus state = 5; + */ + com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus getState(); + + /** + * + * + *
+   * Optional.
+   * The average interview score.
+   * 
+ * + * double average_interview_score = 6; + */ + double getAverageInterviewScore(); + + /** + * + * + *
+   * Optional.
+   * The scale id of the interview score.
+   * Number of characters allowed is 100.
+   * 
+ * + * string interview_score_scale_id = 7; + */ + java.lang.String getInterviewScoreScaleId(); + /** + * + * + *
+   * Optional.
+   * The scale id of the interview score.
+   * Number of characters allowed is 100.
+   * 
+ * + * string interview_score_scale_id = 7; + */ + com.google.protobuf.ByteString getInterviewScoreScaleIdBytes(); + + /** + * + * + *
+   * Optional.
+   * The number of interviews.
+   * 
+ * + * int32 number_of_interviews = 8; + */ + int getNumberOfInterviews(); + + /** + * + * + *
+   * Optional.
+   * If the candidate is referred by a employee.
+   * 
+ * + * .google.protobuf.BoolValue is_employee_referred = 9; + */ + boolean hasIsEmployeeReferred(); + /** + * + * + *
+   * Optional.
+   * If the candidate is referred by a employee.
+   * 
+ * + * .google.protobuf.BoolValue is_employee_referred = 9; + */ + com.google.protobuf.BoolValue getIsEmployeeReferred(); + /** + * + * + *
+   * Optional.
+   * If the candidate is referred by a employee.
+   * 
+ * + * .google.protobuf.BoolValue is_employee_referred = 9; + */ + com.google.protobuf.BoolValueOrBuilder getIsEmployeeReferredOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The last update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Optional.
+   * The last update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Optional.
+   * The last update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The outcome reason for the job application.
+   * Number of characters allowed is 100.
+   * 
+ * + * string outcome_reason = 11; + */ + java.lang.String getOutcomeReason(); + /** + * + * + *
+   * Optional.
+   * The outcome reason for the job application.
+   * Number of characters allowed is 100.
+   * 
+ * + * string outcome_reason = 11; + */ + com.google.protobuf.ByteString getOutcomeReasonBytes(); + + /** + * + * + *
+   * Optional.
+   * Outcome positiveness shows how positive the outcome is.
+   * Currently only -1, 0 and 1 are accepted, where -1 means not positive, 0
+   * means neutral and 1 means positive. An error is thrown if other value is
+   * set.
+   * 
+ * + * double outcome_positiveness = 12; + */ + double getOutcomePositiveness(); + + /** + * + * + *
+   * Output only. Indicates whether this job application is a match to
+   * application related filters. This value is only applicable in profile
+   * search response.
+   * 
+ * + * .google.protobuf.BoolValue is_match = 13; + */ + boolean hasIsMatch(); + /** + * + * + *
+   * Output only. Indicates whether this job application is a match to
+   * application related filters. This value is only applicable in profile
+   * search response.
+   * 
+ * + * .google.protobuf.BoolValue is_match = 13; + */ + com.google.protobuf.BoolValue getIsMatch(); + /** + * + * + *
+   * Output only. Indicates whether this job application is a match to
+   * application related filters. This value is only applicable in profile
+   * search response.
+   * 
+ * + * .google.protobuf.BoolValue is_match = 13; + */ + com.google.protobuf.BoolValueOrBuilder getIsMatchOrBuilder(); + + /** + * + * + *
+   * Output only. Job title snippet shows how the job title is related to a
+   * search query. It's empty if the job title isn't related to the search
+   * query.
+   * 
+ * + * string job_title_snippet = 14; + */ + java.lang.String getJobTitleSnippet(); + /** + * + * + *
+   * Output only. Job title snippet shows how the job title is related to a
+   * search query. It's empty if the job title isn't related to the search
+   * query.
+   * 
+ * + * string job_title_snippet = 14; + */ + com.google.protobuf.ByteString getJobTitleSnippetBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobBenefit.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobBenefit.java new file mode 100644 index 000000000000..ad5c4057d852 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobBenefit.java @@ -0,0 +1,359 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * An enum that represents employee benefits included with the job.
+ * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.JobBenefit} + */ +public enum JobBenefit implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Default value if the type isn't specified.
+   * 
+ * + * JOB_BENEFIT_UNSPECIFIED = 0; + */ + JOB_BENEFIT_UNSPECIFIED(0), + /** + * + * + *
+   * The job includes access to programs that support child care, such
+   * as daycare.
+   * 
+ * + * CHILD_CARE = 1; + */ + CHILD_CARE(1), + /** + * + * + *
+   * The job includes dental services covered by a dental
+   * insurance plan.
+   * 
+ * + * DENTAL = 2; + */ + DENTAL(2), + /** + * + * + *
+   * The job offers specific benefits to domestic partners.
+   * 
+ * + * DOMESTIC_PARTNER = 3; + */ + DOMESTIC_PARTNER(3), + /** + * + * + *
+   * The job allows for a flexible work schedule.
+   * 
+ * + * FLEXIBLE_HOURS = 4; + */ + FLEXIBLE_HOURS(4), + /** + * + * + *
+   * The job includes health services covered by a medical insurance plan.
+   * 
+ * + * MEDICAL = 5; + */ + MEDICAL(5), + /** + * + * + *
+   * The job includes a life insurance plan provided by the employer or
+   * available for purchase by the employee.
+   * 
+ * + * LIFE_INSURANCE = 6; + */ + LIFE_INSURANCE(6), + /** + * + * + *
+   * The job allows for a leave of absence to a parent to care for a newborn
+   * child.
+   * 
+ * + * PARENTAL_LEAVE = 7; + */ + PARENTAL_LEAVE(7), + /** + * + * + *
+   * The job includes a workplace retirement plan provided by the
+   * employer or available for purchase by the employee.
+   * 
+ * + * RETIREMENT_PLAN = 8; + */ + RETIREMENT_PLAN(8), + /** + * + * + *
+   * The job allows for paid time off due to illness.
+   * 
+ * + * SICK_DAYS = 9; + */ + SICK_DAYS(9), + /** + * + * + *
+   * The job includes paid time off for vacation.
+   * 
+ * + * VACATION = 10; + */ + VACATION(10), + /** + * + * + *
+   * The job includes vision services covered by a vision
+   * insurance plan.
+   * 
+ * + * VISION = 11; + */ + VISION(11), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Default value if the type isn't specified.
+   * 
+ * + * JOB_BENEFIT_UNSPECIFIED = 0; + */ + public static final int JOB_BENEFIT_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * The job includes access to programs that support child care, such
+   * as daycare.
+   * 
+ * + * CHILD_CARE = 1; + */ + public static final int CHILD_CARE_VALUE = 1; + /** + * + * + *
+   * The job includes dental services covered by a dental
+   * insurance plan.
+   * 
+ * + * DENTAL = 2; + */ + public static final int DENTAL_VALUE = 2; + /** + * + * + *
+   * The job offers specific benefits to domestic partners.
+   * 
+ * + * DOMESTIC_PARTNER = 3; + */ + public static final int DOMESTIC_PARTNER_VALUE = 3; + /** + * + * + *
+   * The job allows for a flexible work schedule.
+   * 
+ * + * FLEXIBLE_HOURS = 4; + */ + public static final int FLEXIBLE_HOURS_VALUE = 4; + /** + * + * + *
+   * The job includes health services covered by a medical insurance plan.
+   * 
+ * + * MEDICAL = 5; + */ + public static final int MEDICAL_VALUE = 5; + /** + * + * + *
+   * The job includes a life insurance plan provided by the employer or
+   * available for purchase by the employee.
+   * 
+ * + * LIFE_INSURANCE = 6; + */ + public static final int LIFE_INSURANCE_VALUE = 6; + /** + * + * + *
+   * The job allows for a leave of absence to a parent to care for a newborn
+   * child.
+   * 
+ * + * PARENTAL_LEAVE = 7; + */ + public static final int PARENTAL_LEAVE_VALUE = 7; + /** + * + * + *
+   * The job includes a workplace retirement plan provided by the
+   * employer or available for purchase by the employee.
+   * 
+ * + * RETIREMENT_PLAN = 8; + */ + public static final int RETIREMENT_PLAN_VALUE = 8; + /** + * + * + *
+   * The job allows for paid time off due to illness.
+   * 
+ * + * SICK_DAYS = 9; + */ + public static final int SICK_DAYS_VALUE = 9; + /** + * + * + *
+   * The job includes paid time off for vacation.
+   * 
+ * + * VACATION = 10; + */ + public static final int VACATION_VALUE = 10; + /** + * + * + *
+   * The job includes vision services covered by a vision
+   * insurance plan.
+   * 
+ * + * VISION = 11; + */ + public static final int VISION_VALUE = 11; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static JobBenefit valueOf(int value) { + return forNumber(value); + } + + public static JobBenefit forNumber(int value) { + switch (value) { + case 0: + return JOB_BENEFIT_UNSPECIFIED; + case 1: + return CHILD_CARE; + case 2: + return DENTAL; + case 3: + return DOMESTIC_PARTNER; + case 4: + return FLEXIBLE_HOURS; + case 5: + return MEDICAL; + case 6: + return LIFE_INSURANCE; + case 7: + return PARENTAL_LEAVE; + case 8: + return RETIREMENT_PLAN; + case 9: + return SICK_DAYS; + case 10: + return VACATION; + case 11: + return VISION; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public JobBenefit findValueByNumber(int number) { + return JobBenefit.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto.getDescriptor().getEnumTypes().get(1); + } + + private static final JobBenefit[] VALUES = values(); + + public static JobBenefit 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()]; + } + + private final int value; + + private JobBenefit(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.JobBenefit) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobCategory.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobCategory.java new file mode 100644 index 000000000000..ccf521a07d1d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobCategory.java @@ -0,0 +1,769 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * An enum that represents the categorization or primary focus of specific
+ * role. This value is different than the "industry" associated with a role,
+ * which is related to the categorization of the company listing the job.
+ * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.JobCategory} + */ +public enum JobCategory implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * The default value if the category isn't specified.
+   * 
+ * + * JOB_CATEGORY_UNSPECIFIED = 0; + */ + JOB_CATEGORY_UNSPECIFIED(0), + /** + * + * + *
+   * An accounting and finance job, such as an Accountant.
+   * 
+ * + * ACCOUNTING_AND_FINANCE = 1; + */ + ACCOUNTING_AND_FINANCE(1), + /** + * + * + *
+   * An administrative and office job, such as an Administrative Assistant.
+   * 
+ * + * ADMINISTRATIVE_AND_OFFICE = 2; + */ + ADMINISTRATIVE_AND_OFFICE(2), + /** + * + * + *
+   * An advertising and marketing job, such as Marketing Manager.
+   * 
+ * + * ADVERTISING_AND_MARKETING = 3; + */ + ADVERTISING_AND_MARKETING(3), + /** + * + * + *
+   * An animal care job, such as Veterinarian.
+   * 
+ * + * ANIMAL_CARE = 4; + */ + ANIMAL_CARE(4), + /** + * + * + *
+   * An art, fashion, or design job, such as Designer.
+   * 
+ * + * ART_FASHION_AND_DESIGN = 5; + */ + ART_FASHION_AND_DESIGN(5), + /** + * + * + *
+   * A business operations job, such as Business Operations Manager.
+   * 
+ * + * BUSINESS_OPERATIONS = 6; + */ + BUSINESS_OPERATIONS(6), + /** + * + * + *
+   * A cleaning and facilities job, such as Custodial Staff.
+   * 
+ * + * CLEANING_AND_FACILITIES = 7; + */ + CLEANING_AND_FACILITIES(7), + /** + * + * + *
+   * A computer and IT job, such as Systems Administrator.
+   * 
+ * + * COMPUTER_AND_IT = 8; + */ + COMPUTER_AND_IT(8), + /** + * + * + *
+   * A construction job, such as General Laborer.
+   * 
+ * + * CONSTRUCTION = 9; + */ + CONSTRUCTION(9), + /** + * + * + *
+   * A customer service job, such s Cashier.
+   * 
+ * + * CUSTOMER_SERVICE = 10; + */ + CUSTOMER_SERVICE(10), + /** + * + * + *
+   * An education job, such as School Teacher.
+   * 
+ * + * EDUCATION = 11; + */ + EDUCATION(11), + /** + * + * + *
+   * An entertainment and travel job, such as Flight Attendant.
+   * 
+ * + * ENTERTAINMENT_AND_TRAVEL = 12; + */ + ENTERTAINMENT_AND_TRAVEL(12), + /** + * + * + *
+   * A farming or outdoor job, such as Park Ranger.
+   * 
+ * + * FARMING_AND_OUTDOORS = 13; + */ + FARMING_AND_OUTDOORS(13), + /** + * + * + *
+   * A healthcare job, such as Registered Nurse.
+   * 
+ * + * HEALTHCARE = 14; + */ + HEALTHCARE(14), + /** + * + * + *
+   * A human resources job, such as Human Resources Director.
+   * 
+ * + * HUMAN_RESOURCES = 15; + */ + HUMAN_RESOURCES(15), + /** + * + * + *
+   * An installation, maintenance, or repair job, such as Electrician.
+   * 
+ * + * INSTALLATION_MAINTENANCE_AND_REPAIR = 16; + */ + INSTALLATION_MAINTENANCE_AND_REPAIR(16), + /** + * + * + *
+   * A legal job, such as Law Clerk.
+   * 
+ * + * LEGAL = 17; + */ + LEGAL(17), + /** + * + * + *
+   * A management job, often used in conjunction with another category,
+   * such as Store Manager.
+   * 
+ * + * MANAGEMENT = 18; + */ + MANAGEMENT(18), + /** + * + * + *
+   * A manufacturing or warehouse job, such as Assembly Technician.
+   * 
+ * + * MANUFACTURING_AND_WAREHOUSE = 19; + */ + MANUFACTURING_AND_WAREHOUSE(19), + /** + * + * + *
+   * A media, communications, or writing job, such as Media Relations.
+   * 
+ * + * MEDIA_COMMUNICATIONS_AND_WRITING = 20; + */ + MEDIA_COMMUNICATIONS_AND_WRITING(20), + /** + * + * + *
+   * An oil, gas or mining job, such as Offshore Driller.
+   * 
+ * + * OIL_GAS_AND_MINING = 21; + */ + OIL_GAS_AND_MINING(21), + /** + * + * + *
+   * A personal care and services job, such as Hair Stylist.
+   * 
+ * + * PERSONAL_CARE_AND_SERVICES = 22; + */ + PERSONAL_CARE_AND_SERVICES(22), + /** + * + * + *
+   * A protective services job, such as Security Guard.
+   * 
+ * + * PROTECTIVE_SERVICES = 23; + */ + PROTECTIVE_SERVICES(23), + /** + * + * + *
+   * A real estate job, such as Buyer's Agent.
+   * 
+ * + * REAL_ESTATE = 24; + */ + REAL_ESTATE(24), + /** + * + * + *
+   * A restaurant and hospitality job, such as Restaurant Server.
+   * 
+ * + * RESTAURANT_AND_HOSPITALITY = 25; + */ + RESTAURANT_AND_HOSPITALITY(25), + /** + * + * + *
+   * A sales and/or retail job, such Sales Associate.
+   * 
+ * + * SALES_AND_RETAIL = 26; + */ + SALES_AND_RETAIL(26), + /** + * + * + *
+   * A science and engineering job, such as Lab Technician.
+   * 
+ * + * SCIENCE_AND_ENGINEERING = 27; + */ + SCIENCE_AND_ENGINEERING(27), + /** + * + * + *
+   * A social services or non-profit job, such as Case Worker.
+   * 
+ * + * SOCIAL_SERVICES_AND_NON_PROFIT = 28; + */ + SOCIAL_SERVICES_AND_NON_PROFIT(28), + /** + * + * + *
+   * A sports, fitness, or recreation job, such as Personal Trainer.
+   * 
+ * + * SPORTS_FITNESS_AND_RECREATION = 29; + */ + SPORTS_FITNESS_AND_RECREATION(29), + /** + * + * + *
+   * A transportation or logistics job, such as Truck Driver.
+   * 
+ * + * TRANSPORTATION_AND_LOGISTICS = 30; + */ + TRANSPORTATION_AND_LOGISTICS(30), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * The default value if the category isn't specified.
+   * 
+ * + * JOB_CATEGORY_UNSPECIFIED = 0; + */ + public static final int JOB_CATEGORY_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * An accounting and finance job, such as an Accountant.
+   * 
+ * + * ACCOUNTING_AND_FINANCE = 1; + */ + public static final int ACCOUNTING_AND_FINANCE_VALUE = 1; + /** + * + * + *
+   * An administrative and office job, such as an Administrative Assistant.
+   * 
+ * + * ADMINISTRATIVE_AND_OFFICE = 2; + */ + public static final int ADMINISTRATIVE_AND_OFFICE_VALUE = 2; + /** + * + * + *
+   * An advertising and marketing job, such as Marketing Manager.
+   * 
+ * + * ADVERTISING_AND_MARKETING = 3; + */ + public static final int ADVERTISING_AND_MARKETING_VALUE = 3; + /** + * + * + *
+   * An animal care job, such as Veterinarian.
+   * 
+ * + * ANIMAL_CARE = 4; + */ + public static final int ANIMAL_CARE_VALUE = 4; + /** + * + * + *
+   * An art, fashion, or design job, such as Designer.
+   * 
+ * + * ART_FASHION_AND_DESIGN = 5; + */ + public static final int ART_FASHION_AND_DESIGN_VALUE = 5; + /** + * + * + *
+   * A business operations job, such as Business Operations Manager.
+   * 
+ * + * BUSINESS_OPERATIONS = 6; + */ + public static final int BUSINESS_OPERATIONS_VALUE = 6; + /** + * + * + *
+   * A cleaning and facilities job, such as Custodial Staff.
+   * 
+ * + * CLEANING_AND_FACILITIES = 7; + */ + public static final int CLEANING_AND_FACILITIES_VALUE = 7; + /** + * + * + *
+   * A computer and IT job, such as Systems Administrator.
+   * 
+ * + * COMPUTER_AND_IT = 8; + */ + public static final int COMPUTER_AND_IT_VALUE = 8; + /** + * + * + *
+   * A construction job, such as General Laborer.
+   * 
+ * + * CONSTRUCTION = 9; + */ + public static final int CONSTRUCTION_VALUE = 9; + /** + * + * + *
+   * A customer service job, such s Cashier.
+   * 
+ * + * CUSTOMER_SERVICE = 10; + */ + public static final int CUSTOMER_SERVICE_VALUE = 10; + /** + * + * + *
+   * An education job, such as School Teacher.
+   * 
+ * + * EDUCATION = 11; + */ + public static final int EDUCATION_VALUE = 11; + /** + * + * + *
+   * An entertainment and travel job, such as Flight Attendant.
+   * 
+ * + * ENTERTAINMENT_AND_TRAVEL = 12; + */ + public static final int ENTERTAINMENT_AND_TRAVEL_VALUE = 12; + /** + * + * + *
+   * A farming or outdoor job, such as Park Ranger.
+   * 
+ * + * FARMING_AND_OUTDOORS = 13; + */ + public static final int FARMING_AND_OUTDOORS_VALUE = 13; + /** + * + * + *
+   * A healthcare job, such as Registered Nurse.
+   * 
+ * + * HEALTHCARE = 14; + */ + public static final int HEALTHCARE_VALUE = 14; + /** + * + * + *
+   * A human resources job, such as Human Resources Director.
+   * 
+ * + * HUMAN_RESOURCES = 15; + */ + public static final int HUMAN_RESOURCES_VALUE = 15; + /** + * + * + *
+   * An installation, maintenance, or repair job, such as Electrician.
+   * 
+ * + * INSTALLATION_MAINTENANCE_AND_REPAIR = 16; + */ + public static final int INSTALLATION_MAINTENANCE_AND_REPAIR_VALUE = 16; + /** + * + * + *
+   * A legal job, such as Law Clerk.
+   * 
+ * + * LEGAL = 17; + */ + public static final int LEGAL_VALUE = 17; + /** + * + * + *
+   * A management job, often used in conjunction with another category,
+   * such as Store Manager.
+   * 
+ * + * MANAGEMENT = 18; + */ + public static final int MANAGEMENT_VALUE = 18; + /** + * + * + *
+   * A manufacturing or warehouse job, such as Assembly Technician.
+   * 
+ * + * MANUFACTURING_AND_WAREHOUSE = 19; + */ + public static final int MANUFACTURING_AND_WAREHOUSE_VALUE = 19; + /** + * + * + *
+   * A media, communications, or writing job, such as Media Relations.
+   * 
+ * + * MEDIA_COMMUNICATIONS_AND_WRITING = 20; + */ + public static final int MEDIA_COMMUNICATIONS_AND_WRITING_VALUE = 20; + /** + * + * + *
+   * An oil, gas or mining job, such as Offshore Driller.
+   * 
+ * + * OIL_GAS_AND_MINING = 21; + */ + public static final int OIL_GAS_AND_MINING_VALUE = 21; + /** + * + * + *
+   * A personal care and services job, such as Hair Stylist.
+   * 
+ * + * PERSONAL_CARE_AND_SERVICES = 22; + */ + public static final int PERSONAL_CARE_AND_SERVICES_VALUE = 22; + /** + * + * + *
+   * A protective services job, such as Security Guard.
+   * 
+ * + * PROTECTIVE_SERVICES = 23; + */ + public static final int PROTECTIVE_SERVICES_VALUE = 23; + /** + * + * + *
+   * A real estate job, such as Buyer's Agent.
+   * 
+ * + * REAL_ESTATE = 24; + */ + public static final int REAL_ESTATE_VALUE = 24; + /** + * + * + *
+   * A restaurant and hospitality job, such as Restaurant Server.
+   * 
+ * + * RESTAURANT_AND_HOSPITALITY = 25; + */ + public static final int RESTAURANT_AND_HOSPITALITY_VALUE = 25; + /** + * + * + *
+   * A sales and/or retail job, such Sales Associate.
+   * 
+ * + * SALES_AND_RETAIL = 26; + */ + public static final int SALES_AND_RETAIL_VALUE = 26; + /** + * + * + *
+   * A science and engineering job, such as Lab Technician.
+   * 
+ * + * SCIENCE_AND_ENGINEERING = 27; + */ + public static final int SCIENCE_AND_ENGINEERING_VALUE = 27; + /** + * + * + *
+   * A social services or non-profit job, such as Case Worker.
+   * 
+ * + * SOCIAL_SERVICES_AND_NON_PROFIT = 28; + */ + public static final int SOCIAL_SERVICES_AND_NON_PROFIT_VALUE = 28; + /** + * + * + *
+   * A sports, fitness, or recreation job, such as Personal Trainer.
+   * 
+ * + * SPORTS_FITNESS_AND_RECREATION = 29; + */ + public static final int SPORTS_FITNESS_AND_RECREATION_VALUE = 29; + /** + * + * + *
+   * A transportation or logistics job, such as Truck Driver.
+   * 
+ * + * TRANSPORTATION_AND_LOGISTICS = 30; + */ + public static final int TRANSPORTATION_AND_LOGISTICS_VALUE = 30; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static JobCategory valueOf(int value) { + return forNumber(value); + } + + public static JobCategory forNumber(int value) { + switch (value) { + case 0: + return JOB_CATEGORY_UNSPECIFIED; + case 1: + return ACCOUNTING_AND_FINANCE; + case 2: + return ADMINISTRATIVE_AND_OFFICE; + case 3: + return ADVERTISING_AND_MARKETING; + case 4: + return ANIMAL_CARE; + case 5: + return ART_FASHION_AND_DESIGN; + case 6: + return BUSINESS_OPERATIONS; + case 7: + return CLEANING_AND_FACILITIES; + case 8: + return COMPUTER_AND_IT; + case 9: + return CONSTRUCTION; + case 10: + return CUSTOMER_SERVICE; + case 11: + return EDUCATION; + case 12: + return ENTERTAINMENT_AND_TRAVEL; + case 13: + return FARMING_AND_OUTDOORS; + case 14: + return HEALTHCARE; + case 15: + return HUMAN_RESOURCES; + case 16: + return INSTALLATION_MAINTENANCE_AND_REPAIR; + case 17: + return LEGAL; + case 18: + return MANAGEMENT; + case 19: + return MANUFACTURING_AND_WAREHOUSE; + case 20: + return MEDIA_COMMUNICATIONS_AND_WRITING; + case 21: + return OIL_GAS_AND_MINING; + case 22: + return PERSONAL_CARE_AND_SERVICES; + case 23: + return PROTECTIVE_SERVICES; + case 24: + return REAL_ESTATE; + case 25: + return RESTAURANT_AND_HOSPITALITY; + case 26: + return SALES_AND_RETAIL; + case 27: + return SCIENCE_AND_ENGINEERING; + case 28: + return SOCIAL_SERVICES_AND_NON_PROFIT; + case 29: + return SPORTS_FITNESS_AND_RECREATION; + case 30: + return TRANSPORTATION_AND_LOGISTICS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public JobCategory findValueByNumber(int number) { + return JobCategory.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto.getDescriptor().getEnumTypes().get(5); + } + + private static final JobCategory[] VALUES = values(); + + public static JobCategory 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()]; + } + + private final int value; + + private JobCategory(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.JobCategory) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobEvent.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobEvent.java new file mode 100644 index 000000000000..0d60fb0a0927 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobEvent.java @@ -0,0 +1,1478 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/event.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * An event issued when a job seeker interacts with the application that
+ * implements Cloud Talent Solution.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.JobEvent} + */ +public final class JobEvent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.JobEvent) + JobEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use JobEvent.newBuilder() to construct. + private JobEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private JobEvent() { + type_ = 0; + jobs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private JobEvent( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + jobs_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + jobs_.add(s); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + jobs_ = jobs_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.EventProto + .internal_static_google_cloud_talent_v4beta1_JobEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.EventProto + .internal_static_google_cloud_talent_v4beta1_JobEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.JobEvent.class, + com.google.cloud.talent.v4beta1.JobEvent.Builder.class); + } + + /** + * + * + *
+   * An enumeration of an event attributed to the behavior of the end user,
+   * such as a job seeker.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.JobEvent.JobEventType} + */ + public enum JobEventType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The event is unspecified by other provided values.
+     * 
+ * + * JOB_EVENT_TYPE_UNSPECIFIED = 0; + */ + JOB_EVENT_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * The job seeker or other entity interacting with the service has
+     * had a job rendered in their view, such as in a list of search results in
+     * a compressed or clipped format. This event is typically associated with
+     * the viewing of a jobs list on a single page by a job seeker.
+     * 
+ * + * IMPRESSION = 1; + */ + IMPRESSION(1), + /** + * + * + *
+     * The job seeker, or other entity interacting with the service, has
+     * viewed the details of a job, including the full description. This
+     * event doesn't apply to the viewing a snippet of a job appearing as a
+     * part of the job search results. Viewing a snippet is associated with an
+     * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]).
+     * 
+ * + * VIEW = 2; + */ + VIEW(2), + /** + * + * + *
+     * The job seeker or other entity interacting with the service
+     * performed an action to view a job and was redirected to a different
+     * website for job.
+     * 
+ * + * VIEW_REDIRECT = 3; + */ + VIEW_REDIRECT(3), + /** + * + * + *
+     * The job seeker or other entity interacting with the service
+     * began the process or demonstrated the intention of applying for a job.
+     * 
+ * + * APPLICATION_START = 4; + */ + APPLICATION_START(4), + /** + * + * + *
+     * The job seeker or other entity interacting with the service
+     * submitted an application for a job.
+     * 
+ * + * APPLICATION_FINISH = 5; + */ + APPLICATION_FINISH(5), + /** + * + * + *
+     * The job seeker or other entity interacting with the service
+     * submitted an application for a job with a single click without
+     * entering information. If a job seeker performs this action, send only
+     * this event to the service. Do not also send
+     * [JobEventType.APPLICATION_START][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_START]
+     * or
+     * [JobEventType.APPLICATION_FINISH][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_FINISH]
+     * events.
+     * 
+ * + * APPLICATION_QUICK_SUBMISSION = 6; + */ + APPLICATION_QUICK_SUBMISSION(6), + /** + * + * + *
+     * The job seeker or other entity interacting with the service
+     * performed an action to apply to a job and was redirected to a different
+     * website to complete the application.
+     * 
+ * + * APPLICATION_REDIRECT = 7; + */ + APPLICATION_REDIRECT(7), + /** + * + * + *
+     * The job seeker or other entity interacting with the service began the
+     * process or demonstrated the intention of applying for a job from the
+     * search results page without viewing the details of the job posting.
+     * If sending this event, JobEventType.VIEW event shouldn't be sent.
+     * 
+ * + * APPLICATION_START_FROM_SEARCH = 8; + */ + APPLICATION_START_FROM_SEARCH(8), + /** + * + * + *
+     * The job seeker, or other entity interacting with the service, performs an
+     * action with a single click from the search results page to apply to a job
+     * (without viewing the details of the job posting), and is redirected
+     * to a different website to complete the application. If a candidate
+     * performs this action, send only this event to the service. Do not also
+     * send
+     * [JobEventType.APPLICATION_START][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_START],
+     * [JobEventType.APPLICATION_FINISH][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_FINISH]
+     * or
+     * [JobEventType.VIEW][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW]
+     * events.
+     * 
+ * + * APPLICATION_REDIRECT_FROM_SEARCH = 9; + */ + APPLICATION_REDIRECT_FROM_SEARCH(9), + /** + * + * + *
+     * This event should be used when a company submits an application
+     * on behalf of a job seeker. This event is intended for use by staffing
+     * agencies attempting to place candidates.
+     * 
+ * + * APPLICATION_COMPANY_SUBMIT = 10; + */ + APPLICATION_COMPANY_SUBMIT(10), + /** + * + * + *
+     * The job seeker or other entity interacting with the service demonstrated
+     * an interest in a job by bookmarking or saving it.
+     * 
+ * + * BOOKMARK = 11; + */ + BOOKMARK(11), + /** + * + * + *
+     * The job seeker or other entity interacting with the service was
+     * sent a notification, such as an email alert or device notification,
+     * containing one or more jobs listings generated by the service.
+     * 
+ * + * NOTIFICATION = 12; + */ + NOTIFICATION(12), + /** + * + * + *
+     * The job seeker or other entity interacting with the service was
+     * employed by the hiring entity (employer). Send this event
+     * only if the job seeker was hired through an application that was
+     * initiated by a search conducted through the Cloud Talent Solution
+     * service.
+     * 
+ * + * HIRED = 13; + */ + HIRED(13), + /** + * + * + *
+     * A recruiter or staffing agency submitted an application on behalf of the
+     * candidate after interacting with the service to identify a suitable job
+     * posting.
+     * 
+ * + * SENT_CV = 14; + */ + SENT_CV(14), + /** + * + * + *
+     * The entity interacting with the service (for example, the job seeker),
+     * was granted an initial interview by the hiring entity (employer). This
+     * event should only be sent if the job seeker was granted an interview as
+     * part of an application that was initiated by a search conducted through /
+     * recommendation provided by the Cloud Talent Solution service.
+     * 
+ * + * INTERVIEW_GRANTED = 15; + */ + INTERVIEW_GRANTED(15), + /** + * + * + *
+     * The job seeker or other entity interacting with the service showed
+     * no interest in the job.
+     * 
+ * + * NOT_INTERESTED = 16; + */ + NOT_INTERESTED(16), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * The event is unspecified by other provided values.
+     * 
+ * + * JOB_EVENT_TYPE_UNSPECIFIED = 0; + */ + public static final int JOB_EVENT_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The job seeker or other entity interacting with the service has
+     * had a job rendered in their view, such as in a list of search results in
+     * a compressed or clipped format. This event is typically associated with
+     * the viewing of a jobs list on a single page by a job seeker.
+     * 
+ * + * IMPRESSION = 1; + */ + public static final int IMPRESSION_VALUE = 1; + /** + * + * + *
+     * The job seeker, or other entity interacting with the service, has
+     * viewed the details of a job, including the full description. This
+     * event doesn't apply to the viewing a snippet of a job appearing as a
+     * part of the job search results. Viewing a snippet is associated with an
+     * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]).
+     * 
+ * + * VIEW = 2; + */ + public static final int VIEW_VALUE = 2; + /** + * + * + *
+     * The job seeker or other entity interacting with the service
+     * performed an action to view a job and was redirected to a different
+     * website for job.
+     * 
+ * + * VIEW_REDIRECT = 3; + */ + public static final int VIEW_REDIRECT_VALUE = 3; + /** + * + * + *
+     * The job seeker or other entity interacting with the service
+     * began the process or demonstrated the intention of applying for a job.
+     * 
+ * + * APPLICATION_START = 4; + */ + public static final int APPLICATION_START_VALUE = 4; + /** + * + * + *
+     * The job seeker or other entity interacting with the service
+     * submitted an application for a job.
+     * 
+ * + * APPLICATION_FINISH = 5; + */ + public static final int APPLICATION_FINISH_VALUE = 5; + /** + * + * + *
+     * The job seeker or other entity interacting with the service
+     * submitted an application for a job with a single click without
+     * entering information. If a job seeker performs this action, send only
+     * this event to the service. Do not also send
+     * [JobEventType.APPLICATION_START][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_START]
+     * or
+     * [JobEventType.APPLICATION_FINISH][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_FINISH]
+     * events.
+     * 
+ * + * APPLICATION_QUICK_SUBMISSION = 6; + */ + public static final int APPLICATION_QUICK_SUBMISSION_VALUE = 6; + /** + * + * + *
+     * The job seeker or other entity interacting with the service
+     * performed an action to apply to a job and was redirected to a different
+     * website to complete the application.
+     * 
+ * + * APPLICATION_REDIRECT = 7; + */ + public static final int APPLICATION_REDIRECT_VALUE = 7; + /** + * + * + *
+     * The job seeker or other entity interacting with the service began the
+     * process or demonstrated the intention of applying for a job from the
+     * search results page without viewing the details of the job posting.
+     * If sending this event, JobEventType.VIEW event shouldn't be sent.
+     * 
+ * + * APPLICATION_START_FROM_SEARCH = 8; + */ + public static final int APPLICATION_START_FROM_SEARCH_VALUE = 8; + /** + * + * + *
+     * The job seeker, or other entity interacting with the service, performs an
+     * action with a single click from the search results page to apply to a job
+     * (without viewing the details of the job posting), and is redirected
+     * to a different website to complete the application. If a candidate
+     * performs this action, send only this event to the service. Do not also
+     * send
+     * [JobEventType.APPLICATION_START][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_START],
+     * [JobEventType.APPLICATION_FINISH][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_FINISH]
+     * or
+     * [JobEventType.VIEW][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW]
+     * events.
+     * 
+ * + * APPLICATION_REDIRECT_FROM_SEARCH = 9; + */ + public static final int APPLICATION_REDIRECT_FROM_SEARCH_VALUE = 9; + /** + * + * + *
+     * This event should be used when a company submits an application
+     * on behalf of a job seeker. This event is intended for use by staffing
+     * agencies attempting to place candidates.
+     * 
+ * + * APPLICATION_COMPANY_SUBMIT = 10; + */ + public static final int APPLICATION_COMPANY_SUBMIT_VALUE = 10; + /** + * + * + *
+     * The job seeker or other entity interacting with the service demonstrated
+     * an interest in a job by bookmarking or saving it.
+     * 
+ * + * BOOKMARK = 11; + */ + public static final int BOOKMARK_VALUE = 11; + /** + * + * + *
+     * The job seeker or other entity interacting with the service was
+     * sent a notification, such as an email alert or device notification,
+     * containing one or more jobs listings generated by the service.
+     * 
+ * + * NOTIFICATION = 12; + */ + public static final int NOTIFICATION_VALUE = 12; + /** + * + * + *
+     * The job seeker or other entity interacting with the service was
+     * employed by the hiring entity (employer). Send this event
+     * only if the job seeker was hired through an application that was
+     * initiated by a search conducted through the Cloud Talent Solution
+     * service.
+     * 
+ * + * HIRED = 13; + */ + public static final int HIRED_VALUE = 13; + /** + * + * + *
+     * A recruiter or staffing agency submitted an application on behalf of the
+     * candidate after interacting with the service to identify a suitable job
+     * posting.
+     * 
+ * + * SENT_CV = 14; + */ + public static final int SENT_CV_VALUE = 14; + /** + * + * + *
+     * The entity interacting with the service (for example, the job seeker),
+     * was granted an initial interview by the hiring entity (employer). This
+     * event should only be sent if the job seeker was granted an interview as
+     * part of an application that was initiated by a search conducted through /
+     * recommendation provided by the Cloud Talent Solution service.
+     * 
+ * + * INTERVIEW_GRANTED = 15; + */ + public static final int INTERVIEW_GRANTED_VALUE = 15; + /** + * + * + *
+     * The job seeker or other entity interacting with the service showed
+     * no interest in the job.
+     * 
+ * + * NOT_INTERESTED = 16; + */ + public static final int NOT_INTERESTED_VALUE = 16; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static JobEventType valueOf(int value) { + return forNumber(value); + } + + public static JobEventType forNumber(int value) { + switch (value) { + case 0: + return JOB_EVENT_TYPE_UNSPECIFIED; + case 1: + return IMPRESSION; + case 2: + return VIEW; + case 3: + return VIEW_REDIRECT; + case 4: + return APPLICATION_START; + case 5: + return APPLICATION_FINISH; + case 6: + return APPLICATION_QUICK_SUBMISSION; + case 7: + return APPLICATION_REDIRECT; + case 8: + return APPLICATION_START_FROM_SEARCH; + case 9: + return APPLICATION_REDIRECT_FROM_SEARCH; + case 10: + return APPLICATION_COMPANY_SUBMIT; + case 11: + return BOOKMARK; + case 12: + return NOTIFICATION; + case 13: + return HIRED; + case 14: + return SENT_CV; + case 15: + return INTERVIEW_GRANTED; + case 16: + return NOT_INTERESTED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public JobEventType findValueByNumber(int number) { + return JobEventType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobEvent.getDescriptor().getEnumTypes().get(0); + } + + private static final JobEventType[] VALUES = values(); + + public static JobEventType 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()]; + } + + private final int value; + + private JobEventType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.JobEvent.JobEventType) + } + + private int bitField0_; + public static final int TYPE_FIELD_NUMBER = 1; + private int type_; + /** + * + * + *
+   * Required.
+   * The type of the event (see
+   * [JobEventType][google.cloud.talent.v4beta1.JobEvent.JobEventType]).
+   * 
+ * + * .google.cloud.talent.v4beta1.JobEvent.JobEventType type = 1; + */ + public int getTypeValue() { + return type_; + } + /** + * + * + *
+   * Required.
+   * The type of the event (see
+   * [JobEventType][google.cloud.talent.v4beta1.JobEvent.JobEventType]).
+   * 
+ * + * .google.cloud.talent.v4beta1.JobEvent.JobEventType type = 1; + */ + public com.google.cloud.talent.v4beta1.JobEvent.JobEventType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.JobEvent.JobEventType result = + com.google.cloud.talent.v4beta1.JobEvent.JobEventType.valueOf(type_); + return result == null + ? com.google.cloud.talent.v4beta1.JobEvent.JobEventType.UNRECOGNIZED + : result; + } + + public static final int JOBS_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList jobs_; + /** + * + * + *
+   * Required.
+   * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with
+   * this event. For example, if this is an
+   * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
+   * event, this field contains the identifiers of all jobs shown to the job
+   * seeker. If this was a
+   * [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
+   * field contains the identifier of the viewed job.
+   * 
+ * + * repeated string jobs = 2; + */ + public com.google.protobuf.ProtocolStringList getJobsList() { + return jobs_; + } + /** + * + * + *
+   * Required.
+   * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with
+   * this event. For example, if this is an
+   * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
+   * event, this field contains the identifiers of all jobs shown to the job
+   * seeker. If this was a
+   * [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
+   * field contains the identifier of the viewed job.
+   * 
+ * + * repeated string jobs = 2; + */ + public int getJobsCount() { + return jobs_.size(); + } + /** + * + * + *
+   * Required.
+   * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with
+   * this event. For example, if this is an
+   * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
+   * event, this field contains the identifiers of all jobs shown to the job
+   * seeker. If this was a
+   * [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
+   * field contains the identifier of the viewed job.
+   * 
+ * + * repeated string jobs = 2; + */ + public java.lang.String getJobs(int index) { + return jobs_.get(index); + } + /** + * + * + *
+   * Required.
+   * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with
+   * this event. For example, if this is an
+   * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
+   * event, this field contains the identifiers of all jobs shown to the job
+   * seeker. If this was a
+   * [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
+   * field contains the identifier of the viewed job.
+   * 
+ * + * repeated string jobs = 2; + */ + public com.google.protobuf.ByteString getJobsBytes(int index) { + return jobs_.getByteString(index); + } + + 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 (type_ + != com.google.cloud.talent.v4beta1.JobEvent.JobEventType.JOB_EVENT_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, type_); + } + for (int i = 0; i < jobs_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, jobs_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ + != com.google.cloud.talent.v4beta1.JobEvent.JobEventType.JOB_EVENT_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + } + { + int dataSize = 0; + for (int i = 0; i < jobs_.size(); i++) { + dataSize += computeStringSizeNoTag(jobs_.getRaw(i)); + } + size += dataSize; + size += 1 * getJobsList().size(); + } + size += unknownFields.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.cloud.talent.v4beta1.JobEvent)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.JobEvent other = (com.google.cloud.talent.v4beta1.JobEvent) obj; + + boolean result = true; + result = result && type_ == other.type_; + result = result && getJobsList().equals(other.getJobsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + if (getJobsCount() > 0) { + hash = (37 * hash) + JOBS_FIELD_NUMBER; + hash = (53 * hash) + getJobsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.JobEvent parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.JobEvent parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.JobEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.JobEvent 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.cloud.talent.v4beta1.JobEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.JobEvent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.JobEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.JobEvent 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.cloud.talent.v4beta1.JobEvent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.JobEvent 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.cloud.talent.v4beta1.JobEvent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.JobEvent 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.cloud.talent.v4beta1.JobEvent 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; + } + /** + * + * + *
+   * An event issued when a job seeker interacts with the application that
+   * implements Cloud Talent Solution.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.JobEvent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.JobEvent) + com.google.cloud.talent.v4beta1.JobEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.EventProto + .internal_static_google_cloud_talent_v4beta1_JobEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.EventProto + .internal_static_google_cloud_talent_v4beta1_JobEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.JobEvent.class, + com.google.cloud.talent.v4beta1.JobEvent.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.JobEvent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + type_ = 0; + + jobs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.EventProto + .internal_static_google_cloud_talent_v4beta1_JobEvent_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.JobEvent getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.JobEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.JobEvent build() { + com.google.cloud.talent.v4beta1.JobEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.JobEvent buildPartial() { + com.google.cloud.talent.v4beta1.JobEvent result = + new com.google.cloud.talent.v4beta1.JobEvent(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.type_ = type_; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + jobs_ = jobs_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.jobs_ = jobs_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.JobEvent) { + return mergeFrom((com.google.cloud.talent.v4beta1.JobEvent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.JobEvent other) { + if (other == com.google.cloud.talent.v4beta1.JobEvent.getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.jobs_.isEmpty()) { + if (jobs_.isEmpty()) { + jobs_ = other.jobs_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureJobsIsMutable(); + jobs_.addAll(other.jobs_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.JobEvent parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.JobEvent) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private int type_ = 0; + /** + * + * + *
+     * Required.
+     * The type of the event (see
+     * [JobEventType][google.cloud.talent.v4beta1.JobEvent.JobEventType]).
+     * 
+ * + * .google.cloud.talent.v4beta1.JobEvent.JobEventType type = 1; + */ + public int getTypeValue() { + return type_; + } + /** + * + * + *
+     * Required.
+     * The type of the event (see
+     * [JobEventType][google.cloud.talent.v4beta1.JobEvent.JobEventType]).
+     * 
+ * + * .google.cloud.talent.v4beta1.JobEvent.JobEventType type = 1; + */ + public Builder setTypeValue(int value) { + type_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The type of the event (see
+     * [JobEventType][google.cloud.talent.v4beta1.JobEvent.JobEventType]).
+     * 
+ * + * .google.cloud.talent.v4beta1.JobEvent.JobEventType type = 1; + */ + public com.google.cloud.talent.v4beta1.JobEvent.JobEventType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.JobEvent.JobEventType result = + com.google.cloud.talent.v4beta1.JobEvent.JobEventType.valueOf(type_); + return result == null + ? com.google.cloud.talent.v4beta1.JobEvent.JobEventType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required.
+     * The type of the event (see
+     * [JobEventType][google.cloud.talent.v4beta1.JobEvent.JobEventType]).
+     * 
+ * + * .google.cloud.talent.v4beta1.JobEvent.JobEventType type = 1; + */ + public Builder setType(com.google.cloud.talent.v4beta1.JobEvent.JobEventType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The type of the event (see
+     * [JobEventType][google.cloud.talent.v4beta1.JobEvent.JobEventType]).
+     * 
+ * + * .google.cloud.talent.v4beta1.JobEvent.JobEventType type = 1; + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList jobs_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureJobsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + jobs_ = new com.google.protobuf.LazyStringArrayList(jobs_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Required.
+     * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with
+     * this event. For example, if this is an
+     * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
+     * event, this field contains the identifiers of all jobs shown to the job
+     * seeker. If this was a
+     * [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
+     * field contains the identifier of the viewed job.
+     * 
+ * + * repeated string jobs = 2; + */ + public com.google.protobuf.ProtocolStringList getJobsList() { + return jobs_.getUnmodifiableView(); + } + /** + * + * + *
+     * Required.
+     * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with
+     * this event. For example, if this is an
+     * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
+     * event, this field contains the identifiers of all jobs shown to the job
+     * seeker. If this was a
+     * [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
+     * field contains the identifier of the viewed job.
+     * 
+ * + * repeated string jobs = 2; + */ + public int getJobsCount() { + return jobs_.size(); + } + /** + * + * + *
+     * Required.
+     * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with
+     * this event. For example, if this is an
+     * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
+     * event, this field contains the identifiers of all jobs shown to the job
+     * seeker. If this was a
+     * [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
+     * field contains the identifier of the viewed job.
+     * 
+ * + * repeated string jobs = 2; + */ + public java.lang.String getJobs(int index) { + return jobs_.get(index); + } + /** + * + * + *
+     * Required.
+     * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with
+     * this event. For example, if this is an
+     * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
+     * event, this field contains the identifiers of all jobs shown to the job
+     * seeker. If this was a
+     * [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
+     * field contains the identifier of the viewed job.
+     * 
+ * + * repeated string jobs = 2; + */ + public com.google.protobuf.ByteString getJobsBytes(int index) { + return jobs_.getByteString(index); + } + /** + * + * + *
+     * Required.
+     * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with
+     * this event. For example, if this is an
+     * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
+     * event, this field contains the identifiers of all jobs shown to the job
+     * seeker. If this was a
+     * [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
+     * field contains the identifier of the viewed job.
+     * 
+ * + * repeated string jobs = 2; + */ + public Builder setJobs(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobsIsMutable(); + jobs_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with
+     * this event. For example, if this is an
+     * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
+     * event, this field contains the identifiers of all jobs shown to the job
+     * seeker. If this was a
+     * [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
+     * field contains the identifier of the viewed job.
+     * 
+ * + * repeated string jobs = 2; + */ + public Builder addJobs(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobsIsMutable(); + jobs_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with
+     * this event. For example, if this is an
+     * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
+     * event, this field contains the identifiers of all jobs shown to the job
+     * seeker. If this was a
+     * [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
+     * field contains the identifier of the viewed job.
+     * 
+ * + * repeated string jobs = 2; + */ + public Builder addAllJobs(java.lang.Iterable values) { + ensureJobsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jobs_); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with
+     * this event. For example, if this is an
+     * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
+     * event, this field contains the identifiers of all jobs shown to the job
+     * seeker. If this was a
+     * [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
+     * field contains the identifier of the viewed job.
+     * 
+ * + * repeated string jobs = 2; + */ + public Builder clearJobs() { + jobs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with
+     * this event. For example, if this is an
+     * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
+     * event, this field contains the identifiers of all jobs shown to the job
+     * seeker. If this was a
+     * [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
+     * field contains the identifier of the viewed job.
+     * 
+ * + * repeated string jobs = 2; + */ + public Builder addJobsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureJobsIsMutable(); + jobs_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.JobEvent) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.JobEvent) + private static final com.google.cloud.talent.v4beta1.JobEvent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.JobEvent(); + } + + public static com.google.cloud.talent.v4beta1.JobEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public JobEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new JobEvent(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.JobEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobEventOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobEventOrBuilder.java new file mode 100644 index 000000000000..6d63344a67b6 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobEventOrBuilder.java @@ -0,0 +1,104 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/event.proto + +package com.google.cloud.talent.v4beta1; + +public interface JobEventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.JobEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The type of the event (see
+   * [JobEventType][google.cloud.talent.v4beta1.JobEvent.JobEventType]).
+   * 
+ * + * .google.cloud.talent.v4beta1.JobEvent.JobEventType type = 1; + */ + int getTypeValue(); + /** + * + * + *
+   * Required.
+   * The type of the event (see
+   * [JobEventType][google.cloud.talent.v4beta1.JobEvent.JobEventType]).
+   * 
+ * + * .google.cloud.talent.v4beta1.JobEvent.JobEventType type = 1; + */ + com.google.cloud.talent.v4beta1.JobEvent.JobEventType getType(); + + /** + * + * + *
+   * Required.
+   * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with
+   * this event. For example, if this is an
+   * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
+   * event, this field contains the identifiers of all jobs shown to the job
+   * seeker. If this was a
+   * [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
+   * field contains the identifier of the viewed job.
+   * 
+ * + * repeated string jobs = 2; + */ + java.util.List getJobsList(); + /** + * + * + *
+   * Required.
+   * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with
+   * this event. For example, if this is an
+   * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
+   * event, this field contains the identifiers of all jobs shown to the job
+   * seeker. If this was a
+   * [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
+   * field contains the identifier of the viewed job.
+   * 
+ * + * repeated string jobs = 2; + */ + int getJobsCount(); + /** + * + * + *
+   * Required.
+   * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with
+   * this event. For example, if this is an
+   * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
+   * event, this field contains the identifiers of all jobs shown to the job
+   * seeker. If this was a
+   * [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
+   * field contains the identifier of the viewed job.
+   * 
+ * + * repeated string jobs = 2; + */ + java.lang.String getJobs(int index); + /** + * + * + *
+   * Required.
+   * The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with
+   * this event. For example, if this is an
+   * [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
+   * event, this field contains the identifiers of all jobs shown to the job
+   * seeker. If this was a
+   * [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
+   * field contains the identifier of the viewed job.
+   * 
+ * + * repeated string jobs = 2; + */ + com.google.protobuf.ByteString getJobsBytes(int index); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobLevel.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobLevel.java new file mode 100644 index 000000000000..79b48a9d0a31 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobLevel.java @@ -0,0 +1,219 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * An enum that represents the required experience level required for the job.
+ * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.JobLevel} + */ +public enum JobLevel implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * The default value if the level isn't specified.
+   * 
+ * + * JOB_LEVEL_UNSPECIFIED = 0; + */ + JOB_LEVEL_UNSPECIFIED(0), + /** + * + * + *
+   * Entry-level individual contributors, typically with less than 2 years of
+   * experience in a similar role. Includes interns.
+   * 
+ * + * ENTRY_LEVEL = 1; + */ + ENTRY_LEVEL(1), + /** + * + * + *
+   * Experienced individual contributors, typically with 2+ years of
+   * experience in a similar role.
+   * 
+ * + * EXPERIENCED = 2; + */ + EXPERIENCED(2), + /** + * + * + *
+   * Entry- to mid-level managers responsible for managing a team of people.
+   * 
+ * + * MANAGER = 3; + */ + MANAGER(3), + /** + * + * + *
+   * Senior-level managers responsible for managing teams of managers.
+   * 
+ * + * DIRECTOR = 4; + */ + DIRECTOR(4), + /** + * + * + *
+   * Executive-level managers and above, including C-level positions.
+   * 
+ * + * EXECUTIVE = 5; + */ + EXECUTIVE(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * The default value if the level isn't specified.
+   * 
+ * + * JOB_LEVEL_UNSPECIFIED = 0; + */ + public static final int JOB_LEVEL_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Entry-level individual contributors, typically with less than 2 years of
+   * experience in a similar role. Includes interns.
+   * 
+ * + * ENTRY_LEVEL = 1; + */ + public static final int ENTRY_LEVEL_VALUE = 1; + /** + * + * + *
+   * Experienced individual contributors, typically with 2+ years of
+   * experience in a similar role.
+   * 
+ * + * EXPERIENCED = 2; + */ + public static final int EXPERIENCED_VALUE = 2; + /** + * + * + *
+   * Entry- to mid-level managers responsible for managing a team of people.
+   * 
+ * + * MANAGER = 3; + */ + public static final int MANAGER_VALUE = 3; + /** + * + * + *
+   * Senior-level managers responsible for managing teams of managers.
+   * 
+ * + * DIRECTOR = 4; + */ + public static final int DIRECTOR_VALUE = 4; + /** + * + * + *
+   * Executive-level managers and above, including C-level positions.
+   * 
+ * + * EXECUTIVE = 5; + */ + public static final int EXECUTIVE_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static JobLevel valueOf(int value) { + return forNumber(value); + } + + public static JobLevel forNumber(int value) { + switch (value) { + case 0: + return JOB_LEVEL_UNSPECIFIED; + case 1: + return ENTRY_LEVEL; + case 2: + return EXPERIENCED; + case 3: + return MANAGER; + case 4: + return DIRECTOR; + case 5: + return EXECUTIVE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public JobLevel findValueByNumber(int number) { + return JobLevel.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto.getDescriptor().getEnumTypes().get(4); + } + + private static final JobLevel[] VALUES = values(); + + public static JobLevel 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()]; + } + + private final int value; + + private JobLevel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.JobLevel) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobName.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobName.java new file mode 100644 index 000000000000..5bf3fec9adf1 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobName.java @@ -0,0 +1,180 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.cloud.talent.v4beta1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class JobName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}/jobs/{jobs}"); + + private volatile Map fieldValuesMap; + + private final String project; + private final String jobs; + + public String getProject() { + return project; + } + + public String getJobs() { + return jobs; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private JobName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + jobs = Preconditions.checkNotNull(builder.getJobs()); + } + + public static JobName of(String project, String jobs) { + return newBuilder().setProject(project).setJobs(jobs).build(); + } + + public static String format(String project, String jobs) { + return newBuilder().setProject(project).setJobs(jobs).build().toString(); + } + + public static JobName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "JobName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("jobs")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (JobName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldMapBuilder.put("jobs", jobs); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project", project, "jobs", jobs); + } + + /** Builder for JobName. */ + public static class Builder { + + private String project; + private String jobs; + + public String getProject() { + return project; + } + + public String getJobs() { + return jobs; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setJobs(String jobs) { + this.jobs = jobs; + return this; + } + + private Builder() {} + + private Builder(JobName jobName) { + project = jobName.project; + jobs = jobName.jobs; + } + + public JobName build() { + return new JobName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof JobName) { + JobName that = (JobName) o; + return (this.project.equals(that.project)) && (this.jobs.equals(that.jobs)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + h *= 1000003; + h ^= jobs.hashCode(); + return h; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobOrBuilder.java new file mode 100644 index 000000000000..4667ecf62c2f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobOrBuilder.java @@ -0,0 +1,1291 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job.proto + +package com.google.cloud.talent.v4beta1; + +public interface JobOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Job) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required during job update.
+   * The resource name for the job. This is generated by the service when a
+   * job is created.
+   * The format is "projects/{project_id}/jobs/{job_id}",
+   * for example, "projects/api-test-project/jobs/1234".
+   * Use of this field in job queries and API calls is preferred over the use of
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] since this
+   * value is unique.
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Required during job update.
+   * The resource name for the job. This is generated by the service when a
+   * job is created.
+   * The format is "projects/{project_id}/jobs/{job_id}",
+   * for example, "projects/api-test-project/jobs/1234".
+   * Use of this field in job queries and API calls is preferred over the use of
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] since this
+   * value is unique.
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required.
+   * The resource name of the company listing the job, such as
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string company_name = 2; + */ + java.lang.String getCompanyName(); + /** + * + * + *
+   * Required.
+   * The resource name of the company listing the job, such as
+   * "projects/api-test-project/companies/foo".
+   * 
+ * + * string company_name = 2; + */ + com.google.protobuf.ByteString getCompanyNameBytes(); + + /** + * + * + *
+   * Required.
+   * The requisition ID, also referred to as the posting ID, is assigned by the
+   * client to identify a job. This field is intended to be used by clients
+   * for client identification and tracking of postings. A job isn't allowed
+   * to be created if there is another job with the same
+   * [company][google.cloud.talent.v4beta1.Job.name],
+   * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string requisition_id = 3; + */ + java.lang.String getRequisitionId(); + /** + * + * + *
+   * Required.
+   * The requisition ID, also referred to as the posting ID, is assigned by the
+   * client to identify a job. This field is intended to be used by clients
+   * for client identification and tracking of postings. A job isn't allowed
+   * to be created if there is another job with the same
+   * [company][google.cloud.talent.v4beta1.Job.name],
+   * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string requisition_id = 3; + */ + com.google.protobuf.ByteString getRequisitionIdBytes(); + + /** + * + * + *
+   * Required.
+   * The title of the job, such as "Software Engineer"
+   * The maximum number of allowed characters is 500.
+   * 
+ * + * string title = 4; + */ + java.lang.String getTitle(); + /** + * + * + *
+   * Required.
+   * The title of the job, such as "Software Engineer"
+   * The maximum number of allowed characters is 500.
+   * 
+ * + * string title = 4; + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
+   * Required.
+   * The description of the job, which typically includes a multi-paragraph
+   * description of the company and related information. Separate fields are
+   * provided on the job object for
+   * [responsibilities][google.cloud.talent.v4beta1.Job.responsibilities],
+   * [qualifications][google.cloud.talent.v4beta1.Job.qualifications], and other
+   * job characteristics. Use of these separate job fields is recommended.
+   * This field accepts and sanitizes HTML input, and also accepts
+   * bold, italic, ordered list, and unordered list markup tags.
+   * The maximum number of allowed characters is 100,000.
+   * 
+ * + * string description = 5; + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Required.
+   * The description of the job, which typically includes a multi-paragraph
+   * description of the company and related information. Separate fields are
+   * provided on the job object for
+   * [responsibilities][google.cloud.talent.v4beta1.Job.responsibilities],
+   * [qualifications][google.cloud.talent.v4beta1.Job.qualifications], and other
+   * job characteristics. Use of these separate job fields is recommended.
+   * This field accepts and sanitizes HTML input, and also accepts
+   * bold, italic, ordered list, and unordered list markup tags.
+   * The maximum number of allowed characters is 100,000.
+   * 
+ * + * string description = 5; + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Optional but strongly recommended for the best service experience.
+   * Location(s) where the employer is looking to hire for this job posting.
+   * Specifying the full street address(es) of the hiring location enables
+   * better API results, especially job searches by commute time.
+   * At most 50 locations are allowed for best search performance. If a job has
+   * more locations, it is suggested to split it into multiple jobs with unique
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g.
+   * 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same
+   * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not
+   * allowed. If the original
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be
+   * preserved, a custom field should be used for storage. It is also suggested
+   * to group the locations that close to each other in the same job for better
+   * search experience.
+   * The maximum number of allowed characters is 500.
+   * 
+ * + * repeated string addresses = 6; + */ + java.util.List getAddressesList(); + /** + * + * + *
+   * Optional but strongly recommended for the best service experience.
+   * Location(s) where the employer is looking to hire for this job posting.
+   * Specifying the full street address(es) of the hiring location enables
+   * better API results, especially job searches by commute time.
+   * At most 50 locations are allowed for best search performance. If a job has
+   * more locations, it is suggested to split it into multiple jobs with unique
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g.
+   * 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same
+   * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not
+   * allowed. If the original
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be
+   * preserved, a custom field should be used for storage. It is also suggested
+   * to group the locations that close to each other in the same job for better
+   * search experience.
+   * The maximum number of allowed characters is 500.
+   * 
+ * + * repeated string addresses = 6; + */ + int getAddressesCount(); + /** + * + * + *
+   * Optional but strongly recommended for the best service experience.
+   * Location(s) where the employer is looking to hire for this job posting.
+   * Specifying the full street address(es) of the hiring location enables
+   * better API results, especially job searches by commute time.
+   * At most 50 locations are allowed for best search performance. If a job has
+   * more locations, it is suggested to split it into multiple jobs with unique
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g.
+   * 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same
+   * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not
+   * allowed. If the original
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be
+   * preserved, a custom field should be used for storage. It is also suggested
+   * to group the locations that close to each other in the same job for better
+   * search experience.
+   * The maximum number of allowed characters is 500.
+   * 
+ * + * repeated string addresses = 6; + */ + java.lang.String getAddresses(int index); + /** + * + * + *
+   * Optional but strongly recommended for the best service experience.
+   * Location(s) where the employer is looking to hire for this job posting.
+   * Specifying the full street address(es) of the hiring location enables
+   * better API results, especially job searches by commute time.
+   * At most 50 locations are allowed for best search performance. If a job has
+   * more locations, it is suggested to split it into multiple jobs with unique
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g.
+   * 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same
+   * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not
+   * allowed. If the original
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be
+   * preserved, a custom field should be used for storage. It is also suggested
+   * to group the locations that close to each other in the same job for better
+   * search experience.
+   * The maximum number of allowed characters is 500.
+   * 
+ * + * repeated string addresses = 6; + */ + com.google.protobuf.ByteString getAddressesBytes(int index); + + /** + * + * + *
+   * Required. At least one field within
+   * [ApplicationInfo][google.cloud.talent.v4beta1.Job.ApplicationInfo] must be
+   * specified.
+   * Job application information.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.ApplicationInfo application_info = 7; + */ + boolean hasApplicationInfo(); + /** + * + * + *
+   * Required. At least one field within
+   * [ApplicationInfo][google.cloud.talent.v4beta1.Job.ApplicationInfo] must be
+   * specified.
+   * Job application information.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.ApplicationInfo application_info = 7; + */ + com.google.cloud.talent.v4beta1.Job.ApplicationInfo getApplicationInfo(); + /** + * + * + *
+   * Required. At least one field within
+   * [ApplicationInfo][google.cloud.talent.v4beta1.Job.ApplicationInfo] must be
+   * specified.
+   * Job application information.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.ApplicationInfo application_info = 7; + */ + com.google.cloud.talent.v4beta1.Job.ApplicationInfoOrBuilder getApplicationInfoOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The benefits included with the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + java.util.List getJobBenefitsList(); + /** + * + * + *
+   * Optional.
+   * The benefits included with the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + int getJobBenefitsCount(); + /** + * + * + *
+   * Optional.
+   * The benefits included with the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + com.google.cloud.talent.v4beta1.JobBenefit getJobBenefits(int index); + /** + * + * + *
+   * Optional.
+   * The benefits included with the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + java.util.List getJobBenefitsValueList(); + /** + * + * + *
+   * Optional.
+   * The benefits included with the job.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8; + */ + int getJobBenefitsValue(int index); + + /** + * + * + *
+   * Optional.
+   * Job compensation information.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; + */ + boolean hasCompensationInfo(); + /** + * + * + *
+   * Optional.
+   * Job compensation information.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; + */ + com.google.cloud.talent.v4beta1.CompensationInfo getCompensationInfo(); + /** + * + * + *
+   * Optional.
+   * Job compensation information.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; + */ + com.google.cloud.talent.v4beta1.CompensationInfoOrBuilder getCompensationInfoOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom job
+   * attributes that are not covered by the provided structured fields.
+   * The keys of the map are strings up to 64 bytes and must match the
+   * pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or
+   * KEY_1_LIKE_THIS.
+   * At most 100 filterable and at most 100 unfilterable keys are supported.
+   * For filterable `string_values`, across all keys at most 200 values are
+   * allowed, with each string no more than 255 characters. For unfilterable
+   * `string_values`, the maximum total size of `string_values` across all keys
+   * is 50KB.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 10; + * + */ + int getCustomAttributesCount(); + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom job
+   * attributes that are not covered by the provided structured fields.
+   * The keys of the map are strings up to 64 bytes and must match the
+   * pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or
+   * KEY_1_LIKE_THIS.
+   * At most 100 filterable and at most 100 unfilterable keys are supported.
+   * For filterable `string_values`, across all keys at most 200 values are
+   * allowed, with each string no more than 255 characters. For unfilterable
+   * `string_values`, the maximum total size of `string_values` across all keys
+   * is 50KB.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 10; + * + */ + boolean containsCustomAttributes(java.lang.String key); + /** Use {@link #getCustomAttributesMap()} instead. */ + @java.lang.Deprecated + java.util.Map + getCustomAttributes(); + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom job
+   * attributes that are not covered by the provided structured fields.
+   * The keys of the map are strings up to 64 bytes and must match the
+   * pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or
+   * KEY_1_LIKE_THIS.
+   * At most 100 filterable and at most 100 unfilterable keys are supported.
+   * For filterable `string_values`, across all keys at most 200 values are
+   * allowed, with each string no more than 255 characters. For unfilterable
+   * `string_values`, the maximum total size of `string_values` across all keys
+   * is 50KB.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 10; + * + */ + java.util.Map + getCustomAttributesMap(); + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom job
+   * attributes that are not covered by the provided structured fields.
+   * The keys of the map are strings up to 64 bytes and must match the
+   * pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or
+   * KEY_1_LIKE_THIS.
+   * At most 100 filterable and at most 100 unfilterable keys are supported.
+   * For filterable `string_values`, across all keys at most 200 values are
+   * allowed, with each string no more than 255 characters. For unfilterable
+   * `string_values`, the maximum total size of `string_values` across all keys
+   * is 50KB.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 10; + * + */ + com.google.cloud.talent.v4beta1.CustomAttribute getCustomAttributesOrDefault( + java.lang.String key, com.google.cloud.talent.v4beta1.CustomAttribute defaultValue); + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom job
+   * attributes that are not covered by the provided structured fields.
+   * The keys of the map are strings up to 64 bytes and must match the
+   * pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or
+   * KEY_1_LIKE_THIS.
+   * At most 100 filterable and at most 100 unfilterable keys are supported.
+   * For filterable `string_values`, across all keys at most 200 values are
+   * allowed, with each string no more than 255 characters. For unfilterable
+   * `string_values`, the maximum total size of `string_values` across all keys
+   * is 50KB.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 10; + * + */ + com.google.cloud.talent.v4beta1.CustomAttribute getCustomAttributesOrThrow(java.lang.String key); + + /** + * + * + *
+   * Optional.
+   * The desired education degrees for the job, such as Bachelors, Masters.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + java.util.List getDegreeTypesList(); + /** + * + * + *
+   * Optional.
+   * The desired education degrees for the job, such as Bachelors, Masters.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + int getDegreeTypesCount(); + /** + * + * + *
+   * Optional.
+   * The desired education degrees for the job, such as Bachelors, Masters.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + com.google.cloud.talent.v4beta1.DegreeType getDegreeTypes(int index); + /** + * + * + *
+   * Optional.
+   * The desired education degrees for the job, such as Bachelors, Masters.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + java.util.List getDegreeTypesValueList(); + /** + * + * + *
+   * Optional.
+   * The desired education degrees for the job, such as Bachelors, Masters.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11; + */ + int getDegreeTypesValue(int index); + + /** + * + * + *
+   * Optional.
+   * The department or functional area within the company with the open
+   * position.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string department = 12; + */ + java.lang.String getDepartment(); + /** + * + * + *
+   * Optional.
+   * The department or functional area within the company with the open
+   * position.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string department = 12; + */ + com.google.protobuf.ByteString getDepartmentBytes(); + + /** + * + * + *
+   * Optional.
+   * The employment type(s) of a job, for example,
+   * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+   * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + java.util.List getEmploymentTypesList(); + /** + * + * + *
+   * Optional.
+   * The employment type(s) of a job, for example,
+   * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+   * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + int getEmploymentTypesCount(); + /** + * + * + *
+   * Optional.
+   * The employment type(s) of a job, for example,
+   * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+   * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + com.google.cloud.talent.v4beta1.EmploymentType getEmploymentTypes(int index); + /** + * + * + *
+   * Optional.
+   * The employment type(s) of a job, for example,
+   * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+   * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + java.util.List getEmploymentTypesValueList(); + /** + * + * + *
+   * Optional.
+   * The employment type(s) of a job, for example,
+   * [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
+   * [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 13; + */ + int getEmploymentTypesValue(int index); + + /** + * + * + *
+   * Optional.
+   * A description of bonus, commission, and other compensation
+   * incentives associated with the job not including salary or pay.
+   * The maximum number of allowed characters is 10,000.
+   * 
+ * + * string incentives = 14; + */ + java.lang.String getIncentives(); + /** + * + * + *
+   * Optional.
+   * A description of bonus, commission, and other compensation
+   * incentives associated with the job not including salary or pay.
+   * The maximum number of allowed characters is 10,000.
+   * 
+ * + * string incentives = 14; + */ + com.google.protobuf.ByteString getIncentivesBytes(); + + /** + * + * + *
+   * Optional.
+   * The language of the posting. This field is distinct from
+   * any requirements for fluency that are associated with the job.
+   * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+   * class="external" target="_blank" }.
+   * If this field is unspecified and
+   * [Job.description][google.cloud.talent.v4beta1.Job.description] is present,
+   * detected language code based on
+   * [Job.description][google.cloud.talent.v4beta1.Job.description] is assigned,
+   * otherwise defaults to 'en_US'.
+   * 
+ * + * string language_code = 15; + */ + java.lang.String getLanguageCode(); + /** + * + * + *
+   * Optional.
+   * The language of the posting. This field is distinct from
+   * any requirements for fluency that are associated with the job.
+   * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+   * class="external" target="_blank" }.
+   * If this field is unspecified and
+   * [Job.description][google.cloud.talent.v4beta1.Job.description] is present,
+   * detected language code based on
+   * [Job.description][google.cloud.talent.v4beta1.Job.description] is assigned,
+   * otherwise defaults to 'en_US'.
+   * 
+ * + * string language_code = 15; + */ + com.google.protobuf.ByteString getLanguageCodeBytes(); + + /** + * + * + *
+   * Optional.
+   * The experience level associated with the job, such as "Entry Level".
+   * 
+ * + * .google.cloud.talent.v4beta1.JobLevel job_level = 16; + */ + int getJobLevelValue(); + /** + * + * + *
+   * Optional.
+   * The experience level associated with the job, such as "Entry Level".
+   * 
+ * + * .google.cloud.talent.v4beta1.JobLevel job_level = 16; + */ + com.google.cloud.talent.v4beta1.JobLevel getJobLevel(); + + /** + * + * + *
+   * Optional.
+   * A promotion value of the job, as determined by the client.
+   * The value determines the sort order of the jobs returned when searching for
+   * jobs using the featured jobs search call, with higher promotional values
+   * being returned first and ties being resolved by relevance sort. Only the
+   * jobs with a promotionValue >0 are returned in a FEATURED_JOB_SEARCH.
+   * Default value is 0, and negative values are treated as 0.
+   * 
+ * + * int32 promotion_value = 17; + */ + int getPromotionValue(); + + /** + * + * + *
+   * Optional.
+   * A description of the qualifications required to perform the
+   * job. The use of this field is recommended
+   * as an alternative to using the more general
+   * [description][google.cloud.talent.v4beta1.Job.description] field.
+   * This field accepts and sanitizes HTML input, and also accepts
+   * bold, italic, ordered list, and unordered list markup tags.
+   * The maximum number of allowed characters is 10,000.
+   * 
+ * + * string qualifications = 18; + */ + java.lang.String getQualifications(); + /** + * + * + *
+   * Optional.
+   * A description of the qualifications required to perform the
+   * job. The use of this field is recommended
+   * as an alternative to using the more general
+   * [description][google.cloud.talent.v4beta1.Job.description] field.
+   * This field accepts and sanitizes HTML input, and also accepts
+   * bold, italic, ordered list, and unordered list markup tags.
+   * The maximum number of allowed characters is 10,000.
+   * 
+ * + * string qualifications = 18; + */ + com.google.protobuf.ByteString getQualificationsBytes(); + + /** + * + * + *
+   * Optional.
+   * A description of job responsibilities. The use of this field is
+   * recommended as an alternative to using the more general
+   * [description][google.cloud.talent.v4beta1.Job.description] field.
+   * This field accepts and sanitizes HTML input, and also accepts
+   * bold, italic, ordered list, and unordered list markup tags.
+   * The maximum number of allowed characters is 10,000.
+   * 
+ * + * string responsibilities = 19; + */ + java.lang.String getResponsibilities(); + /** + * + * + *
+   * Optional.
+   * A description of job responsibilities. The use of this field is
+   * recommended as an alternative to using the more general
+   * [description][google.cloud.talent.v4beta1.Job.description] field.
+   * This field accepts and sanitizes HTML input, and also accepts
+   * bold, italic, ordered list, and unordered list markup tags.
+   * The maximum number of allowed characters is 10,000.
+   * 
+ * + * string responsibilities = 19; + */ + com.google.protobuf.ByteString getResponsibilitiesBytes(); + + /** + * + * + *
+   * Optional.
+   * The job [PostingRegion][google.cloud.talent.v4beta1.PostingRegion] (for
+   * example, state, country) throughout which the job is available. If this
+   * field is set, a
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in a search
+   * query within the job region finds this job posting if an exact location
+   * match isn't specified. If this field is set to
+   * [PostingRegion.NATION][google.cloud.talent.v4beta1.PostingRegion.NATION] or
+   * [PostingRegion.ADMINISTRATIVE_AREA][google.cloud.talent.v4beta1.PostingRegion.ADMINISTRATIVE_AREA],
+   * setting job [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] to
+   * the same location level as this field is strongly recommended.
+   * 
+ * + * .google.cloud.talent.v4beta1.PostingRegion posting_region = 20; + */ + int getPostingRegionValue(); + /** + * + * + *
+   * Optional.
+   * The job [PostingRegion][google.cloud.talent.v4beta1.PostingRegion] (for
+   * example, state, country) throughout which the job is available. If this
+   * field is set, a
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in a search
+   * query within the job region finds this job posting if an exact location
+   * match isn't specified. If this field is set to
+   * [PostingRegion.NATION][google.cloud.talent.v4beta1.PostingRegion.NATION] or
+   * [PostingRegion.ADMINISTRATIVE_AREA][google.cloud.talent.v4beta1.PostingRegion.ADMINISTRATIVE_AREA],
+   * setting job [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] to
+   * the same location level as this field is strongly recommended.
+   * 
+ * + * .google.cloud.talent.v4beta1.PostingRegion posting_region = 20; + */ + com.google.cloud.talent.v4beta1.PostingRegion getPostingRegion(); + + /** + * + * + *
+   * Optional.
+   * The visibility of the job.
+   * Defaults to
+   * [Visibility.ACCOUNT_ONLY][google.cloud.talent.v4beta1.Visibility.ACCOUNT_ONLY]
+   * if not specified.
+   * 
+ * + * .google.cloud.talent.v4beta1.Visibility visibility = 21; + */ + int getVisibilityValue(); + /** + * + * + *
+   * Optional.
+   * The visibility of the job.
+   * Defaults to
+   * [Visibility.ACCOUNT_ONLY][google.cloud.talent.v4beta1.Visibility.ACCOUNT_ONLY]
+   * if not specified.
+   * 
+ * + * .google.cloud.talent.v4beta1.Visibility visibility = 21; + */ + com.google.cloud.talent.v4beta1.Visibility getVisibility(); + + /** + * + * + *
+   * Optional.
+   * The start timestamp of the job in UTC time zone. Typically this field
+   * is used for contracting engagements. Invalid timestamps are ignored.
+   * 
+ * + * .google.protobuf.Timestamp job_start_time = 22; + */ + boolean hasJobStartTime(); + /** + * + * + *
+   * Optional.
+   * The start timestamp of the job in UTC time zone. Typically this field
+   * is used for contracting engagements. Invalid timestamps are ignored.
+   * 
+ * + * .google.protobuf.Timestamp job_start_time = 22; + */ + com.google.protobuf.Timestamp getJobStartTime(); + /** + * + * + *
+   * Optional.
+   * The start timestamp of the job in UTC time zone. Typically this field
+   * is used for contracting engagements. Invalid timestamps are ignored.
+   * 
+ * + * .google.protobuf.Timestamp job_start_time = 22; + */ + com.google.protobuf.TimestampOrBuilder getJobStartTimeOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The end timestamp of the job. Typically this field is used for contracting
+   * engagements. Invalid timestamps are ignored.
+   * 
+ * + * .google.protobuf.Timestamp job_end_time = 23; + */ + boolean hasJobEndTime(); + /** + * + * + *
+   * Optional.
+   * The end timestamp of the job. Typically this field is used for contracting
+   * engagements. Invalid timestamps are ignored.
+   * 
+ * + * .google.protobuf.Timestamp job_end_time = 23; + */ + com.google.protobuf.Timestamp getJobEndTime(); + /** + * + * + *
+   * Optional.
+   * The end timestamp of the job. Typically this field is used for contracting
+   * engagements. Invalid timestamps are ignored.
+   * 
+ * + * .google.protobuf.Timestamp job_end_time = 23; + */ + com.google.protobuf.TimestampOrBuilder getJobEndTimeOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The timestamp this job posting was most recently published. The default
+   * value is the time the request arrives at the server. Invalid timestamps are
+   * ignored.
+   * 
+ * + * .google.protobuf.Timestamp posting_publish_time = 24; + */ + boolean hasPostingPublishTime(); + /** + * + * + *
+   * Optional.
+   * The timestamp this job posting was most recently published. The default
+   * value is the time the request arrives at the server. Invalid timestamps are
+   * ignored.
+   * 
+ * + * .google.protobuf.Timestamp posting_publish_time = 24; + */ + com.google.protobuf.Timestamp getPostingPublishTime(); + /** + * + * + *
+   * Optional.
+   * The timestamp this job posting was most recently published. The default
+   * value is the time the request arrives at the server. Invalid timestamps are
+   * ignored.
+   * 
+ * + * .google.protobuf.Timestamp posting_publish_time = 24; + */ + com.google.protobuf.TimestampOrBuilder getPostingPublishTimeOrBuilder(); + + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * The expiration timestamp of the job. After this timestamp, the
+   * job is marked as expired, and it no longer appears in search results. The
+   * expired job can't be deleted or listed by the [DeleteJob][] and
+   * [ListJobs][] APIs, but it can be retrieved with the [GetJob][] API or
+   * updated with the [UpdateJob][] API. An expired job can be updated and
+   * opened again by using a future expiration timestamp. Updating an expired
+   * job fails if there is another existing open job with same
+   * [company][google.cloud.talent.v4beta1.Job.name][],
+   * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+   * The expired jobs are retained in our system for 90 days. However, the
+   * overall expired job count cannot exceed 3 times the maximum of open jobs
+   * count over the past week, otherwise jobs with earlier expire time are
+   * cleaned first. Expired jobs are no longer accessible after they are cleaned
+   * out.
+   * Invalid timestamps are ignored, and treated as expire time not provided.
+   * Timestamp before the instant request is made is considered valid, the job
+   * will be treated as expired immediately.
+   * If this value isn't provided at the time of job creation or is invalid,
+   * the job posting expires after 30 days from the job's creation time. For
+   * example, if the job was created on 2017/01/01 13:00AM UTC with an
+   * unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC.
+   * If this value isn't provided on job update, it depends on the field masks
+   * set by
+   * [UpdateJobRequest.update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask].
+   * If the field masks include [expiry_time][], or the masks are empty meaning
+   * that every field is updated, the job posting expires after 30 days from the
+   * job's last update time. Otherwise the expiration date isn't updated.
+   * 
+ * + * .google.protobuf.Timestamp posting_expire_time = 25; + */ + boolean hasPostingExpireTime(); + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * The expiration timestamp of the job. After this timestamp, the
+   * job is marked as expired, and it no longer appears in search results. The
+   * expired job can't be deleted or listed by the [DeleteJob][] and
+   * [ListJobs][] APIs, but it can be retrieved with the [GetJob][] API or
+   * updated with the [UpdateJob][] API. An expired job can be updated and
+   * opened again by using a future expiration timestamp. Updating an expired
+   * job fails if there is another existing open job with same
+   * [company][google.cloud.talent.v4beta1.Job.name][],
+   * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+   * The expired jobs are retained in our system for 90 days. However, the
+   * overall expired job count cannot exceed 3 times the maximum of open jobs
+   * count over the past week, otherwise jobs with earlier expire time are
+   * cleaned first. Expired jobs are no longer accessible after they are cleaned
+   * out.
+   * Invalid timestamps are ignored, and treated as expire time not provided.
+   * Timestamp before the instant request is made is considered valid, the job
+   * will be treated as expired immediately.
+   * If this value isn't provided at the time of job creation or is invalid,
+   * the job posting expires after 30 days from the job's creation time. For
+   * example, if the job was created on 2017/01/01 13:00AM UTC with an
+   * unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC.
+   * If this value isn't provided on job update, it depends on the field masks
+   * set by
+   * [UpdateJobRequest.update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask].
+   * If the field masks include [expiry_time][], or the masks are empty meaning
+   * that every field is updated, the job posting expires after 30 days from the
+   * job's last update time. Otherwise the expiration date isn't updated.
+   * 
+ * + * .google.protobuf.Timestamp posting_expire_time = 25; + */ + com.google.protobuf.Timestamp getPostingExpireTime(); + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * The expiration timestamp of the job. After this timestamp, the
+   * job is marked as expired, and it no longer appears in search results. The
+   * expired job can't be deleted or listed by the [DeleteJob][] and
+   * [ListJobs][] APIs, but it can be retrieved with the [GetJob][] API or
+   * updated with the [UpdateJob][] API. An expired job can be updated and
+   * opened again by using a future expiration timestamp. Updating an expired
+   * job fails if there is another existing open job with same
+   * [company][google.cloud.talent.v4beta1.Job.name][],
+   * [language_code][google.cloud.talent.v4beta1.Job.language_code] and
+   * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
+   * The expired jobs are retained in our system for 90 days. However, the
+   * overall expired job count cannot exceed 3 times the maximum of open jobs
+   * count over the past week, otherwise jobs with earlier expire time are
+   * cleaned first. Expired jobs are no longer accessible after they are cleaned
+   * out.
+   * Invalid timestamps are ignored, and treated as expire time not provided.
+   * Timestamp before the instant request is made is considered valid, the job
+   * will be treated as expired immediately.
+   * If this value isn't provided at the time of job creation or is invalid,
+   * the job posting expires after 30 days from the job's creation time. For
+   * example, if the job was created on 2017/01/01 13:00AM UTC with an
+   * unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC.
+   * If this value isn't provided on job update, it depends on the field masks
+   * set by
+   * [UpdateJobRequest.update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask].
+   * If the field masks include [expiry_time][], or the masks are empty meaning
+   * that every field is updated, the job posting expires after 30 days from the
+   * job's last update time. Otherwise the expiration date isn't updated.
+   * 
+ * + * .google.protobuf.Timestamp posting_expire_time = 25; + */ + com.google.protobuf.TimestampOrBuilder getPostingExpireTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The timestamp when this job posting was created.
+   * 
+ * + * .google.protobuf.Timestamp posting_create_time = 26; + */ + boolean hasPostingCreateTime(); + /** + * + * + *
+   * Output only. The timestamp when this job posting was created.
+   * 
+ * + * .google.protobuf.Timestamp posting_create_time = 26; + */ + com.google.protobuf.Timestamp getPostingCreateTime(); + /** + * + * + *
+   * Output only. The timestamp when this job posting was created.
+   * 
+ * + * .google.protobuf.Timestamp posting_create_time = 26; + */ + com.google.protobuf.TimestampOrBuilder getPostingCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The timestamp when this job posting was last updated.
+   * 
+ * + * .google.protobuf.Timestamp posting_update_time = 27; + */ + boolean hasPostingUpdateTime(); + /** + * + * + *
+   * Output only. The timestamp when this job posting was last updated.
+   * 
+ * + * .google.protobuf.Timestamp posting_update_time = 27; + */ + com.google.protobuf.Timestamp getPostingUpdateTime(); + /** + * + * + *
+   * Output only. The timestamp when this job posting was last updated.
+   * 
+ * + * .google.protobuf.Timestamp posting_update_time = 27; + */ + com.google.protobuf.TimestampOrBuilder getPostingUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Display name of the company listing the job.
+   * 
+ * + * string company_display_name = 28; + */ + java.lang.String getCompanyDisplayName(); + /** + * + * + *
+   * Output only. Display name of the company listing the job.
+   * 
+ * + * string company_display_name = 28; + */ + com.google.protobuf.ByteString getCompanyDisplayNameBytes(); + + /** + * + * + *
+   * Output only. Derived details about the job posting.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.DerivedInfo derived_info = 29; + */ + boolean hasDerivedInfo(); + /** + * + * + *
+   * Output only. Derived details about the job posting.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.DerivedInfo derived_info = 29; + */ + com.google.cloud.talent.v4beta1.Job.DerivedInfo getDerivedInfo(); + /** + * + * + *
+   * Output only. Derived details about the job posting.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.DerivedInfo derived_info = 29; + */ + com.google.cloud.talent.v4beta1.Job.DerivedInfoOrBuilder getDerivedInfoOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * Options for job processing.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.ProcessingOptions processing_options = 30; + */ + boolean hasProcessingOptions(); + /** + * + * + *
+   * Optional.
+   * Options for job processing.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.ProcessingOptions processing_options = 30; + */ + com.google.cloud.talent.v4beta1.Job.ProcessingOptions getProcessingOptions(); + /** + * + * + *
+   * Optional.
+   * Options for job processing.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job.ProcessingOptions processing_options = 30; + */ + com.google.cloud.talent.v4beta1.Job.ProcessingOptionsOrBuilder getProcessingOptionsOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobQuery.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobQuery.java new file mode 100644 index 000000000000..bbe1abacaa37 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobQuery.java @@ -0,0 +1,4880 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * The query required to perform a search query.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.JobQuery} + */ +public final class JobQuery extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.JobQuery) + JobQueryOrBuilder { + private static final long serialVersionUID = 0L; + // Use JobQuery.newBuilder() to construct. + private JobQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private JobQuery() { + query_ = ""; + companyNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + locationFilters_ = java.util.Collections.emptyList(); + jobCategories_ = java.util.Collections.emptyList(); + companyDisplayNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + customAttributeFilter_ = ""; + disableSpellCheck_ = false; + employmentTypes_ = java.util.Collections.emptyList(); + languageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + excludedJobs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private JobQuery( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + query_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + companyNames_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + companyNames_.add(s); + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + locationFilters_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + locationFilters_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.LocationFilter.parser(), extensionRegistry)); + break; + } + case 32: + { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + jobCategories_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + jobCategories_.add(rawValue); + break; + } + case 34: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + jobCategories_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + jobCategories_.add(rawValue); + } + input.popLimit(oldLimit); + break; + } + case 42: + { + com.google.cloud.talent.v4beta1.CommuteFilter.Builder subBuilder = null; + if (commuteFilter_ != null) { + subBuilder = commuteFilter_.toBuilder(); + } + commuteFilter_ = + input.readMessage( + com.google.cloud.talent.v4beta1.CommuteFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(commuteFilter_); + commuteFilter_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + companyDisplayNames_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000020; + } + companyDisplayNames_.add(s); + break; + } + case 58: + { + com.google.cloud.talent.v4beta1.CompensationFilter.Builder subBuilder = null; + if (compensationFilter_ != null) { + subBuilder = compensationFilter_.toBuilder(); + } + compensationFilter_ = + input.readMessage( + com.google.cloud.talent.v4beta1.CompensationFilter.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(compensationFilter_); + compensationFilter_ = subBuilder.buildPartial(); + } + + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + + customAttributeFilter_ = s; + break; + } + case 72: + { + disableSpellCheck_ = input.readBool(); + break; + } + case 80: + { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + employmentTypes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000200; + } + employmentTypes_.add(rawValue); + break; + } + case 82: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + employmentTypes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000200; + } + employmentTypes_.add(rawValue); + } + input.popLimit(oldLimit); + break; + } + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + languageCodes_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000400; + } + languageCodes_.add(s); + break; + } + case 98: + { + com.google.cloud.talent.v4beta1.TimestampRange.Builder subBuilder = null; + if (publishTimeRange_ != null) { + subBuilder = publishTimeRange_.toBuilder(); + } + publishTimeRange_ = + input.readMessage( + com.google.cloud.talent.v4beta1.TimestampRange.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(publishTimeRange_); + publishTimeRange_ = subBuilder.buildPartial(); + } + + break; + } + case 106: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00001000) == 0x00001000)) { + excludedJobs_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00001000; + } + excludedJobs_.add(s); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + companyNames_ = companyNames_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + locationFilters_ = java.util.Collections.unmodifiableList(locationFilters_); + } + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + jobCategories_ = java.util.Collections.unmodifiableList(jobCategories_); + } + if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + companyDisplayNames_ = companyDisplayNames_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + employmentTypes_ = java.util.Collections.unmodifiableList(employmentTypes_); + } + if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + languageCodes_ = languageCodes_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00001000) == 0x00001000)) { + excludedJobs_ = excludedJobs_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_JobQuery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_JobQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.JobQuery.class, + com.google.cloud.talent.v4beta1.JobQuery.Builder.class); + } + + private int bitField0_; + public static final int QUERY_FIELD_NUMBER = 1; + private volatile java.lang.Object query_; + /** + * + * + *
+   * Optional.
+   * The query string that matches against the job title, description, and
+   * location fields.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string query = 1; + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + 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(); + query_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The query string that matches against the job title, description, and
+   * location fields.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string query = 1; + */ + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMPANY_NAMES_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList companyNames_; + /** + * + * + *
+   * Optional.
+   * This filter specifies the company entities to search against.
+   * If a value isn't specified, jobs are searched for against all
+   * companies.
+   * If multiple values are specified, jobs are searched against the
+   * companies specified.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * At most 20 company filters are allowed.
+   * 
+ * + * repeated string company_names = 2; + */ + public com.google.protobuf.ProtocolStringList getCompanyNamesList() { + return companyNames_; + } + /** + * + * + *
+   * Optional.
+   * This filter specifies the company entities to search against.
+   * If a value isn't specified, jobs are searched for against all
+   * companies.
+   * If multiple values are specified, jobs are searched against the
+   * companies specified.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * At most 20 company filters are allowed.
+   * 
+ * + * repeated string company_names = 2; + */ + public int getCompanyNamesCount() { + return companyNames_.size(); + } + /** + * + * + *
+   * Optional.
+   * This filter specifies the company entities to search against.
+   * If a value isn't specified, jobs are searched for against all
+   * companies.
+   * If multiple values are specified, jobs are searched against the
+   * companies specified.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * At most 20 company filters are allowed.
+   * 
+ * + * repeated string company_names = 2; + */ + public java.lang.String getCompanyNames(int index) { + return companyNames_.get(index); + } + /** + * + * + *
+   * Optional.
+   * This filter specifies the company entities to search against.
+   * If a value isn't specified, jobs are searched for against all
+   * companies.
+   * If multiple values are specified, jobs are searched against the
+   * companies specified.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * At most 20 company filters are allowed.
+   * 
+ * + * repeated string company_names = 2; + */ + public com.google.protobuf.ByteString getCompanyNamesBytes(int index) { + return companyNames_.getByteString(index); + } + + public static final int LOCATION_FILTERS_FIELD_NUMBER = 3; + private java.util.List locationFilters_; + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the jobs to
+   * search against. See
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+   * information.
+   * If a location value isn't specified, jobs fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If multiple values are specified, jobs are retrieved from any of the
+   * specified locations. If different values are specified for the
+   * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+   * parameter, the maximum provided distance is used for all locations.
+   * At most 5 location filters are allowed.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public java.util.List getLocationFiltersList() { + return locationFilters_; + } + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the jobs to
+   * search against. See
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+   * information.
+   * If a location value isn't specified, jobs fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If multiple values are specified, jobs are retrieved from any of the
+   * specified locations. If different values are specified for the
+   * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+   * parameter, the maximum provided distance is used for all locations.
+   * At most 5 location filters are allowed.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public java.util.List + getLocationFiltersOrBuilderList() { + return locationFilters_; + } + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the jobs to
+   * search against. See
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+   * information.
+   * If a location value isn't specified, jobs fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If multiple values are specified, jobs are retrieved from any of the
+   * specified locations. If different values are specified for the
+   * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+   * parameter, the maximum provided distance is used for all locations.
+   * At most 5 location filters are allowed.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public int getLocationFiltersCount() { + return locationFilters_.size(); + } + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the jobs to
+   * search against. See
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+   * information.
+   * If a location value isn't specified, jobs fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If multiple values are specified, jobs are retrieved from any of the
+   * specified locations. If different values are specified for the
+   * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+   * parameter, the maximum provided distance is used for all locations.
+   * At most 5 location filters are allowed.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public com.google.cloud.talent.v4beta1.LocationFilter getLocationFilters(int index) { + return locationFilters_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the jobs to
+   * search against. See
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+   * information.
+   * If a location value isn't specified, jobs fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If multiple values are specified, jobs are retrieved from any of the
+   * specified locations. If different values are specified for the
+   * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+   * parameter, the maximum provided distance is used for all locations.
+   * At most 5 location filters are allowed.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public com.google.cloud.talent.v4beta1.LocationFilterOrBuilder getLocationFiltersOrBuilder( + int index) { + return locationFilters_.get(index); + } + + public static final int JOB_CATEGORIES_FIELD_NUMBER = 4; + private java.util.List jobCategories_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.talent.v4beta1.JobCategory> + jobCategories_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.talent.v4beta1.JobCategory>() { + public com.google.cloud.talent.v4beta1.JobCategory convert(java.lang.Integer from) { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.JobCategory result = + com.google.cloud.talent.v4beta1.JobCategory.valueOf(from); + return result == null + ? com.google.cloud.talent.v4beta1.JobCategory.UNRECOGNIZED + : result; + } + }; + /** + * + * + *
+   * Optional.
+   * The category filter specifies the categories of jobs to search against.
+   * See [Category][] for more information.
+   * If a value isn't specified, jobs from any category are searched against.
+   * If multiple values are specified, jobs from any of the specified
+   * categories are searched against.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + public java.util.List getJobCategoriesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.talent.v4beta1.JobCategory>( + jobCategories_, jobCategories_converter_); + } + /** + * + * + *
+   * Optional.
+   * The category filter specifies the categories of jobs to search against.
+   * See [Category][] for more information.
+   * If a value isn't specified, jobs from any category are searched against.
+   * If multiple values are specified, jobs from any of the specified
+   * categories are searched against.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + public int getJobCategoriesCount() { + return jobCategories_.size(); + } + /** + * + * + *
+   * Optional.
+   * The category filter specifies the categories of jobs to search against.
+   * See [Category][] for more information.
+   * If a value isn't specified, jobs from any category are searched against.
+   * If multiple values are specified, jobs from any of the specified
+   * categories are searched against.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + public com.google.cloud.talent.v4beta1.JobCategory getJobCategories(int index) { + return jobCategories_converter_.convert(jobCategories_.get(index)); + } + /** + * + * + *
+   * Optional.
+   * The category filter specifies the categories of jobs to search against.
+   * See [Category][] for more information.
+   * If a value isn't specified, jobs from any category are searched against.
+   * If multiple values are specified, jobs from any of the specified
+   * categories are searched against.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + public java.util.List getJobCategoriesValueList() { + return jobCategories_; + } + /** + * + * + *
+   * Optional.
+   * The category filter specifies the categories of jobs to search against.
+   * See [Category][] for more information.
+   * If a value isn't specified, jobs from any category are searched against.
+   * If multiple values are specified, jobs from any of the specified
+   * categories are searched against.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + public int getJobCategoriesValue(int index) { + return jobCategories_.get(index); + } + + private int jobCategoriesMemoizedSerializedSize; + + public static final int COMMUTE_FILTER_FIELD_NUMBER = 5; + private com.google.cloud.talent.v4beta1.CommuteFilter commuteFilter_; + /** + * + * + *
+   * Optional.
+   *  Allows filtering jobs by commute time with different travel methods (for
+   *  example, driving or public transit). Note: This only works with [COMMUTE
+   *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
+   *  ignored.
+   *  Currently we don't support sorting by commute time.
+   * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5; + */ + public boolean hasCommuteFilter() { + return commuteFilter_ != null; + } + /** + * + * + *
+   * Optional.
+   *  Allows filtering jobs by commute time with different travel methods (for
+   *  example, driving or public transit). Note: This only works with [COMMUTE
+   *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
+   *  ignored.
+   *  Currently we don't support sorting by commute time.
+   * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5; + */ + public com.google.cloud.talent.v4beta1.CommuteFilter getCommuteFilter() { + return commuteFilter_ == null + ? com.google.cloud.talent.v4beta1.CommuteFilter.getDefaultInstance() + : commuteFilter_; + } + /** + * + * + *
+   * Optional.
+   *  Allows filtering jobs by commute time with different travel methods (for
+   *  example, driving or public transit). Note: This only works with [COMMUTE
+   *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
+   *  ignored.
+   *  Currently we don't support sorting by commute time.
+   * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5; + */ + public com.google.cloud.talent.v4beta1.CommuteFilterOrBuilder getCommuteFilterOrBuilder() { + return getCommuteFilter(); + } + + public static final int COMPANY_DISPLAY_NAMES_FIELD_NUMBER = 6; + private com.google.protobuf.LazyStringList companyDisplayNames_; + /** + * + * + *
+   * Optional.
+   * This filter specifies the exact [company display
+   * name][Company.display_name] of the jobs to search against.
+   * If a value isn't specified, jobs within the search results are
+   * associated with any company.
+   * If multiple values are specified, jobs within the search results may be
+   * associated with any of the specified companies.
+   * At most 20 company display name filters are allowed.
+   * 
+ * + * repeated string company_display_names = 6; + */ + public com.google.protobuf.ProtocolStringList getCompanyDisplayNamesList() { + return companyDisplayNames_; + } + /** + * + * + *
+   * Optional.
+   * This filter specifies the exact [company display
+   * name][Company.display_name] of the jobs to search against.
+   * If a value isn't specified, jobs within the search results are
+   * associated with any company.
+   * If multiple values are specified, jobs within the search results may be
+   * associated with any of the specified companies.
+   * At most 20 company display name filters are allowed.
+   * 
+ * + * repeated string company_display_names = 6; + */ + public int getCompanyDisplayNamesCount() { + return companyDisplayNames_.size(); + } + /** + * + * + *
+   * Optional.
+   * This filter specifies the exact [company display
+   * name][Company.display_name] of the jobs to search against.
+   * If a value isn't specified, jobs within the search results are
+   * associated with any company.
+   * If multiple values are specified, jobs within the search results may be
+   * associated with any of the specified companies.
+   * At most 20 company display name filters are allowed.
+   * 
+ * + * repeated string company_display_names = 6; + */ + public java.lang.String getCompanyDisplayNames(int index) { + return companyDisplayNames_.get(index); + } + /** + * + * + *
+   * Optional.
+   * This filter specifies the exact [company display
+   * name][Company.display_name] of the jobs to search against.
+   * If a value isn't specified, jobs within the search results are
+   * associated with any company.
+   * If multiple values are specified, jobs within the search results may be
+   * associated with any of the specified companies.
+   * At most 20 company display name filters are allowed.
+   * 
+ * + * repeated string company_display_names = 6; + */ + public com.google.protobuf.ByteString getCompanyDisplayNamesBytes(int index) { + return companyDisplayNames_.getByteString(index); + } + + public static final int COMPENSATION_FILTER_FIELD_NUMBER = 7; + private com.google.cloud.talent.v4beta1.CompensationFilter compensationFilter_; + /** + * + * + *
+   * Optional.
+   * This search filter is applied only to
+   * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
+   * For example, if the filter is specified as "Hourly job with per-hour
+   * compensation > $15", only jobs meeting these criteria are searched. If a
+   * filter isn't defined, all open jobs are searched.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7; + */ + public boolean hasCompensationFilter() { + return compensationFilter_ != null; + } + /** + * + * + *
+   * Optional.
+   * This search filter is applied only to
+   * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
+   * For example, if the filter is specified as "Hourly job with per-hour
+   * compensation > $15", only jobs meeting these criteria are searched. If a
+   * filter isn't defined, all open jobs are searched.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7; + */ + public com.google.cloud.talent.v4beta1.CompensationFilter getCompensationFilter() { + return compensationFilter_ == null + ? com.google.cloud.talent.v4beta1.CompensationFilter.getDefaultInstance() + : compensationFilter_; + } + /** + * + * + *
+   * Optional.
+   * This search filter is applied only to
+   * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
+   * For example, if the filter is specified as "Hourly job with per-hour
+   * compensation > $15", only jobs meeting these criteria are searched. If a
+   * filter isn't defined, all open jobs are searched.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7; + */ + public com.google.cloud.talent.v4beta1.CompensationFilterOrBuilder + getCompensationFilterOrBuilder() { + return getCompensationFilter(); + } + + public static final int CUSTOM_ATTRIBUTE_FILTER_FIELD_NUMBER = 8; + private volatile java.lang.Object customAttributeFilter_; + /** + * + * + *
+   * Optional.
+   * This filter specifies a structured syntax to match against the
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+   * marked as `filterable`.
+   * The syntax for this expression is a subset of SQL syntax.
+   * Supported operators are: `=`, `!=`, `<`, `<=`, `>`, and `>=` where the
+   * left of the operator is a custom field key and the right of the operator
+   * is a number or a quoted string. You must escape backslash (\\) and
+   * quote (\") characters.
+   * Supported functions are `LOWER([field_name])` to
+   * perform a case insensitive match and `EMPTY([field_name])` to filter on the
+   * existence of a key.
+   * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+   * nesting (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum of 100
+   * comparisons or functions are allowed in the expression. The expression
+   * must be < 3000 bytes in length.
+   * Sample Query:
+   * `(LOWER(driving_license)="class \"a\"" OR EMPTY(driving_license)) AND
+   * driving_years > 10`
+   * 
+ * + * string custom_attribute_filter = 8; + */ + public java.lang.String getCustomAttributeFilter() { + java.lang.Object ref = customAttributeFilter_; + 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(); + customAttributeFilter_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * This filter specifies a structured syntax to match against the
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+   * marked as `filterable`.
+   * The syntax for this expression is a subset of SQL syntax.
+   * Supported operators are: `=`, `!=`, `<`, `<=`, `>`, and `>=` where the
+   * left of the operator is a custom field key and the right of the operator
+   * is a number or a quoted string. You must escape backslash (\\) and
+   * quote (\") characters.
+   * Supported functions are `LOWER([field_name])` to
+   * perform a case insensitive match and `EMPTY([field_name])` to filter on the
+   * existence of a key.
+   * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+   * nesting (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum of 100
+   * comparisons or functions are allowed in the expression. The expression
+   * must be < 3000 bytes in length.
+   * Sample Query:
+   * `(LOWER(driving_license)="class \"a\"" OR EMPTY(driving_license)) AND
+   * driving_years > 10`
+   * 
+ * + * string custom_attribute_filter = 8; + */ + public com.google.protobuf.ByteString getCustomAttributeFilterBytes() { + java.lang.Object ref = customAttributeFilter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customAttributeFilter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISABLE_SPELL_CHECK_FIELD_NUMBER = 9; + private boolean disableSpellCheck_; + /** + * + * + *
+   * Optional.
+   * This flag controls the spell-check feature. If false, the
+   * service attempts to correct a misspelled query,
+   * for example, "enginee" is corrected to "engineer".
+   * Defaults to false: a spell check is performed.
+   * 
+ * + * bool disable_spell_check = 9; + */ + public boolean getDisableSpellCheck() { + return disableSpellCheck_; + } + + public static final int EMPLOYMENT_TYPES_FIELD_NUMBER = 10; + private java.util.List employmentTypes_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.talent.v4beta1.EmploymentType> + employmentTypes_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.talent.v4beta1.EmploymentType>() { + public com.google.cloud.talent.v4beta1.EmploymentType convert(java.lang.Integer from) { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.EmploymentType result = + com.google.cloud.talent.v4beta1.EmploymentType.valueOf(from); + return result == null + ? com.google.cloud.talent.v4beta1.EmploymentType.UNRECOGNIZED + : result; + } + }; + /** + * + * + *
+   * Optional.
+   * The employment type filter specifies the employment type of jobs to
+   * search against, such as
+   * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+   * If a value isn't specified, jobs in the search results includes any
+   * employment type.
+   * If multiple values are specified, jobs in the search results include
+   * any of the specified employment types.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + public java.util.List getEmploymentTypesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.talent.v4beta1.EmploymentType>( + employmentTypes_, employmentTypes_converter_); + } + /** + * + * + *
+   * Optional.
+   * The employment type filter specifies the employment type of jobs to
+   * search against, such as
+   * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+   * If a value isn't specified, jobs in the search results includes any
+   * employment type.
+   * If multiple values are specified, jobs in the search results include
+   * any of the specified employment types.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + public int getEmploymentTypesCount() { + return employmentTypes_.size(); + } + /** + * + * + *
+   * Optional.
+   * The employment type filter specifies the employment type of jobs to
+   * search against, such as
+   * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+   * If a value isn't specified, jobs in the search results includes any
+   * employment type.
+   * If multiple values are specified, jobs in the search results include
+   * any of the specified employment types.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + public com.google.cloud.talent.v4beta1.EmploymentType getEmploymentTypes(int index) { + return employmentTypes_converter_.convert(employmentTypes_.get(index)); + } + /** + * + * + *
+   * Optional.
+   * The employment type filter specifies the employment type of jobs to
+   * search against, such as
+   * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+   * If a value isn't specified, jobs in the search results includes any
+   * employment type.
+   * If multiple values are specified, jobs in the search results include
+   * any of the specified employment types.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + public java.util.List getEmploymentTypesValueList() { + return employmentTypes_; + } + /** + * + * + *
+   * Optional.
+   * The employment type filter specifies the employment type of jobs to
+   * search against, such as
+   * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+   * If a value isn't specified, jobs in the search results includes any
+   * employment type.
+   * If multiple values are specified, jobs in the search results include
+   * any of the specified employment types.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + public int getEmploymentTypesValue(int index) { + return employmentTypes_.get(index); + } + + private int employmentTypesMemoizedSerializedSize; + + public static final int LANGUAGE_CODES_FIELD_NUMBER = 11; + private com.google.protobuf.LazyStringList languageCodes_; + /** + * + * + *
+   * Optional.
+   * This filter specifies the locale of jobs to search against,
+   * for example, "en-US".
+   * If a value isn't specified, the search results can contain jobs in any
+   * locale.
+   * Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * At most 10 language code filters are allowed.
+   * 
+ * + * repeated string language_codes = 11; + */ + public com.google.protobuf.ProtocolStringList getLanguageCodesList() { + return languageCodes_; + } + /** + * + * + *
+   * Optional.
+   * This filter specifies the locale of jobs to search against,
+   * for example, "en-US".
+   * If a value isn't specified, the search results can contain jobs in any
+   * locale.
+   * Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * At most 10 language code filters are allowed.
+   * 
+ * + * repeated string language_codes = 11; + */ + public int getLanguageCodesCount() { + return languageCodes_.size(); + } + /** + * + * + *
+   * Optional.
+   * This filter specifies the locale of jobs to search against,
+   * for example, "en-US".
+   * If a value isn't specified, the search results can contain jobs in any
+   * locale.
+   * Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * At most 10 language code filters are allowed.
+   * 
+ * + * repeated string language_codes = 11; + */ + public java.lang.String getLanguageCodes(int index) { + return languageCodes_.get(index); + } + /** + * + * + *
+   * Optional.
+   * This filter specifies the locale of jobs to search against,
+   * for example, "en-US".
+   * If a value isn't specified, the search results can contain jobs in any
+   * locale.
+   * Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * At most 10 language code filters are allowed.
+   * 
+ * + * repeated string language_codes = 11; + */ + public com.google.protobuf.ByteString getLanguageCodesBytes(int index) { + return languageCodes_.getByteString(index); + } + + public static final int PUBLISH_TIME_RANGE_FIELD_NUMBER = 12; + private com.google.cloud.talent.v4beta1.TimestampRange publishTimeRange_; + /** + * + * + *
+   * Optional.
+   * Jobs published within a range specified by this filter are searched
+   * against.
+   * 
+ * + * .google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12; + */ + public boolean hasPublishTimeRange() { + return publishTimeRange_ != null; + } + /** + * + * + *
+   * Optional.
+   * Jobs published within a range specified by this filter are searched
+   * against.
+   * 
+ * + * .google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12; + */ + public com.google.cloud.talent.v4beta1.TimestampRange getPublishTimeRange() { + return publishTimeRange_ == null + ? com.google.cloud.talent.v4beta1.TimestampRange.getDefaultInstance() + : publishTimeRange_; + } + /** + * + * + *
+   * Optional.
+   * Jobs published within a range specified by this filter are searched
+   * against.
+   * 
+ * + * .google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12; + */ + public com.google.cloud.talent.v4beta1.TimestampRangeOrBuilder getPublishTimeRangeOrBuilder() { + return getPublishTimeRange(); + } + + public static final int EXCLUDED_JOBS_FIELD_NUMBER = 13; + private com.google.protobuf.LazyStringList excludedJobs_; + /** + * + * + *
+   * Optional.
+   * This filter specifies a list of job names to be excluded during search.
+   * At most 200 excluded job names are allowed.
+   * 
+ * + * repeated string excluded_jobs = 13; + */ + public com.google.protobuf.ProtocolStringList getExcludedJobsList() { + return excludedJobs_; + } + /** + * + * + *
+   * Optional.
+   * This filter specifies a list of job names to be excluded during search.
+   * At most 200 excluded job names are allowed.
+   * 
+ * + * repeated string excluded_jobs = 13; + */ + public int getExcludedJobsCount() { + return excludedJobs_.size(); + } + /** + * + * + *
+   * Optional.
+   * This filter specifies a list of job names to be excluded during search.
+   * At most 200 excluded job names are allowed.
+   * 
+ * + * repeated string excluded_jobs = 13; + */ + public java.lang.String getExcludedJobs(int index) { + return excludedJobs_.get(index); + } + /** + * + * + *
+   * Optional.
+   * This filter specifies a list of job names to be excluded during search.
+   * At most 200 excluded job names are allowed.
+   * 
+ * + * repeated string excluded_jobs = 13; + */ + public com.google.protobuf.ByteString getExcludedJobsBytes(int index) { + return excludedJobs_.getByteString(index); + } + + 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 { + getSerializedSize(); + if (!getQueryBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); + } + for (int i = 0; i < companyNames_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, companyNames_.getRaw(i)); + } + for (int i = 0; i < locationFilters_.size(); i++) { + output.writeMessage(3, locationFilters_.get(i)); + } + if (getJobCategoriesList().size() > 0) { + output.writeUInt32NoTag(34); + output.writeUInt32NoTag(jobCategoriesMemoizedSerializedSize); + } + for (int i = 0; i < jobCategories_.size(); i++) { + output.writeEnumNoTag(jobCategories_.get(i)); + } + if (commuteFilter_ != null) { + output.writeMessage(5, getCommuteFilter()); + } + for (int i = 0; i < companyDisplayNames_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, companyDisplayNames_.getRaw(i)); + } + if (compensationFilter_ != null) { + output.writeMessage(7, getCompensationFilter()); + } + if (!getCustomAttributeFilterBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, customAttributeFilter_); + } + if (disableSpellCheck_ != false) { + output.writeBool(9, disableSpellCheck_); + } + if (getEmploymentTypesList().size() > 0) { + output.writeUInt32NoTag(82); + output.writeUInt32NoTag(employmentTypesMemoizedSerializedSize); + } + for (int i = 0; i < employmentTypes_.size(); i++) { + output.writeEnumNoTag(employmentTypes_.get(i)); + } + for (int i = 0; i < languageCodes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, languageCodes_.getRaw(i)); + } + if (publishTimeRange_ != null) { + output.writeMessage(12, getPublishTimeRange()); + } + for (int i = 0; i < excludedJobs_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, excludedJobs_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getQueryBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); + } + { + int dataSize = 0; + for (int i = 0; i < companyNames_.size(); i++) { + dataSize += computeStringSizeNoTag(companyNames_.getRaw(i)); + } + size += dataSize; + size += 1 * getCompanyNamesList().size(); + } + for (int i = 0; i < locationFilters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, locationFilters_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < jobCategories_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(jobCategories_.get(i)); + } + size += dataSize; + if (!getJobCategoriesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + jobCategoriesMemoizedSerializedSize = dataSize; + } + if (commuteFilter_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCommuteFilter()); + } + { + int dataSize = 0; + for (int i = 0; i < companyDisplayNames_.size(); i++) { + dataSize += computeStringSizeNoTag(companyDisplayNames_.getRaw(i)); + } + size += dataSize; + size += 1 * getCompanyDisplayNamesList().size(); + } + if (compensationFilter_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCompensationFilter()); + } + if (!getCustomAttributeFilterBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, customAttributeFilter_); + } + if (disableSpellCheck_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, disableSpellCheck_); + } + { + int dataSize = 0; + for (int i = 0; i < employmentTypes_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(employmentTypes_.get(i)); + } + size += dataSize; + if (!getEmploymentTypesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + employmentTypesMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + for (int i = 0; i < languageCodes_.size(); i++) { + dataSize += computeStringSizeNoTag(languageCodes_.getRaw(i)); + } + size += dataSize; + size += 1 * getLanguageCodesList().size(); + } + if (publishTimeRange_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getPublishTimeRange()); + } + { + int dataSize = 0; + for (int i = 0; i < excludedJobs_.size(); i++) { + dataSize += computeStringSizeNoTag(excludedJobs_.getRaw(i)); + } + size += dataSize; + size += 1 * getExcludedJobsList().size(); + } + size += unknownFields.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.cloud.talent.v4beta1.JobQuery)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.JobQuery other = (com.google.cloud.talent.v4beta1.JobQuery) obj; + + boolean result = true; + result = result && getQuery().equals(other.getQuery()); + result = result && getCompanyNamesList().equals(other.getCompanyNamesList()); + result = result && getLocationFiltersList().equals(other.getLocationFiltersList()); + result = result && jobCategories_.equals(other.jobCategories_); + result = result && (hasCommuteFilter() == other.hasCommuteFilter()); + if (hasCommuteFilter()) { + result = result && getCommuteFilter().equals(other.getCommuteFilter()); + } + result = result && getCompanyDisplayNamesList().equals(other.getCompanyDisplayNamesList()); + result = result && (hasCompensationFilter() == other.hasCompensationFilter()); + if (hasCompensationFilter()) { + result = result && getCompensationFilter().equals(other.getCompensationFilter()); + } + result = result && getCustomAttributeFilter().equals(other.getCustomAttributeFilter()); + result = result && (getDisableSpellCheck() == other.getDisableSpellCheck()); + result = result && employmentTypes_.equals(other.employmentTypes_); + result = result && getLanguageCodesList().equals(other.getLanguageCodesList()); + result = result && (hasPublishTimeRange() == other.hasPublishTimeRange()); + if (hasPublishTimeRange()) { + result = result && getPublishTimeRange().equals(other.getPublishTimeRange()); + } + result = result && getExcludedJobsList().equals(other.getExcludedJobsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + if (getCompanyNamesCount() > 0) { + hash = (37 * hash) + COMPANY_NAMES_FIELD_NUMBER; + hash = (53 * hash) + getCompanyNamesList().hashCode(); + } + if (getLocationFiltersCount() > 0) { + hash = (37 * hash) + LOCATION_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getLocationFiltersList().hashCode(); + } + if (getJobCategoriesCount() > 0) { + hash = (37 * hash) + JOB_CATEGORIES_FIELD_NUMBER; + hash = (53 * hash) + jobCategories_.hashCode(); + } + if (hasCommuteFilter()) { + hash = (37 * hash) + COMMUTE_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getCommuteFilter().hashCode(); + } + if (getCompanyDisplayNamesCount() > 0) { + hash = (37 * hash) + COMPANY_DISPLAY_NAMES_FIELD_NUMBER; + hash = (53 * hash) + getCompanyDisplayNamesList().hashCode(); + } + if (hasCompensationFilter()) { + hash = (37 * hash) + COMPENSATION_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getCompensationFilter().hashCode(); + } + hash = (37 * hash) + CUSTOM_ATTRIBUTE_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getCustomAttributeFilter().hashCode(); + hash = (37 * hash) + DISABLE_SPELL_CHECK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableSpellCheck()); + if (getEmploymentTypesCount() > 0) { + hash = (37 * hash) + EMPLOYMENT_TYPES_FIELD_NUMBER; + hash = (53 * hash) + employmentTypes_.hashCode(); + } + if (getLanguageCodesCount() > 0) { + hash = (37 * hash) + LANGUAGE_CODES_FIELD_NUMBER; + hash = (53 * hash) + getLanguageCodesList().hashCode(); + } + if (hasPublishTimeRange()) { + hash = (37 * hash) + PUBLISH_TIME_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getPublishTimeRange().hashCode(); + } + if (getExcludedJobsCount() > 0) { + hash = (37 * hash) + EXCLUDED_JOBS_FIELD_NUMBER; + hash = (53 * hash) + getExcludedJobsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.JobQuery parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.JobQuery parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.JobQuery parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.JobQuery 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.cloud.talent.v4beta1.JobQuery parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.JobQuery parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.JobQuery parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.JobQuery 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.cloud.talent.v4beta1.JobQuery parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.JobQuery 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.cloud.talent.v4beta1.JobQuery parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.JobQuery 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.cloud.talent.v4beta1.JobQuery 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; + } + /** + * + * + *
+   * Input only.
+   * The query required to perform a search query.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.JobQuery} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.JobQuery) + com.google.cloud.talent.v4beta1.JobQueryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_JobQuery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_JobQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.JobQuery.class, + com.google.cloud.talent.v4beta1.JobQuery.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.JobQuery.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getLocationFiltersFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + query_ = ""; + + companyNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + if (locationFiltersBuilder_ == null) { + locationFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + locationFiltersBuilder_.clear(); + } + jobCategories_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + if (commuteFilterBuilder_ == null) { + commuteFilter_ = null; + } else { + commuteFilter_ = null; + commuteFilterBuilder_ = null; + } + companyDisplayNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000020); + if (compensationFilterBuilder_ == null) { + compensationFilter_ = null; + } else { + compensationFilter_ = null; + compensationFilterBuilder_ = null; + } + customAttributeFilter_ = ""; + + disableSpellCheck_ = false; + + employmentTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + languageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000400); + if (publishTimeRangeBuilder_ == null) { + publishTimeRange_ = null; + } else { + publishTimeRange_ = null; + publishTimeRangeBuilder_ = null; + } + excludedJobs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00001000); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_JobQuery_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.JobQuery getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.JobQuery.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.JobQuery build() { + com.google.cloud.talent.v4beta1.JobQuery result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.JobQuery buildPartial() { + com.google.cloud.talent.v4beta1.JobQuery result = + new com.google.cloud.talent.v4beta1.JobQuery(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.query_ = query_; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + companyNames_ = companyNames_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.companyNames_ = companyNames_; + if (locationFiltersBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + locationFilters_ = java.util.Collections.unmodifiableList(locationFilters_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.locationFilters_ = locationFilters_; + } else { + result.locationFilters_ = locationFiltersBuilder_.build(); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + jobCategories_ = java.util.Collections.unmodifiableList(jobCategories_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.jobCategories_ = jobCategories_; + if (commuteFilterBuilder_ == null) { + result.commuteFilter_ = commuteFilter_; + } else { + result.commuteFilter_ = commuteFilterBuilder_.build(); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + companyDisplayNames_ = companyDisplayNames_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.companyDisplayNames_ = companyDisplayNames_; + if (compensationFilterBuilder_ == null) { + result.compensationFilter_ = compensationFilter_; + } else { + result.compensationFilter_ = compensationFilterBuilder_.build(); + } + result.customAttributeFilter_ = customAttributeFilter_; + result.disableSpellCheck_ = disableSpellCheck_; + if (((bitField0_ & 0x00000200) == 0x00000200)) { + employmentTypes_ = java.util.Collections.unmodifiableList(employmentTypes_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.employmentTypes_ = employmentTypes_; + if (((bitField0_ & 0x00000400) == 0x00000400)) { + languageCodes_ = languageCodes_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.languageCodes_ = languageCodes_; + if (publishTimeRangeBuilder_ == null) { + result.publishTimeRange_ = publishTimeRange_; + } else { + result.publishTimeRange_ = publishTimeRangeBuilder_.build(); + } + if (((bitField0_ & 0x00001000) == 0x00001000)) { + excludedJobs_ = excludedJobs_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00001000); + } + result.excludedJobs_ = excludedJobs_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.JobQuery) { + return mergeFrom((com.google.cloud.talent.v4beta1.JobQuery) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.JobQuery other) { + if (other == com.google.cloud.talent.v4beta1.JobQuery.getDefaultInstance()) return this; + if (!other.getQuery().isEmpty()) { + query_ = other.query_; + onChanged(); + } + if (!other.companyNames_.isEmpty()) { + if (companyNames_.isEmpty()) { + companyNames_ = other.companyNames_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureCompanyNamesIsMutable(); + companyNames_.addAll(other.companyNames_); + } + onChanged(); + } + if (locationFiltersBuilder_ == null) { + if (!other.locationFilters_.isEmpty()) { + if (locationFilters_.isEmpty()) { + locationFilters_ = other.locationFilters_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureLocationFiltersIsMutable(); + locationFilters_.addAll(other.locationFilters_); + } + onChanged(); + } + } else { + if (!other.locationFilters_.isEmpty()) { + if (locationFiltersBuilder_.isEmpty()) { + locationFiltersBuilder_.dispose(); + locationFiltersBuilder_ = null; + locationFilters_ = other.locationFilters_; + bitField0_ = (bitField0_ & ~0x00000004); + locationFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLocationFiltersFieldBuilder() + : null; + } else { + locationFiltersBuilder_.addAllMessages(other.locationFilters_); + } + } + } + if (!other.jobCategories_.isEmpty()) { + if (jobCategories_.isEmpty()) { + jobCategories_ = other.jobCategories_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureJobCategoriesIsMutable(); + jobCategories_.addAll(other.jobCategories_); + } + onChanged(); + } + if (other.hasCommuteFilter()) { + mergeCommuteFilter(other.getCommuteFilter()); + } + if (!other.companyDisplayNames_.isEmpty()) { + if (companyDisplayNames_.isEmpty()) { + companyDisplayNames_ = other.companyDisplayNames_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureCompanyDisplayNamesIsMutable(); + companyDisplayNames_.addAll(other.companyDisplayNames_); + } + onChanged(); + } + if (other.hasCompensationFilter()) { + mergeCompensationFilter(other.getCompensationFilter()); + } + if (!other.getCustomAttributeFilter().isEmpty()) { + customAttributeFilter_ = other.customAttributeFilter_; + onChanged(); + } + if (other.getDisableSpellCheck() != false) { + setDisableSpellCheck(other.getDisableSpellCheck()); + } + if (!other.employmentTypes_.isEmpty()) { + if (employmentTypes_.isEmpty()) { + employmentTypes_ = other.employmentTypes_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureEmploymentTypesIsMutable(); + employmentTypes_.addAll(other.employmentTypes_); + } + onChanged(); + } + if (!other.languageCodes_.isEmpty()) { + if (languageCodes_.isEmpty()) { + languageCodes_ = other.languageCodes_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureLanguageCodesIsMutable(); + languageCodes_.addAll(other.languageCodes_); + } + onChanged(); + } + if (other.hasPublishTimeRange()) { + mergePublishTimeRange(other.getPublishTimeRange()); + } + if (!other.excludedJobs_.isEmpty()) { + if (excludedJobs_.isEmpty()) { + excludedJobs_ = other.excludedJobs_; + bitField0_ = (bitField0_ & ~0x00001000); + } else { + ensureExcludedJobsIsMutable(); + excludedJobs_.addAll(other.excludedJobs_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.JobQuery parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.JobQuery) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object query_ = ""; + /** + * + * + *
+     * Optional.
+     * The query string that matches against the job title, description, and
+     * location fields.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string query = 1; + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The query string that matches against the job title, description, and
+     * location fields.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string query = 1; + */ + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The query string that matches against the job title, description, and
+     * location fields.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string query = 1; + */ + public Builder setQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + query_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The query string that matches against the job title, description, and
+     * location fields.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string query = 1; + */ + public Builder clearQuery() { + + query_ = getDefaultInstance().getQuery(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The query string that matches against the job title, description, and
+     * location fields.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string query = 1; + */ + public Builder setQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + query_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList companyNames_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureCompanyNamesIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + companyNames_ = new com.google.protobuf.LazyStringArrayList(companyNames_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the company entities to search against.
+     * If a value isn't specified, jobs are searched for against all
+     * companies.
+     * If multiple values are specified, jobs are searched against the
+     * companies specified.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * At most 20 company filters are allowed.
+     * 
+ * + * repeated string company_names = 2; + */ + public com.google.protobuf.ProtocolStringList getCompanyNamesList() { + return companyNames_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the company entities to search against.
+     * If a value isn't specified, jobs are searched for against all
+     * companies.
+     * If multiple values are specified, jobs are searched against the
+     * companies specified.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * At most 20 company filters are allowed.
+     * 
+ * + * repeated string company_names = 2; + */ + public int getCompanyNamesCount() { + return companyNames_.size(); + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the company entities to search against.
+     * If a value isn't specified, jobs are searched for against all
+     * companies.
+     * If multiple values are specified, jobs are searched against the
+     * companies specified.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * At most 20 company filters are allowed.
+     * 
+ * + * repeated string company_names = 2; + */ + public java.lang.String getCompanyNames(int index) { + return companyNames_.get(index); + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the company entities to search against.
+     * If a value isn't specified, jobs are searched for against all
+     * companies.
+     * If multiple values are specified, jobs are searched against the
+     * companies specified.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * At most 20 company filters are allowed.
+     * 
+ * + * repeated string company_names = 2; + */ + public com.google.protobuf.ByteString getCompanyNamesBytes(int index) { + return companyNames_.getByteString(index); + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the company entities to search against.
+     * If a value isn't specified, jobs are searched for against all
+     * companies.
+     * If multiple values are specified, jobs are searched against the
+     * companies specified.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * At most 20 company filters are allowed.
+     * 
+ * + * repeated string company_names = 2; + */ + public Builder setCompanyNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCompanyNamesIsMutable(); + companyNames_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the company entities to search against.
+     * If a value isn't specified, jobs are searched for against all
+     * companies.
+     * If multiple values are specified, jobs are searched against the
+     * companies specified.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * At most 20 company filters are allowed.
+     * 
+ * + * repeated string company_names = 2; + */ + public Builder addCompanyNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCompanyNamesIsMutable(); + companyNames_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the company entities to search against.
+     * If a value isn't specified, jobs are searched for against all
+     * companies.
+     * If multiple values are specified, jobs are searched against the
+     * companies specified.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * At most 20 company filters are allowed.
+     * 
+ * + * repeated string company_names = 2; + */ + public Builder addAllCompanyNames(java.lang.Iterable values) { + ensureCompanyNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, companyNames_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the company entities to search against.
+     * If a value isn't specified, jobs are searched for against all
+     * companies.
+     * If multiple values are specified, jobs are searched against the
+     * companies specified.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * At most 20 company filters are allowed.
+     * 
+ * + * repeated string company_names = 2; + */ + public Builder clearCompanyNames() { + companyNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the company entities to search against.
+     * If a value isn't specified, jobs are searched for against all
+     * companies.
+     * If multiple values are specified, jobs are searched against the
+     * companies specified.
+     * The format is "projects/{project_id}/companies/{company_id}", for example,
+     * "projects/api-test-project/companies/foo".
+     * At most 20 company filters are allowed.
+     * 
+ * + * repeated string company_names = 2; + */ + public Builder addCompanyNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureCompanyNamesIsMutable(); + companyNames_.add(value); + onChanged(); + return this; + } + + private java.util.List locationFilters_ = + java.util.Collections.emptyList(); + + private void ensureLocationFiltersIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + locationFilters_ = + new java.util.ArrayList( + locationFilters_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.LocationFilter, + com.google.cloud.talent.v4beta1.LocationFilter.Builder, + com.google.cloud.talent.v4beta1.LocationFilterOrBuilder> + locationFiltersBuilder_; + + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public java.util.List getLocationFiltersList() { + if (locationFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(locationFilters_); + } else { + return locationFiltersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public int getLocationFiltersCount() { + if (locationFiltersBuilder_ == null) { + return locationFilters_.size(); + } else { + return locationFiltersBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public com.google.cloud.talent.v4beta1.LocationFilter getLocationFilters(int index) { + if (locationFiltersBuilder_ == null) { + return locationFilters_.get(index); + } else { + return locationFiltersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public Builder setLocationFilters( + int index, com.google.cloud.talent.v4beta1.LocationFilter value) { + if (locationFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationFiltersIsMutable(); + locationFilters_.set(index, value); + onChanged(); + } else { + locationFiltersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public Builder setLocationFilters( + int index, com.google.cloud.talent.v4beta1.LocationFilter.Builder builderForValue) { + if (locationFiltersBuilder_ == null) { + ensureLocationFiltersIsMutable(); + locationFilters_.set(index, builderForValue.build()); + onChanged(); + } else { + locationFiltersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public Builder addLocationFilters(com.google.cloud.talent.v4beta1.LocationFilter value) { + if (locationFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationFiltersIsMutable(); + locationFilters_.add(value); + onChanged(); + } else { + locationFiltersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public Builder addLocationFilters( + int index, com.google.cloud.talent.v4beta1.LocationFilter value) { + if (locationFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationFiltersIsMutable(); + locationFilters_.add(index, value); + onChanged(); + } else { + locationFiltersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public Builder addLocationFilters( + com.google.cloud.talent.v4beta1.LocationFilter.Builder builderForValue) { + if (locationFiltersBuilder_ == null) { + ensureLocationFiltersIsMutable(); + locationFilters_.add(builderForValue.build()); + onChanged(); + } else { + locationFiltersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public Builder addLocationFilters( + int index, com.google.cloud.talent.v4beta1.LocationFilter.Builder builderForValue) { + if (locationFiltersBuilder_ == null) { + ensureLocationFiltersIsMutable(); + locationFilters_.add(index, builderForValue.build()); + onChanged(); + } else { + locationFiltersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public Builder addAllLocationFilters( + java.lang.Iterable values) { + if (locationFiltersBuilder_ == null) { + ensureLocationFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locationFilters_); + onChanged(); + } else { + locationFiltersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public Builder clearLocationFilters() { + if (locationFiltersBuilder_ == null) { + locationFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + locationFiltersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public Builder removeLocationFilters(int index) { + if (locationFiltersBuilder_ == null) { + ensureLocationFiltersIsMutable(); + locationFilters_.remove(index); + onChanged(); + } else { + locationFiltersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public com.google.cloud.talent.v4beta1.LocationFilter.Builder getLocationFiltersBuilder( + int index) { + return getLocationFiltersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public com.google.cloud.talent.v4beta1.LocationFilterOrBuilder getLocationFiltersOrBuilder( + int index) { + if (locationFiltersBuilder_ == null) { + return locationFilters_.get(index); + } else { + return locationFiltersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public java.util.List + getLocationFiltersOrBuilderList() { + if (locationFiltersBuilder_ != null) { + return locationFiltersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(locationFilters_); + } + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public com.google.cloud.talent.v4beta1.LocationFilter.Builder addLocationFiltersBuilder() { + return getLocationFiltersFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.LocationFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public com.google.cloud.talent.v4beta1.LocationFilter.Builder addLocationFiltersBuilder( + int index) { + return getLocationFiltersFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.LocationFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the jobs to
+     * search against. See
+     * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+     * information.
+     * If a location value isn't specified, jobs fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If multiple values are specified, jobs are retrieved from any of the
+     * specified locations. If different values are specified for the
+     * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+     * parameter, the maximum provided distance is used for all locations.
+     * At most 5 location filters are allowed.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + public java.util.List + getLocationFiltersBuilderList() { + return getLocationFiltersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.LocationFilter, + com.google.cloud.talent.v4beta1.LocationFilter.Builder, + com.google.cloud.talent.v4beta1.LocationFilterOrBuilder> + getLocationFiltersFieldBuilder() { + if (locationFiltersBuilder_ == null) { + locationFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.LocationFilter, + com.google.cloud.talent.v4beta1.LocationFilter.Builder, + com.google.cloud.talent.v4beta1.LocationFilterOrBuilder>( + locationFilters_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + locationFilters_ = null; + } + return locationFiltersBuilder_; + } + + private java.util.List jobCategories_ = java.util.Collections.emptyList(); + + private void ensureJobCategoriesIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + jobCategories_ = new java.util.ArrayList(jobCategories_); + bitField0_ |= 0x00000008; + } + } + /** + * + * + *
+     * Optional.
+     * The category filter specifies the categories of jobs to search against.
+     * See [Category][] for more information.
+     * If a value isn't specified, jobs from any category are searched against.
+     * If multiple values are specified, jobs from any of the specified
+     * categories are searched against.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + public java.util.List getJobCategoriesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.talent.v4beta1.JobCategory>( + jobCategories_, jobCategories_converter_); + } + /** + * + * + *
+     * Optional.
+     * The category filter specifies the categories of jobs to search against.
+     * See [Category][] for more information.
+     * If a value isn't specified, jobs from any category are searched against.
+     * If multiple values are specified, jobs from any of the specified
+     * categories are searched against.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + public int getJobCategoriesCount() { + return jobCategories_.size(); + } + /** + * + * + *
+     * Optional.
+     * The category filter specifies the categories of jobs to search against.
+     * See [Category][] for more information.
+     * If a value isn't specified, jobs from any category are searched against.
+     * If multiple values are specified, jobs from any of the specified
+     * categories are searched against.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + public com.google.cloud.talent.v4beta1.JobCategory getJobCategories(int index) { + return jobCategories_converter_.convert(jobCategories_.get(index)); + } + /** + * + * + *
+     * Optional.
+     * The category filter specifies the categories of jobs to search against.
+     * See [Category][] for more information.
+     * If a value isn't specified, jobs from any category are searched against.
+     * If multiple values are specified, jobs from any of the specified
+     * categories are searched against.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + public Builder setJobCategories(int index, com.google.cloud.talent.v4beta1.JobCategory value) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobCategoriesIsMutable(); + jobCategories_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The category filter specifies the categories of jobs to search against.
+     * See [Category][] for more information.
+     * If a value isn't specified, jobs from any category are searched against.
+     * If multiple values are specified, jobs from any of the specified
+     * categories are searched against.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + public Builder addJobCategories(com.google.cloud.talent.v4beta1.JobCategory value) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobCategoriesIsMutable(); + jobCategories_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The category filter specifies the categories of jobs to search against.
+     * See [Category][] for more information.
+     * If a value isn't specified, jobs from any category are searched against.
+     * If multiple values are specified, jobs from any of the specified
+     * categories are searched against.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + public Builder addAllJobCategories( + java.lang.Iterable values) { + ensureJobCategoriesIsMutable(); + for (com.google.cloud.talent.v4beta1.JobCategory value : values) { + jobCategories_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The category filter specifies the categories of jobs to search against.
+     * See [Category][] for more information.
+     * If a value isn't specified, jobs from any category are searched against.
+     * If multiple values are specified, jobs from any of the specified
+     * categories are searched against.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + public Builder clearJobCategories() { + jobCategories_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The category filter specifies the categories of jobs to search against.
+     * See [Category][] for more information.
+     * If a value isn't specified, jobs from any category are searched against.
+     * If multiple values are specified, jobs from any of the specified
+     * categories are searched against.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + public java.util.List getJobCategoriesValueList() { + return java.util.Collections.unmodifiableList(jobCategories_); + } + /** + * + * + *
+     * Optional.
+     * The category filter specifies the categories of jobs to search against.
+     * See [Category][] for more information.
+     * If a value isn't specified, jobs from any category are searched against.
+     * If multiple values are specified, jobs from any of the specified
+     * categories are searched against.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + public int getJobCategoriesValue(int index) { + return jobCategories_.get(index); + } + /** + * + * + *
+     * Optional.
+     * The category filter specifies the categories of jobs to search against.
+     * See [Category][] for more information.
+     * If a value isn't specified, jobs from any category are searched against.
+     * If multiple values are specified, jobs from any of the specified
+     * categories are searched against.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + public Builder setJobCategoriesValue(int index, int value) { + ensureJobCategoriesIsMutable(); + jobCategories_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The category filter specifies the categories of jobs to search against.
+     * See [Category][] for more information.
+     * If a value isn't specified, jobs from any category are searched against.
+     * If multiple values are specified, jobs from any of the specified
+     * categories are searched against.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + public Builder addJobCategoriesValue(int value) { + ensureJobCategoriesIsMutable(); + jobCategories_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The category filter specifies the categories of jobs to search against.
+     * See [Category][] for more information.
+     * If a value isn't specified, jobs from any category are searched against.
+     * If multiple values are specified, jobs from any of the specified
+     * categories are searched against.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + public Builder addAllJobCategoriesValue(java.lang.Iterable values) { + ensureJobCategoriesIsMutable(); + for (int value : values) { + jobCategories_.add(value); + } + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.CommuteFilter commuteFilter_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CommuteFilter, + com.google.cloud.talent.v4beta1.CommuteFilter.Builder, + com.google.cloud.talent.v4beta1.CommuteFilterOrBuilder> + commuteFilterBuilder_; + /** + * + * + *
+     * Optional.
+     *  Allows filtering jobs by commute time with different travel methods (for
+     *  example, driving or public transit). Note: This only works with [COMMUTE
+     *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
+     *  ignored.
+     *  Currently we don't support sorting by commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5; + */ + public boolean hasCommuteFilter() { + return commuteFilterBuilder_ != null || commuteFilter_ != null; + } + /** + * + * + *
+     * Optional.
+     *  Allows filtering jobs by commute time with different travel methods (for
+     *  example, driving or public transit). Note: This only works with [COMMUTE
+     *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
+     *  ignored.
+     *  Currently we don't support sorting by commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5; + */ + public com.google.cloud.talent.v4beta1.CommuteFilter getCommuteFilter() { + if (commuteFilterBuilder_ == null) { + return commuteFilter_ == null + ? com.google.cloud.talent.v4beta1.CommuteFilter.getDefaultInstance() + : commuteFilter_; + } else { + return commuteFilterBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     *  Allows filtering jobs by commute time with different travel methods (for
+     *  example, driving or public transit). Note: This only works with [COMMUTE
+     *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
+     *  ignored.
+     *  Currently we don't support sorting by commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5; + */ + public Builder setCommuteFilter(com.google.cloud.talent.v4beta1.CommuteFilter value) { + if (commuteFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + commuteFilter_ = value; + onChanged(); + } else { + commuteFilterBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     *  Allows filtering jobs by commute time with different travel methods (for
+     *  example, driving or public transit). Note: This only works with [COMMUTE
+     *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
+     *  ignored.
+     *  Currently we don't support sorting by commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5; + */ + public Builder setCommuteFilter( + com.google.cloud.talent.v4beta1.CommuteFilter.Builder builderForValue) { + if (commuteFilterBuilder_ == null) { + commuteFilter_ = builderForValue.build(); + onChanged(); + } else { + commuteFilterBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     *  Allows filtering jobs by commute time with different travel methods (for
+     *  example, driving or public transit). Note: This only works with [COMMUTE
+     *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
+     *  ignored.
+     *  Currently we don't support sorting by commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5; + */ + public Builder mergeCommuteFilter(com.google.cloud.talent.v4beta1.CommuteFilter value) { + if (commuteFilterBuilder_ == null) { + if (commuteFilter_ != null) { + commuteFilter_ = + com.google.cloud.talent.v4beta1.CommuteFilter.newBuilder(commuteFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + commuteFilter_ = value; + } + onChanged(); + } else { + commuteFilterBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     *  Allows filtering jobs by commute time with different travel methods (for
+     *  example, driving or public transit). Note: This only works with [COMMUTE
+     *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
+     *  ignored.
+     *  Currently we don't support sorting by commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5; + */ + public Builder clearCommuteFilter() { + if (commuteFilterBuilder_ == null) { + commuteFilter_ = null; + onChanged(); + } else { + commuteFilter_ = null; + commuteFilterBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     *  Allows filtering jobs by commute time with different travel methods (for
+     *  example, driving or public transit). Note: This only works with [COMMUTE
+     *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
+     *  ignored.
+     *  Currently we don't support sorting by commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5; + */ + public com.google.cloud.talent.v4beta1.CommuteFilter.Builder getCommuteFilterBuilder() { + + onChanged(); + return getCommuteFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     *  Allows filtering jobs by commute time with different travel methods (for
+     *  example, driving or public transit). Note: This only works with [COMMUTE
+     *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
+     *  ignored.
+     *  Currently we don't support sorting by commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5; + */ + public com.google.cloud.talent.v4beta1.CommuteFilterOrBuilder getCommuteFilterOrBuilder() { + if (commuteFilterBuilder_ != null) { + return commuteFilterBuilder_.getMessageOrBuilder(); + } else { + return commuteFilter_ == null + ? com.google.cloud.talent.v4beta1.CommuteFilter.getDefaultInstance() + : commuteFilter_; + } + } + /** + * + * + *
+     * Optional.
+     *  Allows filtering jobs by commute time with different travel methods (for
+     *  example, driving or public transit). Note: This only works with [COMMUTE
+     *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
+     *  ignored.
+     *  Currently we don't support sorting by commute time.
+     * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CommuteFilter, + com.google.cloud.talent.v4beta1.CommuteFilter.Builder, + com.google.cloud.talent.v4beta1.CommuteFilterOrBuilder> + getCommuteFilterFieldBuilder() { + if (commuteFilterBuilder_ == null) { + commuteFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CommuteFilter, + com.google.cloud.talent.v4beta1.CommuteFilter.Builder, + com.google.cloud.talent.v4beta1.CommuteFilterOrBuilder>( + getCommuteFilter(), getParentForChildren(), isClean()); + commuteFilter_ = null; + } + return commuteFilterBuilder_; + } + + private com.google.protobuf.LazyStringList companyDisplayNames_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureCompanyDisplayNamesIsMutable() { + if (!((bitField0_ & 0x00000020) == 0x00000020)) { + companyDisplayNames_ = new com.google.protobuf.LazyStringArrayList(companyDisplayNames_); + bitField0_ |= 0x00000020; + } + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the exact [company display
+     * name][Company.display_name] of the jobs to search against.
+     * If a value isn't specified, jobs within the search results are
+     * associated with any company.
+     * If multiple values are specified, jobs within the search results may be
+     * associated with any of the specified companies.
+     * At most 20 company display name filters are allowed.
+     * 
+ * + * repeated string company_display_names = 6; + */ + public com.google.protobuf.ProtocolStringList getCompanyDisplayNamesList() { + return companyDisplayNames_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the exact [company display
+     * name][Company.display_name] of the jobs to search against.
+     * If a value isn't specified, jobs within the search results are
+     * associated with any company.
+     * If multiple values are specified, jobs within the search results may be
+     * associated with any of the specified companies.
+     * At most 20 company display name filters are allowed.
+     * 
+ * + * repeated string company_display_names = 6; + */ + public int getCompanyDisplayNamesCount() { + return companyDisplayNames_.size(); + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the exact [company display
+     * name][Company.display_name] of the jobs to search against.
+     * If a value isn't specified, jobs within the search results are
+     * associated with any company.
+     * If multiple values are specified, jobs within the search results may be
+     * associated with any of the specified companies.
+     * At most 20 company display name filters are allowed.
+     * 
+ * + * repeated string company_display_names = 6; + */ + public java.lang.String getCompanyDisplayNames(int index) { + return companyDisplayNames_.get(index); + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the exact [company display
+     * name][Company.display_name] of the jobs to search against.
+     * If a value isn't specified, jobs within the search results are
+     * associated with any company.
+     * If multiple values are specified, jobs within the search results may be
+     * associated with any of the specified companies.
+     * At most 20 company display name filters are allowed.
+     * 
+ * + * repeated string company_display_names = 6; + */ + public com.google.protobuf.ByteString getCompanyDisplayNamesBytes(int index) { + return companyDisplayNames_.getByteString(index); + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the exact [company display
+     * name][Company.display_name] of the jobs to search against.
+     * If a value isn't specified, jobs within the search results are
+     * associated with any company.
+     * If multiple values are specified, jobs within the search results may be
+     * associated with any of the specified companies.
+     * At most 20 company display name filters are allowed.
+     * 
+ * + * repeated string company_display_names = 6; + */ + public Builder setCompanyDisplayNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCompanyDisplayNamesIsMutable(); + companyDisplayNames_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the exact [company display
+     * name][Company.display_name] of the jobs to search against.
+     * If a value isn't specified, jobs within the search results are
+     * associated with any company.
+     * If multiple values are specified, jobs within the search results may be
+     * associated with any of the specified companies.
+     * At most 20 company display name filters are allowed.
+     * 
+ * + * repeated string company_display_names = 6; + */ + public Builder addCompanyDisplayNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCompanyDisplayNamesIsMutable(); + companyDisplayNames_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the exact [company display
+     * name][Company.display_name] of the jobs to search against.
+     * If a value isn't specified, jobs within the search results are
+     * associated with any company.
+     * If multiple values are specified, jobs within the search results may be
+     * associated with any of the specified companies.
+     * At most 20 company display name filters are allowed.
+     * 
+ * + * repeated string company_display_names = 6; + */ + public Builder addAllCompanyDisplayNames(java.lang.Iterable values) { + ensureCompanyDisplayNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, companyDisplayNames_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the exact [company display
+     * name][Company.display_name] of the jobs to search against.
+     * If a value isn't specified, jobs within the search results are
+     * associated with any company.
+     * If multiple values are specified, jobs within the search results may be
+     * associated with any of the specified companies.
+     * At most 20 company display name filters are allowed.
+     * 
+ * + * repeated string company_display_names = 6; + */ + public Builder clearCompanyDisplayNames() { + companyDisplayNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the exact [company display
+     * name][Company.display_name] of the jobs to search against.
+     * If a value isn't specified, jobs within the search results are
+     * associated with any company.
+     * If multiple values are specified, jobs within the search results may be
+     * associated with any of the specified companies.
+     * At most 20 company display name filters are allowed.
+     * 
+ * + * repeated string company_display_names = 6; + */ + public Builder addCompanyDisplayNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureCompanyDisplayNamesIsMutable(); + companyDisplayNames_.add(value); + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.CompensationFilter compensationFilter_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationFilter, + com.google.cloud.talent.v4beta1.CompensationFilter.Builder, + com.google.cloud.talent.v4beta1.CompensationFilterOrBuilder> + compensationFilterBuilder_; + /** + * + * + *
+     * Optional.
+     * This search filter is applied only to
+     * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
+     * For example, if the filter is specified as "Hourly job with per-hour
+     * compensation > $15", only jobs meeting these criteria are searched. If a
+     * filter isn't defined, all open jobs are searched.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7; + */ + public boolean hasCompensationFilter() { + return compensationFilterBuilder_ != null || compensationFilter_ != null; + } + /** + * + * + *
+     * Optional.
+     * This search filter is applied only to
+     * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
+     * For example, if the filter is specified as "Hourly job with per-hour
+     * compensation > $15", only jobs meeting these criteria are searched. If a
+     * filter isn't defined, all open jobs are searched.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7; + */ + public com.google.cloud.talent.v4beta1.CompensationFilter getCompensationFilter() { + if (compensationFilterBuilder_ == null) { + return compensationFilter_ == null + ? com.google.cloud.talent.v4beta1.CompensationFilter.getDefaultInstance() + : compensationFilter_; + } else { + return compensationFilterBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * This search filter is applied only to
+     * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
+     * For example, if the filter is specified as "Hourly job with per-hour
+     * compensation > $15", only jobs meeting these criteria are searched. If a
+     * filter isn't defined, all open jobs are searched.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7; + */ + public Builder setCompensationFilter(com.google.cloud.talent.v4beta1.CompensationFilter value) { + if (compensationFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + compensationFilter_ = value; + onChanged(); + } else { + compensationFilterBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * This search filter is applied only to
+     * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
+     * For example, if the filter is specified as "Hourly job with per-hour
+     * compensation > $15", only jobs meeting these criteria are searched. If a
+     * filter isn't defined, all open jobs are searched.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7; + */ + public Builder setCompensationFilter( + com.google.cloud.talent.v4beta1.CompensationFilter.Builder builderForValue) { + if (compensationFilterBuilder_ == null) { + compensationFilter_ = builderForValue.build(); + onChanged(); + } else { + compensationFilterBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * This search filter is applied only to
+     * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
+     * For example, if the filter is specified as "Hourly job with per-hour
+     * compensation > $15", only jobs meeting these criteria are searched. If a
+     * filter isn't defined, all open jobs are searched.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7; + */ + public Builder mergeCompensationFilter( + com.google.cloud.talent.v4beta1.CompensationFilter value) { + if (compensationFilterBuilder_ == null) { + if (compensationFilter_ != null) { + compensationFilter_ = + com.google.cloud.talent.v4beta1.CompensationFilter.newBuilder(compensationFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + compensationFilter_ = value; + } + onChanged(); + } else { + compensationFilterBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * This search filter is applied only to
+     * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
+     * For example, if the filter is specified as "Hourly job with per-hour
+     * compensation > $15", only jobs meeting these criteria are searched. If a
+     * filter isn't defined, all open jobs are searched.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7; + */ + public Builder clearCompensationFilter() { + if (compensationFilterBuilder_ == null) { + compensationFilter_ = null; + onChanged(); + } else { + compensationFilter_ = null; + compensationFilterBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * This search filter is applied only to
+     * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
+     * For example, if the filter is specified as "Hourly job with per-hour
+     * compensation > $15", only jobs meeting these criteria are searched. If a
+     * filter isn't defined, all open jobs are searched.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7; + */ + public com.google.cloud.talent.v4beta1.CompensationFilter.Builder + getCompensationFilterBuilder() { + + onChanged(); + return getCompensationFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * This search filter is applied only to
+     * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
+     * For example, if the filter is specified as "Hourly job with per-hour
+     * compensation > $15", only jobs meeting these criteria are searched. If a
+     * filter isn't defined, all open jobs are searched.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7; + */ + public com.google.cloud.talent.v4beta1.CompensationFilterOrBuilder + getCompensationFilterOrBuilder() { + if (compensationFilterBuilder_ != null) { + return compensationFilterBuilder_.getMessageOrBuilder(); + } else { + return compensationFilter_ == null + ? com.google.cloud.talent.v4beta1.CompensationFilter.getDefaultInstance() + : compensationFilter_; + } + } + /** + * + * + *
+     * Optional.
+     * This search filter is applied only to
+     * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
+     * For example, if the filter is specified as "Hourly job with per-hour
+     * compensation > $15", only jobs meeting these criteria are searched. If a
+     * filter isn't defined, all open jobs are searched.
+     * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationFilter, + com.google.cloud.talent.v4beta1.CompensationFilter.Builder, + com.google.cloud.talent.v4beta1.CompensationFilterOrBuilder> + getCompensationFilterFieldBuilder() { + if (compensationFilterBuilder_ == null) { + compensationFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.CompensationFilter, + com.google.cloud.talent.v4beta1.CompensationFilter.Builder, + com.google.cloud.talent.v4beta1.CompensationFilterOrBuilder>( + getCompensationFilter(), getParentForChildren(), isClean()); + compensationFilter_ = null; + } + return compensationFilterBuilder_; + } + + private java.lang.Object customAttributeFilter_ = ""; + /** + * + * + *
+     * Optional.
+     * This filter specifies a structured syntax to match against the
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+     * marked as `filterable`.
+     * The syntax for this expression is a subset of SQL syntax.
+     * Supported operators are: `=`, `!=`, `<`, `<=`, `>`, and `>=` where the
+     * left of the operator is a custom field key and the right of the operator
+     * is a number or a quoted string. You must escape backslash (\\) and
+     * quote (\") characters.
+     * Supported functions are `LOWER([field_name])` to
+     * perform a case insensitive match and `EMPTY([field_name])` to filter on the
+     * existence of a key.
+     * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+     * nesting (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum of 100
+     * comparisons or functions are allowed in the expression. The expression
+     * must be < 3000 bytes in length.
+     * Sample Query:
+     * `(LOWER(driving_license)="class \"a\"" OR EMPTY(driving_license)) AND
+     * driving_years > 10`
+     * 
+ * + * string custom_attribute_filter = 8; + */ + public java.lang.String getCustomAttributeFilter() { + java.lang.Object ref = customAttributeFilter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customAttributeFilter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * This filter specifies a structured syntax to match against the
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+     * marked as `filterable`.
+     * The syntax for this expression is a subset of SQL syntax.
+     * Supported operators are: `=`, `!=`, `<`, `<=`, `>`, and `>=` where the
+     * left of the operator is a custom field key and the right of the operator
+     * is a number or a quoted string. You must escape backslash (\\) and
+     * quote (\") characters.
+     * Supported functions are `LOWER([field_name])` to
+     * perform a case insensitive match and `EMPTY([field_name])` to filter on the
+     * existence of a key.
+     * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+     * nesting (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum of 100
+     * comparisons or functions are allowed in the expression. The expression
+     * must be < 3000 bytes in length.
+     * Sample Query:
+     * `(LOWER(driving_license)="class \"a\"" OR EMPTY(driving_license)) AND
+     * driving_years > 10`
+     * 
+ * + * string custom_attribute_filter = 8; + */ + public com.google.protobuf.ByteString getCustomAttributeFilterBytes() { + java.lang.Object ref = customAttributeFilter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customAttributeFilter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * This filter specifies a structured syntax to match against the
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+     * marked as `filterable`.
+     * The syntax for this expression is a subset of SQL syntax.
+     * Supported operators are: `=`, `!=`, `<`, `<=`, `>`, and `>=` where the
+     * left of the operator is a custom field key and the right of the operator
+     * is a number or a quoted string. You must escape backslash (\\) and
+     * quote (\") characters.
+     * Supported functions are `LOWER([field_name])` to
+     * perform a case insensitive match and `EMPTY([field_name])` to filter on the
+     * existence of a key.
+     * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+     * nesting (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum of 100
+     * comparisons or functions are allowed in the expression. The expression
+     * must be < 3000 bytes in length.
+     * Sample Query:
+     * `(LOWER(driving_license)="class \"a\"" OR EMPTY(driving_license)) AND
+     * driving_years > 10`
+     * 
+ * + * string custom_attribute_filter = 8; + */ + public Builder setCustomAttributeFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + customAttributeFilter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies a structured syntax to match against the
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+     * marked as `filterable`.
+     * The syntax for this expression is a subset of SQL syntax.
+     * Supported operators are: `=`, `!=`, `<`, `<=`, `>`, and `>=` where the
+     * left of the operator is a custom field key and the right of the operator
+     * is a number or a quoted string. You must escape backslash (\\) and
+     * quote (\") characters.
+     * Supported functions are `LOWER([field_name])` to
+     * perform a case insensitive match and `EMPTY([field_name])` to filter on the
+     * existence of a key.
+     * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+     * nesting (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum of 100
+     * comparisons or functions are allowed in the expression. The expression
+     * must be < 3000 bytes in length.
+     * Sample Query:
+     * `(LOWER(driving_license)="class \"a\"" OR EMPTY(driving_license)) AND
+     * driving_years > 10`
+     * 
+ * + * string custom_attribute_filter = 8; + */ + public Builder clearCustomAttributeFilter() { + + customAttributeFilter_ = getDefaultInstance().getCustomAttributeFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies a structured syntax to match against the
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+     * marked as `filterable`.
+     * The syntax for this expression is a subset of SQL syntax.
+     * Supported operators are: `=`, `!=`, `<`, `<=`, `>`, and `>=` where the
+     * left of the operator is a custom field key and the right of the operator
+     * is a number or a quoted string. You must escape backslash (\\) and
+     * quote (\") characters.
+     * Supported functions are `LOWER([field_name])` to
+     * perform a case insensitive match and `EMPTY([field_name])` to filter on the
+     * existence of a key.
+     * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+     * nesting (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum of 100
+     * comparisons or functions are allowed in the expression. The expression
+     * must be < 3000 bytes in length.
+     * Sample Query:
+     * `(LOWER(driving_license)="class \"a\"" OR EMPTY(driving_license)) AND
+     * driving_years > 10`
+     * 
+ * + * string custom_attribute_filter = 8; + */ + public Builder setCustomAttributeFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + customAttributeFilter_ = value; + onChanged(); + return this; + } + + private boolean disableSpellCheck_; + /** + * + * + *
+     * Optional.
+     * This flag controls the spell-check feature. If false, the
+     * service attempts to correct a misspelled query,
+     * for example, "enginee" is corrected to "engineer".
+     * Defaults to false: a spell check is performed.
+     * 
+ * + * bool disable_spell_check = 9; + */ + public boolean getDisableSpellCheck() { + return disableSpellCheck_; + } + /** + * + * + *
+     * Optional.
+     * This flag controls the spell-check feature. If false, the
+     * service attempts to correct a misspelled query,
+     * for example, "enginee" is corrected to "engineer".
+     * Defaults to false: a spell check is performed.
+     * 
+ * + * bool disable_spell_check = 9; + */ + public Builder setDisableSpellCheck(boolean value) { + + disableSpellCheck_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This flag controls the spell-check feature. If false, the
+     * service attempts to correct a misspelled query,
+     * for example, "enginee" is corrected to "engineer".
+     * Defaults to false: a spell check is performed.
+     * 
+ * + * bool disable_spell_check = 9; + */ + public Builder clearDisableSpellCheck() { + + disableSpellCheck_ = false; + onChanged(); + return this; + } + + private java.util.List employmentTypes_ = java.util.Collections.emptyList(); + + private void ensureEmploymentTypesIsMutable() { + if (!((bitField0_ & 0x00000200) == 0x00000200)) { + employmentTypes_ = new java.util.ArrayList(employmentTypes_); + bitField0_ |= 0x00000200; + } + } + /** + * + * + *
+     * Optional.
+     * The employment type filter specifies the employment type of jobs to
+     * search against, such as
+     * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+     * If a value isn't specified, jobs in the search results includes any
+     * employment type.
+     * If multiple values are specified, jobs in the search results include
+     * any of the specified employment types.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + public java.util.List getEmploymentTypesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.talent.v4beta1.EmploymentType>( + employmentTypes_, employmentTypes_converter_); + } + /** + * + * + *
+     * Optional.
+     * The employment type filter specifies the employment type of jobs to
+     * search against, such as
+     * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+     * If a value isn't specified, jobs in the search results includes any
+     * employment type.
+     * If multiple values are specified, jobs in the search results include
+     * any of the specified employment types.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + public int getEmploymentTypesCount() { + return employmentTypes_.size(); + } + /** + * + * + *
+     * Optional.
+     * The employment type filter specifies the employment type of jobs to
+     * search against, such as
+     * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+     * If a value isn't specified, jobs in the search results includes any
+     * employment type.
+     * If multiple values are specified, jobs in the search results include
+     * any of the specified employment types.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + public com.google.cloud.talent.v4beta1.EmploymentType getEmploymentTypes(int index) { + return employmentTypes_converter_.convert(employmentTypes_.get(index)); + } + /** + * + * + *
+     * Optional.
+     * The employment type filter specifies the employment type of jobs to
+     * search against, such as
+     * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+     * If a value isn't specified, jobs in the search results includes any
+     * employment type.
+     * If multiple values are specified, jobs in the search results include
+     * any of the specified employment types.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + public Builder setEmploymentTypes( + int index, com.google.cloud.talent.v4beta1.EmploymentType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmploymentTypesIsMutable(); + employmentTypes_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment type filter specifies the employment type of jobs to
+     * search against, such as
+     * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+     * If a value isn't specified, jobs in the search results includes any
+     * employment type.
+     * If multiple values are specified, jobs in the search results include
+     * any of the specified employment types.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + public Builder addEmploymentTypes(com.google.cloud.talent.v4beta1.EmploymentType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmploymentTypesIsMutable(); + employmentTypes_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment type filter specifies the employment type of jobs to
+     * search against, such as
+     * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+     * If a value isn't specified, jobs in the search results includes any
+     * employment type.
+     * If multiple values are specified, jobs in the search results include
+     * any of the specified employment types.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + public Builder addAllEmploymentTypes( + java.lang.Iterable values) { + ensureEmploymentTypesIsMutable(); + for (com.google.cloud.talent.v4beta1.EmploymentType value : values) { + employmentTypes_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment type filter specifies the employment type of jobs to
+     * search against, such as
+     * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+     * If a value isn't specified, jobs in the search results includes any
+     * employment type.
+     * If multiple values are specified, jobs in the search results include
+     * any of the specified employment types.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + public Builder clearEmploymentTypes() { + employmentTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment type filter specifies the employment type of jobs to
+     * search against, such as
+     * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+     * If a value isn't specified, jobs in the search results includes any
+     * employment type.
+     * If multiple values are specified, jobs in the search results include
+     * any of the specified employment types.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + public java.util.List getEmploymentTypesValueList() { + return java.util.Collections.unmodifiableList(employmentTypes_); + } + /** + * + * + *
+     * Optional.
+     * The employment type filter specifies the employment type of jobs to
+     * search against, such as
+     * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+     * If a value isn't specified, jobs in the search results includes any
+     * employment type.
+     * If multiple values are specified, jobs in the search results include
+     * any of the specified employment types.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + public int getEmploymentTypesValue(int index) { + return employmentTypes_.get(index); + } + /** + * + * + *
+     * Optional.
+     * The employment type filter specifies the employment type of jobs to
+     * search against, such as
+     * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+     * If a value isn't specified, jobs in the search results includes any
+     * employment type.
+     * If multiple values are specified, jobs in the search results include
+     * any of the specified employment types.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + public Builder setEmploymentTypesValue(int index, int value) { + ensureEmploymentTypesIsMutable(); + employmentTypes_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment type filter specifies the employment type of jobs to
+     * search against, such as
+     * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+     * If a value isn't specified, jobs in the search results includes any
+     * employment type.
+     * If multiple values are specified, jobs in the search results include
+     * any of the specified employment types.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + public Builder addEmploymentTypesValue(int value) { + ensureEmploymentTypesIsMutable(); + employmentTypes_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment type filter specifies the employment type of jobs to
+     * search against, such as
+     * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+     * If a value isn't specified, jobs in the search results includes any
+     * employment type.
+     * If multiple values are specified, jobs in the search results include
+     * any of the specified employment types.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + public Builder addAllEmploymentTypesValue(java.lang.Iterable values) { + ensureEmploymentTypesIsMutable(); + for (int value : values) { + employmentTypes_.add(value); + } + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList languageCodes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureLanguageCodesIsMutable() { + if (!((bitField0_ & 0x00000400) == 0x00000400)) { + languageCodes_ = new com.google.protobuf.LazyStringArrayList(languageCodes_); + bitField0_ |= 0x00000400; + } + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the locale of jobs to search against,
+     * for example, "en-US".
+     * If a value isn't specified, the search results can contain jobs in any
+     * locale.
+     * Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * At most 10 language code filters are allowed.
+     * 
+ * + * repeated string language_codes = 11; + */ + public com.google.protobuf.ProtocolStringList getLanguageCodesList() { + return languageCodes_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the locale of jobs to search against,
+     * for example, "en-US".
+     * If a value isn't specified, the search results can contain jobs in any
+     * locale.
+     * Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * At most 10 language code filters are allowed.
+     * 
+ * + * repeated string language_codes = 11; + */ + public int getLanguageCodesCount() { + return languageCodes_.size(); + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the locale of jobs to search against,
+     * for example, "en-US".
+     * If a value isn't specified, the search results can contain jobs in any
+     * locale.
+     * Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * At most 10 language code filters are allowed.
+     * 
+ * + * repeated string language_codes = 11; + */ + public java.lang.String getLanguageCodes(int index) { + return languageCodes_.get(index); + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the locale of jobs to search against,
+     * for example, "en-US".
+     * If a value isn't specified, the search results can contain jobs in any
+     * locale.
+     * Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * At most 10 language code filters are allowed.
+     * 
+ * + * repeated string language_codes = 11; + */ + public com.google.protobuf.ByteString getLanguageCodesBytes(int index) { + return languageCodes_.getByteString(index); + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the locale of jobs to search against,
+     * for example, "en-US".
+     * If a value isn't specified, the search results can contain jobs in any
+     * locale.
+     * Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * At most 10 language code filters are allowed.
+     * 
+ * + * repeated string language_codes = 11; + */ + public Builder setLanguageCodes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLanguageCodesIsMutable(); + languageCodes_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the locale of jobs to search against,
+     * for example, "en-US".
+     * If a value isn't specified, the search results can contain jobs in any
+     * locale.
+     * Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * At most 10 language code filters are allowed.
+     * 
+ * + * repeated string language_codes = 11; + */ + public Builder addLanguageCodes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLanguageCodesIsMutable(); + languageCodes_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the locale of jobs to search against,
+     * for example, "en-US".
+     * If a value isn't specified, the search results can contain jobs in any
+     * locale.
+     * Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * At most 10 language code filters are allowed.
+     * 
+ * + * repeated string language_codes = 11; + */ + public Builder addAllLanguageCodes(java.lang.Iterable values) { + ensureLanguageCodesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languageCodes_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the locale of jobs to search against,
+     * for example, "en-US".
+     * If a value isn't specified, the search results can contain jobs in any
+     * locale.
+     * Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * At most 10 language code filters are allowed.
+     * 
+ * + * repeated string language_codes = 11; + */ + public Builder clearLanguageCodes() { + languageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies the locale of jobs to search against,
+     * for example, "en-US".
+     * If a value isn't specified, the search results can contain jobs in any
+     * locale.
+     * Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+     * At most 10 language code filters are allowed.
+     * 
+ * + * repeated string language_codes = 11; + */ + public Builder addLanguageCodesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureLanguageCodesIsMutable(); + languageCodes_.add(value); + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.TimestampRange publishTimeRange_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.TimestampRange, + com.google.cloud.talent.v4beta1.TimestampRange.Builder, + com.google.cloud.talent.v4beta1.TimestampRangeOrBuilder> + publishTimeRangeBuilder_; + /** + * + * + *
+     * Optional.
+     * Jobs published within a range specified by this filter are searched
+     * against.
+     * 
+ * + * .google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12; + */ + public boolean hasPublishTimeRange() { + return publishTimeRangeBuilder_ != null || publishTimeRange_ != null; + } + /** + * + * + *
+     * Optional.
+     * Jobs published within a range specified by this filter are searched
+     * against.
+     * 
+ * + * .google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12; + */ + public com.google.cloud.talent.v4beta1.TimestampRange getPublishTimeRange() { + if (publishTimeRangeBuilder_ == null) { + return publishTimeRange_ == null + ? com.google.cloud.talent.v4beta1.TimestampRange.getDefaultInstance() + : publishTimeRange_; + } else { + return publishTimeRangeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * Jobs published within a range specified by this filter are searched
+     * against.
+     * 
+ * + * .google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12; + */ + public Builder setPublishTimeRange(com.google.cloud.talent.v4beta1.TimestampRange value) { + if (publishTimeRangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + publishTimeRange_ = value; + onChanged(); + } else { + publishTimeRangeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Jobs published within a range specified by this filter are searched
+     * against.
+     * 
+ * + * .google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12; + */ + public Builder setPublishTimeRange( + com.google.cloud.talent.v4beta1.TimestampRange.Builder builderForValue) { + if (publishTimeRangeBuilder_ == null) { + publishTimeRange_ = builderForValue.build(); + onChanged(); + } else { + publishTimeRangeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Jobs published within a range specified by this filter are searched
+     * against.
+     * 
+ * + * .google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12; + */ + public Builder mergePublishTimeRange(com.google.cloud.talent.v4beta1.TimestampRange value) { + if (publishTimeRangeBuilder_ == null) { + if (publishTimeRange_ != null) { + publishTimeRange_ = + com.google.cloud.talent.v4beta1.TimestampRange.newBuilder(publishTimeRange_) + .mergeFrom(value) + .buildPartial(); + } else { + publishTimeRange_ = value; + } + onChanged(); + } else { + publishTimeRangeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Jobs published within a range specified by this filter are searched
+     * against.
+     * 
+ * + * .google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12; + */ + public Builder clearPublishTimeRange() { + if (publishTimeRangeBuilder_ == null) { + publishTimeRange_ = null; + onChanged(); + } else { + publishTimeRange_ = null; + publishTimeRangeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Jobs published within a range specified by this filter are searched
+     * against.
+     * 
+ * + * .google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12; + */ + public com.google.cloud.talent.v4beta1.TimestampRange.Builder getPublishTimeRangeBuilder() { + + onChanged(); + return getPublishTimeRangeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * Jobs published within a range specified by this filter are searched
+     * against.
+     * 
+ * + * .google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12; + */ + public com.google.cloud.talent.v4beta1.TimestampRangeOrBuilder getPublishTimeRangeOrBuilder() { + if (publishTimeRangeBuilder_ != null) { + return publishTimeRangeBuilder_.getMessageOrBuilder(); + } else { + return publishTimeRange_ == null + ? com.google.cloud.talent.v4beta1.TimestampRange.getDefaultInstance() + : publishTimeRange_; + } + } + /** + * + * + *
+     * Optional.
+     * Jobs published within a range specified by this filter are searched
+     * against.
+     * 
+ * + * .google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.TimestampRange, + com.google.cloud.talent.v4beta1.TimestampRange.Builder, + com.google.cloud.talent.v4beta1.TimestampRangeOrBuilder> + getPublishTimeRangeFieldBuilder() { + if (publishTimeRangeBuilder_ == null) { + publishTimeRangeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.TimestampRange, + com.google.cloud.talent.v4beta1.TimestampRange.Builder, + com.google.cloud.talent.v4beta1.TimestampRangeOrBuilder>( + getPublishTimeRange(), getParentForChildren(), isClean()); + publishTimeRange_ = null; + } + return publishTimeRangeBuilder_; + } + + private com.google.protobuf.LazyStringList excludedJobs_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureExcludedJobsIsMutable() { + if (!((bitField0_ & 0x00001000) == 0x00001000)) { + excludedJobs_ = new com.google.protobuf.LazyStringArrayList(excludedJobs_); + bitField0_ |= 0x00001000; + } + } + /** + * + * + *
+     * Optional.
+     * This filter specifies a list of job names to be excluded during search.
+     * At most 200 excluded job names are allowed.
+     * 
+ * + * repeated string excluded_jobs = 13; + */ + public com.google.protobuf.ProtocolStringList getExcludedJobsList() { + return excludedJobs_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional.
+     * This filter specifies a list of job names to be excluded during search.
+     * At most 200 excluded job names are allowed.
+     * 
+ * + * repeated string excluded_jobs = 13; + */ + public int getExcludedJobsCount() { + return excludedJobs_.size(); + } + /** + * + * + *
+     * Optional.
+     * This filter specifies a list of job names to be excluded during search.
+     * At most 200 excluded job names are allowed.
+     * 
+ * + * repeated string excluded_jobs = 13; + */ + public java.lang.String getExcludedJobs(int index) { + return excludedJobs_.get(index); + } + /** + * + * + *
+     * Optional.
+     * This filter specifies a list of job names to be excluded during search.
+     * At most 200 excluded job names are allowed.
+     * 
+ * + * repeated string excluded_jobs = 13; + */ + public com.google.protobuf.ByteString getExcludedJobsBytes(int index) { + return excludedJobs_.getByteString(index); + } + /** + * + * + *
+     * Optional.
+     * This filter specifies a list of job names to be excluded during search.
+     * At most 200 excluded job names are allowed.
+     * 
+ * + * repeated string excluded_jobs = 13; + */ + public Builder setExcludedJobs(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedJobsIsMutable(); + excludedJobs_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies a list of job names to be excluded during search.
+     * At most 200 excluded job names are allowed.
+     * 
+ * + * repeated string excluded_jobs = 13; + */ + public Builder addExcludedJobs(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedJobsIsMutable(); + excludedJobs_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies a list of job names to be excluded during search.
+     * At most 200 excluded job names are allowed.
+     * 
+ * + * repeated string excluded_jobs = 13; + */ + public Builder addAllExcludedJobs(java.lang.Iterable values) { + ensureExcludedJobsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, excludedJobs_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies a list of job names to be excluded during search.
+     * At most 200 excluded job names are allowed.
+     * 
+ * + * repeated string excluded_jobs = 13; + */ + public Builder clearExcludedJobs() { + excludedJobs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies a list of job names to be excluded during search.
+     * At most 200 excluded job names are allowed.
+     * 
+ * + * repeated string excluded_jobs = 13; + */ + public Builder addExcludedJobsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureExcludedJobsIsMutable(); + excludedJobs_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.JobQuery) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.JobQuery) + private static final com.google.cloud.talent.v4beta1.JobQuery DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.JobQuery(); + } + + public static com.google.cloud.talent.v4beta1.JobQuery getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public JobQuery parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new JobQuery(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.JobQuery getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobQueryOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobQueryOrBuilder.java new file mode 100644 index 000000000000..a087101e8b33 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobQueryOrBuilder.java @@ -0,0 +1,771 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +public interface JobQueryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.JobQuery) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * The query string that matches against the job title, description, and
+   * location fields.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string query = 1; + */ + java.lang.String getQuery(); + /** + * + * + *
+   * Optional.
+   * The query string that matches against the job title, description, and
+   * location fields.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string query = 1; + */ + com.google.protobuf.ByteString getQueryBytes(); + + /** + * + * + *
+   * Optional.
+   * This filter specifies the company entities to search against.
+   * If a value isn't specified, jobs are searched for against all
+   * companies.
+   * If multiple values are specified, jobs are searched against the
+   * companies specified.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * At most 20 company filters are allowed.
+   * 
+ * + * repeated string company_names = 2; + */ + java.util.List getCompanyNamesList(); + /** + * + * + *
+   * Optional.
+   * This filter specifies the company entities to search against.
+   * If a value isn't specified, jobs are searched for against all
+   * companies.
+   * If multiple values are specified, jobs are searched against the
+   * companies specified.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * At most 20 company filters are allowed.
+   * 
+ * + * repeated string company_names = 2; + */ + int getCompanyNamesCount(); + /** + * + * + *
+   * Optional.
+   * This filter specifies the company entities to search against.
+   * If a value isn't specified, jobs are searched for against all
+   * companies.
+   * If multiple values are specified, jobs are searched against the
+   * companies specified.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * At most 20 company filters are allowed.
+   * 
+ * + * repeated string company_names = 2; + */ + java.lang.String getCompanyNames(int index); + /** + * + * + *
+   * Optional.
+   * This filter specifies the company entities to search against.
+   * If a value isn't specified, jobs are searched for against all
+   * companies.
+   * If multiple values are specified, jobs are searched against the
+   * companies specified.
+   * The format is "projects/{project_id}/companies/{company_id}", for example,
+   * "projects/api-test-project/companies/foo".
+   * At most 20 company filters are allowed.
+   * 
+ * + * repeated string company_names = 2; + */ + com.google.protobuf.ByteString getCompanyNamesBytes(int index); + + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the jobs to
+   * search against. See
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+   * information.
+   * If a location value isn't specified, jobs fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If multiple values are specified, jobs are retrieved from any of the
+   * specified locations. If different values are specified for the
+   * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+   * parameter, the maximum provided distance is used for all locations.
+   * At most 5 location filters are allowed.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + java.util.List getLocationFiltersList(); + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the jobs to
+   * search against. See
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+   * information.
+   * If a location value isn't specified, jobs fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If multiple values are specified, jobs are retrieved from any of the
+   * specified locations. If different values are specified for the
+   * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+   * parameter, the maximum provided distance is used for all locations.
+   * At most 5 location filters are allowed.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + com.google.cloud.talent.v4beta1.LocationFilter getLocationFilters(int index); + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the jobs to
+   * search against. See
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+   * information.
+   * If a location value isn't specified, jobs fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If multiple values are specified, jobs are retrieved from any of the
+   * specified locations. If different values are specified for the
+   * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+   * parameter, the maximum provided distance is used for all locations.
+   * At most 5 location filters are allowed.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + int getLocationFiltersCount(); + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the jobs to
+   * search against. See
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+   * information.
+   * If a location value isn't specified, jobs fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If multiple values are specified, jobs are retrieved from any of the
+   * specified locations. If different values are specified for the
+   * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+   * parameter, the maximum provided distance is used for all locations.
+   * At most 5 location filters are allowed.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + java.util.List + getLocationFiltersOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the jobs to
+   * search against. See
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more
+   * information.
+   * If a location value isn't specified, jobs fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If multiple values are specified, jobs are retrieved from any of the
+   * specified locations. If different values are specified for the
+   * [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
+   * parameter, the maximum provided distance is used for all locations.
+   * At most 5 location filters are allowed.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3; + */ + com.google.cloud.talent.v4beta1.LocationFilterOrBuilder getLocationFiltersOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * The category filter specifies the categories of jobs to search against.
+   * See [Category][] for more information.
+   * If a value isn't specified, jobs from any category are searched against.
+   * If multiple values are specified, jobs from any of the specified
+   * categories are searched against.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + java.util.List getJobCategoriesList(); + /** + * + * + *
+   * Optional.
+   * The category filter specifies the categories of jobs to search against.
+   * See [Category][] for more information.
+   * If a value isn't specified, jobs from any category are searched against.
+   * If multiple values are specified, jobs from any of the specified
+   * categories are searched against.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + int getJobCategoriesCount(); + /** + * + * + *
+   * Optional.
+   * The category filter specifies the categories of jobs to search against.
+   * See [Category][] for more information.
+   * If a value isn't specified, jobs from any category are searched against.
+   * If multiple values are specified, jobs from any of the specified
+   * categories are searched against.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + com.google.cloud.talent.v4beta1.JobCategory getJobCategories(int index); + /** + * + * + *
+   * Optional.
+   * The category filter specifies the categories of jobs to search against.
+   * See [Category][] for more information.
+   * If a value isn't specified, jobs from any category are searched against.
+   * If multiple values are specified, jobs from any of the specified
+   * categories are searched against.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + java.util.List getJobCategoriesValueList(); + /** + * + * + *
+   * Optional.
+   * The category filter specifies the categories of jobs to search against.
+   * See [Category][] for more information.
+   * If a value isn't specified, jobs from any category are searched against.
+   * If multiple values are specified, jobs from any of the specified
+   * categories are searched against.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4; + */ + int getJobCategoriesValue(int index); + + /** + * + * + *
+   * Optional.
+   *  Allows filtering jobs by commute time with different travel methods (for
+   *  example, driving or public transit). Note: This only works with [COMMUTE
+   *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
+   *  ignored.
+   *  Currently we don't support sorting by commute time.
+   * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5; + */ + boolean hasCommuteFilter(); + /** + * + * + *
+   * Optional.
+   *  Allows filtering jobs by commute time with different travel methods (for
+   *  example, driving or public transit). Note: This only works with [COMMUTE
+   *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
+   *  ignored.
+   *  Currently we don't support sorting by commute time.
+   * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5; + */ + com.google.cloud.talent.v4beta1.CommuteFilter getCommuteFilter(); + /** + * + * + *
+   * Optional.
+   *  Allows filtering jobs by commute time with different travel methods (for
+   *  example, driving or public transit). Note: This only works with [COMMUTE
+   *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
+   *  ignored.
+   *  Currently we don't support sorting by commute time.
+   * 
+ * + * .google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5; + */ + com.google.cloud.talent.v4beta1.CommuteFilterOrBuilder getCommuteFilterOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * This filter specifies the exact [company display
+   * name][Company.display_name] of the jobs to search against.
+   * If a value isn't specified, jobs within the search results are
+   * associated with any company.
+   * If multiple values are specified, jobs within the search results may be
+   * associated with any of the specified companies.
+   * At most 20 company display name filters are allowed.
+   * 
+ * + * repeated string company_display_names = 6; + */ + java.util.List getCompanyDisplayNamesList(); + /** + * + * + *
+   * Optional.
+   * This filter specifies the exact [company display
+   * name][Company.display_name] of the jobs to search against.
+   * If a value isn't specified, jobs within the search results are
+   * associated with any company.
+   * If multiple values are specified, jobs within the search results may be
+   * associated with any of the specified companies.
+   * At most 20 company display name filters are allowed.
+   * 
+ * + * repeated string company_display_names = 6; + */ + int getCompanyDisplayNamesCount(); + /** + * + * + *
+   * Optional.
+   * This filter specifies the exact [company display
+   * name][Company.display_name] of the jobs to search against.
+   * If a value isn't specified, jobs within the search results are
+   * associated with any company.
+   * If multiple values are specified, jobs within the search results may be
+   * associated with any of the specified companies.
+   * At most 20 company display name filters are allowed.
+   * 
+ * + * repeated string company_display_names = 6; + */ + java.lang.String getCompanyDisplayNames(int index); + /** + * + * + *
+   * Optional.
+   * This filter specifies the exact [company display
+   * name][Company.display_name] of the jobs to search against.
+   * If a value isn't specified, jobs within the search results are
+   * associated with any company.
+   * If multiple values are specified, jobs within the search results may be
+   * associated with any of the specified companies.
+   * At most 20 company display name filters are allowed.
+   * 
+ * + * repeated string company_display_names = 6; + */ + com.google.protobuf.ByteString getCompanyDisplayNamesBytes(int index); + + /** + * + * + *
+   * Optional.
+   * This search filter is applied only to
+   * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
+   * For example, if the filter is specified as "Hourly job with per-hour
+   * compensation > $15", only jobs meeting these criteria are searched. If a
+   * filter isn't defined, all open jobs are searched.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7; + */ + boolean hasCompensationFilter(); + /** + * + * + *
+   * Optional.
+   * This search filter is applied only to
+   * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
+   * For example, if the filter is specified as "Hourly job with per-hour
+   * compensation > $15", only jobs meeting these criteria are searched. If a
+   * filter isn't defined, all open jobs are searched.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7; + */ + com.google.cloud.talent.v4beta1.CompensationFilter getCompensationFilter(); + /** + * + * + *
+   * Optional.
+   * This search filter is applied only to
+   * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
+   * For example, if the filter is specified as "Hourly job with per-hour
+   * compensation > $15", only jobs meeting these criteria are searched. If a
+   * filter isn't defined, all open jobs are searched.
+   * 
+ * + * .google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7; + */ + com.google.cloud.talent.v4beta1.CompensationFilterOrBuilder getCompensationFilterOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * This filter specifies a structured syntax to match against the
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+   * marked as `filterable`.
+   * The syntax for this expression is a subset of SQL syntax.
+   * Supported operators are: `=`, `!=`, `<`, `<=`, `>`, and `>=` where the
+   * left of the operator is a custom field key and the right of the operator
+   * is a number or a quoted string. You must escape backslash (\\) and
+   * quote (\") characters.
+   * Supported functions are `LOWER([field_name])` to
+   * perform a case insensitive match and `EMPTY([field_name])` to filter on the
+   * existence of a key.
+   * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+   * nesting (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum of 100
+   * comparisons or functions are allowed in the expression. The expression
+   * must be < 3000 bytes in length.
+   * Sample Query:
+   * `(LOWER(driving_license)="class \"a\"" OR EMPTY(driving_license)) AND
+   * driving_years > 10`
+   * 
+ * + * string custom_attribute_filter = 8; + */ + java.lang.String getCustomAttributeFilter(); + /** + * + * + *
+   * Optional.
+   * This filter specifies a structured syntax to match against the
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+   * marked as `filterable`.
+   * The syntax for this expression is a subset of SQL syntax.
+   * Supported operators are: `=`, `!=`, `<`, `<=`, `>`, and `>=` where the
+   * left of the operator is a custom field key and the right of the operator
+   * is a number or a quoted string. You must escape backslash (\\) and
+   * quote (\") characters.
+   * Supported functions are `LOWER([field_name])` to
+   * perform a case insensitive match and `EMPTY([field_name])` to filter on the
+   * existence of a key.
+   * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+   * nesting (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum of 100
+   * comparisons or functions are allowed in the expression. The expression
+   * must be < 3000 bytes in length.
+   * Sample Query:
+   * `(LOWER(driving_license)="class \"a\"" OR EMPTY(driving_license)) AND
+   * driving_years > 10`
+   * 
+ * + * string custom_attribute_filter = 8; + */ + com.google.protobuf.ByteString getCustomAttributeFilterBytes(); + + /** + * + * + *
+   * Optional.
+   * This flag controls the spell-check feature. If false, the
+   * service attempts to correct a misspelled query,
+   * for example, "enginee" is corrected to "engineer".
+   * Defaults to false: a spell check is performed.
+   * 
+ * + * bool disable_spell_check = 9; + */ + boolean getDisableSpellCheck(); + + /** + * + * + *
+   * Optional.
+   * The employment type filter specifies the employment type of jobs to
+   * search against, such as
+   * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+   * If a value isn't specified, jobs in the search results includes any
+   * employment type.
+   * If multiple values are specified, jobs in the search results include
+   * any of the specified employment types.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + java.util.List getEmploymentTypesList(); + /** + * + * + *
+   * Optional.
+   * The employment type filter specifies the employment type of jobs to
+   * search against, such as
+   * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+   * If a value isn't specified, jobs in the search results includes any
+   * employment type.
+   * If multiple values are specified, jobs in the search results include
+   * any of the specified employment types.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + int getEmploymentTypesCount(); + /** + * + * + *
+   * Optional.
+   * The employment type filter specifies the employment type of jobs to
+   * search against, such as
+   * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+   * If a value isn't specified, jobs in the search results includes any
+   * employment type.
+   * If multiple values are specified, jobs in the search results include
+   * any of the specified employment types.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + com.google.cloud.talent.v4beta1.EmploymentType getEmploymentTypes(int index); + /** + * + * + *
+   * Optional.
+   * The employment type filter specifies the employment type of jobs to
+   * search against, such as
+   * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+   * If a value isn't specified, jobs in the search results includes any
+   * employment type.
+   * If multiple values are specified, jobs in the search results include
+   * any of the specified employment types.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + java.util.List getEmploymentTypesValueList(); + /** + * + * + *
+   * Optional.
+   * The employment type filter specifies the employment type of jobs to
+   * search against, such as
+   * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
+   * If a value isn't specified, jobs in the search results includes any
+   * employment type.
+   * If multiple values are specified, jobs in the search results include
+   * any of the specified employment types.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10; + */ + int getEmploymentTypesValue(int index); + + /** + * + * + *
+   * Optional.
+   * This filter specifies the locale of jobs to search against,
+   * for example, "en-US".
+   * If a value isn't specified, the search results can contain jobs in any
+   * locale.
+   * Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * At most 10 language code filters are allowed.
+   * 
+ * + * repeated string language_codes = 11; + */ + java.util.List getLanguageCodesList(); + /** + * + * + *
+   * Optional.
+   * This filter specifies the locale of jobs to search against,
+   * for example, "en-US".
+   * If a value isn't specified, the search results can contain jobs in any
+   * locale.
+   * Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * At most 10 language code filters are allowed.
+   * 
+ * + * repeated string language_codes = 11; + */ + int getLanguageCodesCount(); + /** + * + * + *
+   * Optional.
+   * This filter specifies the locale of jobs to search against,
+   * for example, "en-US".
+   * If a value isn't specified, the search results can contain jobs in any
+   * locale.
+   * Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * At most 10 language code filters are allowed.
+   * 
+ * + * repeated string language_codes = 11; + */ + java.lang.String getLanguageCodes(int index); + /** + * + * + *
+   * Optional.
+   * This filter specifies the locale of jobs to search against,
+   * for example, "en-US".
+   * If a value isn't specified, the search results can contain jobs in any
+   * locale.
+   * Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
+   * At most 10 language code filters are allowed.
+   * 
+ * + * repeated string language_codes = 11; + */ + com.google.protobuf.ByteString getLanguageCodesBytes(int index); + + /** + * + * + *
+   * Optional.
+   * Jobs published within a range specified by this filter are searched
+   * against.
+   * 
+ * + * .google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12; + */ + boolean hasPublishTimeRange(); + /** + * + * + *
+   * Optional.
+   * Jobs published within a range specified by this filter are searched
+   * against.
+   * 
+ * + * .google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12; + */ + com.google.cloud.talent.v4beta1.TimestampRange getPublishTimeRange(); + /** + * + * + *
+   * Optional.
+   * Jobs published within a range specified by this filter are searched
+   * against.
+   * 
+ * + * .google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12; + */ + com.google.cloud.talent.v4beta1.TimestampRangeOrBuilder getPublishTimeRangeOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * This filter specifies a list of job names to be excluded during search.
+   * At most 200 excluded job names are allowed.
+   * 
+ * + * repeated string excluded_jobs = 13; + */ + java.util.List getExcludedJobsList(); + /** + * + * + *
+   * Optional.
+   * This filter specifies a list of job names to be excluded during search.
+   * At most 200 excluded job names are allowed.
+   * 
+ * + * repeated string excluded_jobs = 13; + */ + int getExcludedJobsCount(); + /** + * + * + *
+   * Optional.
+   * This filter specifies a list of job names to be excluded during search.
+   * At most 200 excluded job names are allowed.
+   * 
+ * + * repeated string excluded_jobs = 13; + */ + java.lang.String getExcludedJobs(int index); + /** + * + * + *
+   * Optional.
+   * This filter specifies a list of job names to be excluded during search.
+   * At most 200 excluded job names are allowed.
+   * 
+ * + * repeated string excluded_jobs = 13; + */ + com.google.protobuf.ByteString getExcludedJobsBytes(int index); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobResourceProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobResourceProto.java new file mode 100644 index 000000000000..5c503c1d3997 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobResourceProto.java @@ -0,0 +1,190 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job.proto + +package com.google.cloud.talent.v4beta1; + +public final class JobResourceProto { + private JobResourceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Job_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Job_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Job_ApplicationInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Job_ApplicationInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Job_DerivedInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Job_DerivedInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Job_ProcessingOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Job_ProcessingOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Job_CustomAttributesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Job_CustomAttributesEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n%google/cloud/talent/v4beta1/job.proto\022" + + "\033google.cloud.talent.v4beta1\032\034google/api" + + "/annotations.proto\032(google/cloud/talent/" + + "v4beta1/common.proto\032\037google/protobuf/ti" + + "mestamp.proto\"\254\016\n\003Job\022\014\n\004name\030\001 \001(\t\022\024\n\014c" + + "ompany_name\030\002 \001(\t\022\026\n\016requisition_id\030\003 \001(" + + "\t\022\r\n\005title\030\004 \001(\t\022\023\n\013description\030\005 \001(\t\022\021\n" + + "\taddresses\030\006 \003(\t\022J\n\020application_info\030\007 \001" + + "(\01320.google.cloud.talent.v4beta1.Job.App" + + "licationInfo\022=\n\014job_benefits\030\010 \003(\0162\'.goo" + + "gle.cloud.talent.v4beta1.JobBenefit\022H\n\021c" + + "ompensation_info\030\t \001(\0132-.google.cloud.ta" + + "lent.v4beta1.CompensationInfo\022Q\n\021custom_" + + "attributes\030\n \003(\01326.google.cloud.talent.v" + + "4beta1.Job.CustomAttributesEntry\022=\n\014degr" + + "ee_types\030\013 \003(\0162\'.google.cloud.talent.v4b" + + "eta1.DegreeType\022\022\n\ndepartment\030\014 \001(\t\022E\n\020e" + + "mployment_types\030\r \003(\0162+.google.cloud.tal" + + "ent.v4beta1.EmploymentType\022\022\n\nincentives" + + "\030\016 \001(\t\022\025\n\rlanguage_code\030\017 \001(\t\0228\n\tjob_lev" + + "el\030\020 \001(\0162%.google.cloud.talent.v4beta1.J" + + "obLevel\022\027\n\017promotion_value\030\021 \001(\005\022\026\n\016qual" + + "ifications\030\022 \001(\t\022\030\n\020responsibilities\030\023 \001" + + "(\t\022B\n\016posting_region\030\024 \001(\0162*.google.clou" + + "d.talent.v4beta1.PostingRegion\022;\n\nvisibi" + + "lity\030\025 \001(\0162\'.google.cloud.talent.v4beta1" + + ".Visibility\0222\n\016job_start_time\030\026 \001(\0132\032.go" + + "ogle.protobuf.Timestamp\0220\n\014job_end_time\030" + + "\027 \001(\0132\032.google.protobuf.Timestamp\0228\n\024pos" + + "ting_publish_time\030\030 \001(\0132\032.google.protobu" + + "f.Timestamp\0227\n\023posting_expire_time\030\031 \001(\013" + + "2\032.google.protobuf.Timestamp\0227\n\023posting_" + + "create_time\030\032 \001(\0132\032.google.protobuf.Time" + + "stamp\0227\n\023posting_update_time\030\033 \001(\0132\032.goo" + + "gle.protobuf.Timestamp\022\034\n\024company_displa" + + "y_name\030\034 \001(\t\022B\n\014derived_info\030\035 \001(\0132,.goo" + + "gle.cloud.talent.v4beta1.Job.DerivedInfo" + + "\022N\n\022processing_options\030\036 \001(\01322.google.cl" + + "oud.talent.v4beta1.Job.ProcessingOptions" + + "\032D\n\017ApplicationInfo\022\016\n\006emails\030\001 \003(\t\022\023\n\013i" + + "nstruction\030\002 \001(\t\022\014\n\004uris\030\003 \003(\t\032\211\001\n\013Deriv" + + "edInfo\0228\n\tlocations\030\001 \003(\0132%.google.cloud" + + ".talent.v4beta1.Location\022@\n\016job_categori" + + "es\030\003 \003(\0162(.google.cloud.talent.v4beta1.J" + + "obCategory\032\210\001\n\021ProcessingOptions\022)\n!disa" + + "ble_street_address_resolution\030\001 \001(\010\022H\n\021h" + + "tml_sanitization\030\002 \001(\0162-.google.cloud.ta" + + "lent.v4beta1.HtmlSanitization\032e\n\025CustomA" + + "ttributesEntry\022\013\n\003key\030\001 \001(\t\022;\n\005value\030\002 \001" + + "(\0132,.google.cloud.talent.v4beta1.CustomA" + + "ttribute:\0028\001B~\n\037com.google.cloud.talent." + + "v4beta1B\020JobResourceProtoP\001ZAgoogle.gola" + + "ng.org/genproto/googleapis/cloud/talent/" + + "v4beta1;talent\242\002\003CTSb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_talent_v4beta1_Job_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_talent_v4beta1_Job_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Job_descriptor, + new java.lang.String[] { + "Name", + "CompanyName", + "RequisitionId", + "Title", + "Description", + "Addresses", + "ApplicationInfo", + "JobBenefits", + "CompensationInfo", + "CustomAttributes", + "DegreeTypes", + "Department", + "EmploymentTypes", + "Incentives", + "LanguageCode", + "JobLevel", + "PromotionValue", + "Qualifications", + "Responsibilities", + "PostingRegion", + "Visibility", + "JobStartTime", + "JobEndTime", + "PostingPublishTime", + "PostingExpireTime", + "PostingCreateTime", + "PostingUpdateTime", + "CompanyDisplayName", + "DerivedInfo", + "ProcessingOptions", + }); + internal_static_google_cloud_talent_v4beta1_Job_ApplicationInfo_descriptor = + internal_static_google_cloud_talent_v4beta1_Job_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_talent_v4beta1_Job_ApplicationInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Job_ApplicationInfo_descriptor, + new java.lang.String[] { + "Emails", "Instruction", "Uris", + }); + internal_static_google_cloud_talent_v4beta1_Job_DerivedInfo_descriptor = + internal_static_google_cloud_talent_v4beta1_Job_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_talent_v4beta1_Job_DerivedInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Job_DerivedInfo_descriptor, + new java.lang.String[] { + "Locations", "JobCategories", + }); + internal_static_google_cloud_talent_v4beta1_Job_ProcessingOptions_descriptor = + internal_static_google_cloud_talent_v4beta1_Job_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_talent_v4beta1_Job_ProcessingOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Job_ProcessingOptions_descriptor, + new java.lang.String[] { + "DisableStreetAddressResolution", "HtmlSanitization", + }); + internal_static_google_cloud_talent_v4beta1_Job_CustomAttributesEntry_descriptor = + internal_static_google_cloud_talent_v4beta1_Job_descriptor.getNestedTypes().get(3); + internal_static_google_cloud_talent_v4beta1_Job_CustomAttributesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Job_CustomAttributesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobServiceProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobServiceProto.java new file mode 100644 index 000000000000..73488e373bf5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobServiceProto.java @@ -0,0 +1,353 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +public final class JobServiceProto { + private JobServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_CreateJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_CreateJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_GetJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_GetJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_UpdateJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_UpdateJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_DeleteJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_DeleteJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_BatchDeleteJobsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_BatchDeleteJobsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ListJobsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ListJobsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ListJobsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ListJobsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_CustomRankingInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_CustomRankingInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_MatchingJob_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_MatchingJob_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_CommuteInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_CommuteInfo_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n-google/cloud/talent/v4beta1/job_servic" + + "e.proto\022\033google.cloud.talent.v4beta1\032\034go" + + "ogle/api/annotations.proto\032\'google/cloud" + + "/talent/v4beta1/batch.proto\032(google/clou" + + "d/talent/v4beta1/common.proto\032)google/cl" + + "oud/talent/v4beta1/filters.proto\032+google" + + "/cloud/talent/v4beta1/histogram.proto\032%g" + + "oogle/cloud/talent/v4beta1/job.proto\032#go" + + "ogle/longrunning/operations.proto\032\036googl" + + "e/protobuf/duration.proto\032\033google/protob" + + "uf/empty.proto\032 google/protobuf/field_ma" + + "sk.proto\"Q\n\020CreateJobRequest\022\016\n\006parent\030\001" + + " \001(\t\022-\n\003job\030\002 \001(\0132 .google.cloud.talent." + + "v4beta1.Job\"\035\n\rGetJobRequest\022\014\n\004name\030\001 \001" + + "(\t\"r\n\020UpdateJobRequest\022-\n\003job\030\001 \001(\0132 .go" + + "ogle.cloud.talent.v4beta1.Job\022/\n\013update_" + + "mask\030\002 \001(\0132\032.google.protobuf.FieldMask\" " + + "\n\020DeleteJobRequest\022\014\n\004name\030\001 \001(\t\"8\n\026Batc" + + "hDeleteJobsRequest\022\016\n\006parent\030\001 \001(\t\022\016\n\006fi" + + "lter\030\002 \001(\t\"\220\001\n\017ListJobsRequest\022\016\n\006parent" + + "\030\001 \001(\t\022\016\n\006filter\030\002 \001(\t\022\022\n\npage_token\030\003 \001" + + "(\t\022\021\n\tpage_size\030\004 \001(\005\0226\n\010job_view\030\005 \001(\0162" + + "$.google.cloud.talent.v4beta1.JobView\"\234\001" + + "\n\020ListJobsResponse\022.\n\004jobs\030\001 \003(\0132 .googl" + + "e.cloud.talent.v4beta1.Job\022\027\n\017next_page_" + + "token\030\002 \001(\t\022?\n\010metadata\030\003 \001(\0132-.google.c" + + "loud.talent.v4beta1.ResponseMetadata\"\240\t\n" + + "\021SearchJobsRequest\022\016\n\006parent\030\001 \001(\t\022N\n\013se" + + "arch_mode\030\002 \001(\01629.google.cloud.talent.v4" + + "beta1.SearchJobsRequest.SearchMode\022F\n\020re" + + "quest_metadata\030\003 \001(\0132,.google.cloud.tale" + + "nt.v4beta1.RequestMetadata\0228\n\tjob_query\030" + + "\004 \001(\0132%.google.cloud.talent.v4beta1.JobQ" + + "uery\022\031\n\021enable_broadening\030\005 \001(\010\022#\n\033requi" + + "re_precise_result_size\030\006 \001(\010\022F\n\021histogra" + + "m_queries\030\007 \003(\0132+.google.cloud.talent.v4" + + "beta1.HistogramQuery\0226\n\010job_view\030\010 \001(\0162$" + + ".google.cloud.talent.v4beta1.JobView\022\016\n\006" + + "offset\030\t \001(\005\022\021\n\tpage_size\030\n \001(\005\022\022\n\npage_" + + "token\030\013 \001(\t\022\020\n\010order_by\030\014 \001(\t\022b\n\025diversi" + + "fication_level\030\r \001(\0162C.google.cloud.tale" + + "nt.v4beta1.SearchJobsRequest.Diversifica" + + "tionLevel\022]\n\023custom_ranking_info\030\016 \001(\0132@" + + ".google.cloud.talent.v4beta1.SearchJobsR" + + "equest.CustomRankingInfo\022\035\n\025disable_keyw" + + "ord_match\030\020 \001(\010\032\220\002\n\021CustomRankingInfo\022j\n" + + "\020importance_level\030\001 \001(\0162P.google.cloud.t" + + "alent.v4beta1.SearchJobsRequest.CustomRa" + + "nkingInfo.ImportanceLevel\022\032\n\022ranking_exp" + + "ression\030\002 \001(\t\"s\n\017ImportanceLevel\022 \n\034IMPO" + + "RTANCE_LEVEL_UNSPECIFIED\020\000\022\010\n\004NONE\020\001\022\007\n\003" + + "LOW\020\002\022\010\n\004MILD\020\003\022\n\n\006MEDIUM\020\004\022\010\n\004HIGH\020\005\022\013\n" + + "\007EXTREME\020\006\"R\n\nSearchMode\022\033\n\027SEARCH_MODE_" + + "UNSPECIFIED\020\000\022\016\n\nJOB_SEARCH\020\001\022\027\n\023FEATURE" + + "D_JOB_SEARCH\020\002\"W\n\024DiversificationLevel\022%" + + "\n!DIVERSIFICATION_LEVEL_UNSPECIFIED\020\000\022\014\n" + + "\010DISABLED\020\001\022\n\n\006SIMPLE\020\002\"\327\006\n\022SearchJobsRe" + + "sponse\022R\n\rmatching_jobs\030\001 \003(\0132;.google.c" + + "loud.talent.v4beta1.SearchJobsResponse.M" + + "atchingJob\022R\n\027histogram_query_results\030\002 " + + "\003(\01321.google.cloud.talent.v4beta1.Histog" + + "ramQueryResult\022\027\n\017next_page_token\030\003 \001(\t\022" + + "?\n\020location_filters\030\004 \003(\0132%.google.cloud" + + ".talent.v4beta1.Location\022\034\n\024estimated_to" + + "tal_size\030\005 \001(\005\022\022\n\ntotal_size\030\006 \001(\005\022?\n\010me" + + "tadata\030\007 \001(\0132-.google.cloud.talent.v4bet" + + "a1.ResponseMetadata\022\"\n\032broadened_query_j" + + "obs_count\030\010 \001(\005\022I\n\020spell_correction\030\t \001(" + + "\0132/.google.cloud.talent.v4beta1.Spelling" + + "Correction\032\334\001\n\013MatchingJob\022-\n\003job\030\001 \001(\0132" + + " .google.cloud.talent.v4beta1.Job\022\023\n\013job" + + "_summary\030\002 \001(\t\022\031\n\021job_title_snippet\030\003 \001(" + + "\t\022\033\n\023search_text_snippet\030\004 \001(\t\022Q\n\014commut" + + "e_info\030\005 \001(\0132;.google.cloud.talent.v4bet" + + "a1.SearchJobsResponse.CommuteInfo\032~\n\013Com" + + "muteInfo\022;\n\014job_location\030\001 \001(\0132%.google." + + "cloud.talent.v4beta1.Location\0222\n\017travel_" + + "duration\030\002 \001(\0132\031.google.protobuf.Duratio" + + "n*v\n\007JobView\022\030\n\024JOB_VIEW_UNSPECIFIED\020\000\022\024" + + "\n\020JOB_VIEW_ID_ONLY\020\001\022\024\n\020JOB_VIEW_MINIMAL" + + "\020\002\022\022\n\016JOB_VIEW_SMALL\020\003\022\021\n\rJOB_VIEW_FULL\020" + + "\0042\267\t\n\nJobService\022\212\001\n\tCreateJob\022-.google." + + "cloud.talent.v4beta1.CreateJobRequest\032 ." + + "google.cloud.talent.v4beta1.Job\",\202\323\344\223\002&\"" + + "!/v4beta1/{parent=projects/*}/jobs:\001*\022\201\001" + + "\n\006GetJob\022*.google.cloud.talent.v4beta1.G" + + "etJobRequest\032 .google.cloud.talent.v4bet" + + "a1.Job\")\202\323\344\223\002#\022!/v4beta1/{name=projects/" + + "*/jobs/*}\022\216\001\n\tUpdateJob\022-.google.cloud.t" + + "alent.v4beta1.UpdateJobRequest\032 .google." + + "cloud.talent.v4beta1.Job\"0\202\323\344\223\002*2%/v4bet" + + "a1/{job.name=projects/*/jobs/*}:\001*\022}\n\tDe" + + "leteJob\022-.google.cloud.talent.v4beta1.De" + + "leteJobRequest\032\026.google.protobuf.Empty\")" + + "\202\323\344\223\002#*!/v4beta1/{name=projects/*/jobs/*" + + "}\022\222\001\n\010ListJobs\022,.google.cloud.talent.v4b" + + "eta1.ListJobsRequest\032-.google.cloud.tale" + + "nt.v4beta1.ListJobsResponse\")\202\323\344\223\002#\022!/v4" + + "beta1/{parent=projects/*}/jobs\022\230\001\n\017Batch" + + "DeleteJobs\0223.google.cloud.talent.v4beta1" + + ".BatchDeleteJobsRequest\032\026.google.protobu" + + "f.Empty\"8\202\323\344\223\0022\"-/v4beta1/{parent=projec" + + "ts/*}/jobs:batchDelete:\001*\022\242\001\n\nSearchJobs" + + "\022..google.cloud.talent.v4beta1.SearchJob" + + "sRequest\032/.google.cloud.talent.v4beta1.S" + + "earchJobsResponse\"3\202\323\344\223\002-\"(/v4beta1/{par" + + "ent=projects/*}/jobs:search:\001*\022\262\001\n\022Searc" + + "hJobsForAlert\022..google.cloud.talent.v4be" + + "ta1.SearchJobsRequest\032/.google.cloud.tal" + + "ent.v4beta1.SearchJobsResponse\";\202\323\344\223\0025\"0" + + "/v4beta1/{parent=projects/*}/jobs:search" + + "ForAlert:\001*B}\n\037com.google.cloud.talent.v" + + "4beta1B\017JobServiceProtoP\001ZAgoogle.golang" + + ".org/genproto/googleapis/cloud/talent/v4" + + "beta1;talent\242\002\003CTSb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.talent.v4beta1.BatchProto.getDescriptor(), + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(), + com.google.cloud.talent.v4beta1.FiltersProto.getDescriptor(), + com.google.cloud.talent.v4beta1.HistogramProto.getDescriptor(), + com.google.cloud.talent.v4beta1.JobResourceProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_talent_v4beta1_CreateJobRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_talent_v4beta1_CreateJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_CreateJobRequest_descriptor, + new java.lang.String[] { + "Parent", "Job", + }); + internal_static_google_cloud_talent_v4beta1_GetJobRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_talent_v4beta1_GetJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_GetJobRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_talent_v4beta1_UpdateJobRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_talent_v4beta1_UpdateJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_UpdateJobRequest_descriptor, + new java.lang.String[] { + "Job", "UpdateMask", + }); + internal_static_google_cloud_talent_v4beta1_DeleteJobRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_talent_v4beta1_DeleteJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_DeleteJobRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_talent_v4beta1_BatchDeleteJobsRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_talent_v4beta1_BatchDeleteJobsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_BatchDeleteJobsRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", + }); + internal_static_google_cloud_talent_v4beta1_ListJobsRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_talent_v4beta1_ListJobsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ListJobsRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "PageToken", "PageSize", "JobView", + }); + internal_static_google_cloud_talent_v4beta1_ListJobsResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_talent_v4beta1_ListJobsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ListJobsResponse_descriptor, + new java.lang.String[] { + "Jobs", "NextPageToken", "Metadata", + }); + internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_descriptor, + new java.lang.String[] { + "Parent", + "SearchMode", + "RequestMetadata", + "JobQuery", + "EnableBroadening", + "RequirePreciseResultSize", + "HistogramQueries", + "JobView", + "Offset", + "PageSize", + "PageToken", + "OrderBy", + "DiversificationLevel", + "CustomRankingInfo", + "DisableKeywordMatch", + }); + internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_CustomRankingInfo_descriptor = + internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_CustomRankingInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_CustomRankingInfo_descriptor, + new java.lang.String[] { + "ImportanceLevel", "RankingExpression", + }); + internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_descriptor, + new java.lang.String[] { + "MatchingJobs", + "HistogramQueryResults", + "NextPageToken", + "LocationFilters", + "EstimatedTotalSize", + "TotalSize", + "Metadata", + "BroadenedQueryJobsCount", + "SpellCorrection", + }); + internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_MatchingJob_descriptor = + internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_MatchingJob_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_MatchingJob_descriptor, + new java.lang.String[] { + "Job", "JobSummary", "JobTitleSnippet", "SearchTextSnippet", "CommuteInfo", + }); + internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_CommuteInfo_descriptor = + internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_CommuteInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_CommuteInfo_descriptor, + new java.lang.String[] { + "JobLocation", "TravelDuration", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.AnnotationsProto.http); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.talent.v4beta1.BatchProto.getDescriptor(); + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(); + com.google.cloud.talent.v4beta1.FiltersProto.getDescriptor(); + com.google.cloud.talent.v4beta1.HistogramProto.getDescriptor(); + com.google.cloud.talent.v4beta1.JobResourceProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobTitleFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobTitleFilter.java new file mode 100644 index 000000000000..e40192c690d7 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobTitleFilter.java @@ -0,0 +1,694 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Job title of the search.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.JobTitleFilter} + */ +public final class JobTitleFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.JobTitleFilter) + JobTitleFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use JobTitleFilter.newBuilder() to construct. + private JobTitleFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private JobTitleFilter() { + jobTitle_ = ""; + negated_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private JobTitleFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + jobTitle_ = s; + break; + } + case 16: + { + negated_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_JobTitleFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_JobTitleFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.JobTitleFilter.class, + com.google.cloud.talent.v4beta1.JobTitleFilter.Builder.class); + } + + public static final int JOB_TITLE_FIELD_NUMBER = 1; + private volatile java.lang.Object jobTitle_; + /** + * + * + *
+   * Required.
+   * The job title, for example, "Software engineer", or "Product manager".
+   * 
+ * + * string job_title = 1; + */ + public java.lang.String getJobTitle() { + java.lang.Object ref = jobTitle_; + 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(); + jobTitle_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The job title, for example, "Software engineer", or "Product manager".
+   * 
+ * + * string job_title = 1; + */ + public com.google.protobuf.ByteString getJobTitleBytes() { + java.lang.Object ref = jobTitle_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobTitle_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NEGATED_FIELD_NUMBER = 2; + private boolean negated_; + /** + * + * + *
+   * Optional.
+   * Whether to apply negation to the filter so profiles matching the filter
+   * are excluded.
+   * 
+ * + * bool negated = 2; + */ + public boolean getNegated() { + return negated_; + } + + 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 (!getJobTitleBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, jobTitle_); + } + if (negated_ != false) { + output.writeBool(2, negated_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getJobTitleBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, jobTitle_); + } + if (negated_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, negated_); + } + size += unknownFields.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.cloud.talent.v4beta1.JobTitleFilter)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.JobTitleFilter other = + (com.google.cloud.talent.v4beta1.JobTitleFilter) obj; + + boolean result = true; + result = result && getJobTitle().equals(other.getJobTitle()); + result = result && (getNegated() == other.getNegated()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + JOB_TITLE_FIELD_NUMBER; + hash = (53 * hash) + getJobTitle().hashCode(); + hash = (37 * hash) + NEGATED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNegated()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.JobTitleFilter parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.JobTitleFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.JobTitleFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.JobTitleFilter 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.cloud.talent.v4beta1.JobTitleFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.JobTitleFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.JobTitleFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.JobTitleFilter 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.cloud.talent.v4beta1.JobTitleFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.JobTitleFilter 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.cloud.talent.v4beta1.JobTitleFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.JobTitleFilter 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.cloud.talent.v4beta1.JobTitleFilter 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; + } + /** + * + * + *
+   * Input only.
+   * Job title of the search.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.JobTitleFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.JobTitleFilter) + com.google.cloud.talent.v4beta1.JobTitleFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_JobTitleFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_JobTitleFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.JobTitleFilter.class, + com.google.cloud.talent.v4beta1.JobTitleFilter.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.JobTitleFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + jobTitle_ = ""; + + negated_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_JobTitleFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.JobTitleFilter getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.JobTitleFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.JobTitleFilter build() { + com.google.cloud.talent.v4beta1.JobTitleFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.JobTitleFilter buildPartial() { + com.google.cloud.talent.v4beta1.JobTitleFilter result = + new com.google.cloud.talent.v4beta1.JobTitleFilter(this); + result.jobTitle_ = jobTitle_; + result.negated_ = negated_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.JobTitleFilter) { + return mergeFrom((com.google.cloud.talent.v4beta1.JobTitleFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.JobTitleFilter other) { + if (other == com.google.cloud.talent.v4beta1.JobTitleFilter.getDefaultInstance()) return this; + if (!other.getJobTitle().isEmpty()) { + jobTitle_ = other.jobTitle_; + onChanged(); + } + if (other.getNegated() != false) { + setNegated(other.getNegated()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.JobTitleFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.JobTitleFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object jobTitle_ = ""; + /** + * + * + *
+     * Required.
+     * The job title, for example, "Software engineer", or "Product manager".
+     * 
+ * + * string job_title = 1; + */ + public java.lang.String getJobTitle() { + java.lang.Object ref = jobTitle_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobTitle_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The job title, for example, "Software engineer", or "Product manager".
+     * 
+ * + * string job_title = 1; + */ + public com.google.protobuf.ByteString getJobTitleBytes() { + java.lang.Object ref = jobTitle_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobTitle_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The job title, for example, "Software engineer", or "Product manager".
+     * 
+ * + * string job_title = 1; + */ + public Builder setJobTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jobTitle_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The job title, for example, "Software engineer", or "Product manager".
+     * 
+ * + * string job_title = 1; + */ + public Builder clearJobTitle() { + + jobTitle_ = getDefaultInstance().getJobTitle(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The job title, for example, "Software engineer", or "Product manager".
+     * 
+ * + * string job_title = 1; + */ + public Builder setJobTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jobTitle_ = value; + onChanged(); + return this; + } + + private boolean negated_; + /** + * + * + *
+     * Optional.
+     * Whether to apply negation to the filter so profiles matching the filter
+     * are excluded.
+     * 
+ * + * bool negated = 2; + */ + public boolean getNegated() { + return negated_; + } + /** + * + * + *
+     * Optional.
+     * Whether to apply negation to the filter so profiles matching the filter
+     * are excluded.
+     * 
+ * + * bool negated = 2; + */ + public Builder setNegated(boolean value) { + + negated_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Whether to apply negation to the filter so profiles matching the filter
+     * are excluded.
+     * 
+ * + * bool negated = 2; + */ + public Builder clearNegated() { + + negated_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.JobTitleFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.JobTitleFilter) + private static final com.google.cloud.talent.v4beta1.JobTitleFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.JobTitleFilter(); + } + + public static com.google.cloud.talent.v4beta1.JobTitleFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public JobTitleFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new JobTitleFilter(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.JobTitleFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobTitleFilterOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobTitleFilterOrBuilder.java new file mode 100644 index 000000000000..a3623d46cc5c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobTitleFilterOrBuilder.java @@ -0,0 +1,46 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +public interface JobTitleFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.JobTitleFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The job title, for example, "Software engineer", or "Product manager".
+   * 
+ * + * string job_title = 1; + */ + java.lang.String getJobTitle(); + /** + * + * + *
+   * Required.
+   * The job title, for example, "Software engineer", or "Product manager".
+   * 
+ * + * string job_title = 1; + */ + com.google.protobuf.ByteString getJobTitleBytes(); + + /** + * + * + *
+   * Optional.
+   * Whether to apply negation to the filter so profiles matching the filter
+   * are excluded.
+   * 
+ * + * bool negated = 2; + */ + boolean getNegated(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobView.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobView.java new file mode 100644 index 000000000000..b5f0cb13fd5b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobView.java @@ -0,0 +1,231 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * An enum that specifies the job attributes that are returned in the
+ * [MatchingJob.Job][] in
+ * [SearchJobsResponse][google.cloud.talent.v4beta1.SearchJobsResponse] or
+ * [Job][google.cloud.talent.v4beta1.Job] objects in
+ * [ListJobsResponse][google.cloud.talent.v4beta1.ListJobsResponse].
+ * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.JobView} + */ +public enum JobView implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Default value.
+   * 
+ * + * JOB_VIEW_UNSPECIFIED = 0; + */ + JOB_VIEW_UNSPECIFIED(0), + /** + * + * + *
+   * A ID only view of job, with following attributes:
+   * [Job.name][google.cloud.talent.v4beta1.Job.name],
+   * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code].
+   * 
+ * + * JOB_VIEW_ID_ONLY = 1; + */ + JOB_VIEW_ID_ONLY(1), + /** + * + * + *
+   * A minimal view of the job, with the following attributes:
+   * [Job.name][google.cloud.talent.v4beta1.Job.name],
+   * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+   * [Job.job_title][],
+   * [Job.company_name][google.cloud.talent.v4beta1.Job.company_name],
+   * [Job.DerivedInfo.locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations],
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code].
+   * 
+ * + * JOB_VIEW_MINIMAL = 2; + */ + JOB_VIEW_MINIMAL(2), + /** + * + * + *
+   * A small view of the job, with the following attributes in the search
+   * results: [Job.name][google.cloud.talent.v4beta1.Job.name],
+   * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+   * [Job.job_title][],
+   * [Job.company_name][google.cloud.talent.v4beta1.Job.company_name],
+   * [Job.DerivedInfo.locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations],
+   * [Job.visibility][google.cloud.talent.v4beta1.Job.visibility],
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code],
+   * [Job.description][google.cloud.talent.v4beta1.Job.description].
+   * 
+ * + * JOB_VIEW_SMALL = 3; + */ + JOB_VIEW_SMALL(3), + /** + * + * + *
+   * All available attributes are included in the search results.
+   * 
+ * + * JOB_VIEW_FULL = 4; + */ + JOB_VIEW_FULL(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Default value.
+   * 
+ * + * JOB_VIEW_UNSPECIFIED = 0; + */ + public static final int JOB_VIEW_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * A ID only view of job, with following attributes:
+   * [Job.name][google.cloud.talent.v4beta1.Job.name],
+   * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code].
+   * 
+ * + * JOB_VIEW_ID_ONLY = 1; + */ + public static final int JOB_VIEW_ID_ONLY_VALUE = 1; + /** + * + * + *
+   * A minimal view of the job, with the following attributes:
+   * [Job.name][google.cloud.talent.v4beta1.Job.name],
+   * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+   * [Job.job_title][],
+   * [Job.company_name][google.cloud.talent.v4beta1.Job.company_name],
+   * [Job.DerivedInfo.locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations],
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code].
+   * 
+ * + * JOB_VIEW_MINIMAL = 2; + */ + public static final int JOB_VIEW_MINIMAL_VALUE = 2; + /** + * + * + *
+   * A small view of the job, with the following attributes in the search
+   * results: [Job.name][google.cloud.talent.v4beta1.Job.name],
+   * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
+   * [Job.job_title][],
+   * [Job.company_name][google.cloud.talent.v4beta1.Job.company_name],
+   * [Job.DerivedInfo.locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations],
+   * [Job.visibility][google.cloud.talent.v4beta1.Job.visibility],
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code],
+   * [Job.description][google.cloud.talent.v4beta1.Job.description].
+   * 
+ * + * JOB_VIEW_SMALL = 3; + */ + public static final int JOB_VIEW_SMALL_VALUE = 3; + /** + * + * + *
+   * All available attributes are included in the search results.
+   * 
+ * + * JOB_VIEW_FULL = 4; + */ + public static final int JOB_VIEW_FULL_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static JobView valueOf(int value) { + return forNumber(value); + } + + public static JobView forNumber(int value) { + switch (value) { + case 0: + return JOB_VIEW_UNSPECIFIED; + case 1: + return JOB_VIEW_ID_ONLY; + case 2: + return JOB_VIEW_MINIMAL; + case 3: + return JOB_VIEW_SMALL; + case 4: + return JOB_VIEW_FULL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public JobView findValueByNumber(int number) { + return JobView.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto.getDescriptor().getEnumTypes().get(0); + } + + private static final JobView[] VALUES = values(); + + public static JobView 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()]; + } + + private final int value; + + private JobView(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.JobView) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesRequest.java new file mode 100644 index 000000000000..0e2d9968fd23 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesRequest.java @@ -0,0 +1,976 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/company_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * List companies for which the client has ACL visibility.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ListCompaniesRequest} + */ +public final class ListCompaniesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ListCompaniesRequest) + ListCompaniesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListCompaniesRequest.newBuilder() to construct. + private ListCompaniesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListCompaniesRequest() { + parent_ = ""; + pageToken_ = ""; + pageSize_ = 0; + requireOpenJobs_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListCompaniesRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + case 32: + { + requireOpenJobs_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_ListCompaniesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_ListCompaniesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ListCompaniesRequest.class, + com.google.cloud.talent.v4beta1.ListCompaniesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required.
+   * Resource name of the project under which the company is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * Resource name of the project under which the company is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * Optional.
+   * The starting indicator from which to return results.
+   * 
+ * + * string page_token = 2; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The starting indicator from which to return results.
+   * 
+ * + * string page_token = 2; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_; + /** + * + * + *
+   * Optional.
+   * The maximum number of companies to be returned, at most 100.
+   * Default is 100 if a non-positive number is provided.
+   * 
+ * + * int32 page_size = 3; + */ + public int getPageSize() { + return pageSize_; + } + + public static final int REQUIRE_OPEN_JOBS_FIELD_NUMBER = 4; + private boolean requireOpenJobs_; + /** + * + * + *
+   * Optional.
+   * Set to true if the companies requested must have open jobs.
+   * Defaults to false.
+   * If true, at most
+   * [page_size][google.cloud.talent.v4beta1.ListCompaniesRequest.page_size] of
+   * companies are fetched, among which only those with open jobs are returned.
+   * 
+ * + * bool require_open_jobs = 4; + */ + public boolean getRequireOpenJobs() { + return requireOpenJobs_; + } + + 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 (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pageToken_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (requireOpenJobs_ != false) { + output.writeBool(4, requireOpenJobs_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + if (requireOpenJobs_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, requireOpenJobs_); + } + size += unknownFields.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.cloud.talent.v4beta1.ListCompaniesRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ListCompaniesRequest other = + (com.google.cloud.talent.v4beta1.ListCompaniesRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && getPageToken().equals(other.getPageToken()); + result = result && (getPageSize() == other.getPageSize()); + result = result && (getRequireOpenJobs() == other.getRequireOpenJobs()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + REQUIRE_OPEN_JOBS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequireOpenJobs()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesRequest 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.cloud.talent.v4beta1.ListCompaniesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesRequest 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.cloud.talent.v4beta1.ListCompaniesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesRequest 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.cloud.talent.v4beta1.ListCompaniesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesRequest 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.cloud.talent.v4beta1.ListCompaniesRequest 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; + } + /** + * + * + *
+   * List companies for which the client has ACL visibility.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ListCompaniesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ListCompaniesRequest) + com.google.cloud.talent.v4beta1.ListCompaniesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_ListCompaniesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_ListCompaniesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ListCompaniesRequest.class, + com.google.cloud.talent.v4beta1.ListCompaniesRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ListCompaniesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + pageToken_ = ""; + + pageSize_ = 0; + + requireOpenJobs_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_ListCompaniesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListCompaniesRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ListCompaniesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListCompaniesRequest build() { + com.google.cloud.talent.v4beta1.ListCompaniesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListCompaniesRequest buildPartial() { + com.google.cloud.talent.v4beta1.ListCompaniesRequest result = + new com.google.cloud.talent.v4beta1.ListCompaniesRequest(this); + result.parent_ = parent_; + result.pageToken_ = pageToken_; + result.pageSize_ = pageSize_; + result.requireOpenJobs_ = requireOpenJobs_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ListCompaniesRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.ListCompaniesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ListCompaniesRequest other) { + if (other == com.google.cloud.talent.v4beta1.ListCompaniesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (other.getRequireOpenJobs() != false) { + setRequireOpenJobs(other.getRequireOpenJobs()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.ListCompaniesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.ListCompaniesRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the company is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the company is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the company is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the company is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the company is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional.
+     * The starting indicator from which to return results.
+     * 
+ * + * string page_token = 2; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The starting indicator from which to return results.
+     * 
+ * + * string page_token = 2; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The starting indicator from which to return results.
+     * 
+ * + * string page_token = 2; + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The starting indicator from which to return results.
+     * 
+ * + * string page_token = 2; + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The starting indicator from which to return results.
+     * 
+ * + * string page_token = 2; + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional.
+     * The maximum number of companies to be returned, at most 100.
+     * Default is 100 if a non-positive number is provided.
+     * 
+ * + * int32 page_size = 3; + */ + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional.
+     * The maximum number of companies to be returned, at most 100.
+     * Default is 100 if a non-positive number is provided.
+     * 
+ * + * int32 page_size = 3; + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The maximum number of companies to be returned, at most 100.
+     * Default is 100 if a non-positive number is provided.
+     * 
+ * + * int32 page_size = 3; + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private boolean requireOpenJobs_; + /** + * + * + *
+     * Optional.
+     * Set to true if the companies requested must have open jobs.
+     * Defaults to false.
+     * If true, at most
+     * [page_size][google.cloud.talent.v4beta1.ListCompaniesRequest.page_size] of
+     * companies are fetched, among which only those with open jobs are returned.
+     * 
+ * + * bool require_open_jobs = 4; + */ + public boolean getRequireOpenJobs() { + return requireOpenJobs_; + } + /** + * + * + *
+     * Optional.
+     * Set to true if the companies requested must have open jobs.
+     * Defaults to false.
+     * If true, at most
+     * [page_size][google.cloud.talent.v4beta1.ListCompaniesRequest.page_size] of
+     * companies are fetched, among which only those with open jobs are returned.
+     * 
+ * + * bool require_open_jobs = 4; + */ + public Builder setRequireOpenJobs(boolean value) { + + requireOpenJobs_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Set to true if the companies requested must have open jobs.
+     * Defaults to false.
+     * If true, at most
+     * [page_size][google.cloud.talent.v4beta1.ListCompaniesRequest.page_size] of
+     * companies are fetched, among which only those with open jobs are returned.
+     * 
+ * + * bool require_open_jobs = 4; + */ + public Builder clearRequireOpenJobs() { + + requireOpenJobs_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ListCompaniesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ListCompaniesRequest) + private static final com.google.cloud.talent.v4beta1.ListCompaniesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ListCompaniesRequest(); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCompaniesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCompaniesRequest(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.ListCompaniesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesRequestOrBuilder.java new file mode 100644 index 000000000000..7392d93df2f5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesRequestOrBuilder.java @@ -0,0 +1,89 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/company_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface ListCompaniesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ListCompaniesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * Resource name of the project under which the company is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required.
+   * Resource name of the project under which the company is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional.
+   * The starting indicator from which to return results.
+   * 
+ * + * string page_token = 2; + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional.
+   * The starting indicator from which to return results.
+   * 
+ * + * string page_token = 2; + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional.
+   * The maximum number of companies to be returned, at most 100.
+   * Default is 100 if a non-positive number is provided.
+   * 
+ * + * int32 page_size = 3; + */ + int getPageSize(); + + /** + * + * + *
+   * Optional.
+   * Set to true if the companies requested must have open jobs.
+   * Defaults to false.
+   * If true, at most
+   * [page_size][google.cloud.talent.v4beta1.ListCompaniesRequest.page_size] of
+   * companies are fetched, among which only those with open jobs are returned.
+   * 
+ * + * bool require_open_jobs = 4; + */ + boolean getRequireOpenJobs(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesResponse.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesResponse.java new file mode 100644 index 000000000000..8c2317acf46e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesResponse.java @@ -0,0 +1,1373 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/company_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Output only.
+ * The List companies response object.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ListCompaniesResponse} + */ +public final class ListCompaniesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ListCompaniesResponse) + ListCompaniesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListCompaniesResponse.newBuilder() to construct. + private ListCompaniesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListCompaniesResponse() { + companies_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListCompaniesResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + companies_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + companies_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.Company.parser(), extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + case 26: + { + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = + input.readMessage( + com.google.cloud.talent.v4beta1.ResponseMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + companies_ = java.util.Collections.unmodifiableList(companies_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_ListCompaniesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_ListCompaniesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ListCompaniesResponse.class, + com.google.cloud.talent.v4beta1.ListCompaniesResponse.Builder.class); + } + + private int bitField0_; + public static final int COMPANIES_FIELD_NUMBER = 1; + private java.util.List companies_; + /** + * + * + *
+   * Companies for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public java.util.List getCompaniesList() { + return companies_; + } + /** + * + * + *
+   * Companies for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public java.util.List + getCompaniesOrBuilderList() { + return companies_; + } + /** + * + * + *
+   * Companies for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public int getCompaniesCount() { + return companies_.size(); + } + /** + * + * + *
+   * Companies for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public com.google.cloud.talent.v4beta1.Company getCompanies(int index) { + return companies_.get(index); + } + /** + * + * + *
+   * Companies for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public com.google.cloud.talent.v4beta1.CompanyOrBuilder getCompaniesOrBuilder(int index) { + return companies_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * 
+ * + * string next_page_token = 2; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * 
+ * + * string next_page_token = 2; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METADATA_FIELD_NUMBER = 3; + private com.google.cloud.talent.v4beta1.ResponseMetadata metadata_; + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata() { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + 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 { + for (int i = 0; i < companies_.size(); i++) { + output.writeMessage(1, companies_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + if (metadata_ != null) { + output.writeMessage(3, getMetadata()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < companies_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, companies_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMetadata()); + } + size += unknownFields.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.cloud.talent.v4beta1.ListCompaniesResponse)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ListCompaniesResponse other = + (com.google.cloud.talent.v4beta1.ListCompaniesResponse) obj; + + boolean result = true; + result = result && getCompaniesList().equals(other.getCompaniesList()); + result = result && getNextPageToken().equals(other.getNextPageToken()); + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata().equals(other.getMetadata()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getCompaniesCount() > 0) { + hash = (37 * hash) + COMPANIES_FIELD_NUMBER; + hash = (53 * hash) + getCompaniesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesResponse 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.cloud.talent.v4beta1.ListCompaniesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesResponse 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.cloud.talent.v4beta1.ListCompaniesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesResponse 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.cloud.talent.v4beta1.ListCompaniesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesResponse 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.cloud.talent.v4beta1.ListCompaniesResponse 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; + } + /** + * + * + *
+   * Output only.
+   * The List companies response object.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ListCompaniesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ListCompaniesResponse) + com.google.cloud.talent.v4beta1.ListCompaniesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_ListCompaniesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_ListCompaniesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ListCompaniesResponse.class, + com.google.cloud.talent.v4beta1.ListCompaniesResponse.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ListCompaniesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCompaniesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (companiesBuilder_ == null) { + companies_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + companiesBuilder_.clear(); + } + nextPageToken_ = ""; + + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_ListCompaniesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListCompaniesResponse getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ListCompaniesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListCompaniesResponse build() { + com.google.cloud.talent.v4beta1.ListCompaniesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListCompaniesResponse buildPartial() { + com.google.cloud.talent.v4beta1.ListCompaniesResponse result = + new com.google.cloud.talent.v4beta1.ListCompaniesResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (companiesBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + companies_ = java.util.Collections.unmodifiableList(companies_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.companies_ = companies_; + } else { + result.companies_ = companiesBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ListCompaniesResponse) { + return mergeFrom((com.google.cloud.talent.v4beta1.ListCompaniesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ListCompaniesResponse other) { + if (other == com.google.cloud.talent.v4beta1.ListCompaniesResponse.getDefaultInstance()) + return this; + if (companiesBuilder_ == null) { + if (!other.companies_.isEmpty()) { + if (companies_.isEmpty()) { + companies_ = other.companies_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCompaniesIsMutable(); + companies_.addAll(other.companies_); + } + onChanged(); + } + } else { + if (!other.companies_.isEmpty()) { + if (companiesBuilder_.isEmpty()) { + companiesBuilder_.dispose(); + companiesBuilder_ = null; + companies_ = other.companies_; + bitField0_ = (bitField0_ & ~0x00000001); + companiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCompaniesFieldBuilder() + : null; + } else { + companiesBuilder_.addAllMessages(other.companies_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.ListCompaniesResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.ListCompaniesResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List companies_ = + java.util.Collections.emptyList(); + + private void ensureCompaniesIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + companies_ = new java.util.ArrayList(companies_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Company, + com.google.cloud.talent.v4beta1.Company.Builder, + com.google.cloud.talent.v4beta1.CompanyOrBuilder> + companiesBuilder_; + + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public java.util.List getCompaniesList() { + if (companiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(companies_); + } else { + return companiesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public int getCompaniesCount() { + if (companiesBuilder_ == null) { + return companies_.size(); + } else { + return companiesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public com.google.cloud.talent.v4beta1.Company getCompanies(int index) { + if (companiesBuilder_ == null) { + return companies_.get(index); + } else { + return companiesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public Builder setCompanies(int index, com.google.cloud.talent.v4beta1.Company value) { + if (companiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCompaniesIsMutable(); + companies_.set(index, value); + onChanged(); + } else { + companiesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public Builder setCompanies( + int index, com.google.cloud.talent.v4beta1.Company.Builder builderForValue) { + if (companiesBuilder_ == null) { + ensureCompaniesIsMutable(); + companies_.set(index, builderForValue.build()); + onChanged(); + } else { + companiesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public Builder addCompanies(com.google.cloud.talent.v4beta1.Company value) { + if (companiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCompaniesIsMutable(); + companies_.add(value); + onChanged(); + } else { + companiesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public Builder addCompanies(int index, com.google.cloud.talent.v4beta1.Company value) { + if (companiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCompaniesIsMutable(); + companies_.add(index, value); + onChanged(); + } else { + companiesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public Builder addCompanies(com.google.cloud.talent.v4beta1.Company.Builder builderForValue) { + if (companiesBuilder_ == null) { + ensureCompaniesIsMutable(); + companies_.add(builderForValue.build()); + onChanged(); + } else { + companiesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public Builder addCompanies( + int index, com.google.cloud.talent.v4beta1.Company.Builder builderForValue) { + if (companiesBuilder_ == null) { + ensureCompaniesIsMutable(); + companies_.add(index, builderForValue.build()); + onChanged(); + } else { + companiesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public Builder addAllCompanies( + java.lang.Iterable values) { + if (companiesBuilder_ == null) { + ensureCompaniesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, companies_); + onChanged(); + } else { + companiesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public Builder clearCompanies() { + if (companiesBuilder_ == null) { + companies_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + companiesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public Builder removeCompanies(int index) { + if (companiesBuilder_ == null) { + ensureCompaniesIsMutable(); + companies_.remove(index); + onChanged(); + } else { + companiesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public com.google.cloud.talent.v4beta1.Company.Builder getCompaniesBuilder(int index) { + return getCompaniesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public com.google.cloud.talent.v4beta1.CompanyOrBuilder getCompaniesOrBuilder(int index) { + if (companiesBuilder_ == null) { + return companies_.get(index); + } else { + return companiesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public java.util.List + getCompaniesOrBuilderList() { + if (companiesBuilder_ != null) { + return companiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(companies_); + } + } + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public com.google.cloud.talent.v4beta1.Company.Builder addCompaniesBuilder() { + return getCompaniesFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.Company.getDefaultInstance()); + } + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public com.google.cloud.talent.v4beta1.Company.Builder addCompaniesBuilder(int index) { + return getCompaniesFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.Company.getDefaultInstance()); + } + /** + * + * + *
+     * Companies for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + public java.util.List + getCompaniesBuilderList() { + return getCompaniesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Company, + com.google.cloud.talent.v4beta1.Company.Builder, + com.google.cloud.talent.v4beta1.CompanyOrBuilder> + getCompaniesFieldBuilder() { + if (companiesBuilder_ == null) { + companiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Company, + com.google.cloud.talent.v4beta1.Company.Builder, + com.google.cloud.talent.v4beta1.CompanyOrBuilder>( + companies_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + companies_ = null; + } + return companiesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * string next_page_token = 2; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * string next_page_token = 2; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.ResponseMetadata metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder> + metadataBuilder_; + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public Builder setMetadata(com.google.cloud.talent.v4beta1.ResponseMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public Builder setMetadata( + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public Builder mergeMetadata(com.google.cloud.talent.v4beta1.ResponseMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + com.google.cloud.talent.v4beta1.ResponseMetadata.newBuilder(metadata_) + .mergeFrom(value) + .buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ListCompaniesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ListCompaniesResponse) + private static final com.google.cloud.talent.v4beta1.ListCompaniesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ListCompaniesResponse(); + } + + public static com.google.cloud.talent.v4beta1.ListCompaniesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCompaniesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCompaniesResponse(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.ListCompaniesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesResponseOrBuilder.java new file mode 100644 index 000000000000..526e9a65eca3 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesResponseOrBuilder.java @@ -0,0 +1,117 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/company_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface ListCompaniesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ListCompaniesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Companies for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + java.util.List getCompaniesList(); + /** + * + * + *
+   * Companies for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + com.google.cloud.talent.v4beta1.Company getCompanies(int index); + /** + * + * + *
+   * Companies for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + int getCompaniesCount(); + /** + * + * + *
+   * Companies for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + java.util.List + getCompaniesOrBuilderList(); + /** + * + * + *
+   * Companies for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Company companies = 1; + */ + com.google.cloud.talent.v4beta1.CompanyOrBuilder getCompaniesOrBuilder(int index); + + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * 
+ * + * string next_page_token = 2; + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * 
+ * + * string next_page_token = 2; + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + boolean hasMetadata(); + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata(); + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsRequest.java new file mode 100644 index 000000000000..13c2012aa246 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsRequest.java @@ -0,0 +1,1306 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * List jobs request.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ListJobsRequest} + */ +public final class ListJobsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ListJobsRequest) + ListJobsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListJobsRequest.newBuilder() to construct. + private ListJobsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListJobsRequest() { + parent_ = ""; + filter_ = ""; + pageToken_ = ""; + pageSize_ = 0; + jobView_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListJobsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 32: + { + pageSize_ = input.readInt32(); + break; + } + case 40: + { + int rawValue = input.readEnum(); + + jobView_ = rawValue; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_ListJobsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_ListJobsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ListJobsRequest.class, + com.google.cloud.talent.v4beta1.ListJobsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required.
+   * The resource name of the project under which the job is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The resource name of the project under which the job is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 2; + private volatile java.lang.Object filter_; + /** + * + * + *
+   * Required.
+   * The filter string specifies the jobs to be enumerated.
+   * Supported operator: =, AND
+   * The fields eligible for filtering are:
+   * * `companyName` (Required)
+   * * `requisitionId` (Optional)
+   * * `status` (Optional) Available values: OPEN, EXPIRED, ALL. Defaults to
+   * OPEN if no value is specified.
+   * Sample Query:
+   * * companyName = "projects/api-test-project/companies/123"
+   * * companyName = "projects/api-test-project/companies/123" AND requisitionId
+   * = "req-1"
+   * * companyName = "projects/api-test-project/companies/123" AND status =
+   * "EXPIRED"
+   * 
+ * + * string filter = 2; + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + 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(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The filter string specifies the jobs to be enumerated.
+   * Supported operator: =, AND
+   * The fields eligible for filtering are:
+   * * `companyName` (Required)
+   * * `requisitionId` (Optional)
+   * * `status` (Optional) Available values: OPEN, EXPIRED, ALL. Defaults to
+   * OPEN if no value is specified.
+   * Sample Query:
+   * * companyName = "projects/api-test-project/companies/123"
+   * * companyName = "projects/api-test-project/companies/123" AND requisitionId
+   * = "req-1"
+   * * companyName = "projects/api-test-project/companies/123" AND status =
+   * "EXPIRED"
+   * 
+ * + * string filter = 2; + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * Optional.
+   * The starting point of a query result.
+   * 
+ * + * string page_token = 3; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The starting point of a query result.
+   * 
+ * + * string page_token = 3; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 4; + private int pageSize_; + /** + * + * + *
+   * Optional.
+   * The maximum number of jobs to be returned per page of results.
+   * If [job_view][google.cloud.talent.v4beta1.ListJobsRequest.job_view] is set
+   * to
+   * [JobView.JOB_VIEW_ID_ONLY][google.cloud.talent.v4beta1.JobView.JOB_VIEW_ID_ONLY],
+   * the maximum allowed page size is 1000. Otherwise, the maximum allowed page
+   * size is 100.
+   * Default is 100 if empty or a number < 1 is specified.
+   * 
+ * + * int32 page_size = 4; + */ + public int getPageSize() { + return pageSize_; + } + + public static final int JOB_VIEW_FIELD_NUMBER = 5; + private int jobView_; + /** + * + * + *
+   * Optional.
+   * The desired job attributes returned for jobs in the
+   * search response. Defaults to
+   * [JobView.JOB_VIEW_FULL][google.cloud.talent.v4beta1.JobView.JOB_VIEW_FULL]
+   * if no value is specified.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 5; + */ + public int getJobViewValue() { + return jobView_; + } + /** + * + * + *
+   * Optional.
+   * The desired job attributes returned for jobs in the
+   * search response. Defaults to
+   * [JobView.JOB_VIEW_FULL][google.cloud.talent.v4beta1.JobView.JOB_VIEW_FULL]
+   * if no value is specified.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 5; + */ + public com.google.cloud.talent.v4beta1.JobView getJobView() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.JobView result = + com.google.cloud.talent.v4beta1.JobView.valueOf(jobView_); + return result == null ? com.google.cloud.talent.v4beta1.JobView.UNRECOGNIZED : result; + } + + 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 (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!getFilterBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (pageSize_ != 0) { + output.writeInt32(4, pageSize_); + } + if (jobView_ != com.google.cloud.talent.v4beta1.JobView.JOB_VIEW_UNSPECIFIED.getNumber()) { + output.writeEnum(5, jobView_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!getFilterBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); + } + if (jobView_ != com.google.cloud.talent.v4beta1.JobView.JOB_VIEW_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, jobView_); + } + size += unknownFields.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.cloud.talent.v4beta1.ListJobsRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ListJobsRequest other = + (com.google.cloud.talent.v4beta1.ListJobsRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && getFilter().equals(other.getFilter()); + result = result && getPageToken().equals(other.getPageToken()); + result = result && (getPageSize() == other.getPageSize()); + result = result && jobView_ == other.jobView_; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + JOB_VIEW_FIELD_NUMBER; + hash = (53 * hash) + jobView_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ListJobsRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListJobsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListJobsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListJobsRequest 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.cloud.talent.v4beta1.ListJobsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListJobsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListJobsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListJobsRequest 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.cloud.talent.v4beta1.ListJobsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListJobsRequest 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.cloud.talent.v4beta1.ListJobsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListJobsRequest 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.cloud.talent.v4beta1.ListJobsRequest 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; + } + /** + * + * + *
+   * Input only.
+   * List jobs request.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ListJobsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ListJobsRequest) + com.google.cloud.talent.v4beta1.ListJobsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_ListJobsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_ListJobsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ListJobsRequest.class, + com.google.cloud.talent.v4beta1.ListJobsRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ListJobsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + filter_ = ""; + + pageToken_ = ""; + + pageSize_ = 0; + + jobView_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_ListJobsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListJobsRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ListJobsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListJobsRequest build() { + com.google.cloud.talent.v4beta1.ListJobsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListJobsRequest buildPartial() { + com.google.cloud.talent.v4beta1.ListJobsRequest result = + new com.google.cloud.talent.v4beta1.ListJobsRequest(this); + result.parent_ = parent_; + result.filter_ = filter_; + result.pageToken_ = pageToken_; + result.pageSize_ = pageSize_; + result.jobView_ = jobView_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ListJobsRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.ListJobsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ListJobsRequest other) { + if (other == com.google.cloud.talent.v4beta1.ListJobsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (other.jobView_ != 0) { + setJobViewValue(other.getJobViewValue()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.ListJobsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.ListJobsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required.
+     * The resource name of the project under which the job is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the project under which the job is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the project under which the job is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the project under which the job is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the project under which the job is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Required.
+     * The filter string specifies the jobs to be enumerated.
+     * Supported operator: =, AND
+     * The fields eligible for filtering are:
+     * * `companyName` (Required)
+     * * `requisitionId` (Optional)
+     * * `status` (Optional) Available values: OPEN, EXPIRED, ALL. Defaults to
+     * OPEN if no value is specified.
+     * Sample Query:
+     * * companyName = "projects/api-test-project/companies/123"
+     * * companyName = "projects/api-test-project/companies/123" AND requisitionId
+     * = "req-1"
+     * * companyName = "projects/api-test-project/companies/123" AND status =
+     * "EXPIRED"
+     * 
+ * + * string filter = 2; + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The filter string specifies the jobs to be enumerated.
+     * Supported operator: =, AND
+     * The fields eligible for filtering are:
+     * * `companyName` (Required)
+     * * `requisitionId` (Optional)
+     * * `status` (Optional) Available values: OPEN, EXPIRED, ALL. Defaults to
+     * OPEN if no value is specified.
+     * Sample Query:
+     * * companyName = "projects/api-test-project/companies/123"
+     * * companyName = "projects/api-test-project/companies/123" AND requisitionId
+     * = "req-1"
+     * * companyName = "projects/api-test-project/companies/123" AND status =
+     * "EXPIRED"
+     * 
+ * + * string filter = 2; + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The filter string specifies the jobs to be enumerated.
+     * Supported operator: =, AND
+     * The fields eligible for filtering are:
+     * * `companyName` (Required)
+     * * `requisitionId` (Optional)
+     * * `status` (Optional) Available values: OPEN, EXPIRED, ALL. Defaults to
+     * OPEN if no value is specified.
+     * Sample Query:
+     * * companyName = "projects/api-test-project/companies/123"
+     * * companyName = "projects/api-test-project/companies/123" AND requisitionId
+     * = "req-1"
+     * * companyName = "projects/api-test-project/companies/123" AND status =
+     * "EXPIRED"
+     * 
+ * + * string filter = 2; + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The filter string specifies the jobs to be enumerated.
+     * Supported operator: =, AND
+     * The fields eligible for filtering are:
+     * * `companyName` (Required)
+     * * `requisitionId` (Optional)
+     * * `status` (Optional) Available values: OPEN, EXPIRED, ALL. Defaults to
+     * OPEN if no value is specified.
+     * Sample Query:
+     * * companyName = "projects/api-test-project/companies/123"
+     * * companyName = "projects/api-test-project/companies/123" AND requisitionId
+     * = "req-1"
+     * * companyName = "projects/api-test-project/companies/123" AND status =
+     * "EXPIRED"
+     * 
+ * + * string filter = 2; + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The filter string specifies the jobs to be enumerated.
+     * Supported operator: =, AND
+     * The fields eligible for filtering are:
+     * * `companyName` (Required)
+     * * `requisitionId` (Optional)
+     * * `status` (Optional) Available values: OPEN, EXPIRED, ALL. Defaults to
+     * OPEN if no value is specified.
+     * Sample Query:
+     * * companyName = "projects/api-test-project/companies/123"
+     * * companyName = "projects/api-test-project/companies/123" AND requisitionId
+     * = "req-1"
+     * * companyName = "projects/api-test-project/companies/123" AND status =
+     * "EXPIRED"
+     * 
+ * + * string filter = 2; + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filter_ = value; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional.
+     * The starting point of a query result.
+     * 
+ * + * string page_token = 3; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The starting point of a query result.
+     * 
+ * + * string page_token = 3; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The starting point of a query result.
+     * 
+ * + * string page_token = 3; + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The starting point of a query result.
+     * 
+ * + * string page_token = 3; + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The starting point of a query result.
+     * 
+ * + * string page_token = 3; + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional.
+     * The maximum number of jobs to be returned per page of results.
+     * If [job_view][google.cloud.talent.v4beta1.ListJobsRequest.job_view] is set
+     * to
+     * [JobView.JOB_VIEW_ID_ONLY][google.cloud.talent.v4beta1.JobView.JOB_VIEW_ID_ONLY],
+     * the maximum allowed page size is 1000. Otherwise, the maximum allowed page
+     * size is 100.
+     * Default is 100 if empty or a number < 1 is specified.
+     * 
+ * + * int32 page_size = 4; + */ + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional.
+     * The maximum number of jobs to be returned per page of results.
+     * If [job_view][google.cloud.talent.v4beta1.ListJobsRequest.job_view] is set
+     * to
+     * [JobView.JOB_VIEW_ID_ONLY][google.cloud.talent.v4beta1.JobView.JOB_VIEW_ID_ONLY],
+     * the maximum allowed page size is 1000. Otherwise, the maximum allowed page
+     * size is 100.
+     * Default is 100 if empty or a number < 1 is specified.
+     * 
+ * + * int32 page_size = 4; + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The maximum number of jobs to be returned per page of results.
+     * If [job_view][google.cloud.talent.v4beta1.ListJobsRequest.job_view] is set
+     * to
+     * [JobView.JOB_VIEW_ID_ONLY][google.cloud.talent.v4beta1.JobView.JOB_VIEW_ID_ONLY],
+     * the maximum allowed page size is 1000. Otherwise, the maximum allowed page
+     * size is 100.
+     * Default is 100 if empty or a number < 1 is specified.
+     * 
+ * + * int32 page_size = 4; + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private int jobView_ = 0; + /** + * + * + *
+     * Optional.
+     * The desired job attributes returned for jobs in the
+     * search response. Defaults to
+     * [JobView.JOB_VIEW_FULL][google.cloud.talent.v4beta1.JobView.JOB_VIEW_FULL]
+     * if no value is specified.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 5; + */ + public int getJobViewValue() { + return jobView_; + } + /** + * + * + *
+     * Optional.
+     * The desired job attributes returned for jobs in the
+     * search response. Defaults to
+     * [JobView.JOB_VIEW_FULL][google.cloud.talent.v4beta1.JobView.JOB_VIEW_FULL]
+     * if no value is specified.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 5; + */ + public Builder setJobViewValue(int value) { + jobView_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The desired job attributes returned for jobs in the
+     * search response. Defaults to
+     * [JobView.JOB_VIEW_FULL][google.cloud.talent.v4beta1.JobView.JOB_VIEW_FULL]
+     * if no value is specified.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 5; + */ + public com.google.cloud.talent.v4beta1.JobView getJobView() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.JobView result = + com.google.cloud.talent.v4beta1.JobView.valueOf(jobView_); + return result == null ? com.google.cloud.talent.v4beta1.JobView.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Optional.
+     * The desired job attributes returned for jobs in the
+     * search response. Defaults to
+     * [JobView.JOB_VIEW_FULL][google.cloud.talent.v4beta1.JobView.JOB_VIEW_FULL]
+     * if no value is specified.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 5; + */ + public Builder setJobView(com.google.cloud.talent.v4beta1.JobView value) { + if (value == null) { + throw new NullPointerException(); + } + + jobView_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The desired job attributes returned for jobs in the
+     * search response. Defaults to
+     * [JobView.JOB_VIEW_FULL][google.cloud.talent.v4beta1.JobView.JOB_VIEW_FULL]
+     * if no value is specified.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 5; + */ + public Builder clearJobView() { + + jobView_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ListJobsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ListJobsRequest) + private static final com.google.cloud.talent.v4beta1.ListJobsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ListJobsRequest(); + } + + public static com.google.cloud.talent.v4beta1.ListJobsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListJobsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListJobsRequest(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.ListJobsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsRequestOrBuilder.java new file mode 100644 index 000000000000..7b6046a8dc03 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsRequestOrBuilder.java @@ -0,0 +1,154 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface ListJobsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ListJobsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The resource name of the project under which the job is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required.
+   * The resource name of the project under which the job is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required.
+   * The filter string specifies the jobs to be enumerated.
+   * Supported operator: =, AND
+   * The fields eligible for filtering are:
+   * * `companyName` (Required)
+   * * `requisitionId` (Optional)
+   * * `status` (Optional) Available values: OPEN, EXPIRED, ALL. Defaults to
+   * OPEN if no value is specified.
+   * Sample Query:
+   * * companyName = "projects/api-test-project/companies/123"
+   * * companyName = "projects/api-test-project/companies/123" AND requisitionId
+   * = "req-1"
+   * * companyName = "projects/api-test-project/companies/123" AND status =
+   * "EXPIRED"
+   * 
+ * + * string filter = 2; + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Required.
+   * The filter string specifies the jobs to be enumerated.
+   * Supported operator: =, AND
+   * The fields eligible for filtering are:
+   * * `companyName` (Required)
+   * * `requisitionId` (Optional)
+   * * `status` (Optional) Available values: OPEN, EXPIRED, ALL. Defaults to
+   * OPEN if no value is specified.
+   * Sample Query:
+   * * companyName = "projects/api-test-project/companies/123"
+   * * companyName = "projects/api-test-project/companies/123" AND requisitionId
+   * = "req-1"
+   * * companyName = "projects/api-test-project/companies/123" AND status =
+   * "EXPIRED"
+   * 
+ * + * string filter = 2; + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional.
+   * The starting point of a query result.
+   * 
+ * + * string page_token = 3; + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional.
+   * The starting point of a query result.
+   * 
+ * + * string page_token = 3; + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional.
+   * The maximum number of jobs to be returned per page of results.
+   * If [job_view][google.cloud.talent.v4beta1.ListJobsRequest.job_view] is set
+   * to
+   * [JobView.JOB_VIEW_ID_ONLY][google.cloud.talent.v4beta1.JobView.JOB_VIEW_ID_ONLY],
+   * the maximum allowed page size is 1000. Otherwise, the maximum allowed page
+   * size is 100.
+   * Default is 100 if empty or a number < 1 is specified.
+   * 
+ * + * int32 page_size = 4; + */ + int getPageSize(); + + /** + * + * + *
+   * Optional.
+   * The desired job attributes returned for jobs in the
+   * search response. Defaults to
+   * [JobView.JOB_VIEW_FULL][google.cloud.talent.v4beta1.JobView.JOB_VIEW_FULL]
+   * if no value is specified.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 5; + */ + int getJobViewValue(); + /** + * + * + *
+   * Optional.
+   * The desired job attributes returned for jobs in the
+   * search response. Defaults to
+   * [JobView.JOB_VIEW_FULL][google.cloud.talent.v4beta1.JobView.JOB_VIEW_FULL]
+   * if no value is specified.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 5; + */ + com.google.cloud.talent.v4beta1.JobView getJobView(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsResponse.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsResponse.java new file mode 100644 index 000000000000..bb07334aab85 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsResponse.java @@ -0,0 +1,1414 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Output only.
+ * List jobs response.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ListJobsResponse} + */ +public final class ListJobsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ListJobsResponse) + ListJobsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListJobsResponse.newBuilder() to construct. + private ListJobsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListJobsResponse() { + jobs_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListJobsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + jobs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + jobs_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.Job.parser(), extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + case 26: + { + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = + input.readMessage( + com.google.cloud.talent.v4beta1.ResponseMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + jobs_ = java.util.Collections.unmodifiableList(jobs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_ListJobsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_ListJobsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ListJobsResponse.class, + com.google.cloud.talent.v4beta1.ListJobsResponse.Builder.class); + } + + private int bitField0_; + public static final int JOBS_FIELD_NUMBER = 1; + private java.util.List jobs_; + /** + * + * + *
+   * The Jobs for a given company.
+   * The maximum number of items returned is based on the limit field
+   * provided in the request.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public java.util.List getJobsList() { + return jobs_; + } + /** + * + * + *
+   * The Jobs for a given company.
+   * The maximum number of items returned is based on the limit field
+   * provided in the request.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public java.util.List + getJobsOrBuilderList() { + return jobs_; + } + /** + * + * + *
+   * The Jobs for a given company.
+   * The maximum number of items returned is based on the limit field
+   * provided in the request.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public int getJobsCount() { + return jobs_.size(); + } + /** + * + * + *
+   * The Jobs for a given company.
+   * The maximum number of items returned is based on the limit field
+   * provided in the request.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public com.google.cloud.talent.v4beta1.Job getJobs(int index) { + return jobs_.get(index); + } + /** + * + * + *
+   * The Jobs for a given company.
+   * The maximum number of items returned is based on the limit field
+   * provided in the request.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public com.google.cloud.talent.v4beta1.JobOrBuilder getJobsOrBuilder(int index) { + return jobs_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * 
+ * + * string next_page_token = 2; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * 
+ * + * string next_page_token = 2; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METADATA_FIELD_NUMBER = 3; + private com.google.cloud.talent.v4beta1.ResponseMetadata metadata_; + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata() { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + 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 { + for (int i = 0; i < jobs_.size(); i++) { + output.writeMessage(1, jobs_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + if (metadata_ != null) { + output.writeMessage(3, getMetadata()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < jobs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, jobs_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMetadata()); + } + size += unknownFields.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.cloud.talent.v4beta1.ListJobsResponse)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ListJobsResponse other = + (com.google.cloud.talent.v4beta1.ListJobsResponse) obj; + + boolean result = true; + result = result && getJobsList().equals(other.getJobsList()); + result = result && getNextPageToken().equals(other.getNextPageToken()); + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata().equals(other.getMetadata()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getJobsCount() > 0) { + hash = (37 * hash) + JOBS_FIELD_NUMBER; + hash = (53 * hash) + getJobsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ListJobsResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListJobsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListJobsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListJobsResponse 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.cloud.talent.v4beta1.ListJobsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListJobsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListJobsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListJobsResponse 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.cloud.talent.v4beta1.ListJobsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListJobsResponse 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.cloud.talent.v4beta1.ListJobsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListJobsResponse 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.cloud.talent.v4beta1.ListJobsResponse 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; + } + /** + * + * + *
+   * Output only.
+   * List jobs response.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ListJobsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ListJobsResponse) + com.google.cloud.talent.v4beta1.ListJobsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_ListJobsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_ListJobsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ListJobsResponse.class, + com.google.cloud.talent.v4beta1.ListJobsResponse.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ListJobsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getJobsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (jobsBuilder_ == null) { + jobs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + jobsBuilder_.clear(); + } + nextPageToken_ = ""; + + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_ListJobsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListJobsResponse getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ListJobsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListJobsResponse build() { + com.google.cloud.talent.v4beta1.ListJobsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListJobsResponse buildPartial() { + com.google.cloud.talent.v4beta1.ListJobsResponse result = + new com.google.cloud.talent.v4beta1.ListJobsResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (jobsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + jobs_ = java.util.Collections.unmodifiableList(jobs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.jobs_ = jobs_; + } else { + result.jobs_ = jobsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ListJobsResponse) { + return mergeFrom((com.google.cloud.talent.v4beta1.ListJobsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ListJobsResponse other) { + if (other == com.google.cloud.talent.v4beta1.ListJobsResponse.getDefaultInstance()) + return this; + if (jobsBuilder_ == null) { + if (!other.jobs_.isEmpty()) { + if (jobs_.isEmpty()) { + jobs_ = other.jobs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureJobsIsMutable(); + jobs_.addAll(other.jobs_); + } + onChanged(); + } + } else { + if (!other.jobs_.isEmpty()) { + if (jobsBuilder_.isEmpty()) { + jobsBuilder_.dispose(); + jobsBuilder_ = null; + jobs_ = other.jobs_; + bitField0_ = (bitField0_ & ~0x00000001); + jobsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getJobsFieldBuilder() + : null; + } else { + jobsBuilder_.addAllMessages(other.jobs_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.ListJobsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.ListJobsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List jobs_ = + java.util.Collections.emptyList(); + + private void ensureJobsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + jobs_ = new java.util.ArrayList(jobs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job, + com.google.cloud.talent.v4beta1.Job.Builder, + com.google.cloud.talent.v4beta1.JobOrBuilder> + jobsBuilder_; + + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public java.util.List getJobsList() { + if (jobsBuilder_ == null) { + return java.util.Collections.unmodifiableList(jobs_); + } else { + return jobsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public int getJobsCount() { + if (jobsBuilder_ == null) { + return jobs_.size(); + } else { + return jobsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public com.google.cloud.talent.v4beta1.Job getJobs(int index) { + if (jobsBuilder_ == null) { + return jobs_.get(index); + } else { + return jobsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public Builder setJobs(int index, com.google.cloud.talent.v4beta1.Job value) { + if (jobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobsIsMutable(); + jobs_.set(index, value); + onChanged(); + } else { + jobsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public Builder setJobs(int index, com.google.cloud.talent.v4beta1.Job.Builder builderForValue) { + if (jobsBuilder_ == null) { + ensureJobsIsMutable(); + jobs_.set(index, builderForValue.build()); + onChanged(); + } else { + jobsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public Builder addJobs(com.google.cloud.talent.v4beta1.Job value) { + if (jobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobsIsMutable(); + jobs_.add(value); + onChanged(); + } else { + jobsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public Builder addJobs(int index, com.google.cloud.talent.v4beta1.Job value) { + if (jobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobsIsMutable(); + jobs_.add(index, value); + onChanged(); + } else { + jobsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public Builder addJobs(com.google.cloud.talent.v4beta1.Job.Builder builderForValue) { + if (jobsBuilder_ == null) { + ensureJobsIsMutable(); + jobs_.add(builderForValue.build()); + onChanged(); + } else { + jobsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public Builder addJobs(int index, com.google.cloud.talent.v4beta1.Job.Builder builderForValue) { + if (jobsBuilder_ == null) { + ensureJobsIsMutable(); + jobs_.add(index, builderForValue.build()); + onChanged(); + } else { + jobsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public Builder addAllJobs( + java.lang.Iterable values) { + if (jobsBuilder_ == null) { + ensureJobsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jobs_); + onChanged(); + } else { + jobsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public Builder clearJobs() { + if (jobsBuilder_ == null) { + jobs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + jobsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public Builder removeJobs(int index) { + if (jobsBuilder_ == null) { + ensureJobsIsMutable(); + jobs_.remove(index); + onChanged(); + } else { + jobsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public com.google.cloud.talent.v4beta1.Job.Builder getJobsBuilder(int index) { + return getJobsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public com.google.cloud.talent.v4beta1.JobOrBuilder getJobsOrBuilder(int index) { + if (jobsBuilder_ == null) { + return jobs_.get(index); + } else { + return jobsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public java.util.List + getJobsOrBuilderList() { + if (jobsBuilder_ != null) { + return jobsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(jobs_); + } + } + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public com.google.cloud.talent.v4beta1.Job.Builder addJobsBuilder() { + return getJobsFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.Job.getDefaultInstance()); + } + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public com.google.cloud.talent.v4beta1.Job.Builder addJobsBuilder(int index) { + return getJobsFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.Job.getDefaultInstance()); + } + /** + * + * + *
+     * The Jobs for a given company.
+     * The maximum number of items returned is based on the limit field
+     * provided in the request.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + public java.util.List getJobsBuilderList() { + return getJobsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job, + com.google.cloud.talent.v4beta1.Job.Builder, + com.google.cloud.talent.v4beta1.JobOrBuilder> + getJobsFieldBuilder() { + if (jobsBuilder_ == null) { + jobsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job, + com.google.cloud.talent.v4beta1.Job.Builder, + com.google.cloud.talent.v4beta1.JobOrBuilder>( + jobs_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + jobs_ = null; + } + return jobsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * string next_page_token = 2; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * string next_page_token = 2; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.ResponseMetadata metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder> + metadataBuilder_; + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public Builder setMetadata(com.google.cloud.talent.v4beta1.ResponseMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public Builder setMetadata( + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public Builder mergeMetadata(com.google.cloud.talent.v4beta1.ResponseMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + com.google.cloud.talent.v4beta1.ResponseMetadata.newBuilder(metadata_) + .mergeFrom(value) + .buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ListJobsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ListJobsResponse) + private static final com.google.cloud.talent.v4beta1.ListJobsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ListJobsResponse(); + } + + public static com.google.cloud.talent.v4beta1.ListJobsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListJobsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListJobsResponse(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.ListJobsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsResponseOrBuilder.java new file mode 100644 index 000000000000..94d9909647ac --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsResponseOrBuilder.java @@ -0,0 +1,126 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface ListJobsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ListJobsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The Jobs for a given company.
+   * The maximum number of items returned is based on the limit field
+   * provided in the request.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + java.util.List getJobsList(); + /** + * + * + *
+   * The Jobs for a given company.
+   * The maximum number of items returned is based on the limit field
+   * provided in the request.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + com.google.cloud.talent.v4beta1.Job getJobs(int index); + /** + * + * + *
+   * The Jobs for a given company.
+   * The maximum number of items returned is based on the limit field
+   * provided in the request.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + int getJobsCount(); + /** + * + * + *
+   * The Jobs for a given company.
+   * The maximum number of items returned is based on the limit field
+   * provided in the request.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + java.util.List getJobsOrBuilderList(); + /** + * + * + *
+   * The Jobs for a given company.
+   * The maximum number of items returned is based on the limit field
+   * provided in the request.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Job jobs = 1; + */ + com.google.cloud.talent.v4beta1.JobOrBuilder getJobsOrBuilder(int index); + + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * 
+ * + * string next_page_token = 2; + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * 
+ * + * string next_page_token = 2; + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + boolean hasMetadata(); + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata(); + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesRequest.java new file mode 100644 index 000000000000..a9393cd5c846 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesRequest.java @@ -0,0 +1,1202 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * List profiles request.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ListProfilesRequest} + */ +public final class ListProfilesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ListProfilesRequest) + ListProfilesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListProfilesRequest.newBuilder() to construct. + private ListProfilesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListProfilesRequest() { + parent_ = ""; + pageToken_ = ""; + pageSize_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListProfilesRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + case 34: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (fieldMask_ != null) { + subBuilder = fieldMask_.toBuilder(); + } + fieldMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fieldMask_); + fieldMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_ListProfilesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_ListProfilesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ListProfilesRequest.class, + com.google.cloud.talent.v4beta1.ListProfilesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required.
+   * The resource name of the tenant under which the job is created.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The resource name of the tenant under which the job is created.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * Optional.
+   * The token that specifies the current offset (that is, starting result).
+   * Please set the value to
+   * [ListProfilesResponse.next_page_token][google.cloud.talent.v4beta1.ListProfilesResponse.next_page_token]
+   * to continue the list.
+   * 
+ * + * string page_token = 2; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The token that specifies the current offset (that is, starting result).
+   * Please set the value to
+   * [ListProfilesResponse.next_page_token][google.cloud.talent.v4beta1.ListProfilesResponse.next_page_token]
+   * to continue the list.
+   * 
+ * + * string page_token = 2; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_; + /** + * + * + *
+   * Optional.
+   * The maximum number of profiles to be returned, at most 100.
+   * Default is 100 unless a positive number smaller than 100 is specified.
+   * 
+ * + * int32 page_size = 3; + */ + public int getPageSize() { + return pageSize_; + } + + public static final int FIELD_MASK_FIELD_NUMBER = 4; + private com.google.protobuf.FieldMask fieldMask_; + /** + * + * + *
+   * Optional.
+   * A field mask to specify the profile fields to be listed in response.
+   * All fields are listed if it is unset.
+   * Valid values are:
+   * * name
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 4; + */ + public boolean hasFieldMask() { + return fieldMask_ != null; + } + /** + * + * + *
+   * Optional.
+   * A field mask to specify the profile fields to be listed in response.
+   * All fields are listed if it is unset.
+   * Valid values are:
+   * * name
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 4; + */ + public com.google.protobuf.FieldMask getFieldMask() { + return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + } + /** + * + * + *
+   * Optional.
+   * A field mask to specify the profile fields to be listed in response.
+   * All fields are listed if it is unset.
+   * Valid values are:
+   * * name
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 4; + */ + public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { + return getFieldMask(); + } + + 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 (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pageToken_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (fieldMask_ != null) { + output.writeMessage(4, getFieldMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + if (fieldMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getFieldMask()); + } + size += unknownFields.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.cloud.talent.v4beta1.ListProfilesRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ListProfilesRequest other = + (com.google.cloud.talent.v4beta1.ListProfilesRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && getPageToken().equals(other.getPageToken()); + result = result && (getPageSize() == other.getPageSize()); + result = result && (hasFieldMask() == other.hasFieldMask()); + if (hasFieldMask()) { + result = result && getFieldMask().equals(other.getFieldMask()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + if (hasFieldMask()) { + hash = (37 * hash) + FIELD_MASK_FIELD_NUMBER; + hash = (53 * hash) + getFieldMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ListProfilesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesRequest 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.cloud.talent.v4beta1.ListProfilesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesRequest 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.cloud.talent.v4beta1.ListProfilesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesRequest 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.cloud.talent.v4beta1.ListProfilesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesRequest 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.cloud.talent.v4beta1.ListProfilesRequest 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; + } + /** + * + * + *
+   * List profiles request.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ListProfilesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ListProfilesRequest) + com.google.cloud.talent.v4beta1.ListProfilesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_ListProfilesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_ListProfilesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ListProfilesRequest.class, + com.google.cloud.talent.v4beta1.ListProfilesRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ListProfilesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + pageToken_ = ""; + + pageSize_ = 0; + + if (fieldMaskBuilder_ == null) { + fieldMask_ = null; + } else { + fieldMask_ = null; + fieldMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_ListProfilesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListProfilesRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ListProfilesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListProfilesRequest build() { + com.google.cloud.talent.v4beta1.ListProfilesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListProfilesRequest buildPartial() { + com.google.cloud.talent.v4beta1.ListProfilesRequest result = + new com.google.cloud.talent.v4beta1.ListProfilesRequest(this); + result.parent_ = parent_; + result.pageToken_ = pageToken_; + result.pageSize_ = pageSize_; + if (fieldMaskBuilder_ == null) { + result.fieldMask_ = fieldMask_; + } else { + result.fieldMask_ = fieldMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ListProfilesRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.ListProfilesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ListProfilesRequest other) { + if (other == com.google.cloud.talent.v4beta1.ListProfilesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (other.hasFieldMask()) { + mergeFieldMask(other.getFieldMask()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.ListProfilesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.ListProfilesRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required.
+     * The resource name of the tenant under which the job is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the tenant under which the job is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the tenant under which the job is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the tenant under which the job is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the tenant under which the job is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional.
+     * The token that specifies the current offset (that is, starting result).
+     * Please set the value to
+     * [ListProfilesResponse.next_page_token][google.cloud.talent.v4beta1.ListProfilesResponse.next_page_token]
+     * to continue the list.
+     * 
+ * + * string page_token = 2; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The token that specifies the current offset (that is, starting result).
+     * Please set the value to
+     * [ListProfilesResponse.next_page_token][google.cloud.talent.v4beta1.ListProfilesResponse.next_page_token]
+     * to continue the list.
+     * 
+ * + * string page_token = 2; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The token that specifies the current offset (that is, starting result).
+     * Please set the value to
+     * [ListProfilesResponse.next_page_token][google.cloud.talent.v4beta1.ListProfilesResponse.next_page_token]
+     * to continue the list.
+     * 
+ * + * string page_token = 2; + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The token that specifies the current offset (that is, starting result).
+     * Please set the value to
+     * [ListProfilesResponse.next_page_token][google.cloud.talent.v4beta1.ListProfilesResponse.next_page_token]
+     * to continue the list.
+     * 
+ * + * string page_token = 2; + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The token that specifies the current offset (that is, starting result).
+     * Please set the value to
+     * [ListProfilesResponse.next_page_token][google.cloud.talent.v4beta1.ListProfilesResponse.next_page_token]
+     * to continue the list.
+     * 
+ * + * string page_token = 2; + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional.
+     * The maximum number of profiles to be returned, at most 100.
+     * Default is 100 unless a positive number smaller than 100 is specified.
+     * 
+ * + * int32 page_size = 3; + */ + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional.
+     * The maximum number of profiles to be returned, at most 100.
+     * Default is 100 unless a positive number smaller than 100 is specified.
+     * 
+ * + * int32 page_size = 3; + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The maximum number of profiles to be returned, at most 100.
+     * Default is 100 unless a positive number smaller than 100 is specified.
+     * 
+ * + * int32 page_size = 3; + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.FieldMask fieldMask_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + fieldMaskBuilder_; + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to be listed in response.
+     * All fields are listed if it is unset.
+     * Valid values are:
+     * * name
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 4; + */ + public boolean hasFieldMask() { + return fieldMaskBuilder_ != null || fieldMask_ != null; + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to be listed in response.
+     * All fields are listed if it is unset.
+     * Valid values are:
+     * * name
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 4; + */ + public com.google.protobuf.FieldMask getFieldMask() { + if (fieldMaskBuilder_ == null) { + return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + } else { + return fieldMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to be listed in response.
+     * All fields are listed if it is unset.
+     * Valid values are:
+     * * name
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 4; + */ + public Builder setFieldMask(com.google.protobuf.FieldMask value) { + if (fieldMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fieldMask_ = value; + onChanged(); + } else { + fieldMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to be listed in response.
+     * All fields are listed if it is unset.
+     * Valid values are:
+     * * name
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 4; + */ + public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (fieldMaskBuilder_ == null) { + fieldMask_ = builderForValue.build(); + onChanged(); + } else { + fieldMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to be listed in response.
+     * All fields are listed if it is unset.
+     * Valid values are:
+     * * name
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 4; + */ + public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { + if (fieldMaskBuilder_ == null) { + if (fieldMask_ != null) { + fieldMask_ = + com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial(); + } else { + fieldMask_ = value; + } + onChanged(); + } else { + fieldMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to be listed in response.
+     * All fields are listed if it is unset.
+     * Valid values are:
+     * * name
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 4; + */ + public Builder clearFieldMask() { + if (fieldMaskBuilder_ == null) { + fieldMask_ = null; + onChanged(); + } else { + fieldMask_ = null; + fieldMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to be listed in response.
+     * All fields are listed if it is unset.
+     * Valid values are:
+     * * name
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 4; + */ + public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() { + + onChanged(); + return getFieldMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to be listed in response.
+     * All fields are listed if it is unset.
+     * Valid values are:
+     * * name
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 4; + */ + public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { + if (fieldMaskBuilder_ != null) { + return fieldMaskBuilder_.getMessageOrBuilder(); + } else { + return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + } + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to be listed in response.
+     * All fields are listed if it is unset.
+     * Valid values are:
+     * * name
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getFieldMaskFieldBuilder() { + if (fieldMaskBuilder_ == null) { + fieldMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getFieldMask(), getParentForChildren(), isClean()); + fieldMask_ = null; + } + return fieldMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ListProfilesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ListProfilesRequest) + private static final com.google.cloud.talent.v4beta1.ListProfilesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ListProfilesRequest(); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProfilesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListProfilesRequest(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.ListProfilesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesRequestOrBuilder.java new file mode 100644 index 000000000000..7cbb0c4929f1 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesRequestOrBuilder.java @@ -0,0 +1,122 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface ListProfilesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ListProfilesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The resource name of the tenant under which the job is created.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required.
+   * The resource name of the tenant under which the job is created.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional.
+   * The token that specifies the current offset (that is, starting result).
+   * Please set the value to
+   * [ListProfilesResponse.next_page_token][google.cloud.talent.v4beta1.ListProfilesResponse.next_page_token]
+   * to continue the list.
+   * 
+ * + * string page_token = 2; + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional.
+   * The token that specifies the current offset (that is, starting result).
+   * Please set the value to
+   * [ListProfilesResponse.next_page_token][google.cloud.talent.v4beta1.ListProfilesResponse.next_page_token]
+   * to continue the list.
+   * 
+ * + * string page_token = 2; + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional.
+   * The maximum number of profiles to be returned, at most 100.
+   * Default is 100 unless a positive number smaller than 100 is specified.
+   * 
+ * + * int32 page_size = 3; + */ + int getPageSize(); + + /** + * + * + *
+   * Optional.
+   * A field mask to specify the profile fields to be listed in response.
+   * All fields are listed if it is unset.
+   * Valid values are:
+   * * name
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 4; + */ + boolean hasFieldMask(); + /** + * + * + *
+   * Optional.
+   * A field mask to specify the profile fields to be listed in response.
+   * All fields are listed if it is unset.
+   * Valid values are:
+   * * name
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 4; + */ + com.google.protobuf.FieldMask getFieldMask(); + /** + * + * + *
+   * Optional.
+   * A field mask to specify the profile fields to be listed in response.
+   * All fields are listed if it is unset.
+   * Valid values are:
+   * * name
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 4; + */ + com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesResponse.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesResponse.java new file mode 100644 index 000000000000..b523fd92215a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesResponse.java @@ -0,0 +1,1098 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * The List profiles response object.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ListProfilesResponse} + */ +public final class ListProfilesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ListProfilesResponse) + ListProfilesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListProfilesResponse.newBuilder() to construct. + private ListProfilesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListProfilesResponse() { + profiles_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListProfilesResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + profiles_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + profiles_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.Profile.parser(), extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + profiles_ = java.util.Collections.unmodifiableList(profiles_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_ListProfilesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_ListProfilesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ListProfilesResponse.class, + com.google.cloud.talent.v4beta1.ListProfilesResponse.Builder.class); + } + + private int bitField0_; + public static final int PROFILES_FIELD_NUMBER = 1; + private java.util.List profiles_; + /** + * + * + *
+   * Profiles for the specific tenant.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public java.util.List getProfilesList() { + return profiles_; + } + /** + * + * + *
+   * Profiles for the specific tenant.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public java.util.List + getProfilesOrBuilderList() { + return profiles_; + } + /** + * + * + *
+   * Profiles for the specific tenant.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public int getProfilesCount() { + return profiles_.size(); + } + /** + * + * + *
+   * Profiles for the specific tenant.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public com.google.cloud.talent.v4beta1.Profile getProfiles(int index) { + return profiles_.get(index); + } + /** + * + * + *
+   * Profiles for the specific tenant.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfilesOrBuilder(int index) { + return profiles_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token to retrieve the next page of results. This is empty if there are no
+   * more results.
+   * 
+ * + * string next_page_token = 2; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token to retrieve the next page of results. This is empty if there are no
+   * more results.
+   * 
+ * + * string next_page_token = 2; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = 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 { + for (int i = 0; i < profiles_.size(); i++) { + output.writeMessage(1, profiles_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < profiles_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, profiles_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.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.cloud.talent.v4beta1.ListProfilesResponse)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ListProfilesResponse other = + (com.google.cloud.talent.v4beta1.ListProfilesResponse) obj; + + boolean result = true; + result = result && getProfilesList().equals(other.getProfilesList()); + result = result && getNextPageToken().equals(other.getNextPageToken()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getProfilesCount() > 0) { + hash = (37 * hash) + PROFILES_FIELD_NUMBER; + hash = (53 * hash) + getProfilesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ListProfilesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesResponse 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.cloud.talent.v4beta1.ListProfilesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesResponse 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.cloud.talent.v4beta1.ListProfilesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesResponse 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.cloud.talent.v4beta1.ListProfilesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesResponse 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.cloud.talent.v4beta1.ListProfilesResponse 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; + } + /** + * + * + *
+   * The List profiles response object.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ListProfilesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ListProfilesResponse) + com.google.cloud.talent.v4beta1.ListProfilesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_ListProfilesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_ListProfilesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ListProfilesResponse.class, + com.google.cloud.talent.v4beta1.ListProfilesResponse.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ListProfilesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getProfilesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (profilesBuilder_ == null) { + profiles_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + profilesBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_ListProfilesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListProfilesResponse getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ListProfilesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListProfilesResponse build() { + com.google.cloud.talent.v4beta1.ListProfilesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListProfilesResponse buildPartial() { + com.google.cloud.talent.v4beta1.ListProfilesResponse result = + new com.google.cloud.talent.v4beta1.ListProfilesResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (profilesBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + profiles_ = java.util.Collections.unmodifiableList(profiles_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.profiles_ = profiles_; + } else { + result.profiles_ = profilesBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ListProfilesResponse) { + return mergeFrom((com.google.cloud.talent.v4beta1.ListProfilesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ListProfilesResponse other) { + if (other == com.google.cloud.talent.v4beta1.ListProfilesResponse.getDefaultInstance()) + return this; + if (profilesBuilder_ == null) { + if (!other.profiles_.isEmpty()) { + if (profiles_.isEmpty()) { + profiles_ = other.profiles_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureProfilesIsMutable(); + profiles_.addAll(other.profiles_); + } + onChanged(); + } + } else { + if (!other.profiles_.isEmpty()) { + if (profilesBuilder_.isEmpty()) { + profilesBuilder_.dispose(); + profilesBuilder_ = null; + profiles_ = other.profiles_; + bitField0_ = (bitField0_ & ~0x00000001); + profilesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getProfilesFieldBuilder() + : null; + } else { + profilesBuilder_.addAllMessages(other.profiles_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.ListProfilesResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.ListProfilesResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List profiles_ = + java.util.Collections.emptyList(); + + private void ensureProfilesIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + profiles_ = new java.util.ArrayList(profiles_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder> + profilesBuilder_; + + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public java.util.List getProfilesList() { + if (profilesBuilder_ == null) { + return java.util.Collections.unmodifiableList(profiles_); + } else { + return profilesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public int getProfilesCount() { + if (profilesBuilder_ == null) { + return profiles_.size(); + } else { + return profilesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public com.google.cloud.talent.v4beta1.Profile getProfiles(int index) { + if (profilesBuilder_ == null) { + return profiles_.get(index); + } else { + return profilesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder setProfiles(int index, com.google.cloud.talent.v4beta1.Profile value) { + if (profilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProfilesIsMutable(); + profiles_.set(index, value); + onChanged(); + } else { + profilesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder setProfiles( + int index, com.google.cloud.talent.v4beta1.Profile.Builder builderForValue) { + if (profilesBuilder_ == null) { + ensureProfilesIsMutable(); + profiles_.set(index, builderForValue.build()); + onChanged(); + } else { + profilesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder addProfiles(com.google.cloud.talent.v4beta1.Profile value) { + if (profilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProfilesIsMutable(); + profiles_.add(value); + onChanged(); + } else { + profilesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder addProfiles(int index, com.google.cloud.talent.v4beta1.Profile value) { + if (profilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProfilesIsMutable(); + profiles_.add(index, value); + onChanged(); + } else { + profilesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder addProfiles(com.google.cloud.talent.v4beta1.Profile.Builder builderForValue) { + if (profilesBuilder_ == null) { + ensureProfilesIsMutable(); + profiles_.add(builderForValue.build()); + onChanged(); + } else { + profilesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder addProfiles( + int index, com.google.cloud.talent.v4beta1.Profile.Builder builderForValue) { + if (profilesBuilder_ == null) { + ensureProfilesIsMutable(); + profiles_.add(index, builderForValue.build()); + onChanged(); + } else { + profilesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder addAllProfiles( + java.lang.Iterable values) { + if (profilesBuilder_ == null) { + ensureProfilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, profiles_); + onChanged(); + } else { + profilesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder clearProfiles() { + if (profilesBuilder_ == null) { + profiles_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + profilesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder removeProfiles(int index) { + if (profilesBuilder_ == null) { + ensureProfilesIsMutable(); + profiles_.remove(index); + onChanged(); + } else { + profilesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public com.google.cloud.talent.v4beta1.Profile.Builder getProfilesBuilder(int index) { + return getProfilesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfilesOrBuilder(int index) { + if (profilesBuilder_ == null) { + return profiles_.get(index); + } else { + return profilesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public java.util.List + getProfilesOrBuilderList() { + if (profilesBuilder_ != null) { + return profilesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(profiles_); + } + } + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public com.google.cloud.talent.v4beta1.Profile.Builder addProfilesBuilder() { + return getProfilesFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.Profile.getDefaultInstance()); + } + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public com.google.cloud.talent.v4beta1.Profile.Builder addProfilesBuilder(int index) { + return getProfilesFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.Profile.getDefaultInstance()); + } + /** + * + * + *
+     * Profiles for the specific tenant.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public java.util.List + getProfilesBuilderList() { + return getProfilesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder> + getProfilesFieldBuilder() { + if (profilesBuilder_ == null) { + profilesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder>( + profiles_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + profiles_ = null; + } + return profilesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token to retrieve the next page of results. This is empty if there are no
+     * more results.
+     * 
+ * + * string next_page_token = 2; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token to retrieve the next page of results. This is empty if there are no
+     * more results.
+     * 
+ * + * string next_page_token = 2; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token to retrieve the next page of results. This is empty if there are no
+     * more results.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A token to retrieve the next page of results. This is empty if there are no
+     * more results.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token to retrieve the next page of results. This is empty if there are no
+     * more results.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ListProfilesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ListProfilesResponse) + private static final com.google.cloud.talent.v4beta1.ListProfilesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ListProfilesResponse(); + } + + public static com.google.cloud.talent.v4beta1.ListProfilesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProfilesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListProfilesResponse(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.ListProfilesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesResponseOrBuilder.java new file mode 100644 index 000000000000..1e74130652d0 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesResponseOrBuilder.java @@ -0,0 +1,85 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface ListProfilesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ListProfilesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Profiles for the specific tenant.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + java.util.List getProfilesList(); + /** + * + * + *
+   * Profiles for the specific tenant.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + com.google.cloud.talent.v4beta1.Profile getProfiles(int index); + /** + * + * + *
+   * Profiles for the specific tenant.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + int getProfilesCount(); + /** + * + * + *
+   * Profiles for the specific tenant.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + java.util.List + getProfilesOrBuilderList(); + /** + * + * + *
+   * Profiles for the specific tenant.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfilesOrBuilder(int index); + + /** + * + * + *
+   * A token to retrieve the next page of results. This is empty if there are no
+   * more results.
+   * 
+ * + * string next_page_token = 2; + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token to retrieve the next page of results. This is empty if there are no
+   * more results.
+   * 
+ * + * string next_page_token = 2; + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListTenantsRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListTenantsRequest.java new file mode 100644 index 000000000000..681261be2f00 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListTenantsRequest.java @@ -0,0 +1,876 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/tenant_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * List tenants for which the client has ACL visibility.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ListTenantsRequest} + */ +public final class ListTenantsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ListTenantsRequest) + ListTenantsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListTenantsRequest.newBuilder() to construct. + private ListTenantsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListTenantsRequest() { + parent_ = ""; + pageToken_ = ""; + pageSize_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListTenantsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_ListTenantsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_ListTenantsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ListTenantsRequest.class, + com.google.cloud.talent.v4beta1.ListTenantsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required.
+   * Resource name of the project under which the tenant is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * Resource name of the project under which the tenant is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * Optional.
+   * The starting indicator from which to return results.
+   * 
+ * + * string page_token = 2; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The starting indicator from which to return results.
+   * 
+ * + * string page_token = 2; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_; + /** + * + * + *
+   * Optional.
+   * The maximum number of tenants to be returned, at most 100.
+   * Default is 100 if a non-positive number is provided.
+   * 
+ * + * int32 page_size = 3; + */ + public int getPageSize() { + return pageSize_; + } + + 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 (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pageToken_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + size += unknownFields.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.cloud.talent.v4beta1.ListTenantsRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ListTenantsRequest other = + (com.google.cloud.talent.v4beta1.ListTenantsRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && getPageToken().equals(other.getPageToken()); + result = result && (getPageSize() == other.getPageSize()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ListTenantsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsRequest 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.cloud.talent.v4beta1.ListTenantsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsRequest 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.cloud.talent.v4beta1.ListTenantsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsRequest 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.cloud.talent.v4beta1.ListTenantsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsRequest 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.cloud.talent.v4beta1.ListTenantsRequest 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; + } + /** + * + * + *
+   * List tenants for which the client has ACL visibility.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ListTenantsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ListTenantsRequest) + com.google.cloud.talent.v4beta1.ListTenantsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_ListTenantsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_ListTenantsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ListTenantsRequest.class, + com.google.cloud.talent.v4beta1.ListTenantsRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ListTenantsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + pageToken_ = ""; + + pageSize_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_ListTenantsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListTenantsRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ListTenantsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListTenantsRequest build() { + com.google.cloud.talent.v4beta1.ListTenantsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListTenantsRequest buildPartial() { + com.google.cloud.talent.v4beta1.ListTenantsRequest result = + new com.google.cloud.talent.v4beta1.ListTenantsRequest(this); + result.parent_ = parent_; + result.pageToken_ = pageToken_; + result.pageSize_ = pageSize_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ListTenantsRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.ListTenantsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ListTenantsRequest other) { + if (other == com.google.cloud.talent.v4beta1.ListTenantsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.ListTenantsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.ListTenantsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the tenant is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the tenant is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the tenant is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the tenant is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Resource name of the project under which the tenant is created.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional.
+     * The starting indicator from which to return results.
+     * 
+ * + * string page_token = 2; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The starting indicator from which to return results.
+     * 
+ * + * string page_token = 2; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The starting indicator from which to return results.
+     * 
+ * + * string page_token = 2; + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The starting indicator from which to return results.
+     * 
+ * + * string page_token = 2; + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The starting indicator from which to return results.
+     * 
+ * + * string page_token = 2; + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional.
+     * The maximum number of tenants to be returned, at most 100.
+     * Default is 100 if a non-positive number is provided.
+     * 
+ * + * int32 page_size = 3; + */ + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional.
+     * The maximum number of tenants to be returned, at most 100.
+     * Default is 100 if a non-positive number is provided.
+     * 
+ * + * int32 page_size = 3; + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The maximum number of tenants to be returned, at most 100.
+     * Default is 100 if a non-positive number is provided.
+     * 
+ * + * int32 page_size = 3; + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ListTenantsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ListTenantsRequest) + private static final com.google.cloud.talent.v4beta1.ListTenantsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ListTenantsRequest(); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTenantsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListTenantsRequest(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.ListTenantsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListTenantsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListTenantsRequestOrBuilder.java new file mode 100644 index 000000000000..e07e301e58bf --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListTenantsRequestOrBuilder.java @@ -0,0 +1,73 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/tenant_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface ListTenantsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ListTenantsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * Resource name of the project under which the tenant is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required.
+   * Resource name of the project under which the tenant is created.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional.
+   * The starting indicator from which to return results.
+   * 
+ * + * string page_token = 2; + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional.
+   * The starting indicator from which to return results.
+   * 
+ * + * string page_token = 2; + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional.
+   * The maximum number of tenants to be returned, at most 100.
+   * Default is 100 if a non-positive number is provided.
+   * 
+ * + * int32 page_size = 3; + */ + int getPageSize(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListTenantsResponse.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListTenantsResponse.java new file mode 100644 index 000000000000..59b06d30cb17 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListTenantsResponse.java @@ -0,0 +1,1371 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/tenant_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Output only.
+ * The List tenants response object.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ListTenantsResponse} + */ +public final class ListTenantsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ListTenantsResponse) + ListTenantsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListTenantsResponse.newBuilder() to construct. + private ListTenantsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListTenantsResponse() { + tenants_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListTenantsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + tenants_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + tenants_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.Tenant.parser(), extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + case 26: + { + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = + input.readMessage( + com.google.cloud.talent.v4beta1.ResponseMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + tenants_ = java.util.Collections.unmodifiableList(tenants_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_ListTenantsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_ListTenantsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ListTenantsResponse.class, + com.google.cloud.talent.v4beta1.ListTenantsResponse.Builder.class); + } + + private int bitField0_; + public static final int TENANTS_FIELD_NUMBER = 1; + private java.util.List tenants_; + /** + * + * + *
+   * Tenants for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public java.util.List getTenantsList() { + return tenants_; + } + /** + * + * + *
+   * Tenants for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public java.util.List + getTenantsOrBuilderList() { + return tenants_; + } + /** + * + * + *
+   * Tenants for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public int getTenantsCount() { + return tenants_.size(); + } + /** + * + * + *
+   * Tenants for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public com.google.cloud.talent.v4beta1.Tenant getTenants(int index) { + return tenants_.get(index); + } + /** + * + * + *
+   * Tenants for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public com.google.cloud.talent.v4beta1.TenantOrBuilder getTenantsOrBuilder(int index) { + return tenants_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * 
+ * + * string next_page_token = 2; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * 
+ * + * string next_page_token = 2; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METADATA_FIELD_NUMBER = 3; + private com.google.cloud.talent.v4beta1.ResponseMetadata metadata_; + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata() { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + 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 { + for (int i = 0; i < tenants_.size(); i++) { + output.writeMessage(1, tenants_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + if (metadata_ != null) { + output.writeMessage(3, getMetadata()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < tenants_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, tenants_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMetadata()); + } + size += unknownFields.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.cloud.talent.v4beta1.ListTenantsResponse)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ListTenantsResponse other = + (com.google.cloud.talent.v4beta1.ListTenantsResponse) obj; + + boolean result = true; + result = result && getTenantsList().equals(other.getTenantsList()); + result = result && getNextPageToken().equals(other.getNextPageToken()); + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata().equals(other.getMetadata()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTenantsCount() > 0) { + hash = (37 * hash) + TENANTS_FIELD_NUMBER; + hash = (53 * hash) + getTenantsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ListTenantsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsResponse 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.cloud.talent.v4beta1.ListTenantsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsResponse 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.cloud.talent.v4beta1.ListTenantsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsResponse 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.cloud.talent.v4beta1.ListTenantsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsResponse 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.cloud.talent.v4beta1.ListTenantsResponse 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; + } + /** + * + * + *
+   * Output only.
+   * The List tenants response object.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ListTenantsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ListTenantsResponse) + com.google.cloud.talent.v4beta1.ListTenantsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_ListTenantsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_ListTenantsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ListTenantsResponse.class, + com.google.cloud.talent.v4beta1.ListTenantsResponse.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ListTenantsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTenantsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (tenantsBuilder_ == null) { + tenants_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + tenantsBuilder_.clear(); + } + nextPageToken_ = ""; + + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_ListTenantsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListTenantsResponse getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ListTenantsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListTenantsResponse build() { + com.google.cloud.talent.v4beta1.ListTenantsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ListTenantsResponse buildPartial() { + com.google.cloud.talent.v4beta1.ListTenantsResponse result = + new com.google.cloud.talent.v4beta1.ListTenantsResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (tenantsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + tenants_ = java.util.Collections.unmodifiableList(tenants_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.tenants_ = tenants_; + } else { + result.tenants_ = tenantsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ListTenantsResponse) { + return mergeFrom((com.google.cloud.talent.v4beta1.ListTenantsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ListTenantsResponse other) { + if (other == com.google.cloud.talent.v4beta1.ListTenantsResponse.getDefaultInstance()) + return this; + if (tenantsBuilder_ == null) { + if (!other.tenants_.isEmpty()) { + if (tenants_.isEmpty()) { + tenants_ = other.tenants_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTenantsIsMutable(); + tenants_.addAll(other.tenants_); + } + onChanged(); + } + } else { + if (!other.tenants_.isEmpty()) { + if (tenantsBuilder_.isEmpty()) { + tenantsBuilder_.dispose(); + tenantsBuilder_ = null; + tenants_ = other.tenants_; + bitField0_ = (bitField0_ & ~0x00000001); + tenantsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTenantsFieldBuilder() + : null; + } else { + tenantsBuilder_.addAllMessages(other.tenants_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.ListTenantsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.ListTenantsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List tenants_ = + java.util.Collections.emptyList(); + + private void ensureTenantsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + tenants_ = new java.util.ArrayList(tenants_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Tenant, + com.google.cloud.talent.v4beta1.Tenant.Builder, + com.google.cloud.talent.v4beta1.TenantOrBuilder> + tenantsBuilder_; + + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public java.util.List getTenantsList() { + if (tenantsBuilder_ == null) { + return java.util.Collections.unmodifiableList(tenants_); + } else { + return tenantsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public int getTenantsCount() { + if (tenantsBuilder_ == null) { + return tenants_.size(); + } else { + return tenantsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public com.google.cloud.talent.v4beta1.Tenant getTenants(int index) { + if (tenantsBuilder_ == null) { + return tenants_.get(index); + } else { + return tenantsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public Builder setTenants(int index, com.google.cloud.talent.v4beta1.Tenant value) { + if (tenantsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTenantsIsMutable(); + tenants_.set(index, value); + onChanged(); + } else { + tenantsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public Builder setTenants( + int index, com.google.cloud.talent.v4beta1.Tenant.Builder builderForValue) { + if (tenantsBuilder_ == null) { + ensureTenantsIsMutable(); + tenants_.set(index, builderForValue.build()); + onChanged(); + } else { + tenantsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public Builder addTenants(com.google.cloud.talent.v4beta1.Tenant value) { + if (tenantsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTenantsIsMutable(); + tenants_.add(value); + onChanged(); + } else { + tenantsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public Builder addTenants(int index, com.google.cloud.talent.v4beta1.Tenant value) { + if (tenantsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTenantsIsMutable(); + tenants_.add(index, value); + onChanged(); + } else { + tenantsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public Builder addTenants(com.google.cloud.talent.v4beta1.Tenant.Builder builderForValue) { + if (tenantsBuilder_ == null) { + ensureTenantsIsMutable(); + tenants_.add(builderForValue.build()); + onChanged(); + } else { + tenantsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public Builder addTenants( + int index, com.google.cloud.talent.v4beta1.Tenant.Builder builderForValue) { + if (tenantsBuilder_ == null) { + ensureTenantsIsMutable(); + tenants_.add(index, builderForValue.build()); + onChanged(); + } else { + tenantsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public Builder addAllTenants( + java.lang.Iterable values) { + if (tenantsBuilder_ == null) { + ensureTenantsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tenants_); + onChanged(); + } else { + tenantsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public Builder clearTenants() { + if (tenantsBuilder_ == null) { + tenants_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + tenantsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public Builder removeTenants(int index) { + if (tenantsBuilder_ == null) { + ensureTenantsIsMutable(); + tenants_.remove(index); + onChanged(); + } else { + tenantsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public com.google.cloud.talent.v4beta1.Tenant.Builder getTenantsBuilder(int index) { + return getTenantsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public com.google.cloud.talent.v4beta1.TenantOrBuilder getTenantsOrBuilder(int index) { + if (tenantsBuilder_ == null) { + return tenants_.get(index); + } else { + return tenantsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public java.util.List + getTenantsOrBuilderList() { + if (tenantsBuilder_ != null) { + return tenantsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tenants_); + } + } + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public com.google.cloud.talent.v4beta1.Tenant.Builder addTenantsBuilder() { + return getTenantsFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.Tenant.getDefaultInstance()); + } + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public com.google.cloud.talent.v4beta1.Tenant.Builder addTenantsBuilder(int index) { + return getTenantsFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.Tenant.getDefaultInstance()); + } + /** + * + * + *
+     * Tenants for the current client.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + public java.util.List getTenantsBuilderList() { + return getTenantsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Tenant, + com.google.cloud.talent.v4beta1.Tenant.Builder, + com.google.cloud.talent.v4beta1.TenantOrBuilder> + getTenantsFieldBuilder() { + if (tenantsBuilder_ == null) { + tenantsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Tenant, + com.google.cloud.talent.v4beta1.Tenant.Builder, + com.google.cloud.talent.v4beta1.TenantOrBuilder>( + tenants_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + tenants_ = null; + } + return tenantsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * string next_page_token = 2; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * string next_page_token = 2; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.ResponseMetadata metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder> + metadataBuilder_; + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public Builder setMetadata(com.google.cloud.talent.v4beta1.ResponseMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public Builder setMetadata( + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public Builder mergeMetadata(com.google.cloud.talent.v4beta1.ResponseMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + com.google.cloud.talent.v4beta1.ResponseMetadata.newBuilder(metadata_) + .mergeFrom(value) + .buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ListTenantsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ListTenantsResponse) + private static final com.google.cloud.talent.v4beta1.ListTenantsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ListTenantsResponse(); + } + + public static com.google.cloud.talent.v4beta1.ListTenantsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTenantsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListTenantsResponse(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.ListTenantsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListTenantsResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListTenantsResponseOrBuilder.java new file mode 100644 index 000000000000..4d3812ce8f1e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListTenantsResponseOrBuilder.java @@ -0,0 +1,117 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/tenant_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface ListTenantsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ListTenantsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Tenants for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + java.util.List getTenantsList(); + /** + * + * + *
+   * Tenants for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + com.google.cloud.talent.v4beta1.Tenant getTenants(int index); + /** + * + * + *
+   * Tenants for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + int getTenantsCount(); + /** + * + * + *
+   * Tenants for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + java.util.List + getTenantsOrBuilderList(); + /** + * + * + *
+   * Tenants for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Tenant tenants = 1; + */ + com.google.cloud.talent.v4beta1.TenantOrBuilder getTenantsOrBuilder(int index); + + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * 
+ * + * string next_page_token = 2; + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * 
+ * + * string next_page_token = 2; + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + boolean hasMetadata(); + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata(); + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Location.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Location.java new file mode 100644 index 000000000000..80eb5f9b3f2b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Location.java @@ -0,0 +1,1577 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Output only.
+ * A resource that represents a location with full geographic information.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Location} + */ +public final class Location extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Location) + LocationOrBuilder { + private static final long serialVersionUID = 0L; + // Use Location.newBuilder() to construct. + private Location(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Location() { + locationType_ = 0; + radiusMiles_ = 0D; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Location( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + locationType_ = rawValue; + break; + } + case 18: + { + com.google.type.PostalAddress.Builder subBuilder = null; + if (postalAddress_ != null) { + subBuilder = postalAddress_.toBuilder(); + } + postalAddress_ = + input.readMessage(com.google.type.PostalAddress.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(postalAddress_); + postalAddress_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + com.google.type.LatLng.Builder subBuilder = null; + if (latLng_ != null) { + subBuilder = latLng_.toBuilder(); + } + latLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(latLng_); + latLng_ = subBuilder.buildPartial(); + } + + break; + } + case 33: + { + radiusMiles_ = input.readDouble(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_Location_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_Location_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Location.class, + com.google.cloud.talent.v4beta1.Location.Builder.class); + } + + /** + * + * + *
+   * An enum which represents the type of a location.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.Location.LocationType} + */ + public enum LocationType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value if the type isn't specified.
+     * 
+ * + * LOCATION_TYPE_UNSPECIFIED = 0; + */ + LOCATION_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * A country level location.
+     * 
+ * + * COUNTRY = 1; + */ + COUNTRY(1), + /** + * + * + *
+     * A state or equivalent level location.
+     * 
+ * + * ADMINISTRATIVE_AREA = 2; + */ + ADMINISTRATIVE_AREA(2), + /** + * + * + *
+     * A county or equivalent level location.
+     * 
+ * + * SUB_ADMINISTRATIVE_AREA = 3; + */ + SUB_ADMINISTRATIVE_AREA(3), + /** + * + * + *
+     * A city or equivalent level location.
+     * 
+ * + * LOCALITY = 4; + */ + LOCALITY(4), + /** + * + * + *
+     * A postal code level location.
+     * 
+ * + * POSTAL_CODE = 5; + */ + POSTAL_CODE(5), + /** + * + * + *
+     * A sublocality is a subdivision of a locality, for example a city borough,
+     * ward, or arrondissement. Sublocalities are usually recognized by a local
+     * political authority. For example, Manhattan and Brooklyn are recognized
+     * as boroughs by the City of New York, and are therefore modeled as
+     * sublocalities.
+     * 
+ * + * SUB_LOCALITY = 6; + */ + SUB_LOCALITY(6), + /** + * + * + *
+     * A district or equivalent level location.
+     * 
+ * + * SUB_LOCALITY_1 = 7; + */ + SUB_LOCALITY_1(7), + /** + * + * + *
+     * A smaller district or equivalent level display.
+     * 
+ * + * SUB_LOCALITY_2 = 8; + */ + SUB_LOCALITY_2(8), + /** + * + * + *
+     * A neighborhood level location.
+     * 
+ * + * NEIGHBORHOOD = 9; + */ + NEIGHBORHOOD(9), + /** + * + * + *
+     * A street address level location.
+     * 
+ * + * STREET_ADDRESS = 10; + */ + STREET_ADDRESS(10), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value if the type isn't specified.
+     * 
+ * + * LOCATION_TYPE_UNSPECIFIED = 0; + */ + public static final int LOCATION_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * A country level location.
+     * 
+ * + * COUNTRY = 1; + */ + public static final int COUNTRY_VALUE = 1; + /** + * + * + *
+     * A state or equivalent level location.
+     * 
+ * + * ADMINISTRATIVE_AREA = 2; + */ + public static final int ADMINISTRATIVE_AREA_VALUE = 2; + /** + * + * + *
+     * A county or equivalent level location.
+     * 
+ * + * SUB_ADMINISTRATIVE_AREA = 3; + */ + public static final int SUB_ADMINISTRATIVE_AREA_VALUE = 3; + /** + * + * + *
+     * A city or equivalent level location.
+     * 
+ * + * LOCALITY = 4; + */ + public static final int LOCALITY_VALUE = 4; + /** + * + * + *
+     * A postal code level location.
+     * 
+ * + * POSTAL_CODE = 5; + */ + public static final int POSTAL_CODE_VALUE = 5; + /** + * + * + *
+     * A sublocality is a subdivision of a locality, for example a city borough,
+     * ward, or arrondissement. Sublocalities are usually recognized by a local
+     * political authority. For example, Manhattan and Brooklyn are recognized
+     * as boroughs by the City of New York, and are therefore modeled as
+     * sublocalities.
+     * 
+ * + * SUB_LOCALITY = 6; + */ + public static final int SUB_LOCALITY_VALUE = 6; + /** + * + * + *
+     * A district or equivalent level location.
+     * 
+ * + * SUB_LOCALITY_1 = 7; + */ + public static final int SUB_LOCALITY_1_VALUE = 7; + /** + * + * + *
+     * A smaller district or equivalent level display.
+     * 
+ * + * SUB_LOCALITY_2 = 8; + */ + public static final int SUB_LOCALITY_2_VALUE = 8; + /** + * + * + *
+     * A neighborhood level location.
+     * 
+ * + * NEIGHBORHOOD = 9; + */ + public static final int NEIGHBORHOOD_VALUE = 9; + /** + * + * + *
+     * A street address level location.
+     * 
+ * + * STREET_ADDRESS = 10; + */ + public static final int STREET_ADDRESS_VALUE = 10; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static LocationType valueOf(int value) { + return forNumber(value); + } + + public static LocationType forNumber(int value) { + switch (value) { + case 0: + return LOCATION_TYPE_UNSPECIFIED; + case 1: + return COUNTRY; + case 2: + return ADMINISTRATIVE_AREA; + case 3: + return SUB_ADMINISTRATIVE_AREA; + case 4: + return LOCALITY; + case 5: + return POSTAL_CODE; + case 6: + return SUB_LOCALITY; + case 7: + return SUB_LOCALITY_1; + case 8: + return SUB_LOCALITY_2; + case 9: + return NEIGHBORHOOD; + case 10: + return STREET_ADDRESS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LocationType findValueByNumber(int number) { + return LocationType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.Location.getDescriptor().getEnumTypes().get(0); + } + + private static final LocationType[] VALUES = values(); + + public static LocationType 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()]; + } + + private final int value; + + private LocationType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.Location.LocationType) + } + + public static final int LOCATION_TYPE_FIELD_NUMBER = 1; + private int locationType_; + /** + * + * + *
+   * The type of a location, which corresponds to the address lines field of
+   * [PostalAddress][]. For example, "Downtown, Atlanta, GA, USA" has a type of
+   * [LocationType#NEIGHBORHOOD][], and "Kansas City, KS, USA" has a type of
+   * [LocationType#LOCALITY][].
+   * 
+ * + * .google.cloud.talent.v4beta1.Location.LocationType location_type = 1; + */ + public int getLocationTypeValue() { + return locationType_; + } + /** + * + * + *
+   * The type of a location, which corresponds to the address lines field of
+   * [PostalAddress][]. For example, "Downtown, Atlanta, GA, USA" has a type of
+   * [LocationType#NEIGHBORHOOD][], and "Kansas City, KS, USA" has a type of
+   * [LocationType#LOCALITY][].
+   * 
+ * + * .google.cloud.talent.v4beta1.Location.LocationType location_type = 1; + */ + public com.google.cloud.talent.v4beta1.Location.LocationType getLocationType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.Location.LocationType result = + com.google.cloud.talent.v4beta1.Location.LocationType.valueOf(locationType_); + return result == null + ? com.google.cloud.talent.v4beta1.Location.LocationType.UNRECOGNIZED + : result; + } + + public static final int POSTAL_ADDRESS_FIELD_NUMBER = 2; + private com.google.type.PostalAddress postalAddress_; + /** + * + * + *
+   * Postal address of the location that includes human readable information,
+   * such as postal delivery and payments addresses. Given a postal address,
+   * a postal service can deliver items to a premises, P.O. Box, or other
+   * delivery location.
+   * 
+ * + * .google.type.PostalAddress postal_address = 2; + */ + public boolean hasPostalAddress() { + return postalAddress_ != null; + } + /** + * + * + *
+   * Postal address of the location that includes human readable information,
+   * such as postal delivery and payments addresses. Given a postal address,
+   * a postal service can deliver items to a premises, P.O. Box, or other
+   * delivery location.
+   * 
+ * + * .google.type.PostalAddress postal_address = 2; + */ + public com.google.type.PostalAddress getPostalAddress() { + return postalAddress_ == null + ? com.google.type.PostalAddress.getDefaultInstance() + : postalAddress_; + } + /** + * + * + *
+   * Postal address of the location that includes human readable information,
+   * such as postal delivery and payments addresses. Given a postal address,
+   * a postal service can deliver items to a premises, P.O. Box, or other
+   * delivery location.
+   * 
+ * + * .google.type.PostalAddress postal_address = 2; + */ + public com.google.type.PostalAddressOrBuilder getPostalAddressOrBuilder() { + return getPostalAddress(); + } + + public static final int LAT_LNG_FIELD_NUMBER = 3; + private com.google.type.LatLng latLng_; + /** + * + * + *
+   * An object representing a latitude/longitude pair.
+   * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public boolean hasLatLng() { + return latLng_ != null; + } + /** + * + * + *
+   * An object representing a latitude/longitude pair.
+   * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public com.google.type.LatLng getLatLng() { + return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; + } + /** + * + * + *
+   * An object representing a latitude/longitude pair.
+   * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { + return getLatLng(); + } + + public static final int RADIUS_MILES_FIELD_NUMBER = 4; + private double radiusMiles_; + /** + * + * + *
+   * Radius in miles of the job location. This value is derived from the
+   * location bounding box in which a circle with the specified radius
+   * centered from [LatLng][] covers the area associated with the job location.
+   * For example, currently, "Mountain View, CA, USA" has a radius of
+   * 6.17 miles.
+   * 
+ * + * double radius_miles = 4; + */ + public double getRadiusMiles() { + return radiusMiles_; + } + + 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 (locationType_ + != com.google.cloud.talent.v4beta1.Location.LocationType.LOCATION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, locationType_); + } + if (postalAddress_ != null) { + output.writeMessage(2, getPostalAddress()); + } + if (latLng_ != null) { + output.writeMessage(3, getLatLng()); + } + if (radiusMiles_ != 0D) { + output.writeDouble(4, radiusMiles_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (locationType_ + != com.google.cloud.talent.v4beta1.Location.LocationType.LOCATION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, locationType_); + } + if (postalAddress_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPostalAddress()); + } + if (latLng_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getLatLng()); + } + if (radiusMiles_ != 0D) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(4, radiusMiles_); + } + size += unknownFields.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.cloud.talent.v4beta1.Location)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Location other = (com.google.cloud.talent.v4beta1.Location) obj; + + boolean result = true; + result = result && locationType_ == other.locationType_; + result = result && (hasPostalAddress() == other.hasPostalAddress()); + if (hasPostalAddress()) { + result = result && getPostalAddress().equals(other.getPostalAddress()); + } + result = result && (hasLatLng() == other.hasLatLng()); + if (hasLatLng()) { + result = result && getLatLng().equals(other.getLatLng()); + } + result = + result + && (java.lang.Double.doubleToLongBits(getRadiusMiles()) + == java.lang.Double.doubleToLongBits(other.getRadiusMiles())); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LOCATION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + locationType_; + if (hasPostalAddress()) { + hash = (37 * hash) + POSTAL_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getPostalAddress().hashCode(); + } + if (hasLatLng()) { + hash = (37 * hash) + LAT_LNG_FIELD_NUMBER; + hash = (53 * hash) + getLatLng().hashCode(); + } + hash = (37 * hash) + RADIUS_MILES_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getRadiusMiles())); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Location parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Location parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Location parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Location 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.cloud.talent.v4beta1.Location parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Location parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Location parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Location 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.cloud.talent.v4beta1.Location parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Location 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.cloud.talent.v4beta1.Location parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Location 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.cloud.talent.v4beta1.Location 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; + } + /** + * + * + *
+   * Output only.
+   * A resource that represents a location with full geographic information.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Location} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Location) + com.google.cloud.talent.v4beta1.LocationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_Location_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_Location_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Location.class, + com.google.cloud.talent.v4beta1.Location.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Location.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + locationType_ = 0; + + if (postalAddressBuilder_ == null) { + postalAddress_ = null; + } else { + postalAddress_ = null; + postalAddressBuilder_ = null; + } + if (latLngBuilder_ == null) { + latLng_ = null; + } else { + latLng_ = null; + latLngBuilder_ = null; + } + radiusMiles_ = 0D; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_Location_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Location getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Location.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Location build() { + com.google.cloud.talent.v4beta1.Location result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Location buildPartial() { + com.google.cloud.talent.v4beta1.Location result = + new com.google.cloud.talent.v4beta1.Location(this); + result.locationType_ = locationType_; + if (postalAddressBuilder_ == null) { + result.postalAddress_ = postalAddress_; + } else { + result.postalAddress_ = postalAddressBuilder_.build(); + } + if (latLngBuilder_ == null) { + result.latLng_ = latLng_; + } else { + result.latLng_ = latLngBuilder_.build(); + } + result.radiusMiles_ = radiusMiles_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Location) { + return mergeFrom((com.google.cloud.talent.v4beta1.Location) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Location other) { + if (other == com.google.cloud.talent.v4beta1.Location.getDefaultInstance()) return this; + if (other.locationType_ != 0) { + setLocationTypeValue(other.getLocationTypeValue()); + } + if (other.hasPostalAddress()) { + mergePostalAddress(other.getPostalAddress()); + } + if (other.hasLatLng()) { + mergeLatLng(other.getLatLng()); + } + if (other.getRadiusMiles() != 0D) { + setRadiusMiles(other.getRadiusMiles()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.Location parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.Location) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int locationType_ = 0; + /** + * + * + *
+     * The type of a location, which corresponds to the address lines field of
+     * [PostalAddress][]. For example, "Downtown, Atlanta, GA, USA" has a type of
+     * [LocationType#NEIGHBORHOOD][], and "Kansas City, KS, USA" has a type of
+     * [LocationType#LOCALITY][].
+     * 
+ * + * .google.cloud.talent.v4beta1.Location.LocationType location_type = 1; + */ + public int getLocationTypeValue() { + return locationType_; + } + /** + * + * + *
+     * The type of a location, which corresponds to the address lines field of
+     * [PostalAddress][]. For example, "Downtown, Atlanta, GA, USA" has a type of
+     * [LocationType#NEIGHBORHOOD][], and "Kansas City, KS, USA" has a type of
+     * [LocationType#LOCALITY][].
+     * 
+ * + * .google.cloud.talent.v4beta1.Location.LocationType location_type = 1; + */ + public Builder setLocationTypeValue(int value) { + locationType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The type of a location, which corresponds to the address lines field of
+     * [PostalAddress][]. For example, "Downtown, Atlanta, GA, USA" has a type of
+     * [LocationType#NEIGHBORHOOD][], and "Kansas City, KS, USA" has a type of
+     * [LocationType#LOCALITY][].
+     * 
+ * + * .google.cloud.talent.v4beta1.Location.LocationType location_type = 1; + */ + public com.google.cloud.talent.v4beta1.Location.LocationType getLocationType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.Location.LocationType result = + com.google.cloud.talent.v4beta1.Location.LocationType.valueOf(locationType_); + return result == null + ? com.google.cloud.talent.v4beta1.Location.LocationType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * The type of a location, which corresponds to the address lines field of
+     * [PostalAddress][]. For example, "Downtown, Atlanta, GA, USA" has a type of
+     * [LocationType#NEIGHBORHOOD][], and "Kansas City, KS, USA" has a type of
+     * [LocationType#LOCALITY][].
+     * 
+ * + * .google.cloud.talent.v4beta1.Location.LocationType location_type = 1; + */ + public Builder setLocationType(com.google.cloud.talent.v4beta1.Location.LocationType value) { + if (value == null) { + throw new NullPointerException(); + } + + locationType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The type of a location, which corresponds to the address lines field of
+     * [PostalAddress][]. For example, "Downtown, Atlanta, GA, USA" has a type of
+     * [LocationType#NEIGHBORHOOD][], and "Kansas City, KS, USA" has a type of
+     * [LocationType#LOCALITY][].
+     * 
+ * + * .google.cloud.talent.v4beta1.Location.LocationType location_type = 1; + */ + public Builder clearLocationType() { + + locationType_ = 0; + onChanged(); + return this; + } + + private com.google.type.PostalAddress postalAddress_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.PostalAddress, + com.google.type.PostalAddress.Builder, + com.google.type.PostalAddressOrBuilder> + postalAddressBuilder_; + /** + * + * + *
+     * Postal address of the location that includes human readable information,
+     * such as postal delivery and payments addresses. Given a postal address,
+     * a postal service can deliver items to a premises, P.O. Box, or other
+     * delivery location.
+     * 
+ * + * .google.type.PostalAddress postal_address = 2; + */ + public boolean hasPostalAddress() { + return postalAddressBuilder_ != null || postalAddress_ != null; + } + /** + * + * + *
+     * Postal address of the location that includes human readable information,
+     * such as postal delivery and payments addresses. Given a postal address,
+     * a postal service can deliver items to a premises, P.O. Box, or other
+     * delivery location.
+     * 
+ * + * .google.type.PostalAddress postal_address = 2; + */ + public com.google.type.PostalAddress getPostalAddress() { + if (postalAddressBuilder_ == null) { + return postalAddress_ == null + ? com.google.type.PostalAddress.getDefaultInstance() + : postalAddress_; + } else { + return postalAddressBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Postal address of the location that includes human readable information,
+     * such as postal delivery and payments addresses. Given a postal address,
+     * a postal service can deliver items to a premises, P.O. Box, or other
+     * delivery location.
+     * 
+ * + * .google.type.PostalAddress postal_address = 2; + */ + public Builder setPostalAddress(com.google.type.PostalAddress value) { + if (postalAddressBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + postalAddress_ = value; + onChanged(); + } else { + postalAddressBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Postal address of the location that includes human readable information,
+     * such as postal delivery and payments addresses. Given a postal address,
+     * a postal service can deliver items to a premises, P.O. Box, or other
+     * delivery location.
+     * 
+ * + * .google.type.PostalAddress postal_address = 2; + */ + public Builder setPostalAddress(com.google.type.PostalAddress.Builder builderForValue) { + if (postalAddressBuilder_ == null) { + postalAddress_ = builderForValue.build(); + onChanged(); + } else { + postalAddressBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Postal address of the location that includes human readable information,
+     * such as postal delivery and payments addresses. Given a postal address,
+     * a postal service can deliver items to a premises, P.O. Box, or other
+     * delivery location.
+     * 
+ * + * .google.type.PostalAddress postal_address = 2; + */ + public Builder mergePostalAddress(com.google.type.PostalAddress value) { + if (postalAddressBuilder_ == null) { + if (postalAddress_ != null) { + postalAddress_ = + com.google.type.PostalAddress.newBuilder(postalAddress_) + .mergeFrom(value) + .buildPartial(); + } else { + postalAddress_ = value; + } + onChanged(); + } else { + postalAddressBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Postal address of the location that includes human readable information,
+     * such as postal delivery and payments addresses. Given a postal address,
+     * a postal service can deliver items to a premises, P.O. Box, or other
+     * delivery location.
+     * 
+ * + * .google.type.PostalAddress postal_address = 2; + */ + public Builder clearPostalAddress() { + if (postalAddressBuilder_ == null) { + postalAddress_ = null; + onChanged(); + } else { + postalAddress_ = null; + postalAddressBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Postal address of the location that includes human readable information,
+     * such as postal delivery and payments addresses. Given a postal address,
+     * a postal service can deliver items to a premises, P.O. Box, or other
+     * delivery location.
+     * 
+ * + * .google.type.PostalAddress postal_address = 2; + */ + public com.google.type.PostalAddress.Builder getPostalAddressBuilder() { + + onChanged(); + return getPostalAddressFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Postal address of the location that includes human readable information,
+     * such as postal delivery and payments addresses. Given a postal address,
+     * a postal service can deliver items to a premises, P.O. Box, or other
+     * delivery location.
+     * 
+ * + * .google.type.PostalAddress postal_address = 2; + */ + public com.google.type.PostalAddressOrBuilder getPostalAddressOrBuilder() { + if (postalAddressBuilder_ != null) { + return postalAddressBuilder_.getMessageOrBuilder(); + } else { + return postalAddress_ == null + ? com.google.type.PostalAddress.getDefaultInstance() + : postalAddress_; + } + } + /** + * + * + *
+     * Postal address of the location that includes human readable information,
+     * such as postal delivery and payments addresses. Given a postal address,
+     * a postal service can deliver items to a premises, P.O. Box, or other
+     * delivery location.
+     * 
+ * + * .google.type.PostalAddress postal_address = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.PostalAddress, + com.google.type.PostalAddress.Builder, + com.google.type.PostalAddressOrBuilder> + getPostalAddressFieldBuilder() { + if (postalAddressBuilder_ == null) { + postalAddressBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.PostalAddress, + com.google.type.PostalAddress.Builder, + com.google.type.PostalAddressOrBuilder>( + getPostalAddress(), getParentForChildren(), isClean()); + postalAddress_ = null; + } + return postalAddressBuilder_; + } + + private com.google.type.LatLng latLng_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + latLngBuilder_; + /** + * + * + *
+     * An object representing a latitude/longitude pair.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public boolean hasLatLng() { + return latLngBuilder_ != null || latLng_ != null; + } + /** + * + * + *
+     * An object representing a latitude/longitude pair.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public com.google.type.LatLng getLatLng() { + if (latLngBuilder_ == null) { + return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; + } else { + return latLngBuilder_.getMessage(); + } + } + /** + * + * + *
+     * An object representing a latitude/longitude pair.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public Builder setLatLng(com.google.type.LatLng value) { + if (latLngBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + latLng_ = value; + onChanged(); + } else { + latLngBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * An object representing a latitude/longitude pair.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public Builder setLatLng(com.google.type.LatLng.Builder builderForValue) { + if (latLngBuilder_ == null) { + latLng_ = builderForValue.build(); + onChanged(); + } else { + latLngBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * An object representing a latitude/longitude pair.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public Builder mergeLatLng(com.google.type.LatLng value) { + if (latLngBuilder_ == null) { + if (latLng_ != null) { + latLng_ = com.google.type.LatLng.newBuilder(latLng_).mergeFrom(value).buildPartial(); + } else { + latLng_ = value; + } + onChanged(); + } else { + latLngBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * An object representing a latitude/longitude pair.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public Builder clearLatLng() { + if (latLngBuilder_ == null) { + latLng_ = null; + onChanged(); + } else { + latLng_ = null; + latLngBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * An object representing a latitude/longitude pair.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public com.google.type.LatLng.Builder getLatLngBuilder() { + + onChanged(); + return getLatLngFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * An object representing a latitude/longitude pair.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { + if (latLngBuilder_ != null) { + return latLngBuilder_.getMessageOrBuilder(); + } else { + return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; + } + } + /** + * + * + *
+     * An object representing a latitude/longitude pair.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + getLatLngFieldBuilder() { + if (latLngBuilder_ == null) { + latLngBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, + com.google.type.LatLng.Builder, + com.google.type.LatLngOrBuilder>(getLatLng(), getParentForChildren(), isClean()); + latLng_ = null; + } + return latLngBuilder_; + } + + private double radiusMiles_; + /** + * + * + *
+     * Radius in miles of the job location. This value is derived from the
+     * location bounding box in which a circle with the specified radius
+     * centered from [LatLng][] covers the area associated with the job location.
+     * For example, currently, "Mountain View, CA, USA" has a radius of
+     * 6.17 miles.
+     * 
+ * + * double radius_miles = 4; + */ + public double getRadiusMiles() { + return radiusMiles_; + } + /** + * + * + *
+     * Radius in miles of the job location. This value is derived from the
+     * location bounding box in which a circle with the specified radius
+     * centered from [LatLng][] covers the area associated with the job location.
+     * For example, currently, "Mountain View, CA, USA" has a radius of
+     * 6.17 miles.
+     * 
+ * + * double radius_miles = 4; + */ + public Builder setRadiusMiles(double value) { + + radiusMiles_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Radius in miles of the job location. This value is derived from the
+     * location bounding box in which a circle with the specified radius
+     * centered from [LatLng][] covers the area associated with the job location.
+     * For example, currently, "Mountain View, CA, USA" has a radius of
+     * 6.17 miles.
+     * 
+ * + * double radius_miles = 4; + */ + public Builder clearRadiusMiles() { + + radiusMiles_ = 0D; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Location) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Location) + private static final com.google.cloud.talent.v4beta1.Location DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Location(); + } + + public static com.google.cloud.talent.v4beta1.Location getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Location parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Location(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.Location getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/LocationFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/LocationFilter.java new file mode 100644 index 000000000000..40f7bbb05452 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/LocationFilter.java @@ -0,0 +1,1719 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Geographic region of the search.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.LocationFilter} + */ +public final class LocationFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.LocationFilter) + LocationFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use LocationFilter.newBuilder() to construct. + private LocationFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LocationFilter() { + address_ = ""; + regionCode_ = ""; + distanceInMiles_ = 0D; + telecommutePreference_ = 0; + negated_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private LocationFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + address_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + regionCode_ = s; + break; + } + case 26: + { + com.google.type.LatLng.Builder subBuilder = null; + if (latLng_ != null) { + subBuilder = latLng_.toBuilder(); + } + latLng_ = input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(latLng_); + latLng_ = subBuilder.buildPartial(); + } + + break; + } + case 33: + { + distanceInMiles_ = input.readDouble(); + break; + } + case 40: + { + int rawValue = input.readEnum(); + + telecommutePreference_ = rawValue; + break; + } + case 48: + { + negated_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_LocationFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_LocationFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.LocationFilter.class, + com.google.cloud.talent.v4beta1.LocationFilter.Builder.class); + } + + /** + * + * + *
+   * Specify whether including telecommute jobs.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference} + */ + public enum TelecommutePreference implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value if the telecommute preference isn't specified.
+     * 
+ * + * TELECOMMUTE_PREFERENCE_UNSPECIFIED = 0; + */ + TELECOMMUTE_PREFERENCE_UNSPECIFIED(0), + /** + * + * + *
+     * Exclude telecommute jobs.
+     * 
+ * + * TELECOMMUTE_EXCLUDED = 1; + */ + TELECOMMUTE_EXCLUDED(1), + /** + * + * + *
+     * Allow telecommute jobs.
+     * 
+ * + * TELECOMMUTE_ALLOWED = 2; + */ + TELECOMMUTE_ALLOWED(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value if the telecommute preference isn't specified.
+     * 
+ * + * TELECOMMUTE_PREFERENCE_UNSPECIFIED = 0; + */ + public static final int TELECOMMUTE_PREFERENCE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Exclude telecommute jobs.
+     * 
+ * + * TELECOMMUTE_EXCLUDED = 1; + */ + public static final int TELECOMMUTE_EXCLUDED_VALUE = 1; + /** + * + * + *
+     * Allow telecommute jobs.
+     * 
+ * + * TELECOMMUTE_ALLOWED = 2; + */ + public static final int TELECOMMUTE_ALLOWED_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static TelecommutePreference valueOf(int value) { + return forNumber(value); + } + + public static TelecommutePreference forNumber(int value) { + switch (value) { + case 0: + return TELECOMMUTE_PREFERENCE_UNSPECIFIED; + case 1: + return TELECOMMUTE_EXCLUDED; + case 2: + return TELECOMMUTE_ALLOWED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TelecommutePreference findValueByNumber(int number) { + return TelecommutePreference.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.LocationFilter.getDescriptor().getEnumTypes().get(0); + } + + private static final TelecommutePreference[] VALUES = values(); + + public static TelecommutePreference 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()]; + } + + private final int value; + + private TelecommutePreference(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference) + } + + public static final int ADDRESS_FIELD_NUMBER = 1; + private volatile java.lang.Object address_; + /** + * + * + *
+   * Optional.
+   * The address name, such as "Mountain View" or "Bay Area".
+   * 
+ * + * string address = 1; + */ + public java.lang.String getAddress() { + java.lang.Object ref = address_; + 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(); + address_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The address name, such as "Mountain View" or "Bay Area".
+   * 
+ * + * string address = 1; + */ + public com.google.protobuf.ByteString getAddressBytes() { + java.lang.Object ref = address_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + address_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_CODE_FIELD_NUMBER = 2; + private volatile java.lang.Object regionCode_; + /** + * + * + *
+   * Optional.
+   * CLDR region code of the country/region of the address. This is used
+   * to address ambiguity of the user-input location, for example, "Liverpool"
+   * against "Liverpool, NY, US" or "Liverpool, UK".
+   * Set this field if all the jobs to search against are from a same region,
+   * or jobs are world-wide, but the job seeker is from a specific region.
+   * See http://cldr.unicode.org/ and
+   * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
+   * for details. Example: "CH" for Switzerland.
+   * 
+ * + * string region_code = 2; + */ + public java.lang.String getRegionCode() { + java.lang.Object ref = regionCode_; + 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(); + regionCode_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * CLDR region code of the country/region of the address. This is used
+   * to address ambiguity of the user-input location, for example, "Liverpool"
+   * against "Liverpool, NY, US" or "Liverpool, UK".
+   * Set this field if all the jobs to search against are from a same region,
+   * or jobs are world-wide, but the job seeker is from a specific region.
+   * See http://cldr.unicode.org/ and
+   * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
+   * for details. Example: "CH" for Switzerland.
+   * 
+ * + * string region_code = 2; + */ + public com.google.protobuf.ByteString getRegionCodeBytes() { + java.lang.Object ref = regionCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + regionCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LAT_LNG_FIELD_NUMBER = 3; + private com.google.type.LatLng latLng_; + /** + * + * + *
+   * Optional.
+   * The latitude and longitude of the geographic center from which to
+   * search. This field's ignored if `address` is provided.
+   * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public boolean hasLatLng() { + return latLng_ != null; + } + /** + * + * + *
+   * Optional.
+   * The latitude and longitude of the geographic center from which to
+   * search. This field's ignored if `address` is provided.
+   * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public com.google.type.LatLng getLatLng() { + return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; + } + /** + * + * + *
+   * Optional.
+   * The latitude and longitude of the geographic center from which to
+   * search. This field's ignored if `address` is provided.
+   * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { + return getLatLng(); + } + + public static final int DISTANCE_IN_MILES_FIELD_NUMBER = 4; + private double distanceInMiles_; + /** + * + * + *
+   * Optional.
+   * The distance_in_miles is applied when the location being searched for is
+   * identified as a city or smaller. When the location being searched for is a
+   * state or larger, this field is ignored.
+   * 
+ * + * double distance_in_miles = 4; + */ + public double getDistanceInMiles() { + return distanceInMiles_; + } + + public static final int TELECOMMUTE_PREFERENCE_FIELD_NUMBER = 5; + private int telecommutePreference_; + /** + * + * + *
+   * Optional.
+   * Allows the client to return jobs without a
+   * set location, specifically, telecommuting jobs (telecomuting is considered
+   * by the service as a special location.
+   * [Job.posting_region][google.cloud.talent.v4beta1.Job.posting_region]
+   * indicates if a job permits telecommuting. If this field is set to
+   * [TelecommutePreference.TELECOMMUTE_ALLOWED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_ALLOWED],
+   * telecommuting jobs are searched, and
+   * [address][google.cloud.talent.v4beta1.LocationFilter.address] and
+   * [lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng] are ignored.
+   * If not set or set to
+   * [TelecommutePreference.TELECOMMUTE_EXCLUDED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_EXCLUDED],
+   * telecommute job are not searched.
+   * This filter can be used by itself to search exclusively for telecommuting
+   * jobs, or it can be combined with another location
+   * filter to search for a combination of job locations,
+   * such as "Mountain View" or "telecommuting" jobs. However, when used in
+   * combination with other location filters, telecommuting jobs can be
+   * treated as less relevant than other jobs in the search response.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference telecommute_preference = 5; + * + */ + public int getTelecommutePreferenceValue() { + return telecommutePreference_; + } + /** + * + * + *
+   * Optional.
+   * Allows the client to return jobs without a
+   * set location, specifically, telecommuting jobs (telecomuting is considered
+   * by the service as a special location.
+   * [Job.posting_region][google.cloud.talent.v4beta1.Job.posting_region]
+   * indicates if a job permits telecommuting. If this field is set to
+   * [TelecommutePreference.TELECOMMUTE_ALLOWED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_ALLOWED],
+   * telecommuting jobs are searched, and
+   * [address][google.cloud.talent.v4beta1.LocationFilter.address] and
+   * [lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng] are ignored.
+   * If not set or set to
+   * [TelecommutePreference.TELECOMMUTE_EXCLUDED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_EXCLUDED],
+   * telecommute job are not searched.
+   * This filter can be used by itself to search exclusively for telecommuting
+   * jobs, or it can be combined with another location
+   * filter to search for a combination of job locations,
+   * such as "Mountain View" or "telecommuting" jobs. However, when used in
+   * combination with other location filters, telecommuting jobs can be
+   * treated as less relevant than other jobs in the search response.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference telecommute_preference = 5; + * + */ + public com.google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference + getTelecommutePreference() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference result = + com.google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.valueOf( + telecommutePreference_); + return result == null + ? com.google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.UNRECOGNIZED + : result; + } + + public static final int NEGATED_FIELD_NUMBER = 6; + private boolean negated_; + /** + * + * + *
+   * Optional.
+   * Whether to apply negation to the filter so profiles matching the filter
+   * are excluded.
+   * Currently only supported in profile search.
+   * 
+ * + * bool negated = 6; + */ + public boolean getNegated() { + return negated_; + } + + 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 (!getAddressBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_); + } + if (!getRegionCodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, regionCode_); + } + if (latLng_ != null) { + output.writeMessage(3, getLatLng()); + } + if (distanceInMiles_ != 0D) { + output.writeDouble(4, distanceInMiles_); + } + if (telecommutePreference_ + != com.google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference + .TELECOMMUTE_PREFERENCE_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, telecommutePreference_); + } + if (negated_ != false) { + output.writeBool(6, negated_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getAddressBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_); + } + if (!getRegionCodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, regionCode_); + } + if (latLng_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getLatLng()); + } + if (distanceInMiles_ != 0D) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(4, distanceInMiles_); + } + if (telecommutePreference_ + != com.google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference + .TELECOMMUTE_PREFERENCE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, telecommutePreference_); + } + if (negated_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, negated_); + } + size += unknownFields.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.cloud.talent.v4beta1.LocationFilter)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.LocationFilter other = + (com.google.cloud.talent.v4beta1.LocationFilter) obj; + + boolean result = true; + result = result && getAddress().equals(other.getAddress()); + result = result && getRegionCode().equals(other.getRegionCode()); + result = result && (hasLatLng() == other.hasLatLng()); + if (hasLatLng()) { + result = result && getLatLng().equals(other.getLatLng()); + } + result = + result + && (java.lang.Double.doubleToLongBits(getDistanceInMiles()) + == java.lang.Double.doubleToLongBits(other.getDistanceInMiles())); + result = result && telecommutePreference_ == other.telecommutePreference_; + result = result && (getNegated() == other.getNegated()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAddress().hashCode(); + hash = (37 * hash) + REGION_CODE_FIELD_NUMBER; + hash = (53 * hash) + getRegionCode().hashCode(); + if (hasLatLng()) { + hash = (37 * hash) + LAT_LNG_FIELD_NUMBER; + hash = (53 * hash) + getLatLng().hashCode(); + } + hash = (37 * hash) + DISTANCE_IN_MILES_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDistanceInMiles())); + hash = (37 * hash) + TELECOMMUTE_PREFERENCE_FIELD_NUMBER; + hash = (53 * hash) + telecommutePreference_; + hash = (37 * hash) + NEGATED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNegated()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.LocationFilter parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.LocationFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.LocationFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.LocationFilter 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.cloud.talent.v4beta1.LocationFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.LocationFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.LocationFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.LocationFilter 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.cloud.talent.v4beta1.LocationFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.LocationFilter 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.cloud.talent.v4beta1.LocationFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.LocationFilter 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.cloud.talent.v4beta1.LocationFilter 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; + } + /** + * + * + *
+   * Input only.
+   * Geographic region of the search.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.LocationFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.LocationFilter) + com.google.cloud.talent.v4beta1.LocationFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_LocationFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_LocationFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.LocationFilter.class, + com.google.cloud.talent.v4beta1.LocationFilter.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.LocationFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + address_ = ""; + + regionCode_ = ""; + + if (latLngBuilder_ == null) { + latLng_ = null; + } else { + latLng_ = null; + latLngBuilder_ = null; + } + distanceInMiles_ = 0D; + + telecommutePreference_ = 0; + + negated_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_LocationFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.LocationFilter getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.LocationFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.LocationFilter build() { + com.google.cloud.talent.v4beta1.LocationFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.LocationFilter buildPartial() { + com.google.cloud.talent.v4beta1.LocationFilter result = + new com.google.cloud.talent.v4beta1.LocationFilter(this); + result.address_ = address_; + result.regionCode_ = regionCode_; + if (latLngBuilder_ == null) { + result.latLng_ = latLng_; + } else { + result.latLng_ = latLngBuilder_.build(); + } + result.distanceInMiles_ = distanceInMiles_; + result.telecommutePreference_ = telecommutePreference_; + result.negated_ = negated_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.LocationFilter) { + return mergeFrom((com.google.cloud.talent.v4beta1.LocationFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.LocationFilter other) { + if (other == com.google.cloud.talent.v4beta1.LocationFilter.getDefaultInstance()) return this; + if (!other.getAddress().isEmpty()) { + address_ = other.address_; + onChanged(); + } + if (!other.getRegionCode().isEmpty()) { + regionCode_ = other.regionCode_; + onChanged(); + } + if (other.hasLatLng()) { + mergeLatLng(other.getLatLng()); + } + if (other.getDistanceInMiles() != 0D) { + setDistanceInMiles(other.getDistanceInMiles()); + } + if (other.telecommutePreference_ != 0) { + setTelecommutePreferenceValue(other.getTelecommutePreferenceValue()); + } + if (other.getNegated() != false) { + setNegated(other.getNegated()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.LocationFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.LocationFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object address_ = ""; + /** + * + * + *
+     * Optional.
+     * The address name, such as "Mountain View" or "Bay Area".
+     * 
+ * + * string address = 1; + */ + public java.lang.String getAddress() { + java.lang.Object ref = address_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + address_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The address name, such as "Mountain View" or "Bay Area".
+     * 
+ * + * string address = 1; + */ + public com.google.protobuf.ByteString getAddressBytes() { + java.lang.Object ref = address_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + address_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The address name, such as "Mountain View" or "Bay Area".
+     * 
+ * + * string address = 1; + */ + public Builder setAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + address_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The address name, such as "Mountain View" or "Bay Area".
+     * 
+ * + * string address = 1; + */ + public Builder clearAddress() { + + address_ = getDefaultInstance().getAddress(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The address name, such as "Mountain View" or "Bay Area".
+     * 
+ * + * string address = 1; + */ + public Builder setAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + address_ = value; + onChanged(); + return this; + } + + private java.lang.Object regionCode_ = ""; + /** + * + * + *
+     * Optional.
+     * CLDR region code of the country/region of the address. This is used
+     * to address ambiguity of the user-input location, for example, "Liverpool"
+     * against "Liverpool, NY, US" or "Liverpool, UK".
+     * Set this field if all the jobs to search against are from a same region,
+     * or jobs are world-wide, but the job seeker is from a specific region.
+     * See http://cldr.unicode.org/ and
+     * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
+     * for details. Example: "CH" for Switzerland.
+     * 
+ * + * string region_code = 2; + */ + public java.lang.String getRegionCode() { + java.lang.Object ref = regionCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + regionCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * CLDR region code of the country/region of the address. This is used
+     * to address ambiguity of the user-input location, for example, "Liverpool"
+     * against "Liverpool, NY, US" or "Liverpool, UK".
+     * Set this field if all the jobs to search against are from a same region,
+     * or jobs are world-wide, but the job seeker is from a specific region.
+     * See http://cldr.unicode.org/ and
+     * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
+     * for details. Example: "CH" for Switzerland.
+     * 
+ * + * string region_code = 2; + */ + public com.google.protobuf.ByteString getRegionCodeBytes() { + java.lang.Object ref = regionCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + regionCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * CLDR region code of the country/region of the address. This is used
+     * to address ambiguity of the user-input location, for example, "Liverpool"
+     * against "Liverpool, NY, US" or "Liverpool, UK".
+     * Set this field if all the jobs to search against are from a same region,
+     * or jobs are world-wide, but the job seeker is from a specific region.
+     * See http://cldr.unicode.org/ and
+     * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
+     * for details. Example: "CH" for Switzerland.
+     * 
+ * + * string region_code = 2; + */ + public Builder setRegionCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + regionCode_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * CLDR region code of the country/region of the address. This is used
+     * to address ambiguity of the user-input location, for example, "Liverpool"
+     * against "Liverpool, NY, US" or "Liverpool, UK".
+     * Set this field if all the jobs to search against are from a same region,
+     * or jobs are world-wide, but the job seeker is from a specific region.
+     * See http://cldr.unicode.org/ and
+     * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
+     * for details. Example: "CH" for Switzerland.
+     * 
+ * + * string region_code = 2; + */ + public Builder clearRegionCode() { + + regionCode_ = getDefaultInstance().getRegionCode(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * CLDR region code of the country/region of the address. This is used
+     * to address ambiguity of the user-input location, for example, "Liverpool"
+     * against "Liverpool, NY, US" or "Liverpool, UK".
+     * Set this field if all the jobs to search against are from a same region,
+     * or jobs are world-wide, but the job seeker is from a specific region.
+     * See http://cldr.unicode.org/ and
+     * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
+     * for details. Example: "CH" for Switzerland.
+     * 
+ * + * string region_code = 2; + */ + public Builder setRegionCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + regionCode_ = value; + onChanged(); + return this; + } + + private com.google.type.LatLng latLng_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + latLngBuilder_; + /** + * + * + *
+     * Optional.
+     * The latitude and longitude of the geographic center from which to
+     * search. This field's ignored if `address` is provided.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public boolean hasLatLng() { + return latLngBuilder_ != null || latLng_ != null; + } + /** + * + * + *
+     * Optional.
+     * The latitude and longitude of the geographic center from which to
+     * search. This field's ignored if `address` is provided.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public com.google.type.LatLng getLatLng() { + if (latLngBuilder_ == null) { + return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; + } else { + return latLngBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The latitude and longitude of the geographic center from which to
+     * search. This field's ignored if `address` is provided.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public Builder setLatLng(com.google.type.LatLng value) { + if (latLngBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + latLng_ = value; + onChanged(); + } else { + latLngBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The latitude and longitude of the geographic center from which to
+     * search. This field's ignored if `address` is provided.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public Builder setLatLng(com.google.type.LatLng.Builder builderForValue) { + if (latLngBuilder_ == null) { + latLng_ = builderForValue.build(); + onChanged(); + } else { + latLngBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The latitude and longitude of the geographic center from which to
+     * search. This field's ignored if `address` is provided.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public Builder mergeLatLng(com.google.type.LatLng value) { + if (latLngBuilder_ == null) { + if (latLng_ != null) { + latLng_ = com.google.type.LatLng.newBuilder(latLng_).mergeFrom(value).buildPartial(); + } else { + latLng_ = value; + } + onChanged(); + } else { + latLngBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The latitude and longitude of the geographic center from which to
+     * search. This field's ignored if `address` is provided.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public Builder clearLatLng() { + if (latLngBuilder_ == null) { + latLng_ = null; + onChanged(); + } else { + latLng_ = null; + latLngBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The latitude and longitude of the geographic center from which to
+     * search. This field's ignored if `address` is provided.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public com.google.type.LatLng.Builder getLatLngBuilder() { + + onChanged(); + return getLatLngFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The latitude and longitude of the geographic center from which to
+     * search. This field's ignored if `address` is provided.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { + if (latLngBuilder_ != null) { + return latLngBuilder_.getMessageOrBuilder(); + } else { + return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; + } + } + /** + * + * + *
+     * Optional.
+     * The latitude and longitude of the geographic center from which to
+     * search. This field's ignored if `address` is provided.
+     * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + getLatLngFieldBuilder() { + if (latLngBuilder_ == null) { + latLngBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, + com.google.type.LatLng.Builder, + com.google.type.LatLngOrBuilder>(getLatLng(), getParentForChildren(), isClean()); + latLng_ = null; + } + return latLngBuilder_; + } + + private double distanceInMiles_; + /** + * + * + *
+     * Optional.
+     * The distance_in_miles is applied when the location being searched for is
+     * identified as a city or smaller. When the location being searched for is a
+     * state or larger, this field is ignored.
+     * 
+ * + * double distance_in_miles = 4; + */ + public double getDistanceInMiles() { + return distanceInMiles_; + } + /** + * + * + *
+     * Optional.
+     * The distance_in_miles is applied when the location being searched for is
+     * identified as a city or smaller. When the location being searched for is a
+     * state or larger, this field is ignored.
+     * 
+ * + * double distance_in_miles = 4; + */ + public Builder setDistanceInMiles(double value) { + + distanceInMiles_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The distance_in_miles is applied when the location being searched for is
+     * identified as a city or smaller. When the location being searched for is a
+     * state or larger, this field is ignored.
+     * 
+ * + * double distance_in_miles = 4; + */ + public Builder clearDistanceInMiles() { + + distanceInMiles_ = 0D; + onChanged(); + return this; + } + + private int telecommutePreference_ = 0; + /** + * + * + *
+     * Optional.
+     * Allows the client to return jobs without a
+     * set location, specifically, telecommuting jobs (telecomuting is considered
+     * by the service as a special location.
+     * [Job.posting_region][google.cloud.talent.v4beta1.Job.posting_region]
+     * indicates if a job permits telecommuting. If this field is set to
+     * [TelecommutePreference.TELECOMMUTE_ALLOWED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_ALLOWED],
+     * telecommuting jobs are searched, and
+     * [address][google.cloud.talent.v4beta1.LocationFilter.address] and
+     * [lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng] are ignored.
+     * If not set or set to
+     * [TelecommutePreference.TELECOMMUTE_EXCLUDED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_EXCLUDED],
+     * telecommute job are not searched.
+     * This filter can be used by itself to search exclusively for telecommuting
+     * jobs, or it can be combined with another location
+     * filter to search for a combination of job locations,
+     * such as "Mountain View" or "telecommuting" jobs. However, when used in
+     * combination with other location filters, telecommuting jobs can be
+     * treated as less relevant than other jobs in the search response.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference telecommute_preference = 5; + * + */ + public int getTelecommutePreferenceValue() { + return telecommutePreference_; + } + /** + * + * + *
+     * Optional.
+     * Allows the client to return jobs without a
+     * set location, specifically, telecommuting jobs (telecomuting is considered
+     * by the service as a special location.
+     * [Job.posting_region][google.cloud.talent.v4beta1.Job.posting_region]
+     * indicates if a job permits telecommuting. If this field is set to
+     * [TelecommutePreference.TELECOMMUTE_ALLOWED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_ALLOWED],
+     * telecommuting jobs are searched, and
+     * [address][google.cloud.talent.v4beta1.LocationFilter.address] and
+     * [lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng] are ignored.
+     * If not set or set to
+     * [TelecommutePreference.TELECOMMUTE_EXCLUDED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_EXCLUDED],
+     * telecommute job are not searched.
+     * This filter can be used by itself to search exclusively for telecommuting
+     * jobs, or it can be combined with another location
+     * filter to search for a combination of job locations,
+     * such as "Mountain View" or "telecommuting" jobs. However, when used in
+     * combination with other location filters, telecommuting jobs can be
+     * treated as less relevant than other jobs in the search response.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference telecommute_preference = 5; + * + */ + public Builder setTelecommutePreferenceValue(int value) { + telecommutePreference_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Allows the client to return jobs without a
+     * set location, specifically, telecommuting jobs (telecomuting is considered
+     * by the service as a special location.
+     * [Job.posting_region][google.cloud.talent.v4beta1.Job.posting_region]
+     * indicates if a job permits telecommuting. If this field is set to
+     * [TelecommutePreference.TELECOMMUTE_ALLOWED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_ALLOWED],
+     * telecommuting jobs are searched, and
+     * [address][google.cloud.talent.v4beta1.LocationFilter.address] and
+     * [lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng] are ignored.
+     * If not set or set to
+     * [TelecommutePreference.TELECOMMUTE_EXCLUDED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_EXCLUDED],
+     * telecommute job are not searched.
+     * This filter can be used by itself to search exclusively for telecommuting
+     * jobs, or it can be combined with another location
+     * filter to search for a combination of job locations,
+     * such as "Mountain View" or "telecommuting" jobs. However, when used in
+     * combination with other location filters, telecommuting jobs can be
+     * treated as less relevant than other jobs in the search response.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference telecommute_preference = 5; + * + */ + public com.google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference + getTelecommutePreference() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference result = + com.google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.valueOf( + telecommutePreference_); + return result == null + ? com.google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional.
+     * Allows the client to return jobs without a
+     * set location, specifically, telecommuting jobs (telecomuting is considered
+     * by the service as a special location.
+     * [Job.posting_region][google.cloud.talent.v4beta1.Job.posting_region]
+     * indicates if a job permits telecommuting. If this field is set to
+     * [TelecommutePreference.TELECOMMUTE_ALLOWED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_ALLOWED],
+     * telecommuting jobs are searched, and
+     * [address][google.cloud.talent.v4beta1.LocationFilter.address] and
+     * [lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng] are ignored.
+     * If not set or set to
+     * [TelecommutePreference.TELECOMMUTE_EXCLUDED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_EXCLUDED],
+     * telecommute job are not searched.
+     * This filter can be used by itself to search exclusively for telecommuting
+     * jobs, or it can be combined with another location
+     * filter to search for a combination of job locations,
+     * such as "Mountain View" or "telecommuting" jobs. However, when used in
+     * combination with other location filters, telecommuting jobs can be
+     * treated as less relevant than other jobs in the search response.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference telecommute_preference = 5; + * + */ + public Builder setTelecommutePreference( + com.google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference value) { + if (value == null) { + throw new NullPointerException(); + } + + telecommutePreference_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Allows the client to return jobs without a
+     * set location, specifically, telecommuting jobs (telecomuting is considered
+     * by the service as a special location.
+     * [Job.posting_region][google.cloud.talent.v4beta1.Job.posting_region]
+     * indicates if a job permits telecommuting. If this field is set to
+     * [TelecommutePreference.TELECOMMUTE_ALLOWED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_ALLOWED],
+     * telecommuting jobs are searched, and
+     * [address][google.cloud.talent.v4beta1.LocationFilter.address] and
+     * [lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng] are ignored.
+     * If not set or set to
+     * [TelecommutePreference.TELECOMMUTE_EXCLUDED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_EXCLUDED],
+     * telecommute job are not searched.
+     * This filter can be used by itself to search exclusively for telecommuting
+     * jobs, or it can be combined with another location
+     * filter to search for a combination of job locations,
+     * such as "Mountain View" or "telecommuting" jobs. However, when used in
+     * combination with other location filters, telecommuting jobs can be
+     * treated as less relevant than other jobs in the search response.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference telecommute_preference = 5; + * + */ + public Builder clearTelecommutePreference() { + + telecommutePreference_ = 0; + onChanged(); + return this; + } + + private boolean negated_; + /** + * + * + *
+     * Optional.
+     * Whether to apply negation to the filter so profiles matching the filter
+     * are excluded.
+     * Currently only supported in profile search.
+     * 
+ * + * bool negated = 6; + */ + public boolean getNegated() { + return negated_; + } + /** + * + * + *
+     * Optional.
+     * Whether to apply negation to the filter so profiles matching the filter
+     * are excluded.
+     * Currently only supported in profile search.
+     * 
+ * + * bool negated = 6; + */ + public Builder setNegated(boolean value) { + + negated_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Whether to apply negation to the filter so profiles matching the filter
+     * are excluded.
+     * Currently only supported in profile search.
+     * 
+ * + * bool negated = 6; + */ + public Builder clearNegated() { + + negated_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.LocationFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.LocationFilter) + private static final com.google.cloud.talent.v4beta1.LocationFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.LocationFilter(); + } + + public static com.google.cloud.talent.v4beta1.LocationFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocationFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LocationFilter(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.LocationFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/LocationFilterOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/LocationFilterOrBuilder.java new file mode 100644 index 000000000000..fe1b46df3010 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/LocationFilterOrBuilder.java @@ -0,0 +1,196 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +public interface LocationFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.LocationFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * The address name, such as "Mountain View" or "Bay Area".
+   * 
+ * + * string address = 1; + */ + java.lang.String getAddress(); + /** + * + * + *
+   * Optional.
+   * The address name, such as "Mountain View" or "Bay Area".
+   * 
+ * + * string address = 1; + */ + com.google.protobuf.ByteString getAddressBytes(); + + /** + * + * + *
+   * Optional.
+   * CLDR region code of the country/region of the address. This is used
+   * to address ambiguity of the user-input location, for example, "Liverpool"
+   * against "Liverpool, NY, US" or "Liverpool, UK".
+   * Set this field if all the jobs to search against are from a same region,
+   * or jobs are world-wide, but the job seeker is from a specific region.
+   * See http://cldr.unicode.org/ and
+   * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
+   * for details. Example: "CH" for Switzerland.
+   * 
+ * + * string region_code = 2; + */ + java.lang.String getRegionCode(); + /** + * + * + *
+   * Optional.
+   * CLDR region code of the country/region of the address. This is used
+   * to address ambiguity of the user-input location, for example, "Liverpool"
+   * against "Liverpool, NY, US" or "Liverpool, UK".
+   * Set this field if all the jobs to search against are from a same region,
+   * or jobs are world-wide, but the job seeker is from a specific region.
+   * See http://cldr.unicode.org/ and
+   * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
+   * for details. Example: "CH" for Switzerland.
+   * 
+ * + * string region_code = 2; + */ + com.google.protobuf.ByteString getRegionCodeBytes(); + + /** + * + * + *
+   * Optional.
+   * The latitude and longitude of the geographic center from which to
+   * search. This field's ignored if `address` is provided.
+   * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + boolean hasLatLng(); + /** + * + * + *
+   * Optional.
+   * The latitude and longitude of the geographic center from which to
+   * search. This field's ignored if `address` is provided.
+   * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + com.google.type.LatLng getLatLng(); + /** + * + * + *
+   * Optional.
+   * The latitude and longitude of the geographic center from which to
+   * search. This field's ignored if `address` is provided.
+   * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + com.google.type.LatLngOrBuilder getLatLngOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The distance_in_miles is applied when the location being searched for is
+   * identified as a city or smaller. When the location being searched for is a
+   * state or larger, this field is ignored.
+   * 
+ * + * double distance_in_miles = 4; + */ + double getDistanceInMiles(); + + /** + * + * + *
+   * Optional.
+   * Allows the client to return jobs without a
+   * set location, specifically, telecommuting jobs (telecomuting is considered
+   * by the service as a special location.
+   * [Job.posting_region][google.cloud.talent.v4beta1.Job.posting_region]
+   * indicates if a job permits telecommuting. If this field is set to
+   * [TelecommutePreference.TELECOMMUTE_ALLOWED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_ALLOWED],
+   * telecommuting jobs are searched, and
+   * [address][google.cloud.talent.v4beta1.LocationFilter.address] and
+   * [lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng] are ignored.
+   * If not set or set to
+   * [TelecommutePreference.TELECOMMUTE_EXCLUDED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_EXCLUDED],
+   * telecommute job are not searched.
+   * This filter can be used by itself to search exclusively for telecommuting
+   * jobs, or it can be combined with another location
+   * filter to search for a combination of job locations,
+   * such as "Mountain View" or "telecommuting" jobs. However, when used in
+   * combination with other location filters, telecommuting jobs can be
+   * treated as less relevant than other jobs in the search response.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference telecommute_preference = 5; + * + */ + int getTelecommutePreferenceValue(); + /** + * + * + *
+   * Optional.
+   * Allows the client to return jobs without a
+   * set location, specifically, telecommuting jobs (telecomuting is considered
+   * by the service as a special location.
+   * [Job.posting_region][google.cloud.talent.v4beta1.Job.posting_region]
+   * indicates if a job permits telecommuting. If this field is set to
+   * [TelecommutePreference.TELECOMMUTE_ALLOWED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_ALLOWED],
+   * telecommuting jobs are searched, and
+   * [address][google.cloud.talent.v4beta1.LocationFilter.address] and
+   * [lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng] are ignored.
+   * If not set or set to
+   * [TelecommutePreference.TELECOMMUTE_EXCLUDED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_EXCLUDED],
+   * telecommute job are not searched.
+   * This filter can be used by itself to search exclusively for telecommuting
+   * jobs, or it can be combined with another location
+   * filter to search for a combination of job locations,
+   * such as "Mountain View" or "telecommuting" jobs. However, when used in
+   * combination with other location filters, telecommuting jobs can be
+   * treated as less relevant than other jobs in the search response.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference telecommute_preference = 5; + * + */ + com.google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference getTelecommutePreference(); + + /** + * + * + *
+   * Optional.
+   * Whether to apply negation to the filter so profiles matching the filter
+   * are excluded.
+   * Currently only supported in profile search.
+   * 
+ * + * bool negated = 6; + */ + boolean getNegated(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/LocationOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/LocationOrBuilder.java new file mode 100644 index 000000000000..9a5ac5bceba3 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/LocationOrBuilder.java @@ -0,0 +1,123 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +public interface LocationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Location) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The type of a location, which corresponds to the address lines field of
+   * [PostalAddress][]. For example, "Downtown, Atlanta, GA, USA" has a type of
+   * [LocationType#NEIGHBORHOOD][], and "Kansas City, KS, USA" has a type of
+   * [LocationType#LOCALITY][].
+   * 
+ * + * .google.cloud.talent.v4beta1.Location.LocationType location_type = 1; + */ + int getLocationTypeValue(); + /** + * + * + *
+   * The type of a location, which corresponds to the address lines field of
+   * [PostalAddress][]. For example, "Downtown, Atlanta, GA, USA" has a type of
+   * [LocationType#NEIGHBORHOOD][], and "Kansas City, KS, USA" has a type of
+   * [LocationType#LOCALITY][].
+   * 
+ * + * .google.cloud.talent.v4beta1.Location.LocationType location_type = 1; + */ + com.google.cloud.talent.v4beta1.Location.LocationType getLocationType(); + + /** + * + * + *
+   * Postal address of the location that includes human readable information,
+   * such as postal delivery and payments addresses. Given a postal address,
+   * a postal service can deliver items to a premises, P.O. Box, or other
+   * delivery location.
+   * 
+ * + * .google.type.PostalAddress postal_address = 2; + */ + boolean hasPostalAddress(); + /** + * + * + *
+   * Postal address of the location that includes human readable information,
+   * such as postal delivery and payments addresses. Given a postal address,
+   * a postal service can deliver items to a premises, P.O. Box, or other
+   * delivery location.
+   * 
+ * + * .google.type.PostalAddress postal_address = 2; + */ + com.google.type.PostalAddress getPostalAddress(); + /** + * + * + *
+   * Postal address of the location that includes human readable information,
+   * such as postal delivery and payments addresses. Given a postal address,
+   * a postal service can deliver items to a premises, P.O. Box, or other
+   * delivery location.
+   * 
+ * + * .google.type.PostalAddress postal_address = 2; + */ + com.google.type.PostalAddressOrBuilder getPostalAddressOrBuilder(); + + /** + * + * + *
+   * An object representing a latitude/longitude pair.
+   * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + boolean hasLatLng(); + /** + * + * + *
+   * An object representing a latitude/longitude pair.
+   * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + com.google.type.LatLng getLatLng(); + /** + * + * + *
+   * An object representing a latitude/longitude pair.
+   * 
+ * + * .google.type.LatLng lat_lng = 3; + */ + com.google.type.LatLngOrBuilder getLatLngOrBuilder(); + + /** + * + * + *
+   * Radius in miles of the job location. This value is derived from the
+   * location bounding box in which a circle with the specified radius
+   * centered from [LatLng][] covers the area associated with the job location.
+   * For example, currently, "Mountain View, CA, USA" has a radius of
+   * 6.17 miles.
+   * 
+ * + * double radius_miles = 4; + */ + double getRadiusMiles(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeOptions.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeOptions.java new file mode 100644 index 000000000000..7c09ccb1d5fe --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeOptions.java @@ -0,0 +1,638 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/resume_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Options that change how the resume parse is performed.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ParseResumeOptions} + */ +public final class ParseResumeOptions extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ParseResumeOptions) + ParseResumeOptionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use ParseResumeOptions.newBuilder() to construct. + private ParseResumeOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ParseResumeOptions() { + enableOcr_ = false; + enableFullSkillDetection_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ParseResumeOptions( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enableOcr_ = input.readBool(); + break; + } + case 16: + { + enableFullSkillDetection_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ResumeServiceProto + .internal_static_google_cloud_talent_v4beta1_ParseResumeOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ResumeServiceProto + .internal_static_google_cloud_talent_v4beta1_ParseResumeOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ParseResumeOptions.class, + com.google.cloud.talent.v4beta1.ParseResumeOptions.Builder.class); + } + + public static final int ENABLE_OCR_FIELD_NUMBER = 1; + private boolean enableOcr_; + /** + * + * + *
+   * Optional.
+   * Controls whether Optical Character Recognition (OCR) is enabled.
+   * OCR is used to decipher pictorial resumes, or resumes that have some
+   * element of pictorial detail (for example, contact information placed within
+   * an image in a pdf). Note that the API call has a higher latency if OCR is
+   * enabled.
+   * 
+ * + * bool enable_ocr = 1; + */ + public boolean getEnableOcr() { + return enableOcr_; + } + + public static final int ENABLE_FULL_SKILL_DETECTION_FIELD_NUMBER = 2; + private boolean enableFullSkillDetection_; + /** + * + * + *
+   * Optional.
+   * Controls whether detected skills are included in the parsed profile from
+   * sections of the resume other than just skills sections.
+   * Normally, returned skills are limited to those taken from a resume section
+   * intended to list skills. When enabled, this feature causes detected
+   * skills in other sections to also be included in the returned profile.
+   * 
+ * + * bool enable_full_skill_detection = 2; + */ + public boolean getEnableFullSkillDetection() { + return enableFullSkillDetection_; + } + + 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 (enableOcr_ != false) { + output.writeBool(1, enableOcr_); + } + if (enableFullSkillDetection_ != false) { + output.writeBool(2, enableFullSkillDetection_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enableOcr_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableOcr_); + } + if (enableFullSkillDetection_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableFullSkillDetection_); + } + size += unknownFields.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.cloud.talent.v4beta1.ParseResumeOptions)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ParseResumeOptions other = + (com.google.cloud.talent.v4beta1.ParseResumeOptions) obj; + + boolean result = true; + result = result && (getEnableOcr() == other.getEnableOcr()); + result = result && (getEnableFullSkillDetection() == other.getEnableFullSkillDetection()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLE_OCR_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableOcr()); + hash = (37 * hash) + ENABLE_FULL_SKILL_DETECTION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableFullSkillDetection()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ParseResumeOptions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeOptions parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeOptions 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.cloud.talent.v4beta1.ParseResumeOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeOptions parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeOptions 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.cloud.talent.v4beta1.ParseResumeOptions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeOptions 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.cloud.talent.v4beta1.ParseResumeOptions parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeOptions 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.cloud.talent.v4beta1.ParseResumeOptions 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; + } + /** + * + * + *
+   * Options that change how the resume parse is performed.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ParseResumeOptions} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ParseResumeOptions) + com.google.cloud.talent.v4beta1.ParseResumeOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ResumeServiceProto + .internal_static_google_cloud_talent_v4beta1_ParseResumeOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ResumeServiceProto + .internal_static_google_cloud_talent_v4beta1_ParseResumeOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ParseResumeOptions.class, + com.google.cloud.talent.v4beta1.ParseResumeOptions.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ParseResumeOptions.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + enableOcr_ = false; + + enableFullSkillDetection_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ResumeServiceProto + .internal_static_google_cloud_talent_v4beta1_ParseResumeOptions_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ParseResumeOptions getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ParseResumeOptions.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ParseResumeOptions build() { + com.google.cloud.talent.v4beta1.ParseResumeOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ParseResumeOptions buildPartial() { + com.google.cloud.talent.v4beta1.ParseResumeOptions result = + new com.google.cloud.talent.v4beta1.ParseResumeOptions(this); + result.enableOcr_ = enableOcr_; + result.enableFullSkillDetection_ = enableFullSkillDetection_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ParseResumeOptions) { + return mergeFrom((com.google.cloud.talent.v4beta1.ParseResumeOptions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ParseResumeOptions other) { + if (other == com.google.cloud.talent.v4beta1.ParseResumeOptions.getDefaultInstance()) + return this; + if (other.getEnableOcr() != false) { + setEnableOcr(other.getEnableOcr()); + } + if (other.getEnableFullSkillDetection() != false) { + setEnableFullSkillDetection(other.getEnableFullSkillDetection()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.ParseResumeOptions parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.ParseResumeOptions) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enableOcr_; + /** + * + * + *
+     * Optional.
+     * Controls whether Optical Character Recognition (OCR) is enabled.
+     * OCR is used to decipher pictorial resumes, or resumes that have some
+     * element of pictorial detail (for example, contact information placed within
+     * an image in a pdf). Note that the API call has a higher latency if OCR is
+     * enabled.
+     * 
+ * + * bool enable_ocr = 1; + */ + public boolean getEnableOcr() { + return enableOcr_; + } + /** + * + * + *
+     * Optional.
+     * Controls whether Optical Character Recognition (OCR) is enabled.
+     * OCR is used to decipher pictorial resumes, or resumes that have some
+     * element of pictorial detail (for example, contact information placed within
+     * an image in a pdf). Note that the API call has a higher latency if OCR is
+     * enabled.
+     * 
+ * + * bool enable_ocr = 1; + */ + public Builder setEnableOcr(boolean value) { + + enableOcr_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Controls whether Optical Character Recognition (OCR) is enabled.
+     * OCR is used to decipher pictorial resumes, or resumes that have some
+     * element of pictorial detail (for example, contact information placed within
+     * an image in a pdf). Note that the API call has a higher latency if OCR is
+     * enabled.
+     * 
+ * + * bool enable_ocr = 1; + */ + public Builder clearEnableOcr() { + + enableOcr_ = false; + onChanged(); + return this; + } + + private boolean enableFullSkillDetection_; + /** + * + * + *
+     * Optional.
+     * Controls whether detected skills are included in the parsed profile from
+     * sections of the resume other than just skills sections.
+     * Normally, returned skills are limited to those taken from a resume section
+     * intended to list skills. When enabled, this feature causes detected
+     * skills in other sections to also be included in the returned profile.
+     * 
+ * + * bool enable_full_skill_detection = 2; + */ + public boolean getEnableFullSkillDetection() { + return enableFullSkillDetection_; + } + /** + * + * + *
+     * Optional.
+     * Controls whether detected skills are included in the parsed profile from
+     * sections of the resume other than just skills sections.
+     * Normally, returned skills are limited to those taken from a resume section
+     * intended to list skills. When enabled, this feature causes detected
+     * skills in other sections to also be included in the returned profile.
+     * 
+ * + * bool enable_full_skill_detection = 2; + */ + public Builder setEnableFullSkillDetection(boolean value) { + + enableFullSkillDetection_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Controls whether detected skills are included in the parsed profile from
+     * sections of the resume other than just skills sections.
+     * Normally, returned skills are limited to those taken from a resume section
+     * intended to list skills. When enabled, this feature causes detected
+     * skills in other sections to also be included in the returned profile.
+     * 
+ * + * bool enable_full_skill_detection = 2; + */ + public Builder clearEnableFullSkillDetection() { + + enableFullSkillDetection_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ParseResumeOptions) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ParseResumeOptions) + private static final com.google.cloud.talent.v4beta1.ParseResumeOptions DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ParseResumeOptions(); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ParseResumeOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ParseResumeOptions(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.ParseResumeOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeOptionsOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeOptionsOrBuilder.java new file mode 100644 index 000000000000..d6d88c786dc4 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeOptionsOrBuilder.java @@ -0,0 +1,42 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/resume_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface ParseResumeOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ParseResumeOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * Controls whether Optical Character Recognition (OCR) is enabled.
+   * OCR is used to decipher pictorial resumes, or resumes that have some
+   * element of pictorial detail (for example, contact information placed within
+   * an image in a pdf). Note that the API call has a higher latency if OCR is
+   * enabled.
+   * 
+ * + * bool enable_ocr = 1; + */ + boolean getEnableOcr(); + + /** + * + * + *
+   * Optional.
+   * Controls whether detected skills are included in the parsed profile from
+   * sections of the resume other than just skills sections.
+   * Normally, returned skills are limited to those taken from a resume section
+   * intended to list skills. When enabled, this feature causes detected
+   * skills in other sections to also be included in the returned profile.
+   * 
+ * + * bool enable_full_skill_detection = 2; + */ + boolean getEnableFullSkillDetection(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeRequest.java new file mode 100644 index 000000000000..b7a095feb2db --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeRequest.java @@ -0,0 +1,1387 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/resume_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Parse resume request.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ParseResumeRequest} + */ +public final class ParseResumeRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ParseResumeRequest) + ParseResumeRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ParseResumeRequest.newBuilder() to construct. + private ParseResumeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ParseResumeRequest() { + parent_ = ""; + resume_ = com.google.protobuf.ByteString.EMPTY; + regionCode_ = ""; + languageCode_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ParseResumeRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + resume_ = input.readBytes(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + regionCode_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + languageCode_ = s; + break; + } + case 42: + { + com.google.cloud.talent.v4beta1.ParseResumeOptions.Builder subBuilder = null; + if (options_ != null) { + subBuilder = options_.toBuilder(); + } + options_ = + input.readMessage( + com.google.cloud.talent.v4beta1.ParseResumeOptions.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(options_); + options_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ResumeServiceProto + .internal_static_google_cloud_talent_v4beta1_ParseResumeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ResumeServiceProto + .internal_static_google_cloud_talent_v4beta1_ParseResumeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ParseResumeRequest.class, + com.google.cloud.talent.v4beta1.ParseResumeRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required.
+   * The resource name of the project.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The resource name of the project.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESUME_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString resume_; + /** + * + * + *
+   * Required.
+   * The bytes of the resume file in common format, for example, PDF, TXT.
+   * UTF-8 encoding is required if the resume is text-based, otherwise an error
+   * is thrown.
+   * 
+ * + * bytes resume = 2; + */ + public com.google.protobuf.ByteString getResume() { + return resume_; + } + + public static final int REGION_CODE_FIELD_NUMBER = 3; + private volatile java.lang.Object regionCode_; + /** + * + * + *
+   * Optional.
+   * The region code indicating where the resume is from. Values
+   * are as per the ISO-3166-2 format. For example, US, FR, DE.
+   * This value is optional, but providing this value improves the resume
+   * parsing quality and performance.
+   * An error is thrown if the regionCode is invalid.
+   * 
+ * + * string region_code = 3; + */ + public java.lang.String getRegionCode() { + java.lang.Object ref = regionCode_; + 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(); + regionCode_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The region code indicating where the resume is from. Values
+   * are as per the ISO-3166-2 format. For example, US, FR, DE.
+   * This value is optional, but providing this value improves the resume
+   * parsing quality and performance.
+   * An error is thrown if the regionCode is invalid.
+   * 
+ * + * string region_code = 3; + */ + public com.google.protobuf.ByteString getRegionCodeBytes() { + java.lang.Object ref = regionCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + regionCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LANGUAGE_CODE_FIELD_NUMBER = 4; + private volatile java.lang.Object languageCode_; + /** + * + * + *
+   * Optional.
+   * The language code of contents in the resume.
+   * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+   * class="external" target="_blank" }.
+   * 
+ * + * string language_code = 4; + */ + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + 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(); + languageCode_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The language code of contents in the resume.
+   * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+   * class="external" target="_blank" }.
+   * 
+ * + * string language_code = 4; + */ + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPTIONS_FIELD_NUMBER = 5; + private com.google.cloud.talent.v4beta1.ParseResumeOptions options_; + /** + * + * + *
+   * Optional.
+   * Options that change how the resume parse is performed.
+   * 
+ * + * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; + */ + public boolean hasOptions() { + return options_ != null; + } + /** + * + * + *
+   * Optional.
+   * Options that change how the resume parse is performed.
+   * 
+ * + * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; + */ + public com.google.cloud.talent.v4beta1.ParseResumeOptions getOptions() { + return options_ == null + ? com.google.cloud.talent.v4beta1.ParseResumeOptions.getDefaultInstance() + : options_; + } + /** + * + * + *
+   * Optional.
+   * Options that change how the resume parse is performed.
+   * 
+ * + * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; + */ + public com.google.cloud.talent.v4beta1.ParseResumeOptionsOrBuilder getOptionsOrBuilder() { + return getOptions(); + } + + 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 (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!resume_.isEmpty()) { + output.writeBytes(2, resume_); + } + if (!getRegionCodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, regionCode_); + } + if (!getLanguageCodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, languageCode_); + } + if (options_ != null) { + output.writeMessage(5, getOptions()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!resume_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, resume_); + } + if (!getRegionCodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, regionCode_); + } + if (!getLanguageCodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, languageCode_); + } + if (options_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getOptions()); + } + size += unknownFields.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.cloud.talent.v4beta1.ParseResumeRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ParseResumeRequest other = + (com.google.cloud.talent.v4beta1.ParseResumeRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && getResume().equals(other.getResume()); + result = result && getRegionCode().equals(other.getRegionCode()); + result = result && getLanguageCode().equals(other.getLanguageCode()); + result = result && (hasOptions() == other.hasOptions()); + if (hasOptions()) { + result = result && getOptions().equals(other.getOptions()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + RESUME_FIELD_NUMBER; + hash = (53 * hash) + getResume().hashCode(); + hash = (37 * hash) + REGION_CODE_FIELD_NUMBER; + hash = (53 * hash) + getRegionCode().hashCode(); + hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getLanguageCode().hashCode(); + if (hasOptions()) { + hash = (37 * hash) + OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getOptions().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ParseResumeRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeRequest 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.cloud.talent.v4beta1.ParseResumeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeRequest 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.cloud.talent.v4beta1.ParseResumeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeRequest 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.cloud.talent.v4beta1.ParseResumeRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeRequest 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.cloud.talent.v4beta1.ParseResumeRequest 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; + } + /** + * + * + *
+   * Parse resume request.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ParseResumeRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ParseResumeRequest) + com.google.cloud.talent.v4beta1.ParseResumeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ResumeServiceProto + .internal_static_google_cloud_talent_v4beta1_ParseResumeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ResumeServiceProto + .internal_static_google_cloud_talent_v4beta1_ParseResumeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ParseResumeRequest.class, + com.google.cloud.talent.v4beta1.ParseResumeRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ParseResumeRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + resume_ = com.google.protobuf.ByteString.EMPTY; + + regionCode_ = ""; + + languageCode_ = ""; + + if (optionsBuilder_ == null) { + options_ = null; + } else { + options_ = null; + optionsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ResumeServiceProto + .internal_static_google_cloud_talent_v4beta1_ParseResumeRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ParseResumeRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ParseResumeRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ParseResumeRequest build() { + com.google.cloud.talent.v4beta1.ParseResumeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ParseResumeRequest buildPartial() { + com.google.cloud.talent.v4beta1.ParseResumeRequest result = + new com.google.cloud.talent.v4beta1.ParseResumeRequest(this); + result.parent_ = parent_; + result.resume_ = resume_; + result.regionCode_ = regionCode_; + result.languageCode_ = languageCode_; + if (optionsBuilder_ == null) { + result.options_ = options_; + } else { + result.options_ = optionsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ParseResumeRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.ParseResumeRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ParseResumeRequest other) { + if (other == com.google.cloud.talent.v4beta1.ParseResumeRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getResume() != com.google.protobuf.ByteString.EMPTY) { + setResume(other.getResume()); + } + if (!other.getRegionCode().isEmpty()) { + regionCode_ = other.regionCode_; + onChanged(); + } + if (!other.getLanguageCode().isEmpty()) { + languageCode_ = other.languageCode_; + onChanged(); + } + if (other.hasOptions()) { + mergeOptions(other.getOptions()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.ParseResumeRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.ParseResumeRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required.
+     * The resource name of the project.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the project.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the project.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the project.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the project.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString resume_ = com.google.protobuf.ByteString.EMPTY; + /** + * + * + *
+     * Required.
+     * The bytes of the resume file in common format, for example, PDF, TXT.
+     * UTF-8 encoding is required if the resume is text-based, otherwise an error
+     * is thrown.
+     * 
+ * + * bytes resume = 2; + */ + public com.google.protobuf.ByteString getResume() { + return resume_; + } + /** + * + * + *
+     * Required.
+     * The bytes of the resume file in common format, for example, PDF, TXT.
+     * UTF-8 encoding is required if the resume is text-based, otherwise an error
+     * is thrown.
+     * 
+ * + * bytes resume = 2; + */ + public Builder setResume(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + resume_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The bytes of the resume file in common format, for example, PDF, TXT.
+     * UTF-8 encoding is required if the resume is text-based, otherwise an error
+     * is thrown.
+     * 
+ * + * bytes resume = 2; + */ + public Builder clearResume() { + + resume_ = getDefaultInstance().getResume(); + onChanged(); + return this; + } + + private java.lang.Object regionCode_ = ""; + /** + * + * + *
+     * Optional.
+     * The region code indicating where the resume is from. Values
+     * are as per the ISO-3166-2 format. For example, US, FR, DE.
+     * This value is optional, but providing this value improves the resume
+     * parsing quality and performance.
+     * An error is thrown if the regionCode is invalid.
+     * 
+ * + * string region_code = 3; + */ + public java.lang.String getRegionCode() { + java.lang.Object ref = regionCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + regionCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The region code indicating where the resume is from. Values
+     * are as per the ISO-3166-2 format. For example, US, FR, DE.
+     * This value is optional, but providing this value improves the resume
+     * parsing quality and performance.
+     * An error is thrown if the regionCode is invalid.
+     * 
+ * + * string region_code = 3; + */ + public com.google.protobuf.ByteString getRegionCodeBytes() { + java.lang.Object ref = regionCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + regionCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The region code indicating where the resume is from. Values
+     * are as per the ISO-3166-2 format. For example, US, FR, DE.
+     * This value is optional, but providing this value improves the resume
+     * parsing quality and performance.
+     * An error is thrown if the regionCode is invalid.
+     * 
+ * + * string region_code = 3; + */ + public Builder setRegionCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + regionCode_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The region code indicating where the resume is from. Values
+     * are as per the ISO-3166-2 format. For example, US, FR, DE.
+     * This value is optional, but providing this value improves the resume
+     * parsing quality and performance.
+     * An error is thrown if the regionCode is invalid.
+     * 
+ * + * string region_code = 3; + */ + public Builder clearRegionCode() { + + regionCode_ = getDefaultInstance().getRegionCode(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The region code indicating where the resume is from. Values
+     * are as per the ISO-3166-2 format. For example, US, FR, DE.
+     * This value is optional, but providing this value improves the resume
+     * parsing quality and performance.
+     * An error is thrown if the regionCode is invalid.
+     * 
+ * + * string region_code = 3; + */ + public Builder setRegionCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + regionCode_ = value; + onChanged(); + return this; + } + + private java.lang.Object languageCode_ = ""; + /** + * + * + *
+     * Optional.
+     * The language code of contents in the resume.
+     * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+     * class="external" target="_blank" }.
+     * 
+ * + * string language_code = 4; + */ + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The language code of contents in the resume.
+     * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+     * class="external" target="_blank" }.
+     * 
+ * + * string language_code = 4; + */ + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The language code of contents in the resume.
+     * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+     * class="external" target="_blank" }.
+     * 
+ * + * string language_code = 4; + */ + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + languageCode_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The language code of contents in the resume.
+     * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+     * class="external" target="_blank" }.
+     * 
+ * + * string language_code = 4; + */ + public Builder clearLanguageCode() { + + languageCode_ = getDefaultInstance().getLanguageCode(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The language code of contents in the resume.
+     * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+     * class="external" target="_blank" }.
+     * 
+ * + * string language_code = 4; + */ + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + languageCode_ = value; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.ParseResumeOptions options_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ParseResumeOptions, + com.google.cloud.talent.v4beta1.ParseResumeOptions.Builder, + com.google.cloud.talent.v4beta1.ParseResumeOptionsOrBuilder> + optionsBuilder_; + /** + * + * + *
+     * Optional.
+     * Options that change how the resume parse is performed.
+     * 
+ * + * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; + */ + public boolean hasOptions() { + return optionsBuilder_ != null || options_ != null; + } + /** + * + * + *
+     * Optional.
+     * Options that change how the resume parse is performed.
+     * 
+ * + * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; + */ + public com.google.cloud.talent.v4beta1.ParseResumeOptions getOptions() { + if (optionsBuilder_ == null) { + return options_ == null + ? com.google.cloud.talent.v4beta1.ParseResumeOptions.getDefaultInstance() + : options_; + } else { + return optionsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * Options that change how the resume parse is performed.
+     * 
+ * + * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; + */ + public Builder setOptions(com.google.cloud.talent.v4beta1.ParseResumeOptions value) { + if (optionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + options_ = value; + onChanged(); + } else { + optionsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Options that change how the resume parse is performed.
+     * 
+ * + * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; + */ + public Builder setOptions( + com.google.cloud.talent.v4beta1.ParseResumeOptions.Builder builderForValue) { + if (optionsBuilder_ == null) { + options_ = builderForValue.build(); + onChanged(); + } else { + optionsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Options that change how the resume parse is performed.
+     * 
+ * + * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; + */ + public Builder mergeOptions(com.google.cloud.talent.v4beta1.ParseResumeOptions value) { + if (optionsBuilder_ == null) { + if (options_ != null) { + options_ = + com.google.cloud.talent.v4beta1.ParseResumeOptions.newBuilder(options_) + .mergeFrom(value) + .buildPartial(); + } else { + options_ = value; + } + onChanged(); + } else { + optionsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Options that change how the resume parse is performed.
+     * 
+ * + * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; + */ + public Builder clearOptions() { + if (optionsBuilder_ == null) { + options_ = null; + onChanged(); + } else { + options_ = null; + optionsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Options that change how the resume parse is performed.
+     * 
+ * + * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; + */ + public com.google.cloud.talent.v4beta1.ParseResumeOptions.Builder getOptionsBuilder() { + + onChanged(); + return getOptionsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * Options that change how the resume parse is performed.
+     * 
+ * + * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; + */ + public com.google.cloud.talent.v4beta1.ParseResumeOptionsOrBuilder getOptionsOrBuilder() { + if (optionsBuilder_ != null) { + return optionsBuilder_.getMessageOrBuilder(); + } else { + return options_ == null + ? com.google.cloud.talent.v4beta1.ParseResumeOptions.getDefaultInstance() + : options_; + } + } + /** + * + * + *
+     * Optional.
+     * Options that change how the resume parse is performed.
+     * 
+ * + * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ParseResumeOptions, + com.google.cloud.talent.v4beta1.ParseResumeOptions.Builder, + com.google.cloud.talent.v4beta1.ParseResumeOptionsOrBuilder> + getOptionsFieldBuilder() { + if (optionsBuilder_ == null) { + optionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ParseResumeOptions, + com.google.cloud.talent.v4beta1.ParseResumeOptions.Builder, + com.google.cloud.talent.v4beta1.ParseResumeOptionsOrBuilder>( + getOptions(), getParentForChildren(), isClean()); + options_ = null; + } + return optionsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ParseResumeRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ParseResumeRequest) + private static final com.google.cloud.talent.v4beta1.ParseResumeRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ParseResumeRequest(); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ParseResumeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ParseResumeRequest(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.ParseResumeRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeRequestOrBuilder.java new file mode 100644 index 000000000000..f4ca4847d5fb --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeRequestOrBuilder.java @@ -0,0 +1,147 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/resume_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface ParseResumeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ParseResumeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The resource name of the project.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required.
+   * The resource name of the project.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required.
+   * The bytes of the resume file in common format, for example, PDF, TXT.
+   * UTF-8 encoding is required if the resume is text-based, otherwise an error
+   * is thrown.
+   * 
+ * + * bytes resume = 2; + */ + com.google.protobuf.ByteString getResume(); + + /** + * + * + *
+   * Optional.
+   * The region code indicating where the resume is from. Values
+   * are as per the ISO-3166-2 format. For example, US, FR, DE.
+   * This value is optional, but providing this value improves the resume
+   * parsing quality and performance.
+   * An error is thrown if the regionCode is invalid.
+   * 
+ * + * string region_code = 3; + */ + java.lang.String getRegionCode(); + /** + * + * + *
+   * Optional.
+   * The region code indicating where the resume is from. Values
+   * are as per the ISO-3166-2 format. For example, US, FR, DE.
+   * This value is optional, but providing this value improves the resume
+   * parsing quality and performance.
+   * An error is thrown if the regionCode is invalid.
+   * 
+ * + * string region_code = 3; + */ + com.google.protobuf.ByteString getRegionCodeBytes(); + + /** + * + * + *
+   * Optional.
+   * The language code of contents in the resume.
+   * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+   * class="external" target="_blank" }.
+   * 
+ * + * string language_code = 4; + */ + java.lang.String getLanguageCode(); + /** + * + * + *
+   * Optional.
+   * The language code of contents in the resume.
+   * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
+   * For more information, see
+   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
+   * class="external" target="_blank" }.
+   * 
+ * + * string language_code = 4; + */ + com.google.protobuf.ByteString getLanguageCodeBytes(); + + /** + * + * + *
+   * Optional.
+   * Options that change how the resume parse is performed.
+   * 
+ * + * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; + */ + boolean hasOptions(); + /** + * + * + *
+   * Optional.
+   * Options that change how the resume parse is performed.
+   * 
+ * + * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; + */ + com.google.cloud.talent.v4beta1.ParseResumeOptions getOptions(); + /** + * + * + *
+   * Optional.
+   * Options that change how the resume parse is performed.
+   * 
+ * + * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; + */ + com.google.cloud.talent.v4beta1.ParseResumeOptionsOrBuilder getOptionsOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeResponse.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeResponse.java new file mode 100644 index 000000000000..aa52350520c9 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeResponse.java @@ -0,0 +1,865 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/resume_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Parse resume response.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ParseResumeResponse} + */ +public final class ParseResumeResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ParseResumeResponse) + ParseResumeResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ParseResumeResponse.newBuilder() to construct. + private ParseResumeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ParseResumeResponse() { + rawText_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ParseResumeResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.talent.v4beta1.Profile.Builder subBuilder = null; + if (profile_ != null) { + subBuilder = profile_.toBuilder(); + } + profile_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Profile.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(profile_); + profile_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + rawText_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ResumeServiceProto + .internal_static_google_cloud_talent_v4beta1_ParseResumeResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ResumeServiceProto + .internal_static_google_cloud_talent_v4beta1_ParseResumeResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ParseResumeResponse.class, + com.google.cloud.talent.v4beta1.ParseResumeResponse.Builder.class); + } + + public static final int PROFILE_FIELD_NUMBER = 1; + private com.google.cloud.talent.v4beta1.Profile profile_; + /** + * + * + *
+   * The profile parsed from resume.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public boolean hasProfile() { + return profile_ != null; + } + /** + * + * + *
+   * The profile parsed from resume.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public com.google.cloud.talent.v4beta1.Profile getProfile() { + return profile_ == null + ? com.google.cloud.talent.v4beta1.Profile.getDefaultInstance() + : profile_; + } + /** + * + * + *
+   * The profile parsed from resume.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfileOrBuilder() { + return getProfile(); + } + + public static final int RAW_TEXT_FIELD_NUMBER = 2; + private volatile java.lang.Object rawText_; + /** + * + * + *
+   * Raw text from resume.
+   * 
+ * + * string raw_text = 2; + */ + public java.lang.String getRawText() { + java.lang.Object ref = rawText_; + 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(); + rawText_ = s; + return s; + } + } + /** + * + * + *
+   * Raw text from resume.
+   * 
+ * + * string raw_text = 2; + */ + public com.google.protobuf.ByteString getRawTextBytes() { + java.lang.Object ref = rawText_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rawText_ = 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 (profile_ != null) { + output.writeMessage(1, getProfile()); + } + if (!getRawTextBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, rawText_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (profile_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProfile()); + } + if (!getRawTextBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, rawText_); + } + size += unknownFields.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.cloud.talent.v4beta1.ParseResumeResponse)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ParseResumeResponse other = + (com.google.cloud.talent.v4beta1.ParseResumeResponse) obj; + + boolean result = true; + result = result && (hasProfile() == other.hasProfile()); + if (hasProfile()) { + result = result && getProfile().equals(other.getProfile()); + } + result = result && getRawText().equals(other.getRawText()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasProfile()) { + hash = (37 * hash) + PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getProfile().hashCode(); + } + hash = (37 * hash) + RAW_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getRawText().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ParseResumeResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeResponse 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.cloud.talent.v4beta1.ParseResumeResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeResponse 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.cloud.talent.v4beta1.ParseResumeResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeResponse 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.cloud.talent.v4beta1.ParseResumeResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeResponse 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.cloud.talent.v4beta1.ParseResumeResponse 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; + } + /** + * + * + *
+   * Parse resume response.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ParseResumeResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ParseResumeResponse) + com.google.cloud.talent.v4beta1.ParseResumeResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ResumeServiceProto + .internal_static_google_cloud_talent_v4beta1_ParseResumeResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ResumeServiceProto + .internal_static_google_cloud_talent_v4beta1_ParseResumeResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ParseResumeResponse.class, + com.google.cloud.talent.v4beta1.ParseResumeResponse.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ParseResumeResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (profileBuilder_ == null) { + profile_ = null; + } else { + profile_ = null; + profileBuilder_ = null; + } + rawText_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ResumeServiceProto + .internal_static_google_cloud_talent_v4beta1_ParseResumeResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ParseResumeResponse getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ParseResumeResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ParseResumeResponse build() { + com.google.cloud.talent.v4beta1.ParseResumeResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ParseResumeResponse buildPartial() { + com.google.cloud.talent.v4beta1.ParseResumeResponse result = + new com.google.cloud.talent.v4beta1.ParseResumeResponse(this); + if (profileBuilder_ == null) { + result.profile_ = profile_; + } else { + result.profile_ = profileBuilder_.build(); + } + result.rawText_ = rawText_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ParseResumeResponse) { + return mergeFrom((com.google.cloud.talent.v4beta1.ParseResumeResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ParseResumeResponse other) { + if (other == com.google.cloud.talent.v4beta1.ParseResumeResponse.getDefaultInstance()) + return this; + if (other.hasProfile()) { + mergeProfile(other.getProfile()); + } + if (!other.getRawText().isEmpty()) { + rawText_ = other.rawText_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.ParseResumeResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.ParseResumeResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.talent.v4beta1.Profile profile_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder> + profileBuilder_; + /** + * + * + *
+     * The profile parsed from resume.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public boolean hasProfile() { + return profileBuilder_ != null || profile_ != null; + } + /** + * + * + *
+     * The profile parsed from resume.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public com.google.cloud.talent.v4beta1.Profile getProfile() { + if (profileBuilder_ == null) { + return profile_ == null + ? com.google.cloud.talent.v4beta1.Profile.getDefaultInstance() + : profile_; + } else { + return profileBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The profile parsed from resume.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public Builder setProfile(com.google.cloud.talent.v4beta1.Profile value) { + if (profileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + profile_ = value; + onChanged(); + } else { + profileBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The profile parsed from resume.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public Builder setProfile(com.google.cloud.talent.v4beta1.Profile.Builder builderForValue) { + if (profileBuilder_ == null) { + profile_ = builderForValue.build(); + onChanged(); + } else { + profileBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The profile parsed from resume.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public Builder mergeProfile(com.google.cloud.talent.v4beta1.Profile value) { + if (profileBuilder_ == null) { + if (profile_ != null) { + profile_ = + com.google.cloud.talent.v4beta1.Profile.newBuilder(profile_) + .mergeFrom(value) + .buildPartial(); + } else { + profile_ = value; + } + onChanged(); + } else { + profileBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The profile parsed from resume.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public Builder clearProfile() { + if (profileBuilder_ == null) { + profile_ = null; + onChanged(); + } else { + profile_ = null; + profileBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The profile parsed from resume.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public com.google.cloud.talent.v4beta1.Profile.Builder getProfileBuilder() { + + onChanged(); + return getProfileFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The profile parsed from resume.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfileOrBuilder() { + if (profileBuilder_ != null) { + return profileBuilder_.getMessageOrBuilder(); + } else { + return profile_ == null + ? com.google.cloud.talent.v4beta1.Profile.getDefaultInstance() + : profile_; + } + } + /** + * + * + *
+     * The profile parsed from resume.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder> + getProfileFieldBuilder() { + if (profileBuilder_ == null) { + profileBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder>( + getProfile(), getParentForChildren(), isClean()); + profile_ = null; + } + return profileBuilder_; + } + + private java.lang.Object rawText_ = ""; + /** + * + * + *
+     * Raw text from resume.
+     * 
+ * + * string raw_text = 2; + */ + public java.lang.String getRawText() { + java.lang.Object ref = rawText_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rawText_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Raw text from resume.
+     * 
+ * + * string raw_text = 2; + */ + public com.google.protobuf.ByteString getRawTextBytes() { + java.lang.Object ref = rawText_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rawText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Raw text from resume.
+     * 
+ * + * string raw_text = 2; + */ + public Builder setRawText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + rawText_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Raw text from resume.
+     * 
+ * + * string raw_text = 2; + */ + public Builder clearRawText() { + + rawText_ = getDefaultInstance().getRawText(); + onChanged(); + return this; + } + /** + * + * + *
+     * Raw text from resume.
+     * 
+ * + * string raw_text = 2; + */ + public Builder setRawTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + rawText_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ParseResumeResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ParseResumeResponse) + private static final com.google.cloud.talent.v4beta1.ParseResumeResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ParseResumeResponse(); + } + + public static com.google.cloud.talent.v4beta1.ParseResumeResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ParseResumeResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ParseResumeResponse(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.ParseResumeResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeResponseOrBuilder.java new file mode 100644 index 000000000000..a0a8563223a8 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeResponseOrBuilder.java @@ -0,0 +1,62 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/resume_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface ParseResumeResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ParseResumeResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The profile parsed from resume.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + boolean hasProfile(); + /** + * + * + *
+   * The profile parsed from resume.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + com.google.cloud.talent.v4beta1.Profile getProfile(); + /** + * + * + *
+   * The profile parsed from resume.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfileOrBuilder(); + + /** + * + * + *
+   * Raw text from resume.
+   * 
+ * + * string raw_text = 2; + */ + java.lang.String getRawText(); + /** + * + * + *
+   * Raw text from resume.
+   * 
+ * + * string raw_text = 2; + */ + com.google.protobuf.ByteString getRawTextBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Patent.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Patent.java new file mode 100644 index 000000000000..232d20a3dda3 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Patent.java @@ -0,0 +1,2630 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Resource that represents the patent acquired by a candidate.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Patent} + */ +public final class Patent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Patent) + PatentOrBuilder { + private static final long serialVersionUID = 0L; + // Use Patent.newBuilder() to construct. + private Patent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Patent() { + displayName_ = ""; + inventors_ = com.google.protobuf.LazyStringArrayList.EMPTY; + patentStatus_ = ""; + patentOffice_ = ""; + patentNumber_ = ""; + patentDescription_ = ""; + skillsUsed_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Patent( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + inventors_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + inventors_.add(s); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + patentStatus_ = s; + break; + } + case 34: + { + com.google.type.Date.Builder subBuilder = null; + if (patentStatusDate_ != null) { + subBuilder = patentStatusDate_.toBuilder(); + } + patentStatusDate_ = + input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(patentStatusDate_); + patentStatusDate_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + com.google.type.Date.Builder subBuilder = null; + if (patentFilingDate_ != null) { + subBuilder = patentFilingDate_.toBuilder(); + } + patentFilingDate_ = + input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(patentFilingDate_); + patentFilingDate_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + patentOffice_ = s; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + patentNumber_ = s; + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + + patentDescription_ = s; + break; + } + case 74: + { + if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { + skillsUsed_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000100; + } + skillsUsed_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.Skill.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + inventors_ = inventors_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { + skillsUsed_ = java.util.Collections.unmodifiableList(skillsUsed_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Patent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Patent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Patent.class, + com.google.cloud.talent.v4beta1.Patent.Builder.class); + } + + private int bitField0_; + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object displayName_; + /** + * + * + *
+   * Optional.
+   * Name of the patent.
+   * Number of characters allowed is 100.
+   * 
+ * + * string display_name = 1; + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * Name of the patent.
+   * Number of characters allowed is 100.
+   * 
+ * + * string display_name = 1; + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INVENTORS_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList inventors_; + /** + * + * + *
+   * Optional.
+   * A list of inventors' names.
+   * Number of characters allowed for each is 100.
+   * 
+ * + * repeated string inventors = 2; + */ + public com.google.protobuf.ProtocolStringList getInventorsList() { + return inventors_; + } + /** + * + * + *
+   * Optional.
+   * A list of inventors' names.
+   * Number of characters allowed for each is 100.
+   * 
+ * + * repeated string inventors = 2; + */ + public int getInventorsCount() { + return inventors_.size(); + } + /** + * + * + *
+   * Optional.
+   * A list of inventors' names.
+   * Number of characters allowed for each is 100.
+   * 
+ * + * repeated string inventors = 2; + */ + public java.lang.String getInventors(int index) { + return inventors_.get(index); + } + /** + * + * + *
+   * Optional.
+   * A list of inventors' names.
+   * Number of characters allowed for each is 100.
+   * 
+ * + * repeated string inventors = 2; + */ + public com.google.protobuf.ByteString getInventorsBytes(int index) { + return inventors_.getByteString(index); + } + + public static final int PATENT_STATUS_FIELD_NUMBER = 3; + private volatile java.lang.Object patentStatus_; + /** + * + * + *
+   * Optional.
+   * The status of the patent.
+   * Number of characters allowed is 100.
+   * 
+ * + * string patent_status = 3; + */ + public java.lang.String getPatentStatus() { + java.lang.Object ref = patentStatus_; + 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(); + patentStatus_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The status of the patent.
+   * Number of characters allowed is 100.
+   * 
+ * + * string patent_status = 3; + */ + public com.google.protobuf.ByteString getPatentStatusBytes() { + java.lang.Object ref = patentStatus_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + patentStatus_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PATENT_STATUS_DATE_FIELD_NUMBER = 4; + private com.google.type.Date patentStatusDate_; + /** + * + * + *
+   * Optional.
+   * The date the last time the status of the patent was checked.
+   * 
+ * + * .google.type.Date patent_status_date = 4; + */ + public boolean hasPatentStatusDate() { + return patentStatusDate_ != null; + } + /** + * + * + *
+   * Optional.
+   * The date the last time the status of the patent was checked.
+   * 
+ * + * .google.type.Date patent_status_date = 4; + */ + public com.google.type.Date getPatentStatusDate() { + return patentStatusDate_ == null + ? com.google.type.Date.getDefaultInstance() + : patentStatusDate_; + } + /** + * + * + *
+   * Optional.
+   * The date the last time the status of the patent was checked.
+   * 
+ * + * .google.type.Date patent_status_date = 4; + */ + public com.google.type.DateOrBuilder getPatentStatusDateOrBuilder() { + return getPatentStatusDate(); + } + + public static final int PATENT_FILING_DATE_FIELD_NUMBER = 5; + private com.google.type.Date patentFilingDate_; + /** + * + * + *
+   * Optional.
+   * The date that the patent was filed.
+   * 
+ * + * .google.type.Date patent_filing_date = 5; + */ + public boolean hasPatentFilingDate() { + return patentFilingDate_ != null; + } + /** + * + * + *
+   * Optional.
+   * The date that the patent was filed.
+   * 
+ * + * .google.type.Date patent_filing_date = 5; + */ + public com.google.type.Date getPatentFilingDate() { + return patentFilingDate_ == null + ? com.google.type.Date.getDefaultInstance() + : patentFilingDate_; + } + /** + * + * + *
+   * Optional.
+   * The date that the patent was filed.
+   * 
+ * + * .google.type.Date patent_filing_date = 5; + */ + public com.google.type.DateOrBuilder getPatentFilingDateOrBuilder() { + return getPatentFilingDate(); + } + + public static final int PATENT_OFFICE_FIELD_NUMBER = 6; + private volatile java.lang.Object patentOffice_; + /** + * + * + *
+   * Optional.
+   * The name of the patent office.
+   * Number of characters allowed is 100.
+   * 
+ * + * string patent_office = 6; + */ + public java.lang.String getPatentOffice() { + java.lang.Object ref = patentOffice_; + 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(); + patentOffice_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The name of the patent office.
+   * Number of characters allowed is 100.
+   * 
+ * + * string patent_office = 6; + */ + public com.google.protobuf.ByteString getPatentOfficeBytes() { + java.lang.Object ref = patentOffice_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + patentOffice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PATENT_NUMBER_FIELD_NUMBER = 7; + private volatile java.lang.Object patentNumber_; + /** + * + * + *
+   * Optional.
+   * The number of the patent.
+   * Number of characters allowed is 100.
+   * 
+ * + * string patent_number = 7; + */ + public java.lang.String getPatentNumber() { + java.lang.Object ref = patentNumber_; + 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(); + patentNumber_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The number of the patent.
+   * Number of characters allowed is 100.
+   * 
+ * + * string patent_number = 7; + */ + public com.google.protobuf.ByteString getPatentNumberBytes() { + java.lang.Object ref = patentNumber_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + patentNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PATENT_DESCRIPTION_FIELD_NUMBER = 8; + private volatile java.lang.Object patentDescription_; + /** + * + * + *
+   * Optional.
+   * The description of the patent.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string patent_description = 8; + */ + public java.lang.String getPatentDescription() { + java.lang.Object ref = patentDescription_; + 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(); + patentDescription_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The description of the patent.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string patent_description = 8; + */ + public com.google.protobuf.ByteString getPatentDescriptionBytes() { + java.lang.Object ref = patentDescription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + patentDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SKILLS_USED_FIELD_NUMBER = 9; + private java.util.List skillsUsed_; + /** + * + * + *
+   * Optional.
+   * The skills used in this patent.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public java.util.List getSkillsUsedList() { + return skillsUsed_; + } + /** + * + * + *
+   * Optional.
+   * The skills used in this patent.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public java.util.List + getSkillsUsedOrBuilderList() { + return skillsUsed_; + } + /** + * + * + *
+   * Optional.
+   * The skills used in this patent.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public int getSkillsUsedCount() { + return skillsUsed_.size(); + } + /** + * + * + *
+   * Optional.
+   * The skills used in this patent.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public com.google.cloud.talent.v4beta1.Skill getSkillsUsed(int index) { + return skillsUsed_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The skills used in this patent.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public com.google.cloud.talent.v4beta1.SkillOrBuilder getSkillsUsedOrBuilder(int index) { + return skillsUsed_.get(index); + } + + 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 (!getDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); + } + for (int i = 0; i < inventors_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, inventors_.getRaw(i)); + } + if (!getPatentStatusBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, patentStatus_); + } + if (patentStatusDate_ != null) { + output.writeMessage(4, getPatentStatusDate()); + } + if (patentFilingDate_ != null) { + output.writeMessage(5, getPatentFilingDate()); + } + if (!getPatentOfficeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, patentOffice_); + } + if (!getPatentNumberBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, patentNumber_); + } + if (!getPatentDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, patentDescription_); + } + for (int i = 0; i < skillsUsed_.size(); i++) { + output.writeMessage(9, skillsUsed_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); + } + { + int dataSize = 0; + for (int i = 0; i < inventors_.size(); i++) { + dataSize += computeStringSizeNoTag(inventors_.getRaw(i)); + } + size += dataSize; + size += 1 * getInventorsList().size(); + } + if (!getPatentStatusBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, patentStatus_); + } + if (patentStatusDate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPatentStatusDate()); + } + if (patentFilingDate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getPatentFilingDate()); + } + if (!getPatentOfficeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, patentOffice_); + } + if (!getPatentNumberBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, patentNumber_); + } + if (!getPatentDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, patentDescription_); + } + for (int i = 0; i < skillsUsed_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, skillsUsed_.get(i)); + } + size += unknownFields.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.cloud.talent.v4beta1.Patent)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Patent other = (com.google.cloud.talent.v4beta1.Patent) obj; + + boolean result = true; + result = result && getDisplayName().equals(other.getDisplayName()); + result = result && getInventorsList().equals(other.getInventorsList()); + result = result && getPatentStatus().equals(other.getPatentStatus()); + result = result && (hasPatentStatusDate() == other.hasPatentStatusDate()); + if (hasPatentStatusDate()) { + result = result && getPatentStatusDate().equals(other.getPatentStatusDate()); + } + result = result && (hasPatentFilingDate() == other.hasPatentFilingDate()); + if (hasPatentFilingDate()) { + result = result && getPatentFilingDate().equals(other.getPatentFilingDate()); + } + result = result && getPatentOffice().equals(other.getPatentOffice()); + result = result && getPatentNumber().equals(other.getPatentNumber()); + result = result && getPatentDescription().equals(other.getPatentDescription()); + result = result && getSkillsUsedList().equals(other.getSkillsUsedList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (getInventorsCount() > 0) { + hash = (37 * hash) + INVENTORS_FIELD_NUMBER; + hash = (53 * hash) + getInventorsList().hashCode(); + } + hash = (37 * hash) + PATENT_STATUS_FIELD_NUMBER; + hash = (53 * hash) + getPatentStatus().hashCode(); + if (hasPatentStatusDate()) { + hash = (37 * hash) + PATENT_STATUS_DATE_FIELD_NUMBER; + hash = (53 * hash) + getPatentStatusDate().hashCode(); + } + if (hasPatentFilingDate()) { + hash = (37 * hash) + PATENT_FILING_DATE_FIELD_NUMBER; + hash = (53 * hash) + getPatentFilingDate().hashCode(); + } + hash = (37 * hash) + PATENT_OFFICE_FIELD_NUMBER; + hash = (53 * hash) + getPatentOffice().hashCode(); + hash = (37 * hash) + PATENT_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getPatentNumber().hashCode(); + hash = (37 * hash) + PATENT_DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getPatentDescription().hashCode(); + if (getSkillsUsedCount() > 0) { + hash = (37 * hash) + SKILLS_USED_FIELD_NUMBER; + hash = (53 * hash) + getSkillsUsedList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Patent parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Patent parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Patent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Patent 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.cloud.talent.v4beta1.Patent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Patent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Patent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Patent 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.cloud.talent.v4beta1.Patent parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Patent 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.cloud.talent.v4beta1.Patent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Patent 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.cloud.talent.v4beta1.Patent 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; + } + /** + * + * + *
+   * Resource that represents the patent acquired by a candidate.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Patent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Patent) + com.google.cloud.talent.v4beta1.PatentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Patent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Patent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Patent.class, + com.google.cloud.talent.v4beta1.Patent.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Patent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSkillsUsedFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + displayName_ = ""; + + inventors_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + patentStatus_ = ""; + + if (patentStatusDateBuilder_ == null) { + patentStatusDate_ = null; + } else { + patentStatusDate_ = null; + patentStatusDateBuilder_ = null; + } + if (patentFilingDateBuilder_ == null) { + patentFilingDate_ = null; + } else { + patentFilingDate_ = null; + patentFilingDateBuilder_ = null; + } + patentOffice_ = ""; + + patentNumber_ = ""; + + patentDescription_ = ""; + + if (skillsUsedBuilder_ == null) { + skillsUsed_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + } else { + skillsUsedBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Patent_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Patent getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Patent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Patent build() { + com.google.cloud.talent.v4beta1.Patent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Patent buildPartial() { + com.google.cloud.talent.v4beta1.Patent result = + new com.google.cloud.talent.v4beta1.Patent(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.displayName_ = displayName_; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + inventors_ = inventors_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.inventors_ = inventors_; + result.patentStatus_ = patentStatus_; + if (patentStatusDateBuilder_ == null) { + result.patentStatusDate_ = patentStatusDate_; + } else { + result.patentStatusDate_ = patentStatusDateBuilder_.build(); + } + if (patentFilingDateBuilder_ == null) { + result.patentFilingDate_ = patentFilingDate_; + } else { + result.patentFilingDate_ = patentFilingDateBuilder_.build(); + } + result.patentOffice_ = patentOffice_; + result.patentNumber_ = patentNumber_; + result.patentDescription_ = patentDescription_; + if (skillsUsedBuilder_ == null) { + if (((bitField0_ & 0x00000100) == 0x00000100)) { + skillsUsed_ = java.util.Collections.unmodifiableList(skillsUsed_); + bitField0_ = (bitField0_ & ~0x00000100); + } + result.skillsUsed_ = skillsUsed_; + } else { + result.skillsUsed_ = skillsUsedBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Patent) { + return mergeFrom((com.google.cloud.talent.v4beta1.Patent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Patent other) { + if (other == com.google.cloud.talent.v4beta1.Patent.getDefaultInstance()) return this; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (!other.inventors_.isEmpty()) { + if (inventors_.isEmpty()) { + inventors_ = other.inventors_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureInventorsIsMutable(); + inventors_.addAll(other.inventors_); + } + onChanged(); + } + if (!other.getPatentStatus().isEmpty()) { + patentStatus_ = other.patentStatus_; + onChanged(); + } + if (other.hasPatentStatusDate()) { + mergePatentStatusDate(other.getPatentStatusDate()); + } + if (other.hasPatentFilingDate()) { + mergePatentFilingDate(other.getPatentFilingDate()); + } + if (!other.getPatentOffice().isEmpty()) { + patentOffice_ = other.patentOffice_; + onChanged(); + } + if (!other.getPatentNumber().isEmpty()) { + patentNumber_ = other.patentNumber_; + onChanged(); + } + if (!other.getPatentDescription().isEmpty()) { + patentDescription_ = other.patentDescription_; + onChanged(); + } + if (skillsUsedBuilder_ == null) { + if (!other.skillsUsed_.isEmpty()) { + if (skillsUsed_.isEmpty()) { + skillsUsed_ = other.skillsUsed_; + bitField0_ = (bitField0_ & ~0x00000100); + } else { + ensureSkillsUsedIsMutable(); + skillsUsed_.addAll(other.skillsUsed_); + } + onChanged(); + } + } else { + if (!other.skillsUsed_.isEmpty()) { + if (skillsUsedBuilder_.isEmpty()) { + skillsUsedBuilder_.dispose(); + skillsUsedBuilder_ = null; + skillsUsed_ = other.skillsUsed_; + bitField0_ = (bitField0_ & ~0x00000100); + skillsUsedBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSkillsUsedFieldBuilder() + : null; + } else { + skillsUsedBuilder_.addAllMessages(other.skillsUsed_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.Patent parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.Patent) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Optional.
+     * Name of the patent.
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Name of the patent.
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Name of the patent.
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Name of the patent.
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Name of the patent.
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList inventors_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureInventorsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + inventors_ = new com.google.protobuf.LazyStringArrayList(inventors_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Optional.
+     * A list of inventors' names.
+     * Number of characters allowed for each is 100.
+     * 
+ * + * repeated string inventors = 2; + */ + public com.google.protobuf.ProtocolStringList getInventorsList() { + return inventors_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional.
+     * A list of inventors' names.
+     * Number of characters allowed for each is 100.
+     * 
+ * + * repeated string inventors = 2; + */ + public int getInventorsCount() { + return inventors_.size(); + } + /** + * + * + *
+     * Optional.
+     * A list of inventors' names.
+     * Number of characters allowed for each is 100.
+     * 
+ * + * repeated string inventors = 2; + */ + public java.lang.String getInventors(int index) { + return inventors_.get(index); + } + /** + * + * + *
+     * Optional.
+     * A list of inventors' names.
+     * Number of characters allowed for each is 100.
+     * 
+ * + * repeated string inventors = 2; + */ + public com.google.protobuf.ByteString getInventorsBytes(int index) { + return inventors_.getByteString(index); + } + /** + * + * + *
+     * Optional.
+     * A list of inventors' names.
+     * Number of characters allowed for each is 100.
+     * 
+ * + * repeated string inventors = 2; + */ + public Builder setInventors(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInventorsIsMutable(); + inventors_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of inventors' names.
+     * Number of characters allowed for each is 100.
+     * 
+ * + * repeated string inventors = 2; + */ + public Builder addInventors(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInventorsIsMutable(); + inventors_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of inventors' names.
+     * Number of characters allowed for each is 100.
+     * 
+ * + * repeated string inventors = 2; + */ + public Builder addAllInventors(java.lang.Iterable values) { + ensureInventorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inventors_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of inventors' names.
+     * Number of characters allowed for each is 100.
+     * 
+ * + * repeated string inventors = 2; + */ + public Builder clearInventors() { + inventors_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of inventors' names.
+     * Number of characters allowed for each is 100.
+     * 
+ * + * repeated string inventors = 2; + */ + public Builder addInventorsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureInventorsIsMutable(); + inventors_.add(value); + onChanged(); + return this; + } + + private java.lang.Object patentStatus_ = ""; + /** + * + * + *
+     * Optional.
+     * The status of the patent.
+     * Number of characters allowed is 100.
+     * 
+ * + * string patent_status = 3; + */ + public java.lang.String getPatentStatus() { + java.lang.Object ref = patentStatus_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + patentStatus_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The status of the patent.
+     * Number of characters allowed is 100.
+     * 
+ * + * string patent_status = 3; + */ + public com.google.protobuf.ByteString getPatentStatusBytes() { + java.lang.Object ref = patentStatus_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + patentStatus_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The status of the patent.
+     * Number of characters allowed is 100.
+     * 
+ * + * string patent_status = 3; + */ + public Builder setPatentStatus(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + patentStatus_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The status of the patent.
+     * Number of characters allowed is 100.
+     * 
+ * + * string patent_status = 3; + */ + public Builder clearPatentStatus() { + + patentStatus_ = getDefaultInstance().getPatentStatus(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The status of the patent.
+     * Number of characters allowed is 100.
+     * 
+ * + * string patent_status = 3; + */ + public Builder setPatentStatusBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + patentStatus_ = value; + onChanged(); + return this; + } + + private com.google.type.Date patentStatusDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + patentStatusDateBuilder_; + /** + * + * + *
+     * Optional.
+     * The date the last time the status of the patent was checked.
+     * 
+ * + * .google.type.Date patent_status_date = 4; + */ + public boolean hasPatentStatusDate() { + return patentStatusDateBuilder_ != null || patentStatusDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * The date the last time the status of the patent was checked.
+     * 
+ * + * .google.type.Date patent_status_date = 4; + */ + public com.google.type.Date getPatentStatusDate() { + if (patentStatusDateBuilder_ == null) { + return patentStatusDate_ == null + ? com.google.type.Date.getDefaultInstance() + : patentStatusDate_; + } else { + return patentStatusDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The date the last time the status of the patent was checked.
+     * 
+ * + * .google.type.Date patent_status_date = 4; + */ + public Builder setPatentStatusDate(com.google.type.Date value) { + if (patentStatusDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + patentStatusDate_ = value; + onChanged(); + } else { + patentStatusDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The date the last time the status of the patent was checked.
+     * 
+ * + * .google.type.Date patent_status_date = 4; + */ + public Builder setPatentStatusDate(com.google.type.Date.Builder builderForValue) { + if (patentStatusDateBuilder_ == null) { + patentStatusDate_ = builderForValue.build(); + onChanged(); + } else { + patentStatusDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The date the last time the status of the patent was checked.
+     * 
+ * + * .google.type.Date patent_status_date = 4; + */ + public Builder mergePatentStatusDate(com.google.type.Date value) { + if (patentStatusDateBuilder_ == null) { + if (patentStatusDate_ != null) { + patentStatusDate_ = + com.google.type.Date.newBuilder(patentStatusDate_).mergeFrom(value).buildPartial(); + } else { + patentStatusDate_ = value; + } + onChanged(); + } else { + patentStatusDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The date the last time the status of the patent was checked.
+     * 
+ * + * .google.type.Date patent_status_date = 4; + */ + public Builder clearPatentStatusDate() { + if (patentStatusDateBuilder_ == null) { + patentStatusDate_ = null; + onChanged(); + } else { + patentStatusDate_ = null; + patentStatusDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The date the last time the status of the patent was checked.
+     * 
+ * + * .google.type.Date patent_status_date = 4; + */ + public com.google.type.Date.Builder getPatentStatusDateBuilder() { + + onChanged(); + return getPatentStatusDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The date the last time the status of the patent was checked.
+     * 
+ * + * .google.type.Date patent_status_date = 4; + */ + public com.google.type.DateOrBuilder getPatentStatusDateOrBuilder() { + if (patentStatusDateBuilder_ != null) { + return patentStatusDateBuilder_.getMessageOrBuilder(); + } else { + return patentStatusDate_ == null + ? com.google.type.Date.getDefaultInstance() + : patentStatusDate_; + } + } + /** + * + * + *
+     * Optional.
+     * The date the last time the status of the patent was checked.
+     * 
+ * + * .google.type.Date patent_status_date = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getPatentStatusDateFieldBuilder() { + if (patentStatusDateBuilder_ == null) { + patentStatusDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getPatentStatusDate(), getParentForChildren(), isClean()); + patentStatusDate_ = null; + } + return patentStatusDateBuilder_; + } + + private com.google.type.Date patentFilingDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + patentFilingDateBuilder_; + /** + * + * + *
+     * Optional.
+     * The date that the patent was filed.
+     * 
+ * + * .google.type.Date patent_filing_date = 5; + */ + public boolean hasPatentFilingDate() { + return patentFilingDateBuilder_ != null || patentFilingDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * The date that the patent was filed.
+     * 
+ * + * .google.type.Date patent_filing_date = 5; + */ + public com.google.type.Date getPatentFilingDate() { + if (patentFilingDateBuilder_ == null) { + return patentFilingDate_ == null + ? com.google.type.Date.getDefaultInstance() + : patentFilingDate_; + } else { + return patentFilingDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The date that the patent was filed.
+     * 
+ * + * .google.type.Date patent_filing_date = 5; + */ + public Builder setPatentFilingDate(com.google.type.Date value) { + if (patentFilingDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + patentFilingDate_ = value; + onChanged(); + } else { + patentFilingDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The date that the patent was filed.
+     * 
+ * + * .google.type.Date patent_filing_date = 5; + */ + public Builder setPatentFilingDate(com.google.type.Date.Builder builderForValue) { + if (patentFilingDateBuilder_ == null) { + patentFilingDate_ = builderForValue.build(); + onChanged(); + } else { + patentFilingDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The date that the patent was filed.
+     * 
+ * + * .google.type.Date patent_filing_date = 5; + */ + public Builder mergePatentFilingDate(com.google.type.Date value) { + if (patentFilingDateBuilder_ == null) { + if (patentFilingDate_ != null) { + patentFilingDate_ = + com.google.type.Date.newBuilder(patentFilingDate_).mergeFrom(value).buildPartial(); + } else { + patentFilingDate_ = value; + } + onChanged(); + } else { + patentFilingDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The date that the patent was filed.
+     * 
+ * + * .google.type.Date patent_filing_date = 5; + */ + public Builder clearPatentFilingDate() { + if (patentFilingDateBuilder_ == null) { + patentFilingDate_ = null; + onChanged(); + } else { + patentFilingDate_ = null; + patentFilingDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The date that the patent was filed.
+     * 
+ * + * .google.type.Date patent_filing_date = 5; + */ + public com.google.type.Date.Builder getPatentFilingDateBuilder() { + + onChanged(); + return getPatentFilingDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The date that the patent was filed.
+     * 
+ * + * .google.type.Date patent_filing_date = 5; + */ + public com.google.type.DateOrBuilder getPatentFilingDateOrBuilder() { + if (patentFilingDateBuilder_ != null) { + return patentFilingDateBuilder_.getMessageOrBuilder(); + } else { + return patentFilingDate_ == null + ? com.google.type.Date.getDefaultInstance() + : patentFilingDate_; + } + } + /** + * + * + *
+     * Optional.
+     * The date that the patent was filed.
+     * 
+ * + * .google.type.Date patent_filing_date = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getPatentFilingDateFieldBuilder() { + if (patentFilingDateBuilder_ == null) { + patentFilingDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getPatentFilingDate(), getParentForChildren(), isClean()); + patentFilingDate_ = null; + } + return patentFilingDateBuilder_; + } + + private java.lang.Object patentOffice_ = ""; + /** + * + * + *
+     * Optional.
+     * The name of the patent office.
+     * Number of characters allowed is 100.
+     * 
+ * + * string patent_office = 6; + */ + public java.lang.String getPatentOffice() { + java.lang.Object ref = patentOffice_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + patentOffice_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The name of the patent office.
+     * Number of characters allowed is 100.
+     * 
+ * + * string patent_office = 6; + */ + public com.google.protobuf.ByteString getPatentOfficeBytes() { + java.lang.Object ref = patentOffice_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + patentOffice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The name of the patent office.
+     * Number of characters allowed is 100.
+     * 
+ * + * string patent_office = 6; + */ + public Builder setPatentOffice(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + patentOffice_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The name of the patent office.
+     * Number of characters allowed is 100.
+     * 
+ * + * string patent_office = 6; + */ + public Builder clearPatentOffice() { + + patentOffice_ = getDefaultInstance().getPatentOffice(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The name of the patent office.
+     * Number of characters allowed is 100.
+     * 
+ * + * string patent_office = 6; + */ + public Builder setPatentOfficeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + patentOffice_ = value; + onChanged(); + return this; + } + + private java.lang.Object patentNumber_ = ""; + /** + * + * + *
+     * Optional.
+     * The number of the patent.
+     * Number of characters allowed is 100.
+     * 
+ * + * string patent_number = 7; + */ + public java.lang.String getPatentNumber() { + java.lang.Object ref = patentNumber_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + patentNumber_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The number of the patent.
+     * Number of characters allowed is 100.
+     * 
+ * + * string patent_number = 7; + */ + public com.google.protobuf.ByteString getPatentNumberBytes() { + java.lang.Object ref = patentNumber_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + patentNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The number of the patent.
+     * Number of characters allowed is 100.
+     * 
+ * + * string patent_number = 7; + */ + public Builder setPatentNumber(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + patentNumber_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The number of the patent.
+     * Number of characters allowed is 100.
+     * 
+ * + * string patent_number = 7; + */ + public Builder clearPatentNumber() { + + patentNumber_ = getDefaultInstance().getPatentNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The number of the patent.
+     * Number of characters allowed is 100.
+     * 
+ * + * string patent_number = 7; + */ + public Builder setPatentNumberBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + patentNumber_ = value; + onChanged(); + return this; + } + + private java.lang.Object patentDescription_ = ""; + /** + * + * + *
+     * Optional.
+     * The description of the patent.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string patent_description = 8; + */ + public java.lang.String getPatentDescription() { + java.lang.Object ref = patentDescription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + patentDescription_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The description of the patent.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string patent_description = 8; + */ + public com.google.protobuf.ByteString getPatentDescriptionBytes() { + java.lang.Object ref = patentDescription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + patentDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The description of the patent.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string patent_description = 8; + */ + public Builder setPatentDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + patentDescription_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The description of the patent.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string patent_description = 8; + */ + public Builder clearPatentDescription() { + + patentDescription_ = getDefaultInstance().getPatentDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The description of the patent.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string patent_description = 8; + */ + public Builder setPatentDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + patentDescription_ = value; + onChanged(); + return this; + } + + private java.util.List skillsUsed_ = + java.util.Collections.emptyList(); + + private void ensureSkillsUsedIsMutable() { + if (!((bitField0_ & 0x00000100) == 0x00000100)) { + skillsUsed_ = new java.util.ArrayList(skillsUsed_); + bitField0_ |= 0x00000100; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Skill, + com.google.cloud.talent.v4beta1.Skill.Builder, + com.google.cloud.talent.v4beta1.SkillOrBuilder> + skillsUsedBuilder_; + + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public java.util.List getSkillsUsedList() { + if (skillsUsedBuilder_ == null) { + return java.util.Collections.unmodifiableList(skillsUsed_); + } else { + return skillsUsedBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public int getSkillsUsedCount() { + if (skillsUsedBuilder_ == null) { + return skillsUsed_.size(); + } else { + return skillsUsedBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public com.google.cloud.talent.v4beta1.Skill getSkillsUsed(int index) { + if (skillsUsedBuilder_ == null) { + return skillsUsed_.get(index); + } else { + return skillsUsedBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public Builder setSkillsUsed(int index, com.google.cloud.talent.v4beta1.Skill value) { + if (skillsUsedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillsUsedIsMutable(); + skillsUsed_.set(index, value); + onChanged(); + } else { + skillsUsedBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public Builder setSkillsUsed( + int index, com.google.cloud.talent.v4beta1.Skill.Builder builderForValue) { + if (skillsUsedBuilder_ == null) { + ensureSkillsUsedIsMutable(); + skillsUsed_.set(index, builderForValue.build()); + onChanged(); + } else { + skillsUsedBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public Builder addSkillsUsed(com.google.cloud.talent.v4beta1.Skill value) { + if (skillsUsedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillsUsedIsMutable(); + skillsUsed_.add(value); + onChanged(); + } else { + skillsUsedBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public Builder addSkillsUsed(int index, com.google.cloud.talent.v4beta1.Skill value) { + if (skillsUsedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillsUsedIsMutable(); + skillsUsed_.add(index, value); + onChanged(); + } else { + skillsUsedBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public Builder addSkillsUsed(com.google.cloud.talent.v4beta1.Skill.Builder builderForValue) { + if (skillsUsedBuilder_ == null) { + ensureSkillsUsedIsMutable(); + skillsUsed_.add(builderForValue.build()); + onChanged(); + } else { + skillsUsedBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public Builder addSkillsUsed( + int index, com.google.cloud.talent.v4beta1.Skill.Builder builderForValue) { + if (skillsUsedBuilder_ == null) { + ensureSkillsUsedIsMutable(); + skillsUsed_.add(index, builderForValue.build()); + onChanged(); + } else { + skillsUsedBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public Builder addAllSkillsUsed( + java.lang.Iterable values) { + if (skillsUsedBuilder_ == null) { + ensureSkillsUsedIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, skillsUsed_); + onChanged(); + } else { + skillsUsedBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public Builder clearSkillsUsed() { + if (skillsUsedBuilder_ == null) { + skillsUsed_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + } else { + skillsUsedBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public Builder removeSkillsUsed(int index) { + if (skillsUsedBuilder_ == null) { + ensureSkillsUsedIsMutable(); + skillsUsed_.remove(index); + onChanged(); + } else { + skillsUsedBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public com.google.cloud.talent.v4beta1.Skill.Builder getSkillsUsedBuilder(int index) { + return getSkillsUsedFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public com.google.cloud.talent.v4beta1.SkillOrBuilder getSkillsUsedOrBuilder(int index) { + if (skillsUsedBuilder_ == null) { + return skillsUsed_.get(index); + } else { + return skillsUsedBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public java.util.List + getSkillsUsedOrBuilderList() { + if (skillsUsedBuilder_ != null) { + return skillsUsedBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(skillsUsed_); + } + } + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public com.google.cloud.talent.v4beta1.Skill.Builder addSkillsUsedBuilder() { + return getSkillsUsedFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.Skill.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public com.google.cloud.talent.v4beta1.Skill.Builder addSkillsUsedBuilder(int index) { + return getSkillsUsedFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.Skill.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The skills used in this patent.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + public java.util.List + getSkillsUsedBuilderList() { + return getSkillsUsedFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Skill, + com.google.cloud.talent.v4beta1.Skill.Builder, + com.google.cloud.talent.v4beta1.SkillOrBuilder> + getSkillsUsedFieldBuilder() { + if (skillsUsedBuilder_ == null) { + skillsUsedBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Skill, + com.google.cloud.talent.v4beta1.Skill.Builder, + com.google.cloud.talent.v4beta1.SkillOrBuilder>( + skillsUsed_, + ((bitField0_ & 0x00000100) == 0x00000100), + getParentForChildren(), + isClean()); + skillsUsed_ = null; + } + return skillsUsedBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Patent) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Patent) + private static final com.google.cloud.talent.v4beta1.Patent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Patent(); + } + + public static com.google.cloud.talent.v4beta1.Patent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Patent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Patent(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.Patent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PatentOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PatentOrBuilder.java new file mode 100644 index 000000000000..afa687caea83 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PatentOrBuilder.java @@ -0,0 +1,309 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public interface PatentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Patent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * Name of the patent.
+   * Number of characters allowed is 100.
+   * 
+ * + * string display_name = 1; + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Optional.
+   * Name of the patent.
+   * Number of characters allowed is 100.
+   * 
+ * + * string display_name = 1; + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Optional.
+   * A list of inventors' names.
+   * Number of characters allowed for each is 100.
+   * 
+ * + * repeated string inventors = 2; + */ + java.util.List getInventorsList(); + /** + * + * + *
+   * Optional.
+   * A list of inventors' names.
+   * Number of characters allowed for each is 100.
+   * 
+ * + * repeated string inventors = 2; + */ + int getInventorsCount(); + /** + * + * + *
+   * Optional.
+   * A list of inventors' names.
+   * Number of characters allowed for each is 100.
+   * 
+ * + * repeated string inventors = 2; + */ + java.lang.String getInventors(int index); + /** + * + * + *
+   * Optional.
+   * A list of inventors' names.
+   * Number of characters allowed for each is 100.
+   * 
+ * + * repeated string inventors = 2; + */ + com.google.protobuf.ByteString getInventorsBytes(int index); + + /** + * + * + *
+   * Optional.
+   * The status of the patent.
+   * Number of characters allowed is 100.
+   * 
+ * + * string patent_status = 3; + */ + java.lang.String getPatentStatus(); + /** + * + * + *
+   * Optional.
+   * The status of the patent.
+   * Number of characters allowed is 100.
+   * 
+ * + * string patent_status = 3; + */ + com.google.protobuf.ByteString getPatentStatusBytes(); + + /** + * + * + *
+   * Optional.
+   * The date the last time the status of the patent was checked.
+   * 
+ * + * .google.type.Date patent_status_date = 4; + */ + boolean hasPatentStatusDate(); + /** + * + * + *
+   * Optional.
+   * The date the last time the status of the patent was checked.
+   * 
+ * + * .google.type.Date patent_status_date = 4; + */ + com.google.type.Date getPatentStatusDate(); + /** + * + * + *
+   * Optional.
+   * The date the last time the status of the patent was checked.
+   * 
+ * + * .google.type.Date patent_status_date = 4; + */ + com.google.type.DateOrBuilder getPatentStatusDateOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The date that the patent was filed.
+   * 
+ * + * .google.type.Date patent_filing_date = 5; + */ + boolean hasPatentFilingDate(); + /** + * + * + *
+   * Optional.
+   * The date that the patent was filed.
+   * 
+ * + * .google.type.Date patent_filing_date = 5; + */ + com.google.type.Date getPatentFilingDate(); + /** + * + * + *
+   * Optional.
+   * The date that the patent was filed.
+   * 
+ * + * .google.type.Date patent_filing_date = 5; + */ + com.google.type.DateOrBuilder getPatentFilingDateOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The name of the patent office.
+   * Number of characters allowed is 100.
+   * 
+ * + * string patent_office = 6; + */ + java.lang.String getPatentOffice(); + /** + * + * + *
+   * Optional.
+   * The name of the patent office.
+   * Number of characters allowed is 100.
+   * 
+ * + * string patent_office = 6; + */ + com.google.protobuf.ByteString getPatentOfficeBytes(); + + /** + * + * + *
+   * Optional.
+   * The number of the patent.
+   * Number of characters allowed is 100.
+   * 
+ * + * string patent_number = 7; + */ + java.lang.String getPatentNumber(); + /** + * + * + *
+   * Optional.
+   * The number of the patent.
+   * Number of characters allowed is 100.
+   * 
+ * + * string patent_number = 7; + */ + com.google.protobuf.ByteString getPatentNumberBytes(); + + /** + * + * + *
+   * Optional.
+   * The description of the patent.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string patent_description = 8; + */ + java.lang.String getPatentDescription(); + /** + * + * + *
+   * Optional.
+   * The description of the patent.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string patent_description = 8; + */ + com.google.protobuf.ByteString getPatentDescriptionBytes(); + + /** + * + * + *
+   * Optional.
+   * The skills used in this patent.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + java.util.List getSkillsUsedList(); + /** + * + * + *
+   * Optional.
+   * The skills used in this patent.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + com.google.cloud.talent.v4beta1.Skill getSkillsUsed(int index); + /** + * + * + *
+   * Optional.
+   * The skills used in this patent.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + int getSkillsUsedCount(); + /** + * + * + *
+   * Optional.
+   * The skills used in this patent.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + java.util.List + getSkillsUsedOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The skills used in this patent.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; + */ + com.google.cloud.talent.v4beta1.SkillOrBuilder getSkillsUsedOrBuilder(int index); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonName.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonName.java new file mode 100644 index 000000000000..434ac7d22ab0 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonName.java @@ -0,0 +1,2975 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Resource that represents the name of a person.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.PersonName} + */ +public final class PersonName extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.PersonName) + PersonNameOrBuilder { + private static final long serialVersionUID = 0L; + // Use PersonName.newBuilder() to construct. + private PersonName(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PersonName() { + preferredName_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PersonName( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + personNameCase_ = 1; + personName_ = s; + break; + } + case 18: + { + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.Builder subBuilder = + null; + if (personNameCase_ == 2) { + subBuilder = + ((com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) personName_) + .toBuilder(); + } + personName_ = + input.readMessage( + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) personName_); + personName_ = subBuilder.buildPartial(); + } + personNameCase_ = 2; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + preferredName_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_PersonName_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_PersonName_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.PersonName.class, + com.google.cloud.talent.v4beta1.PersonName.Builder.class); + } + + public interface PersonStructuredNameOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.PersonName.PersonStructuredName) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional.
+     * Given/first name.
+     * It's derived from
+     * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+     * if not provided.
+     * Number of characters allowed is 100.
+     * 
+ * + * string given_name = 1; + */ + java.lang.String getGivenName(); + /** + * + * + *
+     * Optional.
+     * Given/first name.
+     * It's derived from
+     * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+     * if not provided.
+     * Number of characters allowed is 100.
+     * 
+ * + * string given_name = 1; + */ + com.google.protobuf.ByteString getGivenNameBytes(); + + /** + * + * + *
+     * Optional.
+     * Middle initial.
+     * It's derived from
+     * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+     * if not provided.
+     * Number of characters allowed is 20.
+     * 
+ * + * string middle_initial = 2; + */ + java.lang.String getMiddleInitial(); + /** + * + * + *
+     * Optional.
+     * Middle initial.
+     * It's derived from
+     * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+     * if not provided.
+     * Number of characters allowed is 20.
+     * 
+ * + * string middle_initial = 2; + */ + com.google.protobuf.ByteString getMiddleInitialBytes(); + + /** + * + * + *
+     * Optional.
+     * Family/last name.
+     * It's derived from
+     * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+     * if not provided.
+     * Number of characters allowed is 100.
+     * 
+ * + * string family_name = 3; + */ + java.lang.String getFamilyName(); + /** + * + * + *
+     * Optional.
+     * Family/last name.
+     * It's derived from
+     * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+     * if not provided.
+     * Number of characters allowed is 100.
+     * 
+ * + * string family_name = 3; + */ + com.google.protobuf.ByteString getFamilyNameBytes(); + + /** + * + * + *
+     * Optional.
+     * Suffixes.
+     * Number of characters allowed is 20.
+     * 
+ * + * repeated string suffixes = 4; + */ + java.util.List getSuffixesList(); + /** + * + * + *
+     * Optional.
+     * Suffixes.
+     * Number of characters allowed is 20.
+     * 
+ * + * repeated string suffixes = 4; + */ + int getSuffixesCount(); + /** + * + * + *
+     * Optional.
+     * Suffixes.
+     * Number of characters allowed is 20.
+     * 
+ * + * repeated string suffixes = 4; + */ + java.lang.String getSuffixes(int index); + /** + * + * + *
+     * Optional.
+     * Suffixes.
+     * Number of characters allowed is 20.
+     * 
+ * + * repeated string suffixes = 4; + */ + com.google.protobuf.ByteString getSuffixesBytes(int index); + + /** + * + * + *
+     * Optional.
+     * Prefixes.
+     * Number of characters allowed is 20.
+     * 
+ * + * repeated string prefixes = 5; + */ + java.util.List getPrefixesList(); + /** + * + * + *
+     * Optional.
+     * Prefixes.
+     * Number of characters allowed is 20.
+     * 
+ * + * repeated string prefixes = 5; + */ + int getPrefixesCount(); + /** + * + * + *
+     * Optional.
+     * Prefixes.
+     * Number of characters allowed is 20.
+     * 
+ * + * repeated string prefixes = 5; + */ + java.lang.String getPrefixes(int index); + /** + * + * + *
+     * Optional.
+     * Prefixes.
+     * Number of characters allowed is 20.
+     * 
+ * + * repeated string prefixes = 5; + */ + com.google.protobuf.ByteString getPrefixesBytes(int index); + } + /** + * + * + *
+   * Resource that represents a person's structured name.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.PersonName.PersonStructuredName} + */ + public static final class PersonStructuredName extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.PersonName.PersonStructuredName) + PersonStructuredNameOrBuilder { + private static final long serialVersionUID = 0L; + // Use PersonStructuredName.newBuilder() to construct. + private PersonStructuredName(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PersonStructuredName() { + givenName_ = ""; + middleInitial_ = ""; + familyName_ = ""; + suffixes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + prefixes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PersonStructuredName( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + givenName_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + middleInitial_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + familyName_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + suffixes_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000008; + } + suffixes_.add(s); + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + prefixes_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000010; + } + prefixes_.add(s); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + suffixes_ = suffixes_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + prefixes_ = prefixes_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_PersonName_PersonStructuredName_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_PersonName_PersonStructuredName_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.class, + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.Builder.class); + } + + private int bitField0_; + public static final int GIVEN_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object givenName_; + /** + * + * + *
+     * Optional.
+     * Given/first name.
+     * It's derived from
+     * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+     * if not provided.
+     * Number of characters allowed is 100.
+     * 
+ * + * string given_name = 1; + */ + public java.lang.String getGivenName() { + java.lang.Object ref = givenName_; + 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(); + givenName_ = s; + return s; + } + } + /** + * + * + *
+     * Optional.
+     * Given/first name.
+     * It's derived from
+     * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+     * if not provided.
+     * Number of characters allowed is 100.
+     * 
+ * + * string given_name = 1; + */ + public com.google.protobuf.ByteString getGivenNameBytes() { + java.lang.Object ref = givenName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + givenName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MIDDLE_INITIAL_FIELD_NUMBER = 2; + private volatile java.lang.Object middleInitial_; + /** + * + * + *
+     * Optional.
+     * Middle initial.
+     * It's derived from
+     * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+     * if not provided.
+     * Number of characters allowed is 20.
+     * 
+ * + * string middle_initial = 2; + */ + public java.lang.String getMiddleInitial() { + java.lang.Object ref = middleInitial_; + 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(); + middleInitial_ = s; + return s; + } + } + /** + * + * + *
+     * Optional.
+     * Middle initial.
+     * It's derived from
+     * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+     * if not provided.
+     * Number of characters allowed is 20.
+     * 
+ * + * string middle_initial = 2; + */ + public com.google.protobuf.ByteString getMiddleInitialBytes() { + java.lang.Object ref = middleInitial_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + middleInitial_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FAMILY_NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object familyName_; + /** + * + * + *
+     * Optional.
+     * Family/last name.
+     * It's derived from
+     * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+     * if not provided.
+     * Number of characters allowed is 100.
+     * 
+ * + * string family_name = 3; + */ + public java.lang.String getFamilyName() { + java.lang.Object ref = familyName_; + 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(); + familyName_ = s; + return s; + } + } + /** + * + * + *
+     * Optional.
+     * Family/last name.
+     * It's derived from
+     * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+     * if not provided.
+     * Number of characters allowed is 100.
+     * 
+ * + * string family_name = 3; + */ + public com.google.protobuf.ByteString getFamilyNameBytes() { + java.lang.Object ref = familyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + familyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUFFIXES_FIELD_NUMBER = 4; + private com.google.protobuf.LazyStringList suffixes_; + /** + * + * + *
+     * Optional.
+     * Suffixes.
+     * Number of characters allowed is 20.
+     * 
+ * + * repeated string suffixes = 4; + */ + public com.google.protobuf.ProtocolStringList getSuffixesList() { + return suffixes_; + } + /** + * + * + *
+     * Optional.
+     * Suffixes.
+     * Number of characters allowed is 20.
+     * 
+ * + * repeated string suffixes = 4; + */ + public int getSuffixesCount() { + return suffixes_.size(); + } + /** + * + * + *
+     * Optional.
+     * Suffixes.
+     * Number of characters allowed is 20.
+     * 
+ * + * repeated string suffixes = 4; + */ + public java.lang.String getSuffixes(int index) { + return suffixes_.get(index); + } + /** + * + * + *
+     * Optional.
+     * Suffixes.
+     * Number of characters allowed is 20.
+     * 
+ * + * repeated string suffixes = 4; + */ + public com.google.protobuf.ByteString getSuffixesBytes(int index) { + return suffixes_.getByteString(index); + } + + public static final int PREFIXES_FIELD_NUMBER = 5; + private com.google.protobuf.LazyStringList prefixes_; + /** + * + * + *
+     * Optional.
+     * Prefixes.
+     * Number of characters allowed is 20.
+     * 
+ * + * repeated string prefixes = 5; + */ + public com.google.protobuf.ProtocolStringList getPrefixesList() { + return prefixes_; + } + /** + * + * + *
+     * Optional.
+     * Prefixes.
+     * Number of characters allowed is 20.
+     * 
+ * + * repeated string prefixes = 5; + */ + public int getPrefixesCount() { + return prefixes_.size(); + } + /** + * + * + *
+     * Optional.
+     * Prefixes.
+     * Number of characters allowed is 20.
+     * 
+ * + * repeated string prefixes = 5; + */ + public java.lang.String getPrefixes(int index) { + return prefixes_.get(index); + } + /** + * + * + *
+     * Optional.
+     * Prefixes.
+     * Number of characters allowed is 20.
+     * 
+ * + * repeated string prefixes = 5; + */ + public com.google.protobuf.ByteString getPrefixesBytes(int index) { + return prefixes_.getByteString(index); + } + + 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 (!getGivenNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, givenName_); + } + if (!getMiddleInitialBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, middleInitial_); + } + if (!getFamilyNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, familyName_); + } + for (int i = 0; i < suffixes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, suffixes_.getRaw(i)); + } + for (int i = 0; i < prefixes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, prefixes_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getGivenNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, givenName_); + } + if (!getMiddleInitialBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, middleInitial_); + } + if (!getFamilyNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, familyName_); + } + { + int dataSize = 0; + for (int i = 0; i < suffixes_.size(); i++) { + dataSize += computeStringSizeNoTag(suffixes_.getRaw(i)); + } + size += dataSize; + size += 1 * getSuffixesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < prefixes_.size(); i++) { + dataSize += computeStringSizeNoTag(prefixes_.getRaw(i)); + } + size += dataSize; + size += 1 * getPrefixesList().size(); + } + size += unknownFields.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.cloud.talent.v4beta1.PersonName.PersonStructuredName)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName other = + (com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) obj; + + boolean result = true; + result = result && getGivenName().equals(other.getGivenName()); + result = result && getMiddleInitial().equals(other.getMiddleInitial()); + result = result && getFamilyName().equals(other.getFamilyName()); + result = result && getSuffixesList().equals(other.getSuffixesList()); + result = result && getPrefixesList().equals(other.getPrefixesList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + GIVEN_NAME_FIELD_NUMBER; + hash = (53 * hash) + getGivenName().hashCode(); + hash = (37 * hash) + MIDDLE_INITIAL_FIELD_NUMBER; + hash = (53 * hash) + getMiddleInitial().hashCode(); + hash = (37 * hash) + FAMILY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFamilyName().hashCode(); + if (getSuffixesCount() > 0) { + hash = (37 * hash) + SUFFIXES_FIELD_NUMBER; + hash = (53 * hash) + getSuffixesList().hashCode(); + } + if (getPrefixesCount() > 0) { + hash = (37 * hash) + PREFIXES_FIELD_NUMBER; + hash = (53 * hash) + getPrefixesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName 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.cloud.talent.v4beta1.PersonName.PersonStructuredName parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName 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.cloud.talent.v4beta1.PersonName.PersonStructuredName + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName + 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.cloud.talent.v4beta1.PersonName.PersonStructuredName parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName 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.cloud.talent.v4beta1.PersonName.PersonStructuredName 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; + } + /** + * + * + *
+     * Resource that represents a person's structured name.
+     * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.PersonName.PersonStructuredName} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.PersonName.PersonStructuredName) + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredNameOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_PersonName_PersonStructuredName_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_PersonName_PersonStructuredName_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.class, + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.Builder.class); + } + + // Construct using + // com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + givenName_ = ""; + + middleInitial_ = ""; + + familyName_ = ""; + + suffixes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + prefixes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_PersonName_PersonStructuredName_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName + getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName build() { + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName buildPartial() { + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName result = + new com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.givenName_ = givenName_; + result.middleInitial_ = middleInitial_; + result.familyName_ = familyName_; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + suffixes_ = suffixes_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.suffixes_ = suffixes_; + if (((bitField0_ & 0x00000010) == 0x00000010)) { + prefixes_ = prefixes_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.prefixes_ = prefixes_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) { + return mergeFrom((com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName other) { + if (other + == com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.getDefaultInstance()) + return this; + if (!other.getGivenName().isEmpty()) { + givenName_ = other.givenName_; + onChanged(); + } + if (!other.getMiddleInitial().isEmpty()) { + middleInitial_ = other.middleInitial_; + onChanged(); + } + if (!other.getFamilyName().isEmpty()) { + familyName_ = other.familyName_; + onChanged(); + } + if (!other.suffixes_.isEmpty()) { + if (suffixes_.isEmpty()) { + suffixes_ = other.suffixes_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureSuffixesIsMutable(); + suffixes_.addAll(other.suffixes_); + } + onChanged(); + } + if (!other.prefixes_.isEmpty()) { + if (prefixes_.isEmpty()) { + prefixes_ = other.prefixes_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensurePrefixesIsMutable(); + prefixes_.addAll(other.prefixes_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object givenName_ = ""; + /** + * + * + *
+       * Optional.
+       * Given/first name.
+       * It's derived from
+       * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+       * if not provided.
+       * Number of characters allowed is 100.
+       * 
+ * + * string given_name = 1; + */ + public java.lang.String getGivenName() { + java.lang.Object ref = givenName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + givenName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional.
+       * Given/first name.
+       * It's derived from
+       * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+       * if not provided.
+       * Number of characters allowed is 100.
+       * 
+ * + * string given_name = 1; + */ + public com.google.protobuf.ByteString getGivenNameBytes() { + java.lang.Object ref = givenName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + givenName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional.
+       * Given/first name.
+       * It's derived from
+       * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+       * if not provided.
+       * Number of characters allowed is 100.
+       * 
+ * + * string given_name = 1; + */ + public Builder setGivenName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + givenName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Given/first name.
+       * It's derived from
+       * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+       * if not provided.
+       * Number of characters allowed is 100.
+       * 
+ * + * string given_name = 1; + */ + public Builder clearGivenName() { + + givenName_ = getDefaultInstance().getGivenName(); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Given/first name.
+       * It's derived from
+       * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+       * if not provided.
+       * Number of characters allowed is 100.
+       * 
+ * + * string given_name = 1; + */ + public Builder setGivenNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + givenName_ = value; + onChanged(); + return this; + } + + private java.lang.Object middleInitial_ = ""; + /** + * + * + *
+       * Optional.
+       * Middle initial.
+       * It's derived from
+       * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+       * if not provided.
+       * Number of characters allowed is 20.
+       * 
+ * + * string middle_initial = 2; + */ + public java.lang.String getMiddleInitial() { + java.lang.Object ref = middleInitial_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + middleInitial_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional.
+       * Middle initial.
+       * It's derived from
+       * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+       * if not provided.
+       * Number of characters allowed is 20.
+       * 
+ * + * string middle_initial = 2; + */ + public com.google.protobuf.ByteString getMiddleInitialBytes() { + java.lang.Object ref = middleInitial_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + middleInitial_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional.
+       * Middle initial.
+       * It's derived from
+       * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+       * if not provided.
+       * Number of characters allowed is 20.
+       * 
+ * + * string middle_initial = 2; + */ + public Builder setMiddleInitial(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + middleInitial_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Middle initial.
+       * It's derived from
+       * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+       * if not provided.
+       * Number of characters allowed is 20.
+       * 
+ * + * string middle_initial = 2; + */ + public Builder clearMiddleInitial() { + + middleInitial_ = getDefaultInstance().getMiddleInitial(); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Middle initial.
+       * It's derived from
+       * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+       * if not provided.
+       * Number of characters allowed is 20.
+       * 
+ * + * string middle_initial = 2; + */ + public Builder setMiddleInitialBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + middleInitial_ = value; + onChanged(); + return this; + } + + private java.lang.Object familyName_ = ""; + /** + * + * + *
+       * Optional.
+       * Family/last name.
+       * It's derived from
+       * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+       * if not provided.
+       * Number of characters allowed is 100.
+       * 
+ * + * string family_name = 3; + */ + public java.lang.String getFamilyName() { + java.lang.Object ref = familyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + familyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional.
+       * Family/last name.
+       * It's derived from
+       * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+       * if not provided.
+       * Number of characters allowed is 100.
+       * 
+ * + * string family_name = 3; + */ + public com.google.protobuf.ByteString getFamilyNameBytes() { + java.lang.Object ref = familyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + familyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional.
+       * Family/last name.
+       * It's derived from
+       * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+       * if not provided.
+       * Number of characters allowed is 100.
+       * 
+ * + * string family_name = 3; + */ + public Builder setFamilyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + familyName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Family/last name.
+       * It's derived from
+       * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+       * if not provided.
+       * Number of characters allowed is 100.
+       * 
+ * + * string family_name = 3; + */ + public Builder clearFamilyName() { + + familyName_ = getDefaultInstance().getFamilyName(); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Family/last name.
+       * It's derived from
+       * [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name]
+       * if not provided.
+       * Number of characters allowed is 100.
+       * 
+ * + * string family_name = 3; + */ + public Builder setFamilyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + familyName_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList suffixes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureSuffixesIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + suffixes_ = new com.google.protobuf.LazyStringArrayList(suffixes_); + bitField0_ |= 0x00000008; + } + } + /** + * + * + *
+       * Optional.
+       * Suffixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string suffixes = 4; + */ + public com.google.protobuf.ProtocolStringList getSuffixesList() { + return suffixes_.getUnmodifiableView(); + } + /** + * + * + *
+       * Optional.
+       * Suffixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string suffixes = 4; + */ + public int getSuffixesCount() { + return suffixes_.size(); + } + /** + * + * + *
+       * Optional.
+       * Suffixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string suffixes = 4; + */ + public java.lang.String getSuffixes(int index) { + return suffixes_.get(index); + } + /** + * + * + *
+       * Optional.
+       * Suffixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string suffixes = 4; + */ + public com.google.protobuf.ByteString getSuffixesBytes(int index) { + return suffixes_.getByteString(index); + } + /** + * + * + *
+       * Optional.
+       * Suffixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string suffixes = 4; + */ + public Builder setSuffixes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSuffixesIsMutable(); + suffixes_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Suffixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string suffixes = 4; + */ + public Builder addSuffixes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSuffixesIsMutable(); + suffixes_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Suffixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string suffixes = 4; + */ + public Builder addAllSuffixes(java.lang.Iterable values) { + ensureSuffixesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, suffixes_); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Suffixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string suffixes = 4; + */ + public Builder clearSuffixes() { + suffixes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Suffixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string suffixes = 4; + */ + public Builder addSuffixesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSuffixesIsMutable(); + suffixes_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList prefixes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensurePrefixesIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + prefixes_ = new com.google.protobuf.LazyStringArrayList(prefixes_); + bitField0_ |= 0x00000010; + } + } + /** + * + * + *
+       * Optional.
+       * Prefixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string prefixes = 5; + */ + public com.google.protobuf.ProtocolStringList getPrefixesList() { + return prefixes_.getUnmodifiableView(); + } + /** + * + * + *
+       * Optional.
+       * Prefixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string prefixes = 5; + */ + public int getPrefixesCount() { + return prefixes_.size(); + } + /** + * + * + *
+       * Optional.
+       * Prefixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string prefixes = 5; + */ + public java.lang.String getPrefixes(int index) { + return prefixes_.get(index); + } + /** + * + * + *
+       * Optional.
+       * Prefixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string prefixes = 5; + */ + public com.google.protobuf.ByteString getPrefixesBytes(int index) { + return prefixes_.getByteString(index); + } + /** + * + * + *
+       * Optional.
+       * Prefixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string prefixes = 5; + */ + public Builder setPrefixes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrefixesIsMutable(); + prefixes_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Prefixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string prefixes = 5; + */ + public Builder addPrefixes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrefixesIsMutable(); + prefixes_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Prefixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string prefixes = 5; + */ + public Builder addAllPrefixes(java.lang.Iterable values) { + ensurePrefixesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, prefixes_); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Prefixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string prefixes = 5; + */ + public Builder clearPrefixes() { + prefixes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional.
+       * Prefixes.
+       * Number of characters allowed is 20.
+       * 
+ * + * repeated string prefixes = 5; + */ + public Builder addPrefixesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePrefixesIsMutable(); + prefixes_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.PersonName.PersonStructuredName) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.PersonName.PersonStructuredName) + private static final com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName(); + } + + public static com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PersonStructuredName parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PersonStructuredName(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.PersonName.PersonStructuredName + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int personNameCase_ = 0; + private java.lang.Object personName_; + + public enum PersonNameCase implements com.google.protobuf.Internal.EnumLite { + FORMATTED_NAME(1), + STRUCTURED_NAME(2), + PERSONNAME_NOT_SET(0); + private final int value; + + private PersonNameCase(int value) { + this.value = value; + } + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static PersonNameCase valueOf(int value) { + return forNumber(value); + } + + public static PersonNameCase forNumber(int value) { + switch (value) { + case 1: + return FORMATTED_NAME; + case 2: + return STRUCTURED_NAME; + case 0: + return PERSONNAME_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public PersonNameCase getPersonNameCase() { + return PersonNameCase.forNumber(personNameCase_); + } + + public static final int FORMATTED_NAME_FIELD_NUMBER = 1; + /** + * + * + *
+   * Optional.
+   * A string represents a person's full name. For example, "Dr. John Smith".
+   * Number of characters allowed is 100.
+   * 
+ * + * string formatted_name = 1; + */ + public java.lang.String getFormattedName() { + java.lang.Object ref = ""; + if (personNameCase_ == 1) { + ref = personName_; + } + 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(); + if (personNameCase_ == 1) { + personName_ = s; + } + return s; + } + } + /** + * + * + *
+   * Optional.
+   * A string represents a person's full name. For example, "Dr. John Smith".
+   * Number of characters allowed is 100.
+   * 
+ * + * string formatted_name = 1; + */ + public com.google.protobuf.ByteString getFormattedNameBytes() { + java.lang.Object ref = ""; + if (personNameCase_ == 1) { + ref = personName_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (personNameCase_ == 1) { + personName_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STRUCTURED_NAME_FIELD_NUMBER = 2; + /** + * + * + *
+   * Optional.
+   * A person's name in a structured way (last name, first name, suffix, etc.)
+   * 
+ * + * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; + */ + public boolean hasStructuredName() { + return personNameCase_ == 2; + } + /** + * + * + *
+   * Optional.
+   * A person's name in a structured way (last name, first name, suffix, etc.)
+   * 
+ * + * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; + */ + public com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName getStructuredName() { + if (personNameCase_ == 2) { + return (com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) personName_; + } + return com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.getDefaultInstance(); + } + /** + * + * + *
+   * Optional.
+   * A person's name in a structured way (last name, first name, suffix, etc.)
+   * 
+ * + * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; + */ + public com.google.cloud.talent.v4beta1.PersonName.PersonStructuredNameOrBuilder + getStructuredNameOrBuilder() { + if (personNameCase_ == 2) { + return (com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) personName_; + } + return com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.getDefaultInstance(); + } + + public static final int PREFERRED_NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object preferredName_; + /** + * + * + *
+   * Optional.
+   * Preferred name for the person.
+   * 
+ * + * string preferred_name = 3; + */ + public java.lang.String getPreferredName() { + java.lang.Object ref = preferredName_; + 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(); + preferredName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * Preferred name for the person.
+   * 
+ * + * string preferred_name = 3; + */ + public com.google.protobuf.ByteString getPreferredNameBytes() { + java.lang.Object ref = preferredName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + preferredName_ = 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 (personNameCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, personName_); + } + if (personNameCase_ == 2) { + output.writeMessage( + 2, (com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) personName_); + } + if (!getPreferredNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, preferredName_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (personNameCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, personName_); + } + if (personNameCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) personName_); + } + if (!getPreferredNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, preferredName_); + } + size += unknownFields.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.cloud.talent.v4beta1.PersonName)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.PersonName other = + (com.google.cloud.talent.v4beta1.PersonName) obj; + + boolean result = true; + result = result && getPreferredName().equals(other.getPreferredName()); + result = result && getPersonNameCase().equals(other.getPersonNameCase()); + if (!result) return false; + switch (personNameCase_) { + case 1: + result = result && getFormattedName().equals(other.getFormattedName()); + break; + case 2: + result = result && getStructuredName().equals(other.getStructuredName()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PREFERRED_NAME_FIELD_NUMBER; + hash = (53 * hash) + getPreferredName().hashCode(); + switch (personNameCase_) { + case 1: + hash = (37 * hash) + FORMATTED_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFormattedName().hashCode(); + break; + case 2: + hash = (37 * hash) + STRUCTURED_NAME_FIELD_NUMBER; + hash = (53 * hash) + getStructuredName().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.PersonName parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.PersonName parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.PersonName parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.PersonName 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.cloud.talent.v4beta1.PersonName parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.PersonName parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.PersonName parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.PersonName 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.cloud.talent.v4beta1.PersonName parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.PersonName 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.cloud.talent.v4beta1.PersonName parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.PersonName 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.cloud.talent.v4beta1.PersonName 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; + } + /** + * + * + *
+   * Resource that represents the name of a person.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.PersonName} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.PersonName) + com.google.cloud.talent.v4beta1.PersonNameOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_PersonName_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_PersonName_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.PersonName.class, + com.google.cloud.talent.v4beta1.PersonName.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.PersonName.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + preferredName_ = ""; + + personNameCase_ = 0; + personName_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_PersonName_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.PersonName getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.PersonName.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.PersonName build() { + com.google.cloud.talent.v4beta1.PersonName result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.PersonName buildPartial() { + com.google.cloud.talent.v4beta1.PersonName result = + new com.google.cloud.talent.v4beta1.PersonName(this); + if (personNameCase_ == 1) { + result.personName_ = personName_; + } + if (personNameCase_ == 2) { + if (structuredNameBuilder_ == null) { + result.personName_ = personName_; + } else { + result.personName_ = structuredNameBuilder_.build(); + } + } + result.preferredName_ = preferredName_; + result.personNameCase_ = personNameCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.PersonName) { + return mergeFrom((com.google.cloud.talent.v4beta1.PersonName) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.PersonName other) { + if (other == com.google.cloud.talent.v4beta1.PersonName.getDefaultInstance()) return this; + if (!other.getPreferredName().isEmpty()) { + preferredName_ = other.preferredName_; + onChanged(); + } + switch (other.getPersonNameCase()) { + case FORMATTED_NAME: + { + personNameCase_ = 1; + personName_ = other.personName_; + onChanged(); + break; + } + case STRUCTURED_NAME: + { + mergeStructuredName(other.getStructuredName()); + break; + } + case PERSONNAME_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.PersonName parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.PersonName) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int personNameCase_ = 0; + private java.lang.Object personName_; + + public PersonNameCase getPersonNameCase() { + return PersonNameCase.forNumber(personNameCase_); + } + + public Builder clearPersonName() { + personNameCase_ = 0; + personName_ = null; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional.
+     * A string represents a person's full name. For example, "Dr. John Smith".
+     * Number of characters allowed is 100.
+     * 
+ * + * string formatted_name = 1; + */ + public java.lang.String getFormattedName() { + java.lang.Object ref = ""; + if (personNameCase_ == 1) { + ref = personName_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (personNameCase_ == 1) { + personName_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * A string represents a person's full name. For example, "Dr. John Smith".
+     * Number of characters allowed is 100.
+     * 
+ * + * string formatted_name = 1; + */ + public com.google.protobuf.ByteString getFormattedNameBytes() { + java.lang.Object ref = ""; + if (personNameCase_ == 1) { + ref = personName_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (personNameCase_ == 1) { + personName_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * A string represents a person's full name. For example, "Dr. John Smith".
+     * Number of characters allowed is 100.
+     * 
+ * + * string formatted_name = 1; + */ + public Builder setFormattedName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + personNameCase_ = 1; + personName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A string represents a person's full name. For example, "Dr. John Smith".
+     * Number of characters allowed is 100.
+     * 
+ * + * string formatted_name = 1; + */ + public Builder clearFormattedName() { + if (personNameCase_ == 1) { + personNameCase_ = 0; + personName_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A string represents a person's full name. For example, "Dr. John Smith".
+     * Number of characters allowed is 100.
+     * 
+ * + * string formatted_name = 1; + */ + public Builder setFormattedNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + personNameCase_ = 1; + personName_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName, + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.Builder, + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredNameOrBuilder> + structuredNameBuilder_; + /** + * + * + *
+     * Optional.
+     * A person's name in a structured way (last name, first name, suffix, etc.)
+     * 
+ * + * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; + * + */ + public boolean hasStructuredName() { + return personNameCase_ == 2; + } + /** + * + * + *
+     * Optional.
+     * A person's name in a structured way (last name, first name, suffix, etc.)
+     * 
+ * + * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; + * + */ + public com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName getStructuredName() { + if (structuredNameBuilder_ == null) { + if (personNameCase_ == 2) { + return (com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) personName_; + } + return com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.getDefaultInstance(); + } else { + if (personNameCase_ == 2) { + return structuredNameBuilder_.getMessage(); + } + return com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional.
+     * A person's name in a structured way (last name, first name, suffix, etc.)
+     * 
+ * + * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; + * + */ + public Builder setStructuredName( + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName value) { + if (structuredNameBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + personName_ = value; + onChanged(); + } else { + structuredNameBuilder_.setMessage(value); + } + personNameCase_ = 2; + return this; + } + /** + * + * + *
+     * Optional.
+     * A person's name in a structured way (last name, first name, suffix, etc.)
+     * 
+ * + * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; + * + */ + public Builder setStructuredName( + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.Builder builderForValue) { + if (structuredNameBuilder_ == null) { + personName_ = builderForValue.build(); + onChanged(); + } else { + structuredNameBuilder_.setMessage(builderForValue.build()); + } + personNameCase_ = 2; + return this; + } + /** + * + * + *
+     * Optional.
+     * A person's name in a structured way (last name, first name, suffix, etc.)
+     * 
+ * + * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; + * + */ + public Builder mergeStructuredName( + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName value) { + if (structuredNameBuilder_ == null) { + if (personNameCase_ == 2 + && personName_ + != com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName + .getDefaultInstance()) { + personName_ = + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.newBuilder( + (com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) personName_) + .mergeFrom(value) + .buildPartial(); + } else { + personName_ = value; + } + onChanged(); + } else { + if (personNameCase_ == 2) { + structuredNameBuilder_.mergeFrom(value); + } + structuredNameBuilder_.setMessage(value); + } + personNameCase_ = 2; + return this; + } + /** + * + * + *
+     * Optional.
+     * A person's name in a structured way (last name, first name, suffix, etc.)
+     * 
+ * + * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; + * + */ + public Builder clearStructuredName() { + if (structuredNameBuilder_ == null) { + if (personNameCase_ == 2) { + personNameCase_ = 0; + personName_ = null; + onChanged(); + } + } else { + if (personNameCase_ == 2) { + personNameCase_ = 0; + personName_ = null; + } + structuredNameBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A person's name in a structured way (last name, first name, suffix, etc.)
+     * 
+ * + * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; + * + */ + public com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.Builder + getStructuredNameBuilder() { + return getStructuredNameFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * A person's name in a structured way (last name, first name, suffix, etc.)
+     * 
+ * + * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; + * + */ + public com.google.cloud.talent.v4beta1.PersonName.PersonStructuredNameOrBuilder + getStructuredNameOrBuilder() { + if ((personNameCase_ == 2) && (structuredNameBuilder_ != null)) { + return structuredNameBuilder_.getMessageOrBuilder(); + } else { + if (personNameCase_ == 2) { + return (com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) personName_; + } + return com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional.
+     * A person's name in a structured way (last name, first name, suffix, etc.)
+     * 
+ * + * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName, + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.Builder, + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredNameOrBuilder> + getStructuredNameFieldBuilder() { + if (structuredNameBuilder_ == null) { + if (!(personNameCase_ == 2)) { + personName_ = + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.getDefaultInstance(); + } + structuredNameBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName, + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.Builder, + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredNameOrBuilder>( + (com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) personName_, + getParentForChildren(), + isClean()); + personName_ = null; + } + personNameCase_ = 2; + onChanged(); + ; + return structuredNameBuilder_; + } + + private java.lang.Object preferredName_ = ""; + /** + * + * + *
+     * Optional.
+     * Preferred name for the person.
+     * 
+ * + * string preferred_name = 3; + */ + public java.lang.String getPreferredName() { + java.lang.Object ref = preferredName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + preferredName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Preferred name for the person.
+     * 
+ * + * string preferred_name = 3; + */ + public com.google.protobuf.ByteString getPreferredNameBytes() { + java.lang.Object ref = preferredName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + preferredName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Preferred name for the person.
+     * 
+ * + * string preferred_name = 3; + */ + public Builder setPreferredName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + preferredName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Preferred name for the person.
+     * 
+ * + * string preferred_name = 3; + */ + public Builder clearPreferredName() { + + preferredName_ = getDefaultInstance().getPreferredName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Preferred name for the person.
+     * 
+ * + * string preferred_name = 3; + */ + public Builder setPreferredNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + preferredName_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.PersonName) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.PersonName) + private static final com.google.cloud.talent.v4beta1.PersonName DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.PersonName(); + } + + public static com.google.cloud.talent.v4beta1.PersonName getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PersonName parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PersonName(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.PersonName getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonNameOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonNameOrBuilder.java new file mode 100644 index 000000000000..916ca05ec8db --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonNameOrBuilder.java @@ -0,0 +1,95 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public interface PersonNameOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.PersonName) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * A string represents a person's full name. For example, "Dr. John Smith".
+   * Number of characters allowed is 100.
+   * 
+ * + * string formatted_name = 1; + */ + java.lang.String getFormattedName(); + /** + * + * + *
+   * Optional.
+   * A string represents a person's full name. For example, "Dr. John Smith".
+   * Number of characters allowed is 100.
+   * 
+ * + * string formatted_name = 1; + */ + com.google.protobuf.ByteString getFormattedNameBytes(); + + /** + * + * + *
+   * Optional.
+   * A person's name in a structured way (last name, first name, suffix, etc.)
+   * 
+ * + * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; + */ + boolean hasStructuredName(); + /** + * + * + *
+   * Optional.
+   * A person's name in a structured way (last name, first name, suffix, etc.)
+   * 
+ * + * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; + */ + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName getStructuredName(); + /** + * + * + *
+   * Optional.
+   * A person's name in a structured way (last name, first name, suffix, etc.)
+   * 
+ * + * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; + */ + com.google.cloud.talent.v4beta1.PersonName.PersonStructuredNameOrBuilder + getStructuredNameOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * Preferred name for the person.
+   * 
+ * + * string preferred_name = 3; + */ + java.lang.String getPreferredName(); + /** + * + * + *
+   * Optional.
+   * Preferred name for the person.
+   * 
+ * + * string preferred_name = 3; + */ + com.google.protobuf.ByteString getPreferredNameBytes(); + + public com.google.cloud.talent.v4beta1.PersonName.PersonNameCase getPersonNameCase(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonalUri.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonalUri.java new file mode 100644 index 000000000000..b36f80bf7100 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonalUri.java @@ -0,0 +1,611 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Resource that represents a valid URI for a personal use.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.PersonalUri} + */ +public final class PersonalUri extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.PersonalUri) + PersonalUriOrBuilder { + private static final long serialVersionUID = 0L; + // Use PersonalUri.newBuilder() to construct. + private PersonalUri(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PersonalUri() { + uri_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PersonalUri( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + uri_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_PersonalUri_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_PersonalUri_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.PersonalUri.class, + com.google.cloud.talent.v4beta1.PersonalUri.Builder.class); + } + + public static final int URI_FIELD_NUMBER = 1; + private volatile java.lang.Object uri_; + /** + * + * + *
+   * Optional.
+   * The personal URI.
+   * Number of characters allowed is 4,000.
+   * 
+ * + * string uri = 1; + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + 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(); + uri_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The personal URI.
+   * Number of characters allowed is 4,000.
+   * 
+ * + * string uri = 1; + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = 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 (!getUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); + } + size += unknownFields.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.cloud.talent.v4beta1.PersonalUri)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.PersonalUri other = + (com.google.cloud.talent.v4beta1.PersonalUri) obj; + + boolean result = true; + result = result && getUri().equals(other.getUri()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.PersonalUri parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.PersonalUri parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.PersonalUri parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.PersonalUri 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.cloud.talent.v4beta1.PersonalUri parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.PersonalUri parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.PersonalUri parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.PersonalUri 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.cloud.talent.v4beta1.PersonalUri parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.PersonalUri 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.cloud.talent.v4beta1.PersonalUri parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.PersonalUri 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.cloud.talent.v4beta1.PersonalUri 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; + } + /** + * + * + *
+   * Resource that represents a valid URI for a personal use.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.PersonalUri} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.PersonalUri) + com.google.cloud.talent.v4beta1.PersonalUriOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_PersonalUri_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_PersonalUri_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.PersonalUri.class, + com.google.cloud.talent.v4beta1.PersonalUri.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.PersonalUri.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + uri_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_PersonalUri_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.PersonalUri getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.PersonalUri.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.PersonalUri build() { + com.google.cloud.talent.v4beta1.PersonalUri result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.PersonalUri buildPartial() { + com.google.cloud.talent.v4beta1.PersonalUri result = + new com.google.cloud.talent.v4beta1.PersonalUri(this); + result.uri_ = uri_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.PersonalUri) { + return mergeFrom((com.google.cloud.talent.v4beta1.PersonalUri) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.PersonalUri other) { + if (other == com.google.cloud.talent.v4beta1.PersonalUri.getDefaultInstance()) return this; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.PersonalUri parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.PersonalUri) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object uri_ = ""; + /** + * + * + *
+     * Optional.
+     * The personal URI.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string uri = 1; + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The personal URI.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string uri = 1; + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The personal URI.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string uri = 1; + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + uri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The personal URI.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string uri = 1; + */ + public Builder clearUri() { + + uri_ = getDefaultInstance().getUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The personal URI.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string uri = 1; + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uri_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.PersonalUri) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.PersonalUri) + private static final com.google.cloud.talent.v4beta1.PersonalUri DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.PersonalUri(); + } + + public static com.google.cloud.talent.v4beta1.PersonalUri getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PersonalUri parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PersonalUri(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.PersonalUri getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonalUriOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonalUriOrBuilder.java new file mode 100644 index 000000000000..7b2ade421ca1 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonalUriOrBuilder.java @@ -0,0 +1,35 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public interface PersonalUriOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.PersonalUri) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * The personal URI.
+   * Number of characters allowed is 4,000.
+   * 
+ * + * string uri = 1; + */ + java.lang.String getUri(); + /** + * + * + *
+   * Optional.
+   * The personal URI.
+   * Number of characters allowed is 4,000.
+   * 
+ * + * string uri = 1; + */ + com.google.protobuf.ByteString getUriBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Phone.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Phone.java new file mode 100644 index 000000000000..9b822c84812d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Phone.java @@ -0,0 +1,1403 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Resource that represents a person's telephone number.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Phone} + */ +public final class Phone extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Phone) + PhoneOrBuilder { + private static final long serialVersionUID = 0L; + // Use Phone.newBuilder() to construct. + private Phone(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Phone() { + usage_ = 0; + type_ = 0; + number_ = ""; + whenAvailable_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Phone( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + usage_ = rawValue; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + number_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + whenAvailable_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Phone_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Phone_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Phone.class, + com.google.cloud.talent.v4beta1.Phone.Builder.class); + } + + /** + * + * + *
+   * Enum that represents the type of the telephone.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.Phone.PhoneType} + */ + public enum PhoneType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value.
+     * 
+ * + * PHONE_TYPE_UNSPECIFIED = 0; + */ + PHONE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * A landline.
+     * 
+ * + * LANDLINE = 1; + */ + LANDLINE(1), + /** + * + * + *
+     * A mobile.
+     * 
+ * + * MOBILE = 2; + */ + MOBILE(2), + /** + * + * + *
+     * A fax.
+     * 
+ * + * FAX = 3; + */ + FAX(3), + /** + * + * + *
+     * A pager.
+     * 
+ * + * PAGER = 4; + */ + PAGER(4), + /** + * + * + *
+     * A TTY (test telephone) or TDD (telecommunication device for the deaf).
+     * 
+ * + * TTY_OR_TDD = 5; + */ + TTY_OR_TDD(5), + /** + * + * + *
+     * A voicemail.
+     * 
+ * + * VOICEMAIL = 6; + */ + VOICEMAIL(6), + /** + * + * + *
+     * A virtual telephone number is a number that can be routed to another
+     * number and managed by the user via Web, SMS, IVR, etc.  It is associated
+     * with a particular person, and may be routed to either a MOBILE or
+     * LANDLINE number. The phone usage (see ContactInfoUsage above) should be
+     * set to PERSONAL for these phone types. Some more information can be
+     * found here: http://en.wikipedia.org/wiki/Personal_Numbers
+     * 
+ * + * VIRTUAL = 7; + */ + VIRTUAL(7), + /** + * + * + *
+     * Voice over IP numbers. This includes TSoIP (Telephony Service over IP).
+     * 
+ * + * VOIP = 8; + */ + VOIP(8), + /** + * + * + *
+     * In some regions (e.g. the USA), it is impossible to distinguish between
+     * fixed-line and mobile numbers by looking at the phone number itself.
+     * 
+ * + * MOBILE_OR_LANDLINE = 9; + */ + MOBILE_OR_LANDLINE(9), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value.
+     * 
+ * + * PHONE_TYPE_UNSPECIFIED = 0; + */ + public static final int PHONE_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * A landline.
+     * 
+ * + * LANDLINE = 1; + */ + public static final int LANDLINE_VALUE = 1; + /** + * + * + *
+     * A mobile.
+     * 
+ * + * MOBILE = 2; + */ + public static final int MOBILE_VALUE = 2; + /** + * + * + *
+     * A fax.
+     * 
+ * + * FAX = 3; + */ + public static final int FAX_VALUE = 3; + /** + * + * + *
+     * A pager.
+     * 
+ * + * PAGER = 4; + */ + public static final int PAGER_VALUE = 4; + /** + * + * + *
+     * A TTY (test telephone) or TDD (telecommunication device for the deaf).
+     * 
+ * + * TTY_OR_TDD = 5; + */ + public static final int TTY_OR_TDD_VALUE = 5; + /** + * + * + *
+     * A voicemail.
+     * 
+ * + * VOICEMAIL = 6; + */ + public static final int VOICEMAIL_VALUE = 6; + /** + * + * + *
+     * A virtual telephone number is a number that can be routed to another
+     * number and managed by the user via Web, SMS, IVR, etc.  It is associated
+     * with a particular person, and may be routed to either a MOBILE or
+     * LANDLINE number. The phone usage (see ContactInfoUsage above) should be
+     * set to PERSONAL for these phone types. Some more information can be
+     * found here: http://en.wikipedia.org/wiki/Personal_Numbers
+     * 
+ * + * VIRTUAL = 7; + */ + public static final int VIRTUAL_VALUE = 7; + /** + * + * + *
+     * Voice over IP numbers. This includes TSoIP (Telephony Service over IP).
+     * 
+ * + * VOIP = 8; + */ + public static final int VOIP_VALUE = 8; + /** + * + * + *
+     * In some regions (e.g. the USA), it is impossible to distinguish between
+     * fixed-line and mobile numbers by looking at the phone number itself.
+     * 
+ * + * MOBILE_OR_LANDLINE = 9; + */ + public static final int MOBILE_OR_LANDLINE_VALUE = 9; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static PhoneType valueOf(int value) { + return forNumber(value); + } + + public static PhoneType forNumber(int value) { + switch (value) { + case 0: + return PHONE_TYPE_UNSPECIFIED; + case 1: + return LANDLINE; + case 2: + return MOBILE; + case 3: + return FAX; + case 4: + return PAGER; + case 5: + return TTY_OR_TDD; + case 6: + return VOICEMAIL; + case 7: + return VIRTUAL; + case 8: + return VOIP; + case 9: + return MOBILE_OR_LANDLINE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PhoneType findValueByNumber(int number) { + return PhoneType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.Phone.getDescriptor().getEnumTypes().get(0); + } + + private static final PhoneType[] VALUES = values(); + + public static PhoneType 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()]; + } + + private final int value; + + private PhoneType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.Phone.PhoneType) + } + + public static final int USAGE_FIELD_NUMBER = 1; + private int usage_; + /** + * + * + *
+   * Optional.
+   * The usage of the phone. For example, SCHOOL, WORK, PERSONAL.
+   * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public int getUsageValue() { + return usage_; + } + /** + * + * + *
+   * Optional.
+   * The usage of the phone. For example, SCHOOL, WORK, PERSONAL.
+   * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public com.google.cloud.talent.v4beta1.ContactInfoUsage getUsage() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.ContactInfoUsage result = + com.google.cloud.talent.v4beta1.ContactInfoUsage.valueOf(usage_); + return result == null ? com.google.cloud.talent.v4beta1.ContactInfoUsage.UNRECOGNIZED : result; + } + + public static final int TYPE_FIELD_NUMBER = 2; + private int type_; + /** + * + * + *
+   * Optional.
+   * The phone type. For example, LANDLINE, MOBILE, FAX.
+   * 
+ * + * .google.cloud.talent.v4beta1.Phone.PhoneType type = 2; + */ + public int getTypeValue() { + return type_; + } + /** + * + * + *
+   * Optional.
+   * The phone type. For example, LANDLINE, MOBILE, FAX.
+   * 
+ * + * .google.cloud.talent.v4beta1.Phone.PhoneType type = 2; + */ + public com.google.cloud.talent.v4beta1.Phone.PhoneType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.Phone.PhoneType result = + com.google.cloud.talent.v4beta1.Phone.PhoneType.valueOf(type_); + return result == null ? com.google.cloud.talent.v4beta1.Phone.PhoneType.UNRECOGNIZED : result; + } + + public static final int NUMBER_FIELD_NUMBER = 3; + private volatile java.lang.Object number_; + /** + * + * + *
+   * Optional.
+   * Phone number.
+   * Any phone formats are supported and only exact matches are performed on
+   * searches. For example, if a phone number in profile is provided in the
+   * format of "(xxx)xxx-xxxx", in profile searches the same phone format
+   * has to be provided.
+   * Number of characters allowed is 20.
+   * 
+ * + * string number = 3; + */ + public java.lang.String getNumber() { + java.lang.Object ref = number_; + 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(); + number_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * Phone number.
+   * Any phone formats are supported and only exact matches are performed on
+   * searches. For example, if a phone number in profile is provided in the
+   * format of "(xxx)xxx-xxxx", in profile searches the same phone format
+   * has to be provided.
+   * Number of characters allowed is 20.
+   * 
+ * + * string number = 3; + */ + public com.google.protobuf.ByteString getNumberBytes() { + java.lang.Object ref = number_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + number_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WHEN_AVAILABLE_FIELD_NUMBER = 4; + private volatile java.lang.Object whenAvailable_; + /** + * + * + *
+   * Optional.
+   * When this number is available. Any descriptive string is expected.
+   * Number of characters allowed is 100.
+   * 
+ * + * string when_available = 4; + */ + public java.lang.String getWhenAvailable() { + java.lang.Object ref = whenAvailable_; + 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(); + whenAvailable_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * When this number is available. Any descriptive string is expected.
+   * Number of characters allowed is 100.
+   * 
+ * + * string when_available = 4; + */ + public com.google.protobuf.ByteString getWhenAvailableBytes() { + java.lang.Object ref = whenAvailable_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + whenAvailable_ = 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 (usage_ + != com.google.cloud.talent.v4beta1.ContactInfoUsage.CONTACT_INFO_USAGE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, usage_); + } + if (type_ + != com.google.cloud.talent.v4beta1.Phone.PhoneType.PHONE_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, type_); + } + if (!getNumberBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, number_); + } + if (!getWhenAvailableBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, whenAvailable_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (usage_ + != com.google.cloud.talent.v4beta1.ContactInfoUsage.CONTACT_INFO_USAGE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, usage_); + } + if (type_ + != com.google.cloud.talent.v4beta1.Phone.PhoneType.PHONE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); + } + if (!getNumberBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, number_); + } + if (!getWhenAvailableBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, whenAvailable_); + } + size += unknownFields.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.cloud.talent.v4beta1.Phone)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Phone other = (com.google.cloud.talent.v4beta1.Phone) obj; + + boolean result = true; + result = result && usage_ == other.usage_; + result = result && type_ == other.type_; + result = result && getNumber().equals(other.getNumber()); + result = result && getWhenAvailable().equals(other.getWhenAvailable()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USAGE_FIELD_NUMBER; + hash = (53 * hash) + usage_; + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getNumber().hashCode(); + hash = (37 * hash) + WHEN_AVAILABLE_FIELD_NUMBER; + hash = (53 * hash) + getWhenAvailable().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Phone parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Phone parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Phone parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Phone 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.cloud.talent.v4beta1.Phone parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Phone parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Phone parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Phone 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.cloud.talent.v4beta1.Phone parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Phone 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.cloud.talent.v4beta1.Phone parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Phone 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.cloud.talent.v4beta1.Phone 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; + } + /** + * + * + *
+   * Resource that represents a person's telephone number.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Phone} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Phone) + com.google.cloud.talent.v4beta1.PhoneOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Phone_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Phone_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Phone.class, + com.google.cloud.talent.v4beta1.Phone.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Phone.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + usage_ = 0; + + type_ = 0; + + number_ = ""; + + whenAvailable_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Phone_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Phone getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Phone.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Phone build() { + com.google.cloud.talent.v4beta1.Phone result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Phone buildPartial() { + com.google.cloud.talent.v4beta1.Phone result = + new com.google.cloud.talent.v4beta1.Phone(this); + result.usage_ = usage_; + result.type_ = type_; + result.number_ = number_; + result.whenAvailable_ = whenAvailable_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Phone) { + return mergeFrom((com.google.cloud.talent.v4beta1.Phone) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Phone other) { + if (other == com.google.cloud.talent.v4beta1.Phone.getDefaultInstance()) return this; + if (other.usage_ != 0) { + setUsageValue(other.getUsageValue()); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getNumber().isEmpty()) { + number_ = other.number_; + onChanged(); + } + if (!other.getWhenAvailable().isEmpty()) { + whenAvailable_ = other.whenAvailable_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.Phone parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.Phone) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int usage_ = 0; + /** + * + * + *
+     * Optional.
+     * The usage of the phone. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public int getUsageValue() { + return usage_; + } + /** + * + * + *
+     * Optional.
+     * The usage of the phone. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public Builder setUsageValue(int value) { + usage_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The usage of the phone. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public com.google.cloud.talent.v4beta1.ContactInfoUsage getUsage() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.ContactInfoUsage result = + com.google.cloud.talent.v4beta1.ContactInfoUsage.valueOf(usage_); + return result == null + ? com.google.cloud.talent.v4beta1.ContactInfoUsage.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional.
+     * The usage of the phone. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public Builder setUsage(com.google.cloud.talent.v4beta1.ContactInfoUsage value) { + if (value == null) { + throw new NullPointerException(); + } + + usage_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The usage of the phone. For example, SCHOOL, WORK, PERSONAL.
+     * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + public Builder clearUsage() { + + usage_ = 0; + onChanged(); + return this; + } + + private int type_ = 0; + /** + * + * + *
+     * Optional.
+     * The phone type. For example, LANDLINE, MOBILE, FAX.
+     * 
+ * + * .google.cloud.talent.v4beta1.Phone.PhoneType type = 2; + */ + public int getTypeValue() { + return type_; + } + /** + * + * + *
+     * Optional.
+     * The phone type. For example, LANDLINE, MOBILE, FAX.
+     * 
+ * + * .google.cloud.talent.v4beta1.Phone.PhoneType type = 2; + */ + public Builder setTypeValue(int value) { + type_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The phone type. For example, LANDLINE, MOBILE, FAX.
+     * 
+ * + * .google.cloud.talent.v4beta1.Phone.PhoneType type = 2; + */ + public com.google.cloud.talent.v4beta1.Phone.PhoneType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.Phone.PhoneType result = + com.google.cloud.talent.v4beta1.Phone.PhoneType.valueOf(type_); + return result == null ? com.google.cloud.talent.v4beta1.Phone.PhoneType.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Optional.
+     * The phone type. For example, LANDLINE, MOBILE, FAX.
+     * 
+ * + * .google.cloud.talent.v4beta1.Phone.PhoneType type = 2; + */ + public Builder setType(com.google.cloud.talent.v4beta1.Phone.PhoneType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The phone type. For example, LANDLINE, MOBILE, FAX.
+     * 
+ * + * .google.cloud.talent.v4beta1.Phone.PhoneType type = 2; + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private java.lang.Object number_ = ""; + /** + * + * + *
+     * Optional.
+     * Phone number.
+     * Any phone formats are supported and only exact matches are performed on
+     * searches. For example, if a phone number in profile is provided in the
+     * format of "(xxx)xxx-xxxx", in profile searches the same phone format
+     * has to be provided.
+     * Number of characters allowed is 20.
+     * 
+ * + * string number = 3; + */ + public java.lang.String getNumber() { + java.lang.Object ref = number_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + number_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Phone number.
+     * Any phone formats are supported and only exact matches are performed on
+     * searches. For example, if a phone number in profile is provided in the
+     * format of "(xxx)xxx-xxxx", in profile searches the same phone format
+     * has to be provided.
+     * Number of characters allowed is 20.
+     * 
+ * + * string number = 3; + */ + public com.google.protobuf.ByteString getNumberBytes() { + java.lang.Object ref = number_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + number_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Phone number.
+     * Any phone formats are supported and only exact matches are performed on
+     * searches. For example, if a phone number in profile is provided in the
+     * format of "(xxx)xxx-xxxx", in profile searches the same phone format
+     * has to be provided.
+     * Number of characters allowed is 20.
+     * 
+ * + * string number = 3; + */ + public Builder setNumber(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + number_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Phone number.
+     * Any phone formats are supported and only exact matches are performed on
+     * searches. For example, if a phone number in profile is provided in the
+     * format of "(xxx)xxx-xxxx", in profile searches the same phone format
+     * has to be provided.
+     * Number of characters allowed is 20.
+     * 
+ * + * string number = 3; + */ + public Builder clearNumber() { + + number_ = getDefaultInstance().getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Phone number.
+     * Any phone formats are supported and only exact matches are performed on
+     * searches. For example, if a phone number in profile is provided in the
+     * format of "(xxx)xxx-xxxx", in profile searches the same phone format
+     * has to be provided.
+     * Number of characters allowed is 20.
+     * 
+ * + * string number = 3; + */ + public Builder setNumberBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + number_ = value; + onChanged(); + return this; + } + + private java.lang.Object whenAvailable_ = ""; + /** + * + * + *
+     * Optional.
+     * When this number is available. Any descriptive string is expected.
+     * Number of characters allowed is 100.
+     * 
+ * + * string when_available = 4; + */ + public java.lang.String getWhenAvailable() { + java.lang.Object ref = whenAvailable_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + whenAvailable_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * When this number is available. Any descriptive string is expected.
+     * Number of characters allowed is 100.
+     * 
+ * + * string when_available = 4; + */ + public com.google.protobuf.ByteString getWhenAvailableBytes() { + java.lang.Object ref = whenAvailable_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + whenAvailable_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * When this number is available. Any descriptive string is expected.
+     * Number of characters allowed is 100.
+     * 
+ * + * string when_available = 4; + */ + public Builder setWhenAvailable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + whenAvailable_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * When this number is available. Any descriptive string is expected.
+     * Number of characters allowed is 100.
+     * 
+ * + * string when_available = 4; + */ + public Builder clearWhenAvailable() { + + whenAvailable_ = getDefaultInstance().getWhenAvailable(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * When this number is available. Any descriptive string is expected.
+     * Number of characters allowed is 100.
+     * 
+ * + * string when_available = 4; + */ + public Builder setWhenAvailableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + whenAvailable_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Phone) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Phone) + private static final com.google.cloud.talent.v4beta1.Phone DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Phone(); + } + + public static com.google.cloud.talent.v4beta1.Phone getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Phone parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Phone(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.Phone getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PhoneOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PhoneOrBuilder.java new file mode 100644 index 000000000000..958d7d253301 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PhoneOrBuilder.java @@ -0,0 +1,114 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public interface PhoneOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Phone) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * The usage of the phone. For example, SCHOOL, WORK, PERSONAL.
+   * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + int getUsageValue(); + /** + * + * + *
+   * Optional.
+   * The usage of the phone. For example, SCHOOL, WORK, PERSONAL.
+   * 
+ * + * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; + */ + com.google.cloud.talent.v4beta1.ContactInfoUsage getUsage(); + + /** + * + * + *
+   * Optional.
+   * The phone type. For example, LANDLINE, MOBILE, FAX.
+   * 
+ * + * .google.cloud.talent.v4beta1.Phone.PhoneType type = 2; + */ + int getTypeValue(); + /** + * + * + *
+   * Optional.
+   * The phone type. For example, LANDLINE, MOBILE, FAX.
+   * 
+ * + * .google.cloud.talent.v4beta1.Phone.PhoneType type = 2; + */ + com.google.cloud.talent.v4beta1.Phone.PhoneType getType(); + + /** + * + * + *
+   * Optional.
+   * Phone number.
+   * Any phone formats are supported and only exact matches are performed on
+   * searches. For example, if a phone number in profile is provided in the
+   * format of "(xxx)xxx-xxxx", in profile searches the same phone format
+   * has to be provided.
+   * Number of characters allowed is 20.
+   * 
+ * + * string number = 3; + */ + java.lang.String getNumber(); + /** + * + * + *
+   * Optional.
+   * Phone number.
+   * Any phone formats are supported and only exact matches are performed on
+   * searches. For example, if a phone number in profile is provided in the
+   * format of "(xxx)xxx-xxxx", in profile searches the same phone format
+   * has to be provided.
+   * Number of characters allowed is 20.
+   * 
+ * + * string number = 3; + */ + com.google.protobuf.ByteString getNumberBytes(); + + /** + * + * + *
+   * Optional.
+   * When this number is available. Any descriptive string is expected.
+   * Number of characters allowed is 100.
+   * 
+ * + * string when_available = 4; + */ + java.lang.String getWhenAvailable(); + /** + * + * + *
+   * Optional.
+   * When this number is available. Any descriptive string is expected.
+   * Number of characters allowed is 100.
+   * 
+ * + * string when_available = 4; + */ + com.google.protobuf.ByteString getWhenAvailableBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PostingRegion.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PostingRegion.java new file mode 100644 index 000000000000..f270640dcded --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PostingRegion.java @@ -0,0 +1,205 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * An enum that represents the job posting region. In most cases, job postings
+ * don't need to specify a region. If a region is given, jobs are
+ * eligible for searches in the specified region.
+ * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.PostingRegion} + */ +public enum PostingRegion implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * If the region is unspecified, the job is only returned if it
+   * matches the [LocationFilter][google.cloud.talent.v4beta1.LocationFilter].
+   * 
+ * + * POSTING_REGION_UNSPECIFIED = 0; + */ + POSTING_REGION_UNSPECIFIED(0), + /** + * + * + *
+   * In addition to exact location matching, job posting is returned when the
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in the search
+   * query is in the same administrative area as the returned job posting. For
+   * example, if a `ADMINISTRATIVE_AREA` job is posted in "CA, USA", it's
+   * returned if [LocationFilter][google.cloud.talent.v4beta1.LocationFilter]
+   * has "Mountain View".
+   * Administrative area refers to top-level administrative subdivision of this
+   * country. For example, US state, IT region, UK constituent nation and
+   * JP prefecture.
+   * 
+ * + * ADMINISTRATIVE_AREA = 1; + */ + ADMINISTRATIVE_AREA(1), + /** + * + * + *
+   * In addition to exact location matching, job is returned when
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in search
+   * query is in the same country as this job. For example, if a `NATION_WIDE`
+   * job is posted in "USA", it's returned if
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] has 'Mountain
+   * View'.
+   * 
+ * + * NATION = 2; + */ + NATION(2), + /** + * + * + *
+   * Job allows employees to work remotely (telecommute).
+   * If [locations][] are provided with this value, the job is
+   * considered as having a location, but telecommuting is allowed.
+   * 
+ * + * TELECOMMUTE = 3; + */ + TELECOMMUTE(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * If the region is unspecified, the job is only returned if it
+   * matches the [LocationFilter][google.cloud.talent.v4beta1.LocationFilter].
+   * 
+ * + * POSTING_REGION_UNSPECIFIED = 0; + */ + public static final int POSTING_REGION_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * In addition to exact location matching, job posting is returned when the
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in the search
+   * query is in the same administrative area as the returned job posting. For
+   * example, if a `ADMINISTRATIVE_AREA` job is posted in "CA, USA", it's
+   * returned if [LocationFilter][google.cloud.talent.v4beta1.LocationFilter]
+   * has "Mountain View".
+   * Administrative area refers to top-level administrative subdivision of this
+   * country. For example, US state, IT region, UK constituent nation and
+   * JP prefecture.
+   * 
+ * + * ADMINISTRATIVE_AREA = 1; + */ + public static final int ADMINISTRATIVE_AREA_VALUE = 1; + /** + * + * + *
+   * In addition to exact location matching, job is returned when
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in search
+   * query is in the same country as this job. For example, if a `NATION_WIDE`
+   * job is posted in "USA", it's returned if
+   * [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] has 'Mountain
+   * View'.
+   * 
+ * + * NATION = 2; + */ + public static final int NATION_VALUE = 2; + /** + * + * + *
+   * Job allows employees to work remotely (telecommute).
+   * If [locations][] are provided with this value, the job is
+   * considered as having a location, but telecommuting is allowed.
+   * 
+ * + * TELECOMMUTE = 3; + */ + public static final int TELECOMMUTE_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static PostingRegion valueOf(int value) { + return forNumber(value); + } + + public static PostingRegion forNumber(int value) { + switch (value) { + case 0: + return POSTING_REGION_UNSPECIFIED; + case 1: + return ADMINISTRATIVE_AREA; + case 2: + return NATION; + case 3: + return TELECOMMUTE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PostingRegion findValueByNumber(int number) { + return PostingRegion.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto.getDescriptor().getEnumTypes().get(6); + } + + private static final PostingRegion[] VALUES = values(); + + public static PostingRegion 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()]; + } + + private final int value; + + private PostingRegion(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.PostingRegion) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Profile.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Profile.java new file mode 100644 index 000000000000..96236e9874e4 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Profile.java @@ -0,0 +1,11834 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * A resource that represents the profile for a job candidate (also referred to
+ * as a "single-source profile"). A profile belongs to a
+ * [Tenant][google.cloud.talent.v4beta1.Tenant], which is an isolated instance
+ * of the customer that owns the profile.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Profile} + */ +public final class Profile extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Profile) + ProfileOrBuilder { + private static final long serialVersionUID = 0L; + // Use Profile.newBuilder() to construct. + private Profile(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Profile() { + name_ = ""; + externalId_ = ""; + source_ = ""; + uri_ = ""; + groupId_ = ""; + resumeHrxml_ = ""; + personNames_ = java.util.Collections.emptyList(); + addresses_ = java.util.Collections.emptyList(); + emailAddresses_ = java.util.Collections.emptyList(); + phoneNumbers_ = java.util.Collections.emptyList(); + personalUris_ = java.util.Collections.emptyList(); + additionalContactInfo_ = java.util.Collections.emptyList(); + employmentRecords_ = java.util.Collections.emptyList(); + educationRecords_ = java.util.Collections.emptyList(); + skills_ = java.util.Collections.emptyList(); + activities_ = java.util.Collections.emptyList(); + publications_ = java.util.Collections.emptyList(); + patents_ = java.util.Collections.emptyList(); + certifications_ = java.util.Collections.emptyList(); + jobApplications_ = java.util.Collections.emptyList(); + recruitingNotes_ = java.util.Collections.emptyList(); + processed_ = false; + keywordSnippet_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Profile( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + externalId_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + source_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + uri_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + groupId_ = s; + break; + } + case 50: + { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (isHirable_ != null) { + subBuilder = isHirable_.toBuilder(); + } + isHirable_ = + input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(isHirable_); + isHirable_ = subBuilder.buildPartial(); + } + + break; + } + case 58: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; + } + case 66: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; + } + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + + resumeHrxml_ = s; + break; + } + case 90: + { + if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + personNames_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000200; + } + personNames_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.PersonName.parser(), extensionRegistry)); + break; + } + case 98: + { + if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + addresses_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000400; + } + addresses_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.Address.parser(), extensionRegistry)); + break; + } + case 106: + { + if (!((mutable_bitField0_ & 0x00000800) == 0x00000800)) { + emailAddresses_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000800; + } + emailAddresses_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.Email.parser(), extensionRegistry)); + break; + } + case 114: + { + if (!((mutable_bitField0_ & 0x00001000) == 0x00001000)) { + phoneNumbers_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00001000; + } + phoneNumbers_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.Phone.parser(), extensionRegistry)); + break; + } + case 122: + { + if (!((mutable_bitField0_ & 0x00002000) == 0x00002000)) { + personalUris_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00002000; + } + personalUris_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.PersonalUri.parser(), extensionRegistry)); + break; + } + case 130: + { + if (!((mutable_bitField0_ & 0x00004000) == 0x00004000)) { + additionalContactInfo_ = + new java.util.ArrayList< + com.google.cloud.talent.v4beta1.AdditionalContactInfo>(); + mutable_bitField0_ |= 0x00004000; + } + additionalContactInfo_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.AdditionalContactInfo.parser(), + extensionRegistry)); + break; + } + case 138: + { + if (!((mutable_bitField0_ & 0x00008000) == 0x00008000)) { + employmentRecords_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00008000; + } + employmentRecords_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.EmploymentRecord.parser(), + extensionRegistry)); + break; + } + case 146: + { + if (!((mutable_bitField0_ & 0x00010000) == 0x00010000)) { + educationRecords_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00010000; + } + educationRecords_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.EducationRecord.parser(), extensionRegistry)); + break; + } + case 154: + { + if (!((mutable_bitField0_ & 0x00020000) == 0x00020000)) { + skills_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00020000; + } + skills_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.Skill.parser(), extensionRegistry)); + break; + } + case 162: + { + if (!((mutable_bitField0_ & 0x00040000) == 0x00040000)) { + activities_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00040000; + } + activities_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.Activity.parser(), extensionRegistry)); + break; + } + case 170: + { + if (!((mutable_bitField0_ & 0x00080000) == 0x00080000)) { + publications_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00080000; + } + publications_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.Publication.parser(), extensionRegistry)); + break; + } + case 178: + { + if (!((mutable_bitField0_ & 0x00100000) == 0x00100000)) { + patents_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00100000; + } + patents_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.Patent.parser(), extensionRegistry)); + break; + } + case 186: + { + if (!((mutable_bitField0_ & 0x00200000) == 0x00200000)) { + certifications_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00200000; + } + certifications_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.Certification.parser(), extensionRegistry)); + break; + } + case 194: + { + if (!((mutable_bitField0_ & 0x00400000) == 0x00400000)) { + jobApplications_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00400000; + } + jobApplications_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.JobApplication.parser(), extensionRegistry)); + break; + } + case 202: + { + if (!((mutable_bitField0_ & 0x00800000) == 0x00800000)) { + recruitingNotes_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00800000; + } + recruitingNotes_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.RecruitingNote.parser(), extensionRegistry)); + break; + } + case 210: + { + if (!((mutable_bitField0_ & 0x01000000) == 0x01000000)) { + customAttributes_ = + com.google.protobuf.MapField.newMapField( + CustomAttributesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x01000000; + } + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> + customAttributes__ = + input.readMessage( + CustomAttributesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + customAttributes_ + .getMutableMap() + .put(customAttributes__.getKey(), customAttributes__.getValue()); + break; + } + case 216: + { + processed_ = input.readBool(); + break; + } + case 226: + { + java.lang.String s = input.readStringRequireUtf8(); + + keywordSnippet_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + personNames_ = java.util.Collections.unmodifiableList(personNames_); + } + if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + addresses_ = java.util.Collections.unmodifiableList(addresses_); + } + if (((mutable_bitField0_ & 0x00000800) == 0x00000800)) { + emailAddresses_ = java.util.Collections.unmodifiableList(emailAddresses_); + } + if (((mutable_bitField0_ & 0x00001000) == 0x00001000)) { + phoneNumbers_ = java.util.Collections.unmodifiableList(phoneNumbers_); + } + if (((mutable_bitField0_ & 0x00002000) == 0x00002000)) { + personalUris_ = java.util.Collections.unmodifiableList(personalUris_); + } + if (((mutable_bitField0_ & 0x00004000) == 0x00004000)) { + additionalContactInfo_ = java.util.Collections.unmodifiableList(additionalContactInfo_); + } + if (((mutable_bitField0_ & 0x00008000) == 0x00008000)) { + employmentRecords_ = java.util.Collections.unmodifiableList(employmentRecords_); + } + if (((mutable_bitField0_ & 0x00010000) == 0x00010000)) { + educationRecords_ = java.util.Collections.unmodifiableList(educationRecords_); + } + if (((mutable_bitField0_ & 0x00020000) == 0x00020000)) { + skills_ = java.util.Collections.unmodifiableList(skills_); + } + if (((mutable_bitField0_ & 0x00040000) == 0x00040000)) { + activities_ = java.util.Collections.unmodifiableList(activities_); + } + if (((mutable_bitField0_ & 0x00080000) == 0x00080000)) { + publications_ = java.util.Collections.unmodifiableList(publications_); + } + if (((mutable_bitField0_ & 0x00100000) == 0x00100000)) { + patents_ = java.util.Collections.unmodifiableList(patents_); + } + if (((mutable_bitField0_ & 0x00200000) == 0x00200000)) { + certifications_ = java.util.Collections.unmodifiableList(certifications_); + } + if (((mutable_bitField0_ & 0x00400000) == 0x00400000)) { + jobApplications_ = java.util.Collections.unmodifiableList(jobApplications_); + } + if (((mutable_bitField0_ & 0x00800000) == 0x00800000)) { + recruitingNotes_ = java.util.Collections.unmodifiableList(recruitingNotes_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Profile_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 26: + return internalGetCustomAttributes(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Profile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Profile.class, + com.google.cloud.talent.v4beta1.Profile.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required during profile update.
+   * Resource name assigned to a profile by the API.
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+   * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required during profile update.
+   * Resource name assigned to a profile by the API.
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+   * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXTERNAL_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object externalId_; + /** + * + * + *
+   * Optional.
+   * Profile's id in client system if available.
+   * The maximum number of bytes allowed is 100.
+   * 
+ * + * string external_id = 2; + */ + public java.lang.String getExternalId() { + java.lang.Object ref = externalId_; + 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(); + externalId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * Profile's id in client system if available.
+   * The maximum number of bytes allowed is 100.
+   * 
+ * + * string external_id = 2; + */ + public com.google.protobuf.ByteString getExternalIdBytes() { + java.lang.Object ref = externalId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + externalId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_FIELD_NUMBER = 3; + private volatile java.lang.Object source_; + /** + * + * + *
+   * Optional.
+   * The source description indicating where the profile is acquired.
+   * For example, if a candidate profile is acquired from a resume, the user can
+   * input "resume" here to indicate the source.
+   * The maximum number of bytes allowed is 100.
+   * 
+ * + * string source = 3; + */ + public java.lang.String getSource() { + java.lang.Object ref = source_; + 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(); + source_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The source description indicating where the profile is acquired.
+   * For example, if a candidate profile is acquired from a resume, the user can
+   * input "resume" here to indicate the source.
+   * The maximum number of bytes allowed is 100.
+   * 
+ * + * string source = 3; + */ + public com.google.protobuf.ByteString getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int URI_FIELD_NUMBER = 4; + private volatile java.lang.Object uri_; + /** + * + * + *
+   * Optional.
+   * The URI set by clients that links to this profile's client-side copy.
+   * The maximum number of bytes allowed is 4000.
+   * 
+ * + * string uri = 4; + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + 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(); + uri_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The URI set by clients that links to this profile's client-side copy.
+   * The maximum number of bytes allowed is 4000.
+   * 
+ * + * string uri = 4; + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GROUP_ID_FIELD_NUMBER = 5; + private volatile java.lang.Object groupId_; + /** + * + * + *
+   * Optional.
+   * The cluster id of the profile to associate with other profile(s) for the
+   * same candidate.
+   * A random UUID is assigned if
+   * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't provided. To
+   * ensure global uniqueness, customized
+   * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't supported.
+   * If [group_id][google.cloud.talent.v4beta1.Profile.group_id] is set, there
+   * must be at least one other profile with the same system generated
+   * [group_id][google.cloud.talent.v4beta1.Profile.group_id], otherwise an
+   * error is thrown.
+   * This is used to link multiple profiles to the same candidate. For example,
+   * a client has a candidate with two profiles, where one was created recently
+   * and the other one was created 5 years ago. These two profiles may be very
+   * different. The clients can create the first profile and get a generated
+   * [group_id][google.cloud.talent.v4beta1.Profile.group_id], and assign it
+   * when the second profile is created, indicating these two profiles are
+   * referring to the same candidate.
+   * 
+ * + * string group_id = 5; + */ + public java.lang.String getGroupId() { + java.lang.Object ref = groupId_; + 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(); + groupId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The cluster id of the profile to associate with other profile(s) for the
+   * same candidate.
+   * A random UUID is assigned if
+   * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't provided. To
+   * ensure global uniqueness, customized
+   * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't supported.
+   * If [group_id][google.cloud.talent.v4beta1.Profile.group_id] is set, there
+   * must be at least one other profile with the same system generated
+   * [group_id][google.cloud.talent.v4beta1.Profile.group_id], otherwise an
+   * error is thrown.
+   * This is used to link multiple profiles to the same candidate. For example,
+   * a client has a candidate with two profiles, where one was created recently
+   * and the other one was created 5 years ago. These two profiles may be very
+   * different. The clients can create the first profile and get a generated
+   * [group_id][google.cloud.talent.v4beta1.Profile.group_id], and assign it
+   * when the second profile is created, indicating these two profiles are
+   * referring to the same candidate.
+   * 
+ * + * string group_id = 5; + */ + public com.google.protobuf.ByteString getGroupIdBytes() { + java.lang.Object ref = groupId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + groupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IS_HIRABLE_FIELD_NUMBER = 6; + private com.google.protobuf.BoolValue isHirable_; + /** + * + * + *
+   * Optional.
+   * Indicates the hirable status of the candidate.
+   * 
+ * + * .google.protobuf.BoolValue is_hirable = 6; + */ + public boolean hasIsHirable() { + return isHirable_ != null; + } + /** + * + * + *
+   * Optional.
+   * Indicates the hirable status of the candidate.
+   * 
+ * + * .google.protobuf.BoolValue is_hirable = 6; + */ + public com.google.protobuf.BoolValue getIsHirable() { + return isHirable_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isHirable_; + } + /** + * + * + *
+   * Optional.
+   * Indicates the hirable status of the candidate.
+   * 
+ * + * .google.protobuf.BoolValue is_hirable = 6; + */ + public com.google.protobuf.BoolValueOrBuilder getIsHirableOrBuilder() { + return getIsHirable(); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Optional.
+   * The timestamp when the profile was first created at this source.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7; + */ + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Optional.
+   * The timestamp when the profile was first created at this source.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7; + */ + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Optional.
+   * The timestamp when the profile was first created at this source.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Optional.
+   * The timestamp when the profile was last updated at this source.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8; + */ + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + * + * + *
+   * Optional.
+   * The timestamp when the profile was last updated at this source.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8; + */ + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Optional.
+   * The timestamp when the profile was last updated at this source.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + public static final int RESUME_HRXML_FIELD_NUMBER = 10; + private volatile java.lang.Object resumeHrxml_; + /** + * + * + *
+   * Optional.
+   * The profile contents in HR-XML format.
+   * See http://schemas.liquid-technologies.com/hr-xml/2007-04-15/ for more
+   * information about Human Resources XML.
+   * Users can create a profile with only
+   * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] field. For
+   * example, the API parses the
+   * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] and
+   * creates a profile with all structured fields populated, for example.
+   * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord],
+   * [EducationRecord][google.cloud.talent.v4beta1.EducationRecord], etc. An
+   * error is thrown if the
+   * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] can't be
+   * parsed.
+   * If the [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] is
+   * provided during profile creation or update, any other structured data
+   * provided in the profile is ignored. The API populates these fields by
+   * parsing the HR-XML.
+   * 
+ * + * string resume_hrxml = 10; + */ + public java.lang.String getResumeHrxml() { + java.lang.Object ref = resumeHrxml_; + 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(); + resumeHrxml_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The profile contents in HR-XML format.
+   * See http://schemas.liquid-technologies.com/hr-xml/2007-04-15/ for more
+   * information about Human Resources XML.
+   * Users can create a profile with only
+   * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] field. For
+   * example, the API parses the
+   * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] and
+   * creates a profile with all structured fields populated, for example.
+   * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord],
+   * [EducationRecord][google.cloud.talent.v4beta1.EducationRecord], etc. An
+   * error is thrown if the
+   * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] can't be
+   * parsed.
+   * If the [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] is
+   * provided during profile creation or update, any other structured data
+   * provided in the profile is ignored. The API populates these fields by
+   * parsing the HR-XML.
+   * 
+ * + * string resume_hrxml = 10; + */ + public com.google.protobuf.ByteString getResumeHrxmlBytes() { + java.lang.Object ref = resumeHrxml_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resumeHrxml_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PERSON_NAMES_FIELD_NUMBER = 11; + private java.util.List personNames_; + /** + * + * + *
+   * Optional.
+   * The names of the candidate this profile references.
+   * Currently only one person name is supported.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public java.util.List getPersonNamesList() { + return personNames_; + } + /** + * + * + *
+   * Optional.
+   * The names of the candidate this profile references.
+   * Currently only one person name is supported.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public java.util.List + getPersonNamesOrBuilderList() { + return personNames_; + } + /** + * + * + *
+   * Optional.
+   * The names of the candidate this profile references.
+   * Currently only one person name is supported.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public int getPersonNamesCount() { + return personNames_.size(); + } + /** + * + * + *
+   * Optional.
+   * The names of the candidate this profile references.
+   * Currently only one person name is supported.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public com.google.cloud.talent.v4beta1.PersonName getPersonNames(int index) { + return personNames_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The names of the candidate this profile references.
+   * Currently only one person name is supported.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public com.google.cloud.talent.v4beta1.PersonNameOrBuilder getPersonNamesOrBuilder(int index) { + return personNames_.get(index); + } + + public static final int ADDRESSES_FIELD_NUMBER = 12; + private java.util.List addresses_; + /** + * + * + *
+   * Optional.
+   * The candidate's postal addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public java.util.List getAddressesList() { + return addresses_; + } + /** + * + * + *
+   * Optional.
+   * The candidate's postal addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public java.util.List + getAddressesOrBuilderList() { + return addresses_; + } + /** + * + * + *
+   * Optional.
+   * The candidate's postal addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public int getAddressesCount() { + return addresses_.size(); + } + /** + * + * + *
+   * Optional.
+   * The candidate's postal addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public com.google.cloud.talent.v4beta1.Address getAddresses(int index) { + return addresses_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The candidate's postal addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public com.google.cloud.talent.v4beta1.AddressOrBuilder getAddressesOrBuilder(int index) { + return addresses_.get(index); + } + + public static final int EMAIL_ADDRESSES_FIELD_NUMBER = 13; + private java.util.List emailAddresses_; + /** + * + * + *
+   * Optional.
+   * The candidate's email addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public java.util.List getEmailAddressesList() { + return emailAddresses_; + } + /** + * + * + *
+   * Optional.
+   * The candidate's email addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public java.util.List + getEmailAddressesOrBuilderList() { + return emailAddresses_; + } + /** + * + * + *
+   * Optional.
+   * The candidate's email addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public int getEmailAddressesCount() { + return emailAddresses_.size(); + } + /** + * + * + *
+   * Optional.
+   * The candidate's email addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public com.google.cloud.talent.v4beta1.Email getEmailAddresses(int index) { + return emailAddresses_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The candidate's email addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public com.google.cloud.talent.v4beta1.EmailOrBuilder getEmailAddressesOrBuilder(int index) { + return emailAddresses_.get(index); + } + + public static final int PHONE_NUMBERS_FIELD_NUMBER = 14; + private java.util.List phoneNumbers_; + /** + * + * + *
+   * Optional.
+   * The candidate's phone number(s).
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public java.util.List getPhoneNumbersList() { + return phoneNumbers_; + } + /** + * + * + *
+   * Optional.
+   * The candidate's phone number(s).
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public java.util.List + getPhoneNumbersOrBuilderList() { + return phoneNumbers_; + } + /** + * + * + *
+   * Optional.
+   * The candidate's phone number(s).
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public int getPhoneNumbersCount() { + return phoneNumbers_.size(); + } + /** + * + * + *
+   * Optional.
+   * The candidate's phone number(s).
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public com.google.cloud.talent.v4beta1.Phone getPhoneNumbers(int index) { + return phoneNumbers_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The candidate's phone number(s).
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public com.google.cloud.talent.v4beta1.PhoneOrBuilder getPhoneNumbersOrBuilder(int index) { + return phoneNumbers_.get(index); + } + + public static final int PERSONAL_URIS_FIELD_NUMBER = 15; + private java.util.List personalUris_; + /** + * + * + *
+   * Optional.
+   * The candidate's personal URIs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public java.util.List getPersonalUrisList() { + return personalUris_; + } + /** + * + * + *
+   * Optional.
+   * The candidate's personal URIs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public java.util.List + getPersonalUrisOrBuilderList() { + return personalUris_; + } + /** + * + * + *
+   * Optional.
+   * The candidate's personal URIs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public int getPersonalUrisCount() { + return personalUris_.size(); + } + /** + * + * + *
+   * Optional.
+   * The candidate's personal URIs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public com.google.cloud.talent.v4beta1.PersonalUri getPersonalUris(int index) { + return personalUris_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The candidate's personal URIs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public com.google.cloud.talent.v4beta1.PersonalUriOrBuilder getPersonalUrisOrBuilder(int index) { + return personalUris_.get(index); + } + + public static final int ADDITIONAL_CONTACT_INFO_FIELD_NUMBER = 16; + private java.util.List + additionalContactInfo_; + /** + * + * + *
+   * Optional.
+   * Available contact information besides
+   * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+   * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+   * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+   * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+   * example, Hang-out, Skype.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public java.util.List + getAdditionalContactInfoList() { + return additionalContactInfo_; + } + /** + * + * + *
+   * Optional.
+   * Available contact information besides
+   * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+   * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+   * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+   * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+   * example, Hang-out, Skype.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public java.util.List + getAdditionalContactInfoOrBuilderList() { + return additionalContactInfo_; + } + /** + * + * + *
+   * Optional.
+   * Available contact information besides
+   * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+   * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+   * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+   * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+   * example, Hang-out, Skype.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public int getAdditionalContactInfoCount() { + return additionalContactInfo_.size(); + } + /** + * + * + *
+   * Optional.
+   * Available contact information besides
+   * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+   * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+   * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+   * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+   * example, Hang-out, Skype.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public com.google.cloud.talent.v4beta1.AdditionalContactInfo getAdditionalContactInfo(int index) { + return additionalContactInfo_.get(index); + } + /** + * + * + *
+   * Optional.
+   * Available contact information besides
+   * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+   * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+   * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+   * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+   * example, Hang-out, Skype.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public com.google.cloud.talent.v4beta1.AdditionalContactInfoOrBuilder + getAdditionalContactInfoOrBuilder(int index) { + return additionalContactInfo_.get(index); + } + + public static final int EMPLOYMENT_RECORDS_FIELD_NUMBER = 17; + private java.util.List employmentRecords_; + /** + * + * + *
+   * Optional.
+   * The employment history records of the candidate. It's highly recommended
+   * to input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the employment records.
+   * * List different employment types separately, no matter how minor the
+   * change is.
+   * For example, only job title is changed from "software engineer" to "senior
+   * software engineer".
+   * * Provide
+   * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+   * for the current employment if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public java.util.List + getEmploymentRecordsList() { + return employmentRecords_; + } + /** + * + * + *
+   * Optional.
+   * The employment history records of the candidate. It's highly recommended
+   * to input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the employment records.
+   * * List different employment types separately, no matter how minor the
+   * change is.
+   * For example, only job title is changed from "software engineer" to "senior
+   * software engineer".
+   * * Provide
+   * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+   * for the current employment if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public java.util.List + getEmploymentRecordsOrBuilderList() { + return employmentRecords_; + } + /** + * + * + *
+   * Optional.
+   * The employment history records of the candidate. It's highly recommended
+   * to input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the employment records.
+   * * List different employment types separately, no matter how minor the
+   * change is.
+   * For example, only job title is changed from "software engineer" to "senior
+   * software engineer".
+   * * Provide
+   * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+   * for the current employment if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public int getEmploymentRecordsCount() { + return employmentRecords_.size(); + } + /** + * + * + *
+   * Optional.
+   * The employment history records of the candidate. It's highly recommended
+   * to input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the employment records.
+   * * List different employment types separately, no matter how minor the
+   * change is.
+   * For example, only job title is changed from "software engineer" to "senior
+   * software engineer".
+   * * Provide
+   * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+   * for the current employment if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public com.google.cloud.talent.v4beta1.EmploymentRecord getEmploymentRecords(int index) { + return employmentRecords_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The employment history records of the candidate. It's highly recommended
+   * to input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the employment records.
+   * * List different employment types separately, no matter how minor the
+   * change is.
+   * For example, only job title is changed from "software engineer" to "senior
+   * software engineer".
+   * * Provide
+   * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+   * for the current employment if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public com.google.cloud.talent.v4beta1.EmploymentRecordOrBuilder getEmploymentRecordsOrBuilder( + int index) { + return employmentRecords_.get(index); + } + + public static final int EDUCATION_RECORDS_FIELD_NUMBER = 18; + private java.util.List educationRecords_; + /** + * + * + *
+   * Optional.
+   * The education history record of the candidate. It's highly recommended to
+   * input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the education records.
+   * * List each education type separately, no matter how minor the change is.
+   * For example, the profile contains the education experience from the same
+   * school but different degrees.
+   * * Provide
+   * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+   * for the current education if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public java.util.List getEducationRecordsList() { + return educationRecords_; + } + /** + * + * + *
+   * Optional.
+   * The education history record of the candidate. It's highly recommended to
+   * input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the education records.
+   * * List each education type separately, no matter how minor the change is.
+   * For example, the profile contains the education experience from the same
+   * school but different degrees.
+   * * Provide
+   * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+   * for the current education if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public java.util.List + getEducationRecordsOrBuilderList() { + return educationRecords_; + } + /** + * + * + *
+   * Optional.
+   * The education history record of the candidate. It's highly recommended to
+   * input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the education records.
+   * * List each education type separately, no matter how minor the change is.
+   * For example, the profile contains the education experience from the same
+   * school but different degrees.
+   * * Provide
+   * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+   * for the current education if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public int getEducationRecordsCount() { + return educationRecords_.size(); + } + /** + * + * + *
+   * Optional.
+   * The education history record of the candidate. It's highly recommended to
+   * input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the education records.
+   * * List each education type separately, no matter how minor the change is.
+   * For example, the profile contains the education experience from the same
+   * school but different degrees.
+   * * Provide
+   * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+   * for the current education if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public com.google.cloud.talent.v4beta1.EducationRecord getEducationRecords(int index) { + return educationRecords_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The education history record of the candidate. It's highly recommended to
+   * input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the education records.
+   * * List each education type separately, no matter how minor the change is.
+   * For example, the profile contains the education experience from the same
+   * school but different degrees.
+   * * Provide
+   * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+   * for the current education if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public com.google.cloud.talent.v4beta1.EducationRecordOrBuilder getEducationRecordsOrBuilder( + int index) { + return educationRecords_.get(index); + } + + public static final int SKILLS_FIELD_NUMBER = 19; + private java.util.List skills_; + /** + * + * + *
+   * Optional.
+   * The skill set of the candidate. It's highly recommended to provide as
+   * much information as possible to help improve the search quality.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public java.util.List getSkillsList() { + return skills_; + } + /** + * + * + *
+   * Optional.
+   * The skill set of the candidate. It's highly recommended to provide as
+   * much information as possible to help improve the search quality.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public java.util.List + getSkillsOrBuilderList() { + return skills_; + } + /** + * + * + *
+   * Optional.
+   * The skill set of the candidate. It's highly recommended to provide as
+   * much information as possible to help improve the search quality.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public int getSkillsCount() { + return skills_.size(); + } + /** + * + * + *
+   * Optional.
+   * The skill set of the candidate. It's highly recommended to provide as
+   * much information as possible to help improve the search quality.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public com.google.cloud.talent.v4beta1.Skill getSkills(int index) { + return skills_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The skill set of the candidate. It's highly recommended to provide as
+   * much information as possible to help improve the search quality.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public com.google.cloud.talent.v4beta1.SkillOrBuilder getSkillsOrBuilder(int index) { + return skills_.get(index); + } + + public static final int ACTIVITIES_FIELD_NUMBER = 20; + private java.util.List activities_; + /** + * + * + *
+   * Optional.
+   * The individual or collaborative activities which the candidate has
+   * participated in, for example, open-source projects, class assignments that
+   * aren't listed in
+   * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public java.util.List getActivitiesList() { + return activities_; + } + /** + * + * + *
+   * Optional.
+   * The individual or collaborative activities which the candidate has
+   * participated in, for example, open-source projects, class assignments that
+   * aren't listed in
+   * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public java.util.List + getActivitiesOrBuilderList() { + return activities_; + } + /** + * + * + *
+   * Optional.
+   * The individual or collaborative activities which the candidate has
+   * participated in, for example, open-source projects, class assignments that
+   * aren't listed in
+   * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public int getActivitiesCount() { + return activities_.size(); + } + /** + * + * + *
+   * Optional.
+   * The individual or collaborative activities which the candidate has
+   * participated in, for example, open-source projects, class assignments that
+   * aren't listed in
+   * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public com.google.cloud.talent.v4beta1.Activity getActivities(int index) { + return activities_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The individual or collaborative activities which the candidate has
+   * participated in, for example, open-source projects, class assignments that
+   * aren't listed in
+   * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public com.google.cloud.talent.v4beta1.ActivityOrBuilder getActivitiesOrBuilder(int index) { + return activities_.get(index); + } + + public static final int PUBLICATIONS_FIELD_NUMBER = 21; + private java.util.List publications_; + /** + * + * + *
+   * Optional.
+   * The publications published by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public java.util.List getPublicationsList() { + return publications_; + } + /** + * + * + *
+   * Optional.
+   * The publications published by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public java.util.List + getPublicationsOrBuilderList() { + return publications_; + } + /** + * + * + *
+   * Optional.
+   * The publications published by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public int getPublicationsCount() { + return publications_.size(); + } + /** + * + * + *
+   * Optional.
+   * The publications published by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public com.google.cloud.talent.v4beta1.Publication getPublications(int index) { + return publications_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The publications published by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public com.google.cloud.talent.v4beta1.PublicationOrBuilder getPublicationsOrBuilder(int index) { + return publications_.get(index); + } + + public static final int PATENTS_FIELD_NUMBER = 22; + private java.util.List patents_; + /** + * + * + *
+   * Optional.
+   * The patents acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public java.util.List getPatentsList() { + return patents_; + } + /** + * + * + *
+   * Optional.
+   * The patents acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public java.util.List + getPatentsOrBuilderList() { + return patents_; + } + /** + * + * + *
+   * Optional.
+   * The patents acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public int getPatentsCount() { + return patents_.size(); + } + /** + * + * + *
+   * Optional.
+   * The patents acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public com.google.cloud.talent.v4beta1.Patent getPatents(int index) { + return patents_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The patents acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public com.google.cloud.talent.v4beta1.PatentOrBuilder getPatentsOrBuilder(int index) { + return patents_.get(index); + } + + public static final int CERTIFICATIONS_FIELD_NUMBER = 23; + private java.util.List certifications_; + /** + * + * + *
+   * Optional.
+   * The certifications acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public java.util.List getCertificationsList() { + return certifications_; + } + /** + * + * + *
+   * Optional.
+   * The certifications acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public java.util.List + getCertificationsOrBuilderList() { + return certifications_; + } + /** + * + * + *
+   * Optional.
+   * The certifications acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public int getCertificationsCount() { + return certifications_.size(); + } + /** + * + * + *
+   * Optional.
+   * The certifications acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public com.google.cloud.talent.v4beta1.Certification getCertifications(int index) { + return certifications_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The certifications acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public com.google.cloud.talent.v4beta1.CertificationOrBuilder getCertificationsOrBuilder( + int index) { + return certifications_.get(index); + } + + public static final int JOB_APPLICATIONS_FIELD_NUMBER = 24; + private java.util.List jobApplications_; + /** + * + * + *
+   * Optional.
+   * The job applications of the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public java.util.List getJobApplicationsList() { + return jobApplications_; + } + /** + * + * + *
+   * Optional.
+   * The job applications of the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public java.util.List + getJobApplicationsOrBuilderList() { + return jobApplications_; + } + /** + * + * + *
+   * Optional.
+   * The job applications of the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public int getJobApplicationsCount() { + return jobApplications_.size(); + } + /** + * + * + *
+   * Optional.
+   * The job applications of the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public com.google.cloud.talent.v4beta1.JobApplication getJobApplications(int index) { + return jobApplications_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The job applications of the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public com.google.cloud.talent.v4beta1.JobApplicationOrBuilder getJobApplicationsOrBuilder( + int index) { + return jobApplications_.get(index); + } + + public static final int RECRUITING_NOTES_FIELD_NUMBER = 25; + private java.util.List recruitingNotes_; + /** + * + * + *
+   * Optional.
+   * The recruiting notes added for the candidate.
+   * For example, the recruiter can add some unstructured comments for this
+   * candidate like "this candidate also has experiences in volunteer work".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public java.util.List getRecruitingNotesList() { + return recruitingNotes_; + } + /** + * + * + *
+   * Optional.
+   * The recruiting notes added for the candidate.
+   * For example, the recruiter can add some unstructured comments for this
+   * candidate like "this candidate also has experiences in volunteer work".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public java.util.List + getRecruitingNotesOrBuilderList() { + return recruitingNotes_; + } + /** + * + * + *
+   * Optional.
+   * The recruiting notes added for the candidate.
+   * For example, the recruiter can add some unstructured comments for this
+   * candidate like "this candidate also has experiences in volunteer work".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public int getRecruitingNotesCount() { + return recruitingNotes_.size(); + } + /** + * + * + *
+   * Optional.
+   * The recruiting notes added for the candidate.
+   * For example, the recruiter can add some unstructured comments for this
+   * candidate like "this candidate also has experiences in volunteer work".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public com.google.cloud.talent.v4beta1.RecruitingNote getRecruitingNotes(int index) { + return recruitingNotes_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The recruiting notes added for the candidate.
+   * For example, the recruiter can add some unstructured comments for this
+   * candidate like "this candidate also has experiences in volunteer work".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public com.google.cloud.talent.v4beta1.RecruitingNoteOrBuilder getRecruitingNotesOrBuilder( + int index) { + return recruitingNotes_.get(index); + } + + public static final int CUSTOM_ATTRIBUTES_FIELD_NUMBER = 26; + + private static final class CustomAttributesDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Profile_CustomAttributesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.talent.v4beta1.CustomAttribute.getDefaultInstance()); + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> + customAttributes_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> + internalGetCustomAttributes() { + if (customAttributes_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CustomAttributesDefaultEntryHolder.defaultEntry); + } + return customAttributes_; + } + + public int getCustomAttributesCount() { + return internalGetCustomAttributes().getMap().size(); + } + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom profile
+   * attributes that aren't covered by the provided structured fields. See
+   * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more
+   * details.
+   * At most 100 filterable and at most 100 unfilterable keys are supported. If
+   * limit is exceeded, an error is thrown.
+   * Numeric custom attributes: each key can only map to one numeric value,
+   * otherwise an error is thrown.
+   * String custom attributes: each key can map up to 50 string values. For
+   * filterable string value, each value has a byte size of no more than 256B.
+   * For unfilterable string values, the maximum byte size of a single key is
+   * 64B. An error is thrown for any request exceeding the limit.
+   * The maximum total byte size is 10KB.
+   * Currently filterable numeric custom attributes are not supported, and
+   * they automatically set to unfilterable.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; + * + */ + public boolean containsCustomAttributes(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetCustomAttributes().getMap().containsKey(key); + } + /** Use {@link #getCustomAttributesMap()} instead. */ + @java.lang.Deprecated + public java.util.Map + getCustomAttributes() { + return getCustomAttributesMap(); + } + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom profile
+   * attributes that aren't covered by the provided structured fields. See
+   * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more
+   * details.
+   * At most 100 filterable and at most 100 unfilterable keys are supported. If
+   * limit is exceeded, an error is thrown.
+   * Numeric custom attributes: each key can only map to one numeric value,
+   * otherwise an error is thrown.
+   * String custom attributes: each key can map up to 50 string values. For
+   * filterable string value, each value has a byte size of no more than 256B.
+   * For unfilterable string values, the maximum byte size of a single key is
+   * 64B. An error is thrown for any request exceeding the limit.
+   * The maximum total byte size is 10KB.
+   * Currently filterable numeric custom attributes are not supported, and
+   * they automatically set to unfilterable.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; + * + */ + public java.util.Map + getCustomAttributesMap() { + return internalGetCustomAttributes().getMap(); + } + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom profile
+   * attributes that aren't covered by the provided structured fields. See
+   * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more
+   * details.
+   * At most 100 filterable and at most 100 unfilterable keys are supported. If
+   * limit is exceeded, an error is thrown.
+   * Numeric custom attributes: each key can only map to one numeric value,
+   * otherwise an error is thrown.
+   * String custom attributes: each key can map up to 50 string values. For
+   * filterable string value, each value has a byte size of no more than 256B.
+   * For unfilterable string values, the maximum byte size of a single key is
+   * 64B. An error is thrown for any request exceeding the limit.
+   * The maximum total byte size is 10KB.
+   * Currently filterable numeric custom attributes are not supported, and
+   * they automatically set to unfilterable.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; + * + */ + public com.google.cloud.talent.v4beta1.CustomAttribute getCustomAttributesOrDefault( + java.lang.String key, com.google.cloud.talent.v4beta1.CustomAttribute defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetCustomAttributes().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom profile
+   * attributes that aren't covered by the provided structured fields. See
+   * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more
+   * details.
+   * At most 100 filterable and at most 100 unfilterable keys are supported. If
+   * limit is exceeded, an error is thrown.
+   * Numeric custom attributes: each key can only map to one numeric value,
+   * otherwise an error is thrown.
+   * String custom attributes: each key can map up to 50 string values. For
+   * filterable string value, each value has a byte size of no more than 256B.
+   * For unfilterable string values, the maximum byte size of a single key is
+   * 64B. An error is thrown for any request exceeding the limit.
+   * The maximum total byte size is 10KB.
+   * Currently filterable numeric custom attributes are not supported, and
+   * they automatically set to unfilterable.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; + * + */ + public com.google.cloud.talent.v4beta1.CustomAttribute getCustomAttributesOrThrow( + java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetCustomAttributes().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int PROCESSED_FIELD_NUMBER = 27; + private boolean processed_; + /** + * + * + *
+   * Output only. Indicates if the profile is fully processed and searchable.
+   * 
+ * + * bool processed = 27; + */ + public boolean getProcessed() { + return processed_; + } + + public static final int KEYWORD_SNIPPET_FIELD_NUMBER = 28; + private volatile java.lang.Object keywordSnippet_; + /** + * + * + *
+   * Output only. Keyword snippet shows how the search result is related to a
+   * search query.
+   * 
+ * + * string keyword_snippet = 28; + */ + public java.lang.String getKeywordSnippet() { + java.lang.Object ref = keywordSnippet_; + 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(); + keywordSnippet_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Keyword snippet shows how the search result is related to a
+   * search query.
+   * 
+ * + * string keyword_snippet = 28; + */ + public com.google.protobuf.ByteString getKeywordSnippetBytes() { + java.lang.Object ref = keywordSnippet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + keywordSnippet_ = 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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getExternalIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, externalId_); + } + if (!getSourceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, source_); + } + if (!getUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, uri_); + } + if (!getGroupIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, groupId_); + } + if (isHirable_ != null) { + output.writeMessage(6, getIsHirable()); + } + if (createTime_ != null) { + output.writeMessage(7, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(8, getUpdateTime()); + } + if (!getResumeHrxmlBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, resumeHrxml_); + } + for (int i = 0; i < personNames_.size(); i++) { + output.writeMessage(11, personNames_.get(i)); + } + for (int i = 0; i < addresses_.size(); i++) { + output.writeMessage(12, addresses_.get(i)); + } + for (int i = 0; i < emailAddresses_.size(); i++) { + output.writeMessage(13, emailAddresses_.get(i)); + } + for (int i = 0; i < phoneNumbers_.size(); i++) { + output.writeMessage(14, phoneNumbers_.get(i)); + } + for (int i = 0; i < personalUris_.size(); i++) { + output.writeMessage(15, personalUris_.get(i)); + } + for (int i = 0; i < additionalContactInfo_.size(); i++) { + output.writeMessage(16, additionalContactInfo_.get(i)); + } + for (int i = 0; i < employmentRecords_.size(); i++) { + output.writeMessage(17, employmentRecords_.get(i)); + } + for (int i = 0; i < educationRecords_.size(); i++) { + output.writeMessage(18, educationRecords_.get(i)); + } + for (int i = 0; i < skills_.size(); i++) { + output.writeMessage(19, skills_.get(i)); + } + for (int i = 0; i < activities_.size(); i++) { + output.writeMessage(20, activities_.get(i)); + } + for (int i = 0; i < publications_.size(); i++) { + output.writeMessage(21, publications_.get(i)); + } + for (int i = 0; i < patents_.size(); i++) { + output.writeMessage(22, patents_.get(i)); + } + for (int i = 0; i < certifications_.size(); i++) { + output.writeMessage(23, certifications_.get(i)); + } + for (int i = 0; i < jobApplications_.size(); i++) { + output.writeMessage(24, jobApplications_.get(i)); + } + for (int i = 0; i < recruitingNotes_.size(); i++) { + output.writeMessage(25, recruitingNotes_.get(i)); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetCustomAttributes(), CustomAttributesDefaultEntryHolder.defaultEntry, 26); + if (processed_ != false) { + output.writeBool(27, processed_); + } + if (!getKeywordSnippetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 28, keywordSnippet_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getExternalIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, externalId_); + } + if (!getSourceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, source_); + } + if (!getUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, uri_); + } + if (!getGroupIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, groupId_); + } + if (isHirable_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getIsHirable()); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime()); + } + if (!getResumeHrxmlBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, resumeHrxml_); + } + for (int i = 0; i < personNames_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, personNames_.get(i)); + } + for (int i = 0; i < addresses_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, addresses_.get(i)); + } + for (int i = 0; i < emailAddresses_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, emailAddresses_.get(i)); + } + for (int i = 0; i < phoneNumbers_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, phoneNumbers_.get(i)); + } + for (int i = 0; i < personalUris_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, personalUris_.get(i)); + } + for (int i = 0; i < additionalContactInfo_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 16, additionalContactInfo_.get(i)); + } + for (int i = 0; i < employmentRecords_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(17, employmentRecords_.get(i)); + } + for (int i = 0; i < educationRecords_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(18, educationRecords_.get(i)); + } + for (int i = 0; i < skills_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, skills_.get(i)); + } + for (int i = 0; i < activities_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, activities_.get(i)); + } + for (int i = 0; i < publications_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, publications_.get(i)); + } + for (int i = 0; i < patents_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, patents_.get(i)); + } + for (int i = 0; i < certifications_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, certifications_.get(i)); + } + for (int i = 0; i < jobApplications_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, jobApplications_.get(i)); + } + for (int i = 0; i < recruitingNotes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, recruitingNotes_.get(i)); + } + for (java.util.Map.Entry + entry : internalGetCustomAttributes().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> + customAttributes__ = + CustomAttributesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(26, customAttributes__); + } + if (processed_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(27, processed_); + } + if (!getKeywordSnippetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(28, keywordSnippet_); + } + size += unknownFields.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.cloud.talent.v4beta1.Profile)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Profile other = (com.google.cloud.talent.v4beta1.Profile) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && getExternalId().equals(other.getExternalId()); + result = result && getSource().equals(other.getSource()); + result = result && getUri().equals(other.getUri()); + result = result && getGroupId().equals(other.getGroupId()); + result = result && (hasIsHirable() == other.hasIsHirable()); + if (hasIsHirable()) { + result = result && getIsHirable().equals(other.getIsHirable()); + } + result = result && (hasCreateTime() == other.hasCreateTime()); + if (hasCreateTime()) { + result = result && getCreateTime().equals(other.getCreateTime()); + } + result = result && (hasUpdateTime() == other.hasUpdateTime()); + if (hasUpdateTime()) { + result = result && getUpdateTime().equals(other.getUpdateTime()); + } + result = result && getResumeHrxml().equals(other.getResumeHrxml()); + result = result && getPersonNamesList().equals(other.getPersonNamesList()); + result = result && getAddressesList().equals(other.getAddressesList()); + result = result && getEmailAddressesList().equals(other.getEmailAddressesList()); + result = result && getPhoneNumbersList().equals(other.getPhoneNumbersList()); + result = result && getPersonalUrisList().equals(other.getPersonalUrisList()); + result = result && getAdditionalContactInfoList().equals(other.getAdditionalContactInfoList()); + result = result && getEmploymentRecordsList().equals(other.getEmploymentRecordsList()); + result = result && getEducationRecordsList().equals(other.getEducationRecordsList()); + result = result && getSkillsList().equals(other.getSkillsList()); + result = result && getActivitiesList().equals(other.getActivitiesList()); + result = result && getPublicationsList().equals(other.getPublicationsList()); + result = result && getPatentsList().equals(other.getPatentsList()); + result = result && getCertificationsList().equals(other.getCertificationsList()); + result = result && getJobApplicationsList().equals(other.getJobApplicationsList()); + result = result && getRecruitingNotesList().equals(other.getRecruitingNotesList()); + result = result && internalGetCustomAttributes().equals(other.internalGetCustomAttributes()); + result = result && (getProcessed() == other.getProcessed()); + result = result && getKeywordSnippet().equals(other.getKeywordSnippet()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + EXTERNAL_ID_FIELD_NUMBER; + hash = (53 * hash) + getExternalId().hashCode(); + hash = (37 * hash) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSource().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + GROUP_ID_FIELD_NUMBER; + hash = (53 * hash) + getGroupId().hashCode(); + if (hasIsHirable()) { + hash = (37 * hash) + IS_HIRABLE_FIELD_NUMBER; + hash = (53 * hash) + getIsHirable().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + RESUME_HRXML_FIELD_NUMBER; + hash = (53 * hash) + getResumeHrxml().hashCode(); + if (getPersonNamesCount() > 0) { + hash = (37 * hash) + PERSON_NAMES_FIELD_NUMBER; + hash = (53 * hash) + getPersonNamesList().hashCode(); + } + if (getAddressesCount() > 0) { + hash = (37 * hash) + ADDRESSES_FIELD_NUMBER; + hash = (53 * hash) + getAddressesList().hashCode(); + } + if (getEmailAddressesCount() > 0) { + hash = (37 * hash) + EMAIL_ADDRESSES_FIELD_NUMBER; + hash = (53 * hash) + getEmailAddressesList().hashCode(); + } + if (getPhoneNumbersCount() > 0) { + hash = (37 * hash) + PHONE_NUMBERS_FIELD_NUMBER; + hash = (53 * hash) + getPhoneNumbersList().hashCode(); + } + if (getPersonalUrisCount() > 0) { + hash = (37 * hash) + PERSONAL_URIS_FIELD_NUMBER; + hash = (53 * hash) + getPersonalUrisList().hashCode(); + } + if (getAdditionalContactInfoCount() > 0) { + hash = (37 * hash) + ADDITIONAL_CONTACT_INFO_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalContactInfoList().hashCode(); + } + if (getEmploymentRecordsCount() > 0) { + hash = (37 * hash) + EMPLOYMENT_RECORDS_FIELD_NUMBER; + hash = (53 * hash) + getEmploymentRecordsList().hashCode(); + } + if (getEducationRecordsCount() > 0) { + hash = (37 * hash) + EDUCATION_RECORDS_FIELD_NUMBER; + hash = (53 * hash) + getEducationRecordsList().hashCode(); + } + if (getSkillsCount() > 0) { + hash = (37 * hash) + SKILLS_FIELD_NUMBER; + hash = (53 * hash) + getSkillsList().hashCode(); + } + if (getActivitiesCount() > 0) { + hash = (37 * hash) + ACTIVITIES_FIELD_NUMBER; + hash = (53 * hash) + getActivitiesList().hashCode(); + } + if (getPublicationsCount() > 0) { + hash = (37 * hash) + PUBLICATIONS_FIELD_NUMBER; + hash = (53 * hash) + getPublicationsList().hashCode(); + } + if (getPatentsCount() > 0) { + hash = (37 * hash) + PATENTS_FIELD_NUMBER; + hash = (53 * hash) + getPatentsList().hashCode(); + } + if (getCertificationsCount() > 0) { + hash = (37 * hash) + CERTIFICATIONS_FIELD_NUMBER; + hash = (53 * hash) + getCertificationsList().hashCode(); + } + if (getJobApplicationsCount() > 0) { + hash = (37 * hash) + JOB_APPLICATIONS_FIELD_NUMBER; + hash = (53 * hash) + getJobApplicationsList().hashCode(); + } + if (getRecruitingNotesCount() > 0) { + hash = (37 * hash) + RECRUITING_NOTES_FIELD_NUMBER; + hash = (53 * hash) + getRecruitingNotesList().hashCode(); + } + if (!internalGetCustomAttributes().getMap().isEmpty()) { + hash = (37 * hash) + CUSTOM_ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + internalGetCustomAttributes().hashCode(); + } + hash = (37 * hash) + PROCESSED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getProcessed()); + hash = (37 * hash) + KEYWORD_SNIPPET_FIELD_NUMBER; + hash = (53 * hash) + getKeywordSnippet().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Profile parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Profile parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Profile parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Profile 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.cloud.talent.v4beta1.Profile parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Profile parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Profile parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Profile 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.cloud.talent.v4beta1.Profile parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Profile 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.cloud.talent.v4beta1.Profile parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Profile 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.cloud.talent.v4beta1.Profile 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 resource that represents the profile for a job candidate (also referred to
+   * as a "single-source profile"). A profile belongs to a
+   * [Tenant][google.cloud.talent.v4beta1.Tenant], which is an isolated instance
+   * of the customer that owns the profile.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Profile} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Profile) + com.google.cloud.talent.v4beta1.ProfileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Profile_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 26: + return internalGetCustomAttributes(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 26: + return internalGetMutableCustomAttributes(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Profile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Profile.class, + com.google.cloud.talent.v4beta1.Profile.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Profile.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPersonNamesFieldBuilder(); + getAddressesFieldBuilder(); + getEmailAddressesFieldBuilder(); + getPhoneNumbersFieldBuilder(); + getPersonalUrisFieldBuilder(); + getAdditionalContactInfoFieldBuilder(); + getEmploymentRecordsFieldBuilder(); + getEducationRecordsFieldBuilder(); + getSkillsFieldBuilder(); + getActivitiesFieldBuilder(); + getPublicationsFieldBuilder(); + getPatentsFieldBuilder(); + getCertificationsFieldBuilder(); + getJobApplicationsFieldBuilder(); + getRecruitingNotesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + externalId_ = ""; + + source_ = ""; + + uri_ = ""; + + groupId_ = ""; + + if (isHirableBuilder_ == null) { + isHirable_ = null; + } else { + isHirable_ = null; + isHirableBuilder_ = null; + } + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + resumeHrxml_ = ""; + + if (personNamesBuilder_ == null) { + personNames_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + } else { + personNamesBuilder_.clear(); + } + if (addressesBuilder_ == null) { + addresses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + } else { + addressesBuilder_.clear(); + } + if (emailAddressesBuilder_ == null) { + emailAddresses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000800); + } else { + emailAddressesBuilder_.clear(); + } + if (phoneNumbersBuilder_ == null) { + phoneNumbers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + } else { + phoneNumbersBuilder_.clear(); + } + if (personalUrisBuilder_ == null) { + personalUris_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00002000); + } else { + personalUrisBuilder_.clear(); + } + if (additionalContactInfoBuilder_ == null) { + additionalContactInfo_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00004000); + } else { + additionalContactInfoBuilder_.clear(); + } + if (employmentRecordsBuilder_ == null) { + employmentRecords_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00008000); + } else { + employmentRecordsBuilder_.clear(); + } + if (educationRecordsBuilder_ == null) { + educationRecords_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00010000); + } else { + educationRecordsBuilder_.clear(); + } + if (skillsBuilder_ == null) { + skills_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00020000); + } else { + skillsBuilder_.clear(); + } + if (activitiesBuilder_ == null) { + activities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00040000); + } else { + activitiesBuilder_.clear(); + } + if (publicationsBuilder_ == null) { + publications_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00080000); + } else { + publicationsBuilder_.clear(); + } + if (patentsBuilder_ == null) { + patents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00100000); + } else { + patentsBuilder_.clear(); + } + if (certificationsBuilder_ == null) { + certifications_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00200000); + } else { + certificationsBuilder_.clear(); + } + if (jobApplicationsBuilder_ == null) { + jobApplications_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00400000); + } else { + jobApplicationsBuilder_.clear(); + } + if (recruitingNotesBuilder_ == null) { + recruitingNotes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00800000); + } else { + recruitingNotesBuilder_.clear(); + } + internalGetMutableCustomAttributes().clear(); + processed_ = false; + + keywordSnippet_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Profile_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Profile getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Profile.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Profile build() { + com.google.cloud.talent.v4beta1.Profile result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Profile buildPartial() { + com.google.cloud.talent.v4beta1.Profile result = + new com.google.cloud.talent.v4beta1.Profile(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.name_ = name_; + result.externalId_ = externalId_; + result.source_ = source_; + result.uri_ = uri_; + result.groupId_ = groupId_; + if (isHirableBuilder_ == null) { + result.isHirable_ = isHirable_; + } else { + result.isHirable_ = isHirableBuilder_.build(); + } + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + result.resumeHrxml_ = resumeHrxml_; + if (personNamesBuilder_ == null) { + if (((bitField0_ & 0x00000200) == 0x00000200)) { + personNames_ = java.util.Collections.unmodifiableList(personNames_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.personNames_ = personNames_; + } else { + result.personNames_ = personNamesBuilder_.build(); + } + if (addressesBuilder_ == null) { + if (((bitField0_ & 0x00000400) == 0x00000400)) { + addresses_ = java.util.Collections.unmodifiableList(addresses_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.addresses_ = addresses_; + } else { + result.addresses_ = addressesBuilder_.build(); + } + if (emailAddressesBuilder_ == null) { + if (((bitField0_ & 0x00000800) == 0x00000800)) { + emailAddresses_ = java.util.Collections.unmodifiableList(emailAddresses_); + bitField0_ = (bitField0_ & ~0x00000800); + } + result.emailAddresses_ = emailAddresses_; + } else { + result.emailAddresses_ = emailAddressesBuilder_.build(); + } + if (phoneNumbersBuilder_ == null) { + if (((bitField0_ & 0x00001000) == 0x00001000)) { + phoneNumbers_ = java.util.Collections.unmodifiableList(phoneNumbers_); + bitField0_ = (bitField0_ & ~0x00001000); + } + result.phoneNumbers_ = phoneNumbers_; + } else { + result.phoneNumbers_ = phoneNumbersBuilder_.build(); + } + if (personalUrisBuilder_ == null) { + if (((bitField0_ & 0x00002000) == 0x00002000)) { + personalUris_ = java.util.Collections.unmodifiableList(personalUris_); + bitField0_ = (bitField0_ & ~0x00002000); + } + result.personalUris_ = personalUris_; + } else { + result.personalUris_ = personalUrisBuilder_.build(); + } + if (additionalContactInfoBuilder_ == null) { + if (((bitField0_ & 0x00004000) == 0x00004000)) { + additionalContactInfo_ = java.util.Collections.unmodifiableList(additionalContactInfo_); + bitField0_ = (bitField0_ & ~0x00004000); + } + result.additionalContactInfo_ = additionalContactInfo_; + } else { + result.additionalContactInfo_ = additionalContactInfoBuilder_.build(); + } + if (employmentRecordsBuilder_ == null) { + if (((bitField0_ & 0x00008000) == 0x00008000)) { + employmentRecords_ = java.util.Collections.unmodifiableList(employmentRecords_); + bitField0_ = (bitField0_ & ~0x00008000); + } + result.employmentRecords_ = employmentRecords_; + } else { + result.employmentRecords_ = employmentRecordsBuilder_.build(); + } + if (educationRecordsBuilder_ == null) { + if (((bitField0_ & 0x00010000) == 0x00010000)) { + educationRecords_ = java.util.Collections.unmodifiableList(educationRecords_); + bitField0_ = (bitField0_ & ~0x00010000); + } + result.educationRecords_ = educationRecords_; + } else { + result.educationRecords_ = educationRecordsBuilder_.build(); + } + if (skillsBuilder_ == null) { + if (((bitField0_ & 0x00020000) == 0x00020000)) { + skills_ = java.util.Collections.unmodifiableList(skills_); + bitField0_ = (bitField0_ & ~0x00020000); + } + result.skills_ = skills_; + } else { + result.skills_ = skillsBuilder_.build(); + } + if (activitiesBuilder_ == null) { + if (((bitField0_ & 0x00040000) == 0x00040000)) { + activities_ = java.util.Collections.unmodifiableList(activities_); + bitField0_ = (bitField0_ & ~0x00040000); + } + result.activities_ = activities_; + } else { + result.activities_ = activitiesBuilder_.build(); + } + if (publicationsBuilder_ == null) { + if (((bitField0_ & 0x00080000) == 0x00080000)) { + publications_ = java.util.Collections.unmodifiableList(publications_); + bitField0_ = (bitField0_ & ~0x00080000); + } + result.publications_ = publications_; + } else { + result.publications_ = publicationsBuilder_.build(); + } + if (patentsBuilder_ == null) { + if (((bitField0_ & 0x00100000) == 0x00100000)) { + patents_ = java.util.Collections.unmodifiableList(patents_); + bitField0_ = (bitField0_ & ~0x00100000); + } + result.patents_ = patents_; + } else { + result.patents_ = patentsBuilder_.build(); + } + if (certificationsBuilder_ == null) { + if (((bitField0_ & 0x00200000) == 0x00200000)) { + certifications_ = java.util.Collections.unmodifiableList(certifications_); + bitField0_ = (bitField0_ & ~0x00200000); + } + result.certifications_ = certifications_; + } else { + result.certifications_ = certificationsBuilder_.build(); + } + if (jobApplicationsBuilder_ == null) { + if (((bitField0_ & 0x00400000) == 0x00400000)) { + jobApplications_ = java.util.Collections.unmodifiableList(jobApplications_); + bitField0_ = (bitField0_ & ~0x00400000); + } + result.jobApplications_ = jobApplications_; + } else { + result.jobApplications_ = jobApplicationsBuilder_.build(); + } + if (recruitingNotesBuilder_ == null) { + if (((bitField0_ & 0x00800000) == 0x00800000)) { + recruitingNotes_ = java.util.Collections.unmodifiableList(recruitingNotes_); + bitField0_ = (bitField0_ & ~0x00800000); + } + result.recruitingNotes_ = recruitingNotes_; + } else { + result.recruitingNotes_ = recruitingNotesBuilder_.build(); + } + result.customAttributes_ = internalGetCustomAttributes(); + result.customAttributes_.makeImmutable(); + result.processed_ = processed_; + result.keywordSnippet_ = keywordSnippet_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Profile) { + return mergeFrom((com.google.cloud.talent.v4beta1.Profile) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Profile other) { + if (other == com.google.cloud.talent.v4beta1.Profile.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getExternalId().isEmpty()) { + externalId_ = other.externalId_; + onChanged(); + } + if (!other.getSource().isEmpty()) { + source_ = other.source_; + onChanged(); + } + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + onChanged(); + } + if (!other.getGroupId().isEmpty()) { + groupId_ = other.groupId_; + onChanged(); + } + if (other.hasIsHirable()) { + mergeIsHirable(other.getIsHirable()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getResumeHrxml().isEmpty()) { + resumeHrxml_ = other.resumeHrxml_; + onChanged(); + } + if (personNamesBuilder_ == null) { + if (!other.personNames_.isEmpty()) { + if (personNames_.isEmpty()) { + personNames_ = other.personNames_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensurePersonNamesIsMutable(); + personNames_.addAll(other.personNames_); + } + onChanged(); + } + } else { + if (!other.personNames_.isEmpty()) { + if (personNamesBuilder_.isEmpty()) { + personNamesBuilder_.dispose(); + personNamesBuilder_ = null; + personNames_ = other.personNames_; + bitField0_ = (bitField0_ & ~0x00000200); + personNamesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPersonNamesFieldBuilder() + : null; + } else { + personNamesBuilder_.addAllMessages(other.personNames_); + } + } + } + if (addressesBuilder_ == null) { + if (!other.addresses_.isEmpty()) { + if (addresses_.isEmpty()) { + addresses_ = other.addresses_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureAddressesIsMutable(); + addresses_.addAll(other.addresses_); + } + onChanged(); + } + } else { + if (!other.addresses_.isEmpty()) { + if (addressesBuilder_.isEmpty()) { + addressesBuilder_.dispose(); + addressesBuilder_ = null; + addresses_ = other.addresses_; + bitField0_ = (bitField0_ & ~0x00000400); + addressesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAddressesFieldBuilder() + : null; + } else { + addressesBuilder_.addAllMessages(other.addresses_); + } + } + } + if (emailAddressesBuilder_ == null) { + if (!other.emailAddresses_.isEmpty()) { + if (emailAddresses_.isEmpty()) { + emailAddresses_ = other.emailAddresses_; + bitField0_ = (bitField0_ & ~0x00000800); + } else { + ensureEmailAddressesIsMutable(); + emailAddresses_.addAll(other.emailAddresses_); + } + onChanged(); + } + } else { + if (!other.emailAddresses_.isEmpty()) { + if (emailAddressesBuilder_.isEmpty()) { + emailAddressesBuilder_.dispose(); + emailAddressesBuilder_ = null; + emailAddresses_ = other.emailAddresses_; + bitField0_ = (bitField0_ & ~0x00000800); + emailAddressesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEmailAddressesFieldBuilder() + : null; + } else { + emailAddressesBuilder_.addAllMessages(other.emailAddresses_); + } + } + } + if (phoneNumbersBuilder_ == null) { + if (!other.phoneNumbers_.isEmpty()) { + if (phoneNumbers_.isEmpty()) { + phoneNumbers_ = other.phoneNumbers_; + bitField0_ = (bitField0_ & ~0x00001000); + } else { + ensurePhoneNumbersIsMutable(); + phoneNumbers_.addAll(other.phoneNumbers_); + } + onChanged(); + } + } else { + if (!other.phoneNumbers_.isEmpty()) { + if (phoneNumbersBuilder_.isEmpty()) { + phoneNumbersBuilder_.dispose(); + phoneNumbersBuilder_ = null; + phoneNumbers_ = other.phoneNumbers_; + bitField0_ = (bitField0_ & ~0x00001000); + phoneNumbersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPhoneNumbersFieldBuilder() + : null; + } else { + phoneNumbersBuilder_.addAllMessages(other.phoneNumbers_); + } + } + } + if (personalUrisBuilder_ == null) { + if (!other.personalUris_.isEmpty()) { + if (personalUris_.isEmpty()) { + personalUris_ = other.personalUris_; + bitField0_ = (bitField0_ & ~0x00002000); + } else { + ensurePersonalUrisIsMutable(); + personalUris_.addAll(other.personalUris_); + } + onChanged(); + } + } else { + if (!other.personalUris_.isEmpty()) { + if (personalUrisBuilder_.isEmpty()) { + personalUrisBuilder_.dispose(); + personalUrisBuilder_ = null; + personalUris_ = other.personalUris_; + bitField0_ = (bitField0_ & ~0x00002000); + personalUrisBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPersonalUrisFieldBuilder() + : null; + } else { + personalUrisBuilder_.addAllMessages(other.personalUris_); + } + } + } + if (additionalContactInfoBuilder_ == null) { + if (!other.additionalContactInfo_.isEmpty()) { + if (additionalContactInfo_.isEmpty()) { + additionalContactInfo_ = other.additionalContactInfo_; + bitField0_ = (bitField0_ & ~0x00004000); + } else { + ensureAdditionalContactInfoIsMutable(); + additionalContactInfo_.addAll(other.additionalContactInfo_); + } + onChanged(); + } + } else { + if (!other.additionalContactInfo_.isEmpty()) { + if (additionalContactInfoBuilder_.isEmpty()) { + additionalContactInfoBuilder_.dispose(); + additionalContactInfoBuilder_ = null; + additionalContactInfo_ = other.additionalContactInfo_; + bitField0_ = (bitField0_ & ~0x00004000); + additionalContactInfoBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAdditionalContactInfoFieldBuilder() + : null; + } else { + additionalContactInfoBuilder_.addAllMessages(other.additionalContactInfo_); + } + } + } + if (employmentRecordsBuilder_ == null) { + if (!other.employmentRecords_.isEmpty()) { + if (employmentRecords_.isEmpty()) { + employmentRecords_ = other.employmentRecords_; + bitField0_ = (bitField0_ & ~0x00008000); + } else { + ensureEmploymentRecordsIsMutable(); + employmentRecords_.addAll(other.employmentRecords_); + } + onChanged(); + } + } else { + if (!other.employmentRecords_.isEmpty()) { + if (employmentRecordsBuilder_.isEmpty()) { + employmentRecordsBuilder_.dispose(); + employmentRecordsBuilder_ = null; + employmentRecords_ = other.employmentRecords_; + bitField0_ = (bitField0_ & ~0x00008000); + employmentRecordsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEmploymentRecordsFieldBuilder() + : null; + } else { + employmentRecordsBuilder_.addAllMessages(other.employmentRecords_); + } + } + } + if (educationRecordsBuilder_ == null) { + if (!other.educationRecords_.isEmpty()) { + if (educationRecords_.isEmpty()) { + educationRecords_ = other.educationRecords_; + bitField0_ = (bitField0_ & ~0x00010000); + } else { + ensureEducationRecordsIsMutable(); + educationRecords_.addAll(other.educationRecords_); + } + onChanged(); + } + } else { + if (!other.educationRecords_.isEmpty()) { + if (educationRecordsBuilder_.isEmpty()) { + educationRecordsBuilder_.dispose(); + educationRecordsBuilder_ = null; + educationRecords_ = other.educationRecords_; + bitField0_ = (bitField0_ & ~0x00010000); + educationRecordsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEducationRecordsFieldBuilder() + : null; + } else { + educationRecordsBuilder_.addAllMessages(other.educationRecords_); + } + } + } + if (skillsBuilder_ == null) { + if (!other.skills_.isEmpty()) { + if (skills_.isEmpty()) { + skills_ = other.skills_; + bitField0_ = (bitField0_ & ~0x00020000); + } else { + ensureSkillsIsMutable(); + skills_.addAll(other.skills_); + } + onChanged(); + } + } else { + if (!other.skills_.isEmpty()) { + if (skillsBuilder_.isEmpty()) { + skillsBuilder_.dispose(); + skillsBuilder_ = null; + skills_ = other.skills_; + bitField0_ = (bitField0_ & ~0x00020000); + skillsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSkillsFieldBuilder() + : null; + } else { + skillsBuilder_.addAllMessages(other.skills_); + } + } + } + if (activitiesBuilder_ == null) { + if (!other.activities_.isEmpty()) { + if (activities_.isEmpty()) { + activities_ = other.activities_; + bitField0_ = (bitField0_ & ~0x00040000); + } else { + ensureActivitiesIsMutable(); + activities_.addAll(other.activities_); + } + onChanged(); + } + } else { + if (!other.activities_.isEmpty()) { + if (activitiesBuilder_.isEmpty()) { + activitiesBuilder_.dispose(); + activitiesBuilder_ = null; + activities_ = other.activities_; + bitField0_ = (bitField0_ & ~0x00040000); + activitiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getActivitiesFieldBuilder() + : null; + } else { + activitiesBuilder_.addAllMessages(other.activities_); + } + } + } + if (publicationsBuilder_ == null) { + if (!other.publications_.isEmpty()) { + if (publications_.isEmpty()) { + publications_ = other.publications_; + bitField0_ = (bitField0_ & ~0x00080000); + } else { + ensurePublicationsIsMutable(); + publications_.addAll(other.publications_); + } + onChanged(); + } + } else { + if (!other.publications_.isEmpty()) { + if (publicationsBuilder_.isEmpty()) { + publicationsBuilder_.dispose(); + publicationsBuilder_ = null; + publications_ = other.publications_; + bitField0_ = (bitField0_ & ~0x00080000); + publicationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPublicationsFieldBuilder() + : null; + } else { + publicationsBuilder_.addAllMessages(other.publications_); + } + } + } + if (patentsBuilder_ == null) { + if (!other.patents_.isEmpty()) { + if (patents_.isEmpty()) { + patents_ = other.patents_; + bitField0_ = (bitField0_ & ~0x00100000); + } else { + ensurePatentsIsMutable(); + patents_.addAll(other.patents_); + } + onChanged(); + } + } else { + if (!other.patents_.isEmpty()) { + if (patentsBuilder_.isEmpty()) { + patentsBuilder_.dispose(); + patentsBuilder_ = null; + patents_ = other.patents_; + bitField0_ = (bitField0_ & ~0x00100000); + patentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPatentsFieldBuilder() + : null; + } else { + patentsBuilder_.addAllMessages(other.patents_); + } + } + } + if (certificationsBuilder_ == null) { + if (!other.certifications_.isEmpty()) { + if (certifications_.isEmpty()) { + certifications_ = other.certifications_; + bitField0_ = (bitField0_ & ~0x00200000); + } else { + ensureCertificationsIsMutable(); + certifications_.addAll(other.certifications_); + } + onChanged(); + } + } else { + if (!other.certifications_.isEmpty()) { + if (certificationsBuilder_.isEmpty()) { + certificationsBuilder_.dispose(); + certificationsBuilder_ = null; + certifications_ = other.certifications_; + bitField0_ = (bitField0_ & ~0x00200000); + certificationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCertificationsFieldBuilder() + : null; + } else { + certificationsBuilder_.addAllMessages(other.certifications_); + } + } + } + if (jobApplicationsBuilder_ == null) { + if (!other.jobApplications_.isEmpty()) { + if (jobApplications_.isEmpty()) { + jobApplications_ = other.jobApplications_; + bitField0_ = (bitField0_ & ~0x00400000); + } else { + ensureJobApplicationsIsMutable(); + jobApplications_.addAll(other.jobApplications_); + } + onChanged(); + } + } else { + if (!other.jobApplications_.isEmpty()) { + if (jobApplicationsBuilder_.isEmpty()) { + jobApplicationsBuilder_.dispose(); + jobApplicationsBuilder_ = null; + jobApplications_ = other.jobApplications_; + bitField0_ = (bitField0_ & ~0x00400000); + jobApplicationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getJobApplicationsFieldBuilder() + : null; + } else { + jobApplicationsBuilder_.addAllMessages(other.jobApplications_); + } + } + } + if (recruitingNotesBuilder_ == null) { + if (!other.recruitingNotes_.isEmpty()) { + if (recruitingNotes_.isEmpty()) { + recruitingNotes_ = other.recruitingNotes_; + bitField0_ = (bitField0_ & ~0x00800000); + } else { + ensureRecruitingNotesIsMutable(); + recruitingNotes_.addAll(other.recruitingNotes_); + } + onChanged(); + } + } else { + if (!other.recruitingNotes_.isEmpty()) { + if (recruitingNotesBuilder_.isEmpty()) { + recruitingNotesBuilder_.dispose(); + recruitingNotesBuilder_ = null; + recruitingNotes_ = other.recruitingNotes_; + bitField0_ = (bitField0_ & ~0x00800000); + recruitingNotesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRecruitingNotesFieldBuilder() + : null; + } else { + recruitingNotesBuilder_.addAllMessages(other.recruitingNotes_); + } + } + } + internalGetMutableCustomAttributes().mergeFrom(other.internalGetCustomAttributes()); + if (other.getProcessed() != false) { + setProcessed(other.getProcessed()); + } + if (!other.getKeywordSnippet().isEmpty()) { + keywordSnippet_ = other.keywordSnippet_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.Profile parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.Profile) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required during profile update.
+     * Resource name assigned to a profile by the API.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+     * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required during profile update.
+     * Resource name assigned to a profile by the API.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+     * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required during profile update.
+     * Resource name assigned to a profile by the API.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+     * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required during profile update.
+     * Resource name assigned to a profile by the API.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+     * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required during profile update.
+     * Resource name assigned to a profile by the API.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+     * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object externalId_ = ""; + /** + * + * + *
+     * Optional.
+     * Profile's id in client system if available.
+     * The maximum number of bytes allowed is 100.
+     * 
+ * + * string external_id = 2; + */ + public java.lang.String getExternalId() { + java.lang.Object ref = externalId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + externalId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Profile's id in client system if available.
+     * The maximum number of bytes allowed is 100.
+     * 
+ * + * string external_id = 2; + */ + public com.google.protobuf.ByteString getExternalIdBytes() { + java.lang.Object ref = externalId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + externalId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Profile's id in client system if available.
+     * The maximum number of bytes allowed is 100.
+     * 
+ * + * string external_id = 2; + */ + public Builder setExternalId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + externalId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Profile's id in client system if available.
+     * The maximum number of bytes allowed is 100.
+     * 
+ * + * string external_id = 2; + */ + public Builder clearExternalId() { + + externalId_ = getDefaultInstance().getExternalId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Profile's id in client system if available.
+     * The maximum number of bytes allowed is 100.
+     * 
+ * + * string external_id = 2; + */ + public Builder setExternalIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + externalId_ = value; + onChanged(); + return this; + } + + private java.lang.Object source_ = ""; + /** + * + * + *
+     * Optional.
+     * The source description indicating where the profile is acquired.
+     * For example, if a candidate profile is acquired from a resume, the user can
+     * input "resume" here to indicate the source.
+     * The maximum number of bytes allowed is 100.
+     * 
+ * + * string source = 3; + */ + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + source_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The source description indicating where the profile is acquired.
+     * For example, if a candidate profile is acquired from a resume, the user can
+     * input "resume" here to indicate the source.
+     * The maximum number of bytes allowed is 100.
+     * 
+ * + * string source = 3; + */ + public com.google.protobuf.ByteString getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The source description indicating where the profile is acquired.
+     * For example, if a candidate profile is acquired from a resume, the user can
+     * input "resume" here to indicate the source.
+     * The maximum number of bytes allowed is 100.
+     * 
+ * + * string source = 3; + */ + public Builder setSource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + source_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The source description indicating where the profile is acquired.
+     * For example, if a candidate profile is acquired from a resume, the user can
+     * input "resume" here to indicate the source.
+     * The maximum number of bytes allowed is 100.
+     * 
+ * + * string source = 3; + */ + public Builder clearSource() { + + source_ = getDefaultInstance().getSource(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The source description indicating where the profile is acquired.
+     * For example, if a candidate profile is acquired from a resume, the user can
+     * input "resume" here to indicate the source.
+     * The maximum number of bytes allowed is 100.
+     * 
+ * + * string source = 3; + */ + public Builder setSourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + source_ = value; + onChanged(); + return this; + } + + private java.lang.Object uri_ = ""; + /** + * + * + *
+     * Optional.
+     * The URI set by clients that links to this profile's client-side copy.
+     * The maximum number of bytes allowed is 4000.
+     * 
+ * + * string uri = 4; + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The URI set by clients that links to this profile's client-side copy.
+     * The maximum number of bytes allowed is 4000.
+     * 
+ * + * string uri = 4; + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The URI set by clients that links to this profile's client-side copy.
+     * The maximum number of bytes allowed is 4000.
+     * 
+ * + * string uri = 4; + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + uri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The URI set by clients that links to this profile's client-side copy.
+     * The maximum number of bytes allowed is 4000.
+     * 
+ * + * string uri = 4; + */ + public Builder clearUri() { + + uri_ = getDefaultInstance().getUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The URI set by clients that links to this profile's client-side copy.
+     * The maximum number of bytes allowed is 4000.
+     * 
+ * + * string uri = 4; + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uri_ = value; + onChanged(); + return this; + } + + private java.lang.Object groupId_ = ""; + /** + * + * + *
+     * Optional.
+     * The cluster id of the profile to associate with other profile(s) for the
+     * same candidate.
+     * A random UUID is assigned if
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't provided. To
+     * ensure global uniqueness, customized
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't supported.
+     * If [group_id][google.cloud.talent.v4beta1.Profile.group_id] is set, there
+     * must be at least one other profile with the same system generated
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id], otherwise an
+     * error is thrown.
+     * This is used to link multiple profiles to the same candidate. For example,
+     * a client has a candidate with two profiles, where one was created recently
+     * and the other one was created 5 years ago. These two profiles may be very
+     * different. The clients can create the first profile and get a generated
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id], and assign it
+     * when the second profile is created, indicating these two profiles are
+     * referring to the same candidate.
+     * 
+ * + * string group_id = 5; + */ + public java.lang.String getGroupId() { + java.lang.Object ref = groupId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + groupId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The cluster id of the profile to associate with other profile(s) for the
+     * same candidate.
+     * A random UUID is assigned if
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't provided. To
+     * ensure global uniqueness, customized
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't supported.
+     * If [group_id][google.cloud.talent.v4beta1.Profile.group_id] is set, there
+     * must be at least one other profile with the same system generated
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id], otherwise an
+     * error is thrown.
+     * This is used to link multiple profiles to the same candidate. For example,
+     * a client has a candidate with two profiles, where one was created recently
+     * and the other one was created 5 years ago. These two profiles may be very
+     * different. The clients can create the first profile and get a generated
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id], and assign it
+     * when the second profile is created, indicating these two profiles are
+     * referring to the same candidate.
+     * 
+ * + * string group_id = 5; + */ + public com.google.protobuf.ByteString getGroupIdBytes() { + java.lang.Object ref = groupId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + groupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The cluster id of the profile to associate with other profile(s) for the
+     * same candidate.
+     * A random UUID is assigned if
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't provided. To
+     * ensure global uniqueness, customized
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't supported.
+     * If [group_id][google.cloud.talent.v4beta1.Profile.group_id] is set, there
+     * must be at least one other profile with the same system generated
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id], otherwise an
+     * error is thrown.
+     * This is used to link multiple profiles to the same candidate. For example,
+     * a client has a candidate with two profiles, where one was created recently
+     * and the other one was created 5 years ago. These two profiles may be very
+     * different. The clients can create the first profile and get a generated
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id], and assign it
+     * when the second profile is created, indicating these two profiles are
+     * referring to the same candidate.
+     * 
+ * + * string group_id = 5; + */ + public Builder setGroupId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + groupId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The cluster id of the profile to associate with other profile(s) for the
+     * same candidate.
+     * A random UUID is assigned if
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't provided. To
+     * ensure global uniqueness, customized
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't supported.
+     * If [group_id][google.cloud.talent.v4beta1.Profile.group_id] is set, there
+     * must be at least one other profile with the same system generated
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id], otherwise an
+     * error is thrown.
+     * This is used to link multiple profiles to the same candidate. For example,
+     * a client has a candidate with two profiles, where one was created recently
+     * and the other one was created 5 years ago. These two profiles may be very
+     * different. The clients can create the first profile and get a generated
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id], and assign it
+     * when the second profile is created, indicating these two profiles are
+     * referring to the same candidate.
+     * 
+ * + * string group_id = 5; + */ + public Builder clearGroupId() { + + groupId_ = getDefaultInstance().getGroupId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The cluster id of the profile to associate with other profile(s) for the
+     * same candidate.
+     * A random UUID is assigned if
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't provided. To
+     * ensure global uniqueness, customized
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't supported.
+     * If [group_id][google.cloud.talent.v4beta1.Profile.group_id] is set, there
+     * must be at least one other profile with the same system generated
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id], otherwise an
+     * error is thrown.
+     * This is used to link multiple profiles to the same candidate. For example,
+     * a client has a candidate with two profiles, where one was created recently
+     * and the other one was created 5 years ago. These two profiles may be very
+     * different. The clients can create the first profile and get a generated
+     * [group_id][google.cloud.talent.v4beta1.Profile.group_id], and assign it
+     * when the second profile is created, indicating these two profiles are
+     * referring to the same candidate.
+     * 
+ * + * string group_id = 5; + */ + public Builder setGroupIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + groupId_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.BoolValue isHirable_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + isHirableBuilder_; + /** + * + * + *
+     * Optional.
+     * Indicates the hirable status of the candidate.
+     * 
+ * + * .google.protobuf.BoolValue is_hirable = 6; + */ + public boolean hasIsHirable() { + return isHirableBuilder_ != null || isHirable_ != null; + } + /** + * + * + *
+     * Optional.
+     * Indicates the hirable status of the candidate.
+     * 
+ * + * .google.protobuf.BoolValue is_hirable = 6; + */ + public com.google.protobuf.BoolValue getIsHirable() { + if (isHirableBuilder_ == null) { + return isHirable_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isHirable_; + } else { + return isHirableBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * Indicates the hirable status of the candidate.
+     * 
+ * + * .google.protobuf.BoolValue is_hirable = 6; + */ + public Builder setIsHirable(com.google.protobuf.BoolValue value) { + if (isHirableBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + isHirable_ = value; + onChanged(); + } else { + isHirableBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Indicates the hirable status of the candidate.
+     * 
+ * + * .google.protobuf.BoolValue is_hirable = 6; + */ + public Builder setIsHirable(com.google.protobuf.BoolValue.Builder builderForValue) { + if (isHirableBuilder_ == null) { + isHirable_ = builderForValue.build(); + onChanged(); + } else { + isHirableBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Indicates the hirable status of the candidate.
+     * 
+ * + * .google.protobuf.BoolValue is_hirable = 6; + */ + public Builder mergeIsHirable(com.google.protobuf.BoolValue value) { + if (isHirableBuilder_ == null) { + if (isHirable_ != null) { + isHirable_ = + com.google.protobuf.BoolValue.newBuilder(isHirable_).mergeFrom(value).buildPartial(); + } else { + isHirable_ = value; + } + onChanged(); + } else { + isHirableBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Indicates the hirable status of the candidate.
+     * 
+ * + * .google.protobuf.BoolValue is_hirable = 6; + */ + public Builder clearIsHirable() { + if (isHirableBuilder_ == null) { + isHirable_ = null; + onChanged(); + } else { + isHirable_ = null; + isHirableBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Indicates the hirable status of the candidate.
+     * 
+ * + * .google.protobuf.BoolValue is_hirable = 6; + */ + public com.google.protobuf.BoolValue.Builder getIsHirableBuilder() { + + onChanged(); + return getIsHirableFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * Indicates the hirable status of the candidate.
+     * 
+ * + * .google.protobuf.BoolValue is_hirable = 6; + */ + public com.google.protobuf.BoolValueOrBuilder getIsHirableOrBuilder() { + if (isHirableBuilder_ != null) { + return isHirableBuilder_.getMessageOrBuilder(); + } else { + return isHirable_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isHirable_; + } + } + /** + * + * + *
+     * Optional.
+     * Indicates the hirable status of the candidate.
+     * 
+ * + * .google.protobuf.BoolValue is_hirable = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getIsHirableFieldBuilder() { + if (isHirableBuilder_ == null) { + isHirableBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getIsHirable(), getParentForChildren(), isClean()); + isHirable_ = null; + } + return isHirableBuilder_; + } + + private com.google.protobuf.Timestamp createTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was first created at this source.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 7; + */ + public boolean hasCreateTime() { + return createTimeBuilder_ != null || createTime_ != null; + } + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was first created at this source.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 7; + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was first created at this source.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 7; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was first created at this source.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 7; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was first created at this source.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 7; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (createTime_ != null) { + createTime_ = + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was first created at this source.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 7; + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was first created at this source.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 7; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was first created at this source.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 7; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was first created at this source.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was last updated at this source.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 8; + */ + public boolean hasUpdateTime() { + return updateTimeBuilder_ != null || updateTime_ != null; + } + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was last updated at this source.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 8; + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was last updated at this source.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 8; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + onChanged(); + } else { + updateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was last updated at this source.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 8; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + onChanged(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was last updated at this source.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 8; + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (updateTime_ != null) { + updateTime_ = + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + } else { + updateTime_ = value; + } + onChanged(); + } else { + updateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was last updated at this source.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 8; + */ + public Builder clearUpdateTime() { + if (updateTimeBuilder_ == null) { + updateTime_ = null; + onChanged(); + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was last updated at this source.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 8; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was last updated at this source.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 8; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
+     * Optional.
+     * The timestamp when the profile was last updated at this source.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object resumeHrxml_ = ""; + /** + * + * + *
+     * Optional.
+     * The profile contents in HR-XML format.
+     * See http://schemas.liquid-technologies.com/hr-xml/2007-04-15/ for more
+     * information about Human Resources XML.
+     * Users can create a profile with only
+     * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] field. For
+     * example, the API parses the
+     * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] and
+     * creates a profile with all structured fields populated, for example.
+     * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord],
+     * [EducationRecord][google.cloud.talent.v4beta1.EducationRecord], etc. An
+     * error is thrown if the
+     * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] can't be
+     * parsed.
+     * If the [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] is
+     * provided during profile creation or update, any other structured data
+     * provided in the profile is ignored. The API populates these fields by
+     * parsing the HR-XML.
+     * 
+ * + * string resume_hrxml = 10; + */ + public java.lang.String getResumeHrxml() { + java.lang.Object ref = resumeHrxml_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resumeHrxml_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The profile contents in HR-XML format.
+     * See http://schemas.liquid-technologies.com/hr-xml/2007-04-15/ for more
+     * information about Human Resources XML.
+     * Users can create a profile with only
+     * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] field. For
+     * example, the API parses the
+     * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] and
+     * creates a profile with all structured fields populated, for example.
+     * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord],
+     * [EducationRecord][google.cloud.talent.v4beta1.EducationRecord], etc. An
+     * error is thrown if the
+     * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] can't be
+     * parsed.
+     * If the [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] is
+     * provided during profile creation or update, any other structured data
+     * provided in the profile is ignored. The API populates these fields by
+     * parsing the HR-XML.
+     * 
+ * + * string resume_hrxml = 10; + */ + public com.google.protobuf.ByteString getResumeHrxmlBytes() { + java.lang.Object ref = resumeHrxml_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resumeHrxml_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The profile contents in HR-XML format.
+     * See http://schemas.liquid-technologies.com/hr-xml/2007-04-15/ for more
+     * information about Human Resources XML.
+     * Users can create a profile with only
+     * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] field. For
+     * example, the API parses the
+     * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] and
+     * creates a profile with all structured fields populated, for example.
+     * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord],
+     * [EducationRecord][google.cloud.talent.v4beta1.EducationRecord], etc. An
+     * error is thrown if the
+     * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] can't be
+     * parsed.
+     * If the [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] is
+     * provided during profile creation or update, any other structured data
+     * provided in the profile is ignored. The API populates these fields by
+     * parsing the HR-XML.
+     * 
+ * + * string resume_hrxml = 10; + */ + public Builder setResumeHrxml(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + resumeHrxml_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The profile contents in HR-XML format.
+     * See http://schemas.liquid-technologies.com/hr-xml/2007-04-15/ for more
+     * information about Human Resources XML.
+     * Users can create a profile with only
+     * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] field. For
+     * example, the API parses the
+     * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] and
+     * creates a profile with all structured fields populated, for example.
+     * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord],
+     * [EducationRecord][google.cloud.talent.v4beta1.EducationRecord], etc. An
+     * error is thrown if the
+     * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] can't be
+     * parsed.
+     * If the [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] is
+     * provided during profile creation or update, any other structured data
+     * provided in the profile is ignored. The API populates these fields by
+     * parsing the HR-XML.
+     * 
+ * + * string resume_hrxml = 10; + */ + public Builder clearResumeHrxml() { + + resumeHrxml_ = getDefaultInstance().getResumeHrxml(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The profile contents in HR-XML format.
+     * See http://schemas.liquid-technologies.com/hr-xml/2007-04-15/ for more
+     * information about Human Resources XML.
+     * Users can create a profile with only
+     * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] field. For
+     * example, the API parses the
+     * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] and
+     * creates a profile with all structured fields populated, for example.
+     * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord],
+     * [EducationRecord][google.cloud.talent.v4beta1.EducationRecord], etc. An
+     * error is thrown if the
+     * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] can't be
+     * parsed.
+     * If the [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] is
+     * provided during profile creation or update, any other structured data
+     * provided in the profile is ignored. The API populates these fields by
+     * parsing the HR-XML.
+     * 
+ * + * string resume_hrxml = 10; + */ + public Builder setResumeHrxmlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + resumeHrxml_ = value; + onChanged(); + return this; + } + + private java.util.List personNames_ = + java.util.Collections.emptyList(); + + private void ensurePersonNamesIsMutable() { + if (!((bitField0_ & 0x00000200) == 0x00000200)) { + personNames_ = + new java.util.ArrayList(personNames_); + bitField0_ |= 0x00000200; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.PersonName, + com.google.cloud.talent.v4beta1.PersonName.Builder, + com.google.cloud.talent.v4beta1.PersonNameOrBuilder> + personNamesBuilder_; + + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public java.util.List getPersonNamesList() { + if (personNamesBuilder_ == null) { + return java.util.Collections.unmodifiableList(personNames_); + } else { + return personNamesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public int getPersonNamesCount() { + if (personNamesBuilder_ == null) { + return personNames_.size(); + } else { + return personNamesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public com.google.cloud.talent.v4beta1.PersonName getPersonNames(int index) { + if (personNamesBuilder_ == null) { + return personNames_.get(index); + } else { + return personNamesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public Builder setPersonNames(int index, com.google.cloud.talent.v4beta1.PersonName value) { + if (personNamesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePersonNamesIsMutable(); + personNames_.set(index, value); + onChanged(); + } else { + personNamesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public Builder setPersonNames( + int index, com.google.cloud.talent.v4beta1.PersonName.Builder builderForValue) { + if (personNamesBuilder_ == null) { + ensurePersonNamesIsMutable(); + personNames_.set(index, builderForValue.build()); + onChanged(); + } else { + personNamesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public Builder addPersonNames(com.google.cloud.talent.v4beta1.PersonName value) { + if (personNamesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePersonNamesIsMutable(); + personNames_.add(value); + onChanged(); + } else { + personNamesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public Builder addPersonNames(int index, com.google.cloud.talent.v4beta1.PersonName value) { + if (personNamesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePersonNamesIsMutable(); + personNames_.add(index, value); + onChanged(); + } else { + personNamesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public Builder addPersonNames( + com.google.cloud.talent.v4beta1.PersonName.Builder builderForValue) { + if (personNamesBuilder_ == null) { + ensurePersonNamesIsMutable(); + personNames_.add(builderForValue.build()); + onChanged(); + } else { + personNamesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public Builder addPersonNames( + int index, com.google.cloud.talent.v4beta1.PersonName.Builder builderForValue) { + if (personNamesBuilder_ == null) { + ensurePersonNamesIsMutable(); + personNames_.add(index, builderForValue.build()); + onChanged(); + } else { + personNamesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public Builder addAllPersonNames( + java.lang.Iterable values) { + if (personNamesBuilder_ == null) { + ensurePersonNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, personNames_); + onChanged(); + } else { + personNamesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public Builder clearPersonNames() { + if (personNamesBuilder_ == null) { + personNames_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + personNamesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public Builder removePersonNames(int index) { + if (personNamesBuilder_ == null) { + ensurePersonNamesIsMutable(); + personNames_.remove(index); + onChanged(); + } else { + personNamesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public com.google.cloud.talent.v4beta1.PersonName.Builder getPersonNamesBuilder(int index) { + return getPersonNamesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public com.google.cloud.talent.v4beta1.PersonNameOrBuilder getPersonNamesOrBuilder(int index) { + if (personNamesBuilder_ == null) { + return personNames_.get(index); + } else { + return personNamesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public java.util.List + getPersonNamesOrBuilderList() { + if (personNamesBuilder_ != null) { + return personNamesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(personNames_); + } + } + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public com.google.cloud.talent.v4beta1.PersonName.Builder addPersonNamesBuilder() { + return getPersonNamesFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.PersonName.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public com.google.cloud.talent.v4beta1.PersonName.Builder addPersonNamesBuilder(int index) { + return getPersonNamesFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.PersonName.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The names of the candidate this profile references.
+     * Currently only one person name is supported.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + public java.util.List + getPersonNamesBuilderList() { + return getPersonNamesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.PersonName, + com.google.cloud.talent.v4beta1.PersonName.Builder, + com.google.cloud.talent.v4beta1.PersonNameOrBuilder> + getPersonNamesFieldBuilder() { + if (personNamesBuilder_ == null) { + personNamesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.PersonName, + com.google.cloud.talent.v4beta1.PersonName.Builder, + com.google.cloud.talent.v4beta1.PersonNameOrBuilder>( + personNames_, + ((bitField0_ & 0x00000200) == 0x00000200), + getParentForChildren(), + isClean()); + personNames_ = null; + } + return personNamesBuilder_; + } + + private java.util.List addresses_ = + java.util.Collections.emptyList(); + + private void ensureAddressesIsMutable() { + if (!((bitField0_ & 0x00000400) == 0x00000400)) { + addresses_ = new java.util.ArrayList(addresses_); + bitField0_ |= 0x00000400; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Address, + com.google.cloud.talent.v4beta1.Address.Builder, + com.google.cloud.talent.v4beta1.AddressOrBuilder> + addressesBuilder_; + + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public java.util.List getAddressesList() { + if (addressesBuilder_ == null) { + return java.util.Collections.unmodifiableList(addresses_); + } else { + return addressesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public int getAddressesCount() { + if (addressesBuilder_ == null) { + return addresses_.size(); + } else { + return addressesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public com.google.cloud.talent.v4beta1.Address getAddresses(int index) { + if (addressesBuilder_ == null) { + return addresses_.get(index); + } else { + return addressesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public Builder setAddresses(int index, com.google.cloud.talent.v4beta1.Address value) { + if (addressesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressesIsMutable(); + addresses_.set(index, value); + onChanged(); + } else { + addressesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public Builder setAddresses( + int index, com.google.cloud.talent.v4beta1.Address.Builder builderForValue) { + if (addressesBuilder_ == null) { + ensureAddressesIsMutable(); + addresses_.set(index, builderForValue.build()); + onChanged(); + } else { + addressesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public Builder addAddresses(com.google.cloud.talent.v4beta1.Address value) { + if (addressesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressesIsMutable(); + addresses_.add(value); + onChanged(); + } else { + addressesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public Builder addAddresses(int index, com.google.cloud.talent.v4beta1.Address value) { + if (addressesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressesIsMutable(); + addresses_.add(index, value); + onChanged(); + } else { + addressesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public Builder addAddresses(com.google.cloud.talent.v4beta1.Address.Builder builderForValue) { + if (addressesBuilder_ == null) { + ensureAddressesIsMutable(); + addresses_.add(builderForValue.build()); + onChanged(); + } else { + addressesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public Builder addAddresses( + int index, com.google.cloud.talent.v4beta1.Address.Builder builderForValue) { + if (addressesBuilder_ == null) { + ensureAddressesIsMutable(); + addresses_.add(index, builderForValue.build()); + onChanged(); + } else { + addressesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public Builder addAllAddresses( + java.lang.Iterable values) { + if (addressesBuilder_ == null) { + ensureAddressesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, addresses_); + onChanged(); + } else { + addressesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public Builder clearAddresses() { + if (addressesBuilder_ == null) { + addresses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + } else { + addressesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public Builder removeAddresses(int index) { + if (addressesBuilder_ == null) { + ensureAddressesIsMutable(); + addresses_.remove(index); + onChanged(); + } else { + addressesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public com.google.cloud.talent.v4beta1.Address.Builder getAddressesBuilder(int index) { + return getAddressesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public com.google.cloud.talent.v4beta1.AddressOrBuilder getAddressesOrBuilder(int index) { + if (addressesBuilder_ == null) { + return addresses_.get(index); + } else { + return addressesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public java.util.List + getAddressesOrBuilderList() { + if (addressesBuilder_ != null) { + return addressesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(addresses_); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public com.google.cloud.talent.v4beta1.Address.Builder addAddressesBuilder() { + return getAddressesFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.Address.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public com.google.cloud.talent.v4beta1.Address.Builder addAddressesBuilder(int index) { + return getAddressesFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.Address.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The candidate's postal addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + public java.util.List + getAddressesBuilderList() { + return getAddressesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Address, + com.google.cloud.talent.v4beta1.Address.Builder, + com.google.cloud.talent.v4beta1.AddressOrBuilder> + getAddressesFieldBuilder() { + if (addressesBuilder_ == null) { + addressesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Address, + com.google.cloud.talent.v4beta1.Address.Builder, + com.google.cloud.talent.v4beta1.AddressOrBuilder>( + addresses_, + ((bitField0_ & 0x00000400) == 0x00000400), + getParentForChildren(), + isClean()); + addresses_ = null; + } + return addressesBuilder_; + } + + private java.util.List emailAddresses_ = + java.util.Collections.emptyList(); + + private void ensureEmailAddressesIsMutable() { + if (!((bitField0_ & 0x00000800) == 0x00000800)) { + emailAddresses_ = + new java.util.ArrayList(emailAddresses_); + bitField0_ |= 0x00000800; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Email, + com.google.cloud.talent.v4beta1.Email.Builder, + com.google.cloud.talent.v4beta1.EmailOrBuilder> + emailAddressesBuilder_; + + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public java.util.List getEmailAddressesList() { + if (emailAddressesBuilder_ == null) { + return java.util.Collections.unmodifiableList(emailAddresses_); + } else { + return emailAddressesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public int getEmailAddressesCount() { + if (emailAddressesBuilder_ == null) { + return emailAddresses_.size(); + } else { + return emailAddressesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public com.google.cloud.talent.v4beta1.Email getEmailAddresses(int index) { + if (emailAddressesBuilder_ == null) { + return emailAddresses_.get(index); + } else { + return emailAddressesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public Builder setEmailAddresses(int index, com.google.cloud.talent.v4beta1.Email value) { + if (emailAddressesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmailAddressesIsMutable(); + emailAddresses_.set(index, value); + onChanged(); + } else { + emailAddressesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public Builder setEmailAddresses( + int index, com.google.cloud.talent.v4beta1.Email.Builder builderForValue) { + if (emailAddressesBuilder_ == null) { + ensureEmailAddressesIsMutable(); + emailAddresses_.set(index, builderForValue.build()); + onChanged(); + } else { + emailAddressesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public Builder addEmailAddresses(com.google.cloud.talent.v4beta1.Email value) { + if (emailAddressesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmailAddressesIsMutable(); + emailAddresses_.add(value); + onChanged(); + } else { + emailAddressesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public Builder addEmailAddresses(int index, com.google.cloud.talent.v4beta1.Email value) { + if (emailAddressesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmailAddressesIsMutable(); + emailAddresses_.add(index, value); + onChanged(); + } else { + emailAddressesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public Builder addEmailAddresses( + com.google.cloud.talent.v4beta1.Email.Builder builderForValue) { + if (emailAddressesBuilder_ == null) { + ensureEmailAddressesIsMutable(); + emailAddresses_.add(builderForValue.build()); + onChanged(); + } else { + emailAddressesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public Builder addEmailAddresses( + int index, com.google.cloud.talent.v4beta1.Email.Builder builderForValue) { + if (emailAddressesBuilder_ == null) { + ensureEmailAddressesIsMutable(); + emailAddresses_.add(index, builderForValue.build()); + onChanged(); + } else { + emailAddressesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public Builder addAllEmailAddresses( + java.lang.Iterable values) { + if (emailAddressesBuilder_ == null) { + ensureEmailAddressesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, emailAddresses_); + onChanged(); + } else { + emailAddressesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public Builder clearEmailAddresses() { + if (emailAddressesBuilder_ == null) { + emailAddresses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + } else { + emailAddressesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public Builder removeEmailAddresses(int index) { + if (emailAddressesBuilder_ == null) { + ensureEmailAddressesIsMutable(); + emailAddresses_.remove(index); + onChanged(); + } else { + emailAddressesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public com.google.cloud.talent.v4beta1.Email.Builder getEmailAddressesBuilder(int index) { + return getEmailAddressesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public com.google.cloud.talent.v4beta1.EmailOrBuilder getEmailAddressesOrBuilder(int index) { + if (emailAddressesBuilder_ == null) { + return emailAddresses_.get(index); + } else { + return emailAddressesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public java.util.List + getEmailAddressesOrBuilderList() { + if (emailAddressesBuilder_ != null) { + return emailAddressesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(emailAddresses_); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public com.google.cloud.talent.v4beta1.Email.Builder addEmailAddressesBuilder() { + return getEmailAddressesFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.Email.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public com.google.cloud.talent.v4beta1.Email.Builder addEmailAddressesBuilder(int index) { + return getEmailAddressesFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.Email.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The candidate's email addresses.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + public java.util.List + getEmailAddressesBuilderList() { + return getEmailAddressesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Email, + com.google.cloud.talent.v4beta1.Email.Builder, + com.google.cloud.talent.v4beta1.EmailOrBuilder> + getEmailAddressesFieldBuilder() { + if (emailAddressesBuilder_ == null) { + emailAddressesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Email, + com.google.cloud.talent.v4beta1.Email.Builder, + com.google.cloud.talent.v4beta1.EmailOrBuilder>( + emailAddresses_, + ((bitField0_ & 0x00000800) == 0x00000800), + getParentForChildren(), + isClean()); + emailAddresses_ = null; + } + return emailAddressesBuilder_; + } + + private java.util.List phoneNumbers_ = + java.util.Collections.emptyList(); + + private void ensurePhoneNumbersIsMutable() { + if (!((bitField0_ & 0x00001000) == 0x00001000)) { + phoneNumbers_ = + new java.util.ArrayList(phoneNumbers_); + bitField0_ |= 0x00001000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Phone, + com.google.cloud.talent.v4beta1.Phone.Builder, + com.google.cloud.talent.v4beta1.PhoneOrBuilder> + phoneNumbersBuilder_; + + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public java.util.List getPhoneNumbersList() { + if (phoneNumbersBuilder_ == null) { + return java.util.Collections.unmodifiableList(phoneNumbers_); + } else { + return phoneNumbersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public int getPhoneNumbersCount() { + if (phoneNumbersBuilder_ == null) { + return phoneNumbers_.size(); + } else { + return phoneNumbersBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public com.google.cloud.talent.v4beta1.Phone getPhoneNumbers(int index) { + if (phoneNumbersBuilder_ == null) { + return phoneNumbers_.get(index); + } else { + return phoneNumbersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public Builder setPhoneNumbers(int index, com.google.cloud.talent.v4beta1.Phone value) { + if (phoneNumbersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePhoneNumbersIsMutable(); + phoneNumbers_.set(index, value); + onChanged(); + } else { + phoneNumbersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public Builder setPhoneNumbers( + int index, com.google.cloud.talent.v4beta1.Phone.Builder builderForValue) { + if (phoneNumbersBuilder_ == null) { + ensurePhoneNumbersIsMutable(); + phoneNumbers_.set(index, builderForValue.build()); + onChanged(); + } else { + phoneNumbersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public Builder addPhoneNumbers(com.google.cloud.talent.v4beta1.Phone value) { + if (phoneNumbersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePhoneNumbersIsMutable(); + phoneNumbers_.add(value); + onChanged(); + } else { + phoneNumbersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public Builder addPhoneNumbers(int index, com.google.cloud.talent.v4beta1.Phone value) { + if (phoneNumbersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePhoneNumbersIsMutable(); + phoneNumbers_.add(index, value); + onChanged(); + } else { + phoneNumbersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public Builder addPhoneNumbers(com.google.cloud.talent.v4beta1.Phone.Builder builderForValue) { + if (phoneNumbersBuilder_ == null) { + ensurePhoneNumbersIsMutable(); + phoneNumbers_.add(builderForValue.build()); + onChanged(); + } else { + phoneNumbersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public Builder addPhoneNumbers( + int index, com.google.cloud.talent.v4beta1.Phone.Builder builderForValue) { + if (phoneNumbersBuilder_ == null) { + ensurePhoneNumbersIsMutable(); + phoneNumbers_.add(index, builderForValue.build()); + onChanged(); + } else { + phoneNumbersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public Builder addAllPhoneNumbers( + java.lang.Iterable values) { + if (phoneNumbersBuilder_ == null) { + ensurePhoneNumbersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, phoneNumbers_); + onChanged(); + } else { + phoneNumbersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public Builder clearPhoneNumbers() { + if (phoneNumbersBuilder_ == null) { + phoneNumbers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + } else { + phoneNumbersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public Builder removePhoneNumbers(int index) { + if (phoneNumbersBuilder_ == null) { + ensurePhoneNumbersIsMutable(); + phoneNumbers_.remove(index); + onChanged(); + } else { + phoneNumbersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public com.google.cloud.talent.v4beta1.Phone.Builder getPhoneNumbersBuilder(int index) { + return getPhoneNumbersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public com.google.cloud.talent.v4beta1.PhoneOrBuilder getPhoneNumbersOrBuilder(int index) { + if (phoneNumbersBuilder_ == null) { + return phoneNumbers_.get(index); + } else { + return phoneNumbersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public java.util.List + getPhoneNumbersOrBuilderList() { + if (phoneNumbersBuilder_ != null) { + return phoneNumbersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(phoneNumbers_); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public com.google.cloud.talent.v4beta1.Phone.Builder addPhoneNumbersBuilder() { + return getPhoneNumbersFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.Phone.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public com.google.cloud.talent.v4beta1.Phone.Builder addPhoneNumbersBuilder(int index) { + return getPhoneNumbersFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.Phone.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The candidate's phone number(s).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + public java.util.List + getPhoneNumbersBuilderList() { + return getPhoneNumbersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Phone, + com.google.cloud.talent.v4beta1.Phone.Builder, + com.google.cloud.talent.v4beta1.PhoneOrBuilder> + getPhoneNumbersFieldBuilder() { + if (phoneNumbersBuilder_ == null) { + phoneNumbersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Phone, + com.google.cloud.talent.v4beta1.Phone.Builder, + com.google.cloud.talent.v4beta1.PhoneOrBuilder>( + phoneNumbers_, + ((bitField0_ & 0x00001000) == 0x00001000), + getParentForChildren(), + isClean()); + phoneNumbers_ = null; + } + return phoneNumbersBuilder_; + } + + private java.util.List personalUris_ = + java.util.Collections.emptyList(); + + private void ensurePersonalUrisIsMutable() { + if (!((bitField0_ & 0x00002000) == 0x00002000)) { + personalUris_ = + new java.util.ArrayList(personalUris_); + bitField0_ |= 0x00002000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.PersonalUri, + com.google.cloud.talent.v4beta1.PersonalUri.Builder, + com.google.cloud.talent.v4beta1.PersonalUriOrBuilder> + personalUrisBuilder_; + + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public java.util.List getPersonalUrisList() { + if (personalUrisBuilder_ == null) { + return java.util.Collections.unmodifiableList(personalUris_); + } else { + return personalUrisBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public int getPersonalUrisCount() { + if (personalUrisBuilder_ == null) { + return personalUris_.size(); + } else { + return personalUrisBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public com.google.cloud.talent.v4beta1.PersonalUri getPersonalUris(int index) { + if (personalUrisBuilder_ == null) { + return personalUris_.get(index); + } else { + return personalUrisBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public Builder setPersonalUris(int index, com.google.cloud.talent.v4beta1.PersonalUri value) { + if (personalUrisBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePersonalUrisIsMutable(); + personalUris_.set(index, value); + onChanged(); + } else { + personalUrisBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public Builder setPersonalUris( + int index, com.google.cloud.talent.v4beta1.PersonalUri.Builder builderForValue) { + if (personalUrisBuilder_ == null) { + ensurePersonalUrisIsMutable(); + personalUris_.set(index, builderForValue.build()); + onChanged(); + } else { + personalUrisBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public Builder addPersonalUris(com.google.cloud.talent.v4beta1.PersonalUri value) { + if (personalUrisBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePersonalUrisIsMutable(); + personalUris_.add(value); + onChanged(); + } else { + personalUrisBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public Builder addPersonalUris(int index, com.google.cloud.talent.v4beta1.PersonalUri value) { + if (personalUrisBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePersonalUrisIsMutable(); + personalUris_.add(index, value); + onChanged(); + } else { + personalUrisBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public Builder addPersonalUris( + com.google.cloud.talent.v4beta1.PersonalUri.Builder builderForValue) { + if (personalUrisBuilder_ == null) { + ensurePersonalUrisIsMutable(); + personalUris_.add(builderForValue.build()); + onChanged(); + } else { + personalUrisBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public Builder addPersonalUris( + int index, com.google.cloud.talent.v4beta1.PersonalUri.Builder builderForValue) { + if (personalUrisBuilder_ == null) { + ensurePersonalUrisIsMutable(); + personalUris_.add(index, builderForValue.build()); + onChanged(); + } else { + personalUrisBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public Builder addAllPersonalUris( + java.lang.Iterable values) { + if (personalUrisBuilder_ == null) { + ensurePersonalUrisIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, personalUris_); + onChanged(); + } else { + personalUrisBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public Builder clearPersonalUris() { + if (personalUrisBuilder_ == null) { + personalUris_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + } else { + personalUrisBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public Builder removePersonalUris(int index) { + if (personalUrisBuilder_ == null) { + ensurePersonalUrisIsMutable(); + personalUris_.remove(index); + onChanged(); + } else { + personalUrisBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public com.google.cloud.talent.v4beta1.PersonalUri.Builder getPersonalUrisBuilder(int index) { + return getPersonalUrisFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public com.google.cloud.talent.v4beta1.PersonalUriOrBuilder getPersonalUrisOrBuilder( + int index) { + if (personalUrisBuilder_ == null) { + return personalUris_.get(index); + } else { + return personalUrisBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public java.util.List + getPersonalUrisOrBuilderList() { + if (personalUrisBuilder_ != null) { + return personalUrisBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(personalUris_); + } + } + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public com.google.cloud.talent.v4beta1.PersonalUri.Builder addPersonalUrisBuilder() { + return getPersonalUrisFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.PersonalUri.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public com.google.cloud.talent.v4beta1.PersonalUri.Builder addPersonalUrisBuilder(int index) { + return getPersonalUrisFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.PersonalUri.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The candidate's personal URIs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + public java.util.List + getPersonalUrisBuilderList() { + return getPersonalUrisFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.PersonalUri, + com.google.cloud.talent.v4beta1.PersonalUri.Builder, + com.google.cloud.talent.v4beta1.PersonalUriOrBuilder> + getPersonalUrisFieldBuilder() { + if (personalUrisBuilder_ == null) { + personalUrisBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.PersonalUri, + com.google.cloud.talent.v4beta1.PersonalUri.Builder, + com.google.cloud.talent.v4beta1.PersonalUriOrBuilder>( + personalUris_, + ((bitField0_ & 0x00002000) == 0x00002000), + getParentForChildren(), + isClean()); + personalUris_ = null; + } + return personalUrisBuilder_; + } + + private java.util.List + additionalContactInfo_ = java.util.Collections.emptyList(); + + private void ensureAdditionalContactInfoIsMutable() { + if (!((bitField0_ & 0x00004000) == 0x00004000)) { + additionalContactInfo_ = + new java.util.ArrayList( + additionalContactInfo_); + bitField0_ |= 0x00004000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.AdditionalContactInfo, + com.google.cloud.talent.v4beta1.AdditionalContactInfo.Builder, + com.google.cloud.talent.v4beta1.AdditionalContactInfoOrBuilder> + additionalContactInfoBuilder_; + + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public java.util.List + getAdditionalContactInfoList() { + if (additionalContactInfoBuilder_ == null) { + return java.util.Collections.unmodifiableList(additionalContactInfo_); + } else { + return additionalContactInfoBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public int getAdditionalContactInfoCount() { + if (additionalContactInfoBuilder_ == null) { + return additionalContactInfo_.size(); + } else { + return additionalContactInfoBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public com.google.cloud.talent.v4beta1.AdditionalContactInfo getAdditionalContactInfo( + int index) { + if (additionalContactInfoBuilder_ == null) { + return additionalContactInfo_.get(index); + } else { + return additionalContactInfoBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public Builder setAdditionalContactInfo( + int index, com.google.cloud.talent.v4beta1.AdditionalContactInfo value) { + if (additionalContactInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalContactInfoIsMutable(); + additionalContactInfo_.set(index, value); + onChanged(); + } else { + additionalContactInfoBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public Builder setAdditionalContactInfo( + int index, com.google.cloud.talent.v4beta1.AdditionalContactInfo.Builder builderForValue) { + if (additionalContactInfoBuilder_ == null) { + ensureAdditionalContactInfoIsMutable(); + additionalContactInfo_.set(index, builderForValue.build()); + onChanged(); + } else { + additionalContactInfoBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public Builder addAdditionalContactInfo( + com.google.cloud.talent.v4beta1.AdditionalContactInfo value) { + if (additionalContactInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalContactInfoIsMutable(); + additionalContactInfo_.add(value); + onChanged(); + } else { + additionalContactInfoBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public Builder addAdditionalContactInfo( + int index, com.google.cloud.talent.v4beta1.AdditionalContactInfo value) { + if (additionalContactInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalContactInfoIsMutable(); + additionalContactInfo_.add(index, value); + onChanged(); + } else { + additionalContactInfoBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public Builder addAdditionalContactInfo( + com.google.cloud.talent.v4beta1.AdditionalContactInfo.Builder builderForValue) { + if (additionalContactInfoBuilder_ == null) { + ensureAdditionalContactInfoIsMutable(); + additionalContactInfo_.add(builderForValue.build()); + onChanged(); + } else { + additionalContactInfoBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public Builder addAdditionalContactInfo( + int index, com.google.cloud.talent.v4beta1.AdditionalContactInfo.Builder builderForValue) { + if (additionalContactInfoBuilder_ == null) { + ensureAdditionalContactInfoIsMutable(); + additionalContactInfo_.add(index, builderForValue.build()); + onChanged(); + } else { + additionalContactInfoBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public Builder addAllAdditionalContactInfo( + java.lang.Iterable + values) { + if (additionalContactInfoBuilder_ == null) { + ensureAdditionalContactInfoIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, additionalContactInfo_); + onChanged(); + } else { + additionalContactInfoBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public Builder clearAdditionalContactInfo() { + if (additionalContactInfoBuilder_ == null) { + additionalContactInfo_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + } else { + additionalContactInfoBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public Builder removeAdditionalContactInfo(int index) { + if (additionalContactInfoBuilder_ == null) { + ensureAdditionalContactInfoIsMutable(); + additionalContactInfo_.remove(index); + onChanged(); + } else { + additionalContactInfoBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public com.google.cloud.talent.v4beta1.AdditionalContactInfo.Builder + getAdditionalContactInfoBuilder(int index) { + return getAdditionalContactInfoFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public com.google.cloud.talent.v4beta1.AdditionalContactInfoOrBuilder + getAdditionalContactInfoOrBuilder(int index) { + if (additionalContactInfoBuilder_ == null) { + return additionalContactInfo_.get(index); + } else { + return additionalContactInfoBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public java.util.List + getAdditionalContactInfoOrBuilderList() { + if (additionalContactInfoBuilder_ != null) { + return additionalContactInfoBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(additionalContactInfo_); + } + } + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public com.google.cloud.talent.v4beta1.AdditionalContactInfo.Builder + addAdditionalContactInfoBuilder() { + return getAdditionalContactInfoFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.AdditionalContactInfo.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public com.google.cloud.talent.v4beta1.AdditionalContactInfo.Builder + addAdditionalContactInfoBuilder(int index) { + return getAdditionalContactInfoFieldBuilder() + .addBuilder( + index, com.google.cloud.talent.v4beta1.AdditionalContactInfo.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * Available contact information besides
+     * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+     * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+     * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+     * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+     * example, Hang-out, Skype.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + public java.util.List + getAdditionalContactInfoBuilderList() { + return getAdditionalContactInfoFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.AdditionalContactInfo, + com.google.cloud.talent.v4beta1.AdditionalContactInfo.Builder, + com.google.cloud.talent.v4beta1.AdditionalContactInfoOrBuilder> + getAdditionalContactInfoFieldBuilder() { + if (additionalContactInfoBuilder_ == null) { + additionalContactInfoBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.AdditionalContactInfo, + com.google.cloud.talent.v4beta1.AdditionalContactInfo.Builder, + com.google.cloud.talent.v4beta1.AdditionalContactInfoOrBuilder>( + additionalContactInfo_, + ((bitField0_ & 0x00004000) == 0x00004000), + getParentForChildren(), + isClean()); + additionalContactInfo_ = null; + } + return additionalContactInfoBuilder_; + } + + private java.util.List employmentRecords_ = + java.util.Collections.emptyList(); + + private void ensureEmploymentRecordsIsMutable() { + if (!((bitField0_ & 0x00008000) == 0x00008000)) { + employmentRecords_ = + new java.util.ArrayList( + employmentRecords_); + bitField0_ |= 0x00008000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.EmploymentRecord, + com.google.cloud.talent.v4beta1.EmploymentRecord.Builder, + com.google.cloud.talent.v4beta1.EmploymentRecordOrBuilder> + employmentRecordsBuilder_; + + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public java.util.List + getEmploymentRecordsList() { + if (employmentRecordsBuilder_ == null) { + return java.util.Collections.unmodifiableList(employmentRecords_); + } else { + return employmentRecordsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public int getEmploymentRecordsCount() { + if (employmentRecordsBuilder_ == null) { + return employmentRecords_.size(); + } else { + return employmentRecordsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public com.google.cloud.talent.v4beta1.EmploymentRecord getEmploymentRecords(int index) { + if (employmentRecordsBuilder_ == null) { + return employmentRecords_.get(index); + } else { + return employmentRecordsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public Builder setEmploymentRecords( + int index, com.google.cloud.talent.v4beta1.EmploymentRecord value) { + if (employmentRecordsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmploymentRecordsIsMutable(); + employmentRecords_.set(index, value); + onChanged(); + } else { + employmentRecordsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public Builder setEmploymentRecords( + int index, com.google.cloud.talent.v4beta1.EmploymentRecord.Builder builderForValue) { + if (employmentRecordsBuilder_ == null) { + ensureEmploymentRecordsIsMutable(); + employmentRecords_.set(index, builderForValue.build()); + onChanged(); + } else { + employmentRecordsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public Builder addEmploymentRecords(com.google.cloud.talent.v4beta1.EmploymentRecord value) { + if (employmentRecordsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmploymentRecordsIsMutable(); + employmentRecords_.add(value); + onChanged(); + } else { + employmentRecordsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public Builder addEmploymentRecords( + int index, com.google.cloud.talent.v4beta1.EmploymentRecord value) { + if (employmentRecordsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmploymentRecordsIsMutable(); + employmentRecords_.add(index, value); + onChanged(); + } else { + employmentRecordsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public Builder addEmploymentRecords( + com.google.cloud.talent.v4beta1.EmploymentRecord.Builder builderForValue) { + if (employmentRecordsBuilder_ == null) { + ensureEmploymentRecordsIsMutable(); + employmentRecords_.add(builderForValue.build()); + onChanged(); + } else { + employmentRecordsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public Builder addEmploymentRecords( + int index, com.google.cloud.talent.v4beta1.EmploymentRecord.Builder builderForValue) { + if (employmentRecordsBuilder_ == null) { + ensureEmploymentRecordsIsMutable(); + employmentRecords_.add(index, builderForValue.build()); + onChanged(); + } else { + employmentRecordsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public Builder addAllEmploymentRecords( + java.lang.Iterable values) { + if (employmentRecordsBuilder_ == null) { + ensureEmploymentRecordsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, employmentRecords_); + onChanged(); + } else { + employmentRecordsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public Builder clearEmploymentRecords() { + if (employmentRecordsBuilder_ == null) { + employmentRecords_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00008000); + onChanged(); + } else { + employmentRecordsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public Builder removeEmploymentRecords(int index) { + if (employmentRecordsBuilder_ == null) { + ensureEmploymentRecordsIsMutable(); + employmentRecords_.remove(index); + onChanged(); + } else { + employmentRecordsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public com.google.cloud.talent.v4beta1.EmploymentRecord.Builder getEmploymentRecordsBuilder( + int index) { + return getEmploymentRecordsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public com.google.cloud.talent.v4beta1.EmploymentRecordOrBuilder getEmploymentRecordsOrBuilder( + int index) { + if (employmentRecordsBuilder_ == null) { + return employmentRecords_.get(index); + } else { + return employmentRecordsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public java.util.List + getEmploymentRecordsOrBuilderList() { + if (employmentRecordsBuilder_ != null) { + return employmentRecordsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(employmentRecords_); + } + } + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public com.google.cloud.talent.v4beta1.EmploymentRecord.Builder addEmploymentRecordsBuilder() { + return getEmploymentRecordsFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.EmploymentRecord.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public com.google.cloud.talent.v4beta1.EmploymentRecord.Builder addEmploymentRecordsBuilder( + int index) { + return getEmploymentRecordsFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.EmploymentRecord.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The employment history records of the candidate. It's highly recommended
+     * to input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the employment records.
+     * * List different employment types separately, no matter how minor the
+     * change is.
+     * For example, only job title is changed from "software engineer" to "senior
+     * software engineer".
+     * * Provide
+     * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+     * for the current employment if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + public java.util.List + getEmploymentRecordsBuilderList() { + return getEmploymentRecordsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.EmploymentRecord, + com.google.cloud.talent.v4beta1.EmploymentRecord.Builder, + com.google.cloud.talent.v4beta1.EmploymentRecordOrBuilder> + getEmploymentRecordsFieldBuilder() { + if (employmentRecordsBuilder_ == null) { + employmentRecordsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.EmploymentRecord, + com.google.cloud.talent.v4beta1.EmploymentRecord.Builder, + com.google.cloud.talent.v4beta1.EmploymentRecordOrBuilder>( + employmentRecords_, + ((bitField0_ & 0x00008000) == 0x00008000), + getParentForChildren(), + isClean()); + employmentRecords_ = null; + } + return employmentRecordsBuilder_; + } + + private java.util.List educationRecords_ = + java.util.Collections.emptyList(); + + private void ensureEducationRecordsIsMutable() { + if (!((bitField0_ & 0x00010000) == 0x00010000)) { + educationRecords_ = + new java.util.ArrayList( + educationRecords_); + bitField0_ |= 0x00010000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.EducationRecord, + com.google.cloud.talent.v4beta1.EducationRecord.Builder, + com.google.cloud.talent.v4beta1.EducationRecordOrBuilder> + educationRecordsBuilder_; + + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public java.util.List + getEducationRecordsList() { + if (educationRecordsBuilder_ == null) { + return java.util.Collections.unmodifiableList(educationRecords_); + } else { + return educationRecordsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public int getEducationRecordsCount() { + if (educationRecordsBuilder_ == null) { + return educationRecords_.size(); + } else { + return educationRecordsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public com.google.cloud.talent.v4beta1.EducationRecord getEducationRecords(int index) { + if (educationRecordsBuilder_ == null) { + return educationRecords_.get(index); + } else { + return educationRecordsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public Builder setEducationRecords( + int index, com.google.cloud.talent.v4beta1.EducationRecord value) { + if (educationRecordsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEducationRecordsIsMutable(); + educationRecords_.set(index, value); + onChanged(); + } else { + educationRecordsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public Builder setEducationRecords( + int index, com.google.cloud.talent.v4beta1.EducationRecord.Builder builderForValue) { + if (educationRecordsBuilder_ == null) { + ensureEducationRecordsIsMutable(); + educationRecords_.set(index, builderForValue.build()); + onChanged(); + } else { + educationRecordsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public Builder addEducationRecords(com.google.cloud.talent.v4beta1.EducationRecord value) { + if (educationRecordsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEducationRecordsIsMutable(); + educationRecords_.add(value); + onChanged(); + } else { + educationRecordsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public Builder addEducationRecords( + int index, com.google.cloud.talent.v4beta1.EducationRecord value) { + if (educationRecordsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEducationRecordsIsMutable(); + educationRecords_.add(index, value); + onChanged(); + } else { + educationRecordsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public Builder addEducationRecords( + com.google.cloud.talent.v4beta1.EducationRecord.Builder builderForValue) { + if (educationRecordsBuilder_ == null) { + ensureEducationRecordsIsMutable(); + educationRecords_.add(builderForValue.build()); + onChanged(); + } else { + educationRecordsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public Builder addEducationRecords( + int index, com.google.cloud.talent.v4beta1.EducationRecord.Builder builderForValue) { + if (educationRecordsBuilder_ == null) { + ensureEducationRecordsIsMutable(); + educationRecords_.add(index, builderForValue.build()); + onChanged(); + } else { + educationRecordsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public Builder addAllEducationRecords( + java.lang.Iterable values) { + if (educationRecordsBuilder_ == null) { + ensureEducationRecordsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, educationRecords_); + onChanged(); + } else { + educationRecordsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public Builder clearEducationRecords() { + if (educationRecordsBuilder_ == null) { + educationRecords_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00010000); + onChanged(); + } else { + educationRecordsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public Builder removeEducationRecords(int index) { + if (educationRecordsBuilder_ == null) { + ensureEducationRecordsIsMutable(); + educationRecords_.remove(index); + onChanged(); + } else { + educationRecordsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public com.google.cloud.talent.v4beta1.EducationRecord.Builder getEducationRecordsBuilder( + int index) { + return getEducationRecordsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public com.google.cloud.talent.v4beta1.EducationRecordOrBuilder getEducationRecordsOrBuilder( + int index) { + if (educationRecordsBuilder_ == null) { + return educationRecords_.get(index); + } else { + return educationRecordsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public java.util.List + getEducationRecordsOrBuilderList() { + if (educationRecordsBuilder_ != null) { + return educationRecordsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(educationRecords_); + } + } + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public com.google.cloud.talent.v4beta1.EducationRecord.Builder addEducationRecordsBuilder() { + return getEducationRecordsFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.EducationRecord.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public com.google.cloud.talent.v4beta1.EducationRecord.Builder addEducationRecordsBuilder( + int index) { + return getEducationRecordsFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.EducationRecord.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The education history record of the candidate. It's highly recommended to
+     * input this information as accurately as possible to help improve search
+     * quality. Here are some recommendations:
+     * * Specify the start and end dates of the education records.
+     * * List each education type separately, no matter how minor the change is.
+     * For example, the profile contains the education experience from the same
+     * school but different degrees.
+     * * Provide
+     * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+     * for the current education if possible. If not, it's inferred from user
+     * inputs.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + public java.util.List + getEducationRecordsBuilderList() { + return getEducationRecordsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.EducationRecord, + com.google.cloud.talent.v4beta1.EducationRecord.Builder, + com.google.cloud.talent.v4beta1.EducationRecordOrBuilder> + getEducationRecordsFieldBuilder() { + if (educationRecordsBuilder_ == null) { + educationRecordsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.EducationRecord, + com.google.cloud.talent.v4beta1.EducationRecord.Builder, + com.google.cloud.talent.v4beta1.EducationRecordOrBuilder>( + educationRecords_, + ((bitField0_ & 0x00010000) == 0x00010000), + getParentForChildren(), + isClean()); + educationRecords_ = null; + } + return educationRecordsBuilder_; + } + + private java.util.List skills_ = + java.util.Collections.emptyList(); + + private void ensureSkillsIsMutable() { + if (!((bitField0_ & 0x00020000) == 0x00020000)) { + skills_ = new java.util.ArrayList(skills_); + bitField0_ |= 0x00020000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Skill, + com.google.cloud.talent.v4beta1.Skill.Builder, + com.google.cloud.talent.v4beta1.SkillOrBuilder> + skillsBuilder_; + + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public java.util.List getSkillsList() { + if (skillsBuilder_ == null) { + return java.util.Collections.unmodifiableList(skills_); + } else { + return skillsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public int getSkillsCount() { + if (skillsBuilder_ == null) { + return skills_.size(); + } else { + return skillsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public com.google.cloud.talent.v4beta1.Skill getSkills(int index) { + if (skillsBuilder_ == null) { + return skills_.get(index); + } else { + return skillsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public Builder setSkills(int index, com.google.cloud.talent.v4beta1.Skill value) { + if (skillsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillsIsMutable(); + skills_.set(index, value); + onChanged(); + } else { + skillsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public Builder setSkills( + int index, com.google.cloud.talent.v4beta1.Skill.Builder builderForValue) { + if (skillsBuilder_ == null) { + ensureSkillsIsMutable(); + skills_.set(index, builderForValue.build()); + onChanged(); + } else { + skillsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public Builder addSkills(com.google.cloud.talent.v4beta1.Skill value) { + if (skillsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillsIsMutable(); + skills_.add(value); + onChanged(); + } else { + skillsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public Builder addSkills(int index, com.google.cloud.talent.v4beta1.Skill value) { + if (skillsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillsIsMutable(); + skills_.add(index, value); + onChanged(); + } else { + skillsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public Builder addSkills(com.google.cloud.talent.v4beta1.Skill.Builder builderForValue) { + if (skillsBuilder_ == null) { + ensureSkillsIsMutable(); + skills_.add(builderForValue.build()); + onChanged(); + } else { + skillsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public Builder addSkills( + int index, com.google.cloud.talent.v4beta1.Skill.Builder builderForValue) { + if (skillsBuilder_ == null) { + ensureSkillsIsMutable(); + skills_.add(index, builderForValue.build()); + onChanged(); + } else { + skillsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public Builder addAllSkills( + java.lang.Iterable values) { + if (skillsBuilder_ == null) { + ensureSkillsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, skills_); + onChanged(); + } else { + skillsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public Builder clearSkills() { + if (skillsBuilder_ == null) { + skills_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00020000); + onChanged(); + } else { + skillsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public Builder removeSkills(int index) { + if (skillsBuilder_ == null) { + ensureSkillsIsMutable(); + skills_.remove(index); + onChanged(); + } else { + skillsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public com.google.cloud.talent.v4beta1.Skill.Builder getSkillsBuilder(int index) { + return getSkillsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public com.google.cloud.talent.v4beta1.SkillOrBuilder getSkillsOrBuilder(int index) { + if (skillsBuilder_ == null) { + return skills_.get(index); + } else { + return skillsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public java.util.List + getSkillsOrBuilderList() { + if (skillsBuilder_ != null) { + return skillsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(skills_); + } + } + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public com.google.cloud.talent.v4beta1.Skill.Builder addSkillsBuilder() { + return getSkillsFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.Skill.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public com.google.cloud.talent.v4beta1.Skill.Builder addSkillsBuilder(int index) { + return getSkillsFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.Skill.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The skill set of the candidate. It's highly recommended to provide as
+     * much information as possible to help improve the search quality.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + public java.util.List getSkillsBuilderList() { + return getSkillsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Skill, + com.google.cloud.talent.v4beta1.Skill.Builder, + com.google.cloud.talent.v4beta1.SkillOrBuilder> + getSkillsFieldBuilder() { + if (skillsBuilder_ == null) { + skillsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Skill, + com.google.cloud.talent.v4beta1.Skill.Builder, + com.google.cloud.talent.v4beta1.SkillOrBuilder>( + skills_, + ((bitField0_ & 0x00020000) == 0x00020000), + getParentForChildren(), + isClean()); + skills_ = null; + } + return skillsBuilder_; + } + + private java.util.List activities_ = + java.util.Collections.emptyList(); + + private void ensureActivitiesIsMutable() { + if (!((bitField0_ & 0x00040000) == 0x00040000)) { + activities_ = + new java.util.ArrayList(activities_); + bitField0_ |= 0x00040000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Activity, + com.google.cloud.talent.v4beta1.Activity.Builder, + com.google.cloud.talent.v4beta1.ActivityOrBuilder> + activitiesBuilder_; + + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public java.util.List getActivitiesList() { + if (activitiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(activities_); + } else { + return activitiesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public int getActivitiesCount() { + if (activitiesBuilder_ == null) { + return activities_.size(); + } else { + return activitiesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public com.google.cloud.talent.v4beta1.Activity getActivities(int index) { + if (activitiesBuilder_ == null) { + return activities_.get(index); + } else { + return activitiesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public Builder setActivities(int index, com.google.cloud.talent.v4beta1.Activity value) { + if (activitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActivitiesIsMutable(); + activities_.set(index, value); + onChanged(); + } else { + activitiesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public Builder setActivities( + int index, com.google.cloud.talent.v4beta1.Activity.Builder builderForValue) { + if (activitiesBuilder_ == null) { + ensureActivitiesIsMutable(); + activities_.set(index, builderForValue.build()); + onChanged(); + } else { + activitiesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public Builder addActivities(com.google.cloud.talent.v4beta1.Activity value) { + if (activitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActivitiesIsMutable(); + activities_.add(value); + onChanged(); + } else { + activitiesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public Builder addActivities(int index, com.google.cloud.talent.v4beta1.Activity value) { + if (activitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActivitiesIsMutable(); + activities_.add(index, value); + onChanged(); + } else { + activitiesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public Builder addActivities(com.google.cloud.talent.v4beta1.Activity.Builder builderForValue) { + if (activitiesBuilder_ == null) { + ensureActivitiesIsMutable(); + activities_.add(builderForValue.build()); + onChanged(); + } else { + activitiesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public Builder addActivities( + int index, com.google.cloud.talent.v4beta1.Activity.Builder builderForValue) { + if (activitiesBuilder_ == null) { + ensureActivitiesIsMutable(); + activities_.add(index, builderForValue.build()); + onChanged(); + } else { + activitiesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public Builder addAllActivities( + java.lang.Iterable values) { + if (activitiesBuilder_ == null) { + ensureActivitiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, activities_); + onChanged(); + } else { + activitiesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public Builder clearActivities() { + if (activitiesBuilder_ == null) { + activities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00040000); + onChanged(); + } else { + activitiesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public Builder removeActivities(int index) { + if (activitiesBuilder_ == null) { + ensureActivitiesIsMutable(); + activities_.remove(index); + onChanged(); + } else { + activitiesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public com.google.cloud.talent.v4beta1.Activity.Builder getActivitiesBuilder(int index) { + return getActivitiesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public com.google.cloud.talent.v4beta1.ActivityOrBuilder getActivitiesOrBuilder(int index) { + if (activitiesBuilder_ == null) { + return activities_.get(index); + } else { + return activitiesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public java.util.List + getActivitiesOrBuilderList() { + if (activitiesBuilder_ != null) { + return activitiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(activities_); + } + } + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public com.google.cloud.talent.v4beta1.Activity.Builder addActivitiesBuilder() { + return getActivitiesFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.Activity.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public com.google.cloud.talent.v4beta1.Activity.Builder addActivitiesBuilder(int index) { + return getActivitiesFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.Activity.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The individual or collaborative activities which the candidate has
+     * participated in, for example, open-source projects, class assignments that
+     * aren't listed in
+     * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + public java.util.List + getActivitiesBuilderList() { + return getActivitiesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Activity, + com.google.cloud.talent.v4beta1.Activity.Builder, + com.google.cloud.talent.v4beta1.ActivityOrBuilder> + getActivitiesFieldBuilder() { + if (activitiesBuilder_ == null) { + activitiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Activity, + com.google.cloud.talent.v4beta1.Activity.Builder, + com.google.cloud.talent.v4beta1.ActivityOrBuilder>( + activities_, + ((bitField0_ & 0x00040000) == 0x00040000), + getParentForChildren(), + isClean()); + activities_ = null; + } + return activitiesBuilder_; + } + + private java.util.List publications_ = + java.util.Collections.emptyList(); + + private void ensurePublicationsIsMutable() { + if (!((bitField0_ & 0x00080000) == 0x00080000)) { + publications_ = + new java.util.ArrayList(publications_); + bitField0_ |= 0x00080000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Publication, + com.google.cloud.talent.v4beta1.Publication.Builder, + com.google.cloud.talent.v4beta1.PublicationOrBuilder> + publicationsBuilder_; + + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public java.util.List getPublicationsList() { + if (publicationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(publications_); + } else { + return publicationsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public int getPublicationsCount() { + if (publicationsBuilder_ == null) { + return publications_.size(); + } else { + return publicationsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public com.google.cloud.talent.v4beta1.Publication getPublications(int index) { + if (publicationsBuilder_ == null) { + return publications_.get(index); + } else { + return publicationsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public Builder setPublications(int index, com.google.cloud.talent.v4beta1.Publication value) { + if (publicationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePublicationsIsMutable(); + publications_.set(index, value); + onChanged(); + } else { + publicationsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public Builder setPublications( + int index, com.google.cloud.talent.v4beta1.Publication.Builder builderForValue) { + if (publicationsBuilder_ == null) { + ensurePublicationsIsMutable(); + publications_.set(index, builderForValue.build()); + onChanged(); + } else { + publicationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public Builder addPublications(com.google.cloud.talent.v4beta1.Publication value) { + if (publicationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePublicationsIsMutable(); + publications_.add(value); + onChanged(); + } else { + publicationsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public Builder addPublications(int index, com.google.cloud.talent.v4beta1.Publication value) { + if (publicationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePublicationsIsMutable(); + publications_.add(index, value); + onChanged(); + } else { + publicationsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public Builder addPublications( + com.google.cloud.talent.v4beta1.Publication.Builder builderForValue) { + if (publicationsBuilder_ == null) { + ensurePublicationsIsMutable(); + publications_.add(builderForValue.build()); + onChanged(); + } else { + publicationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public Builder addPublications( + int index, com.google.cloud.talent.v4beta1.Publication.Builder builderForValue) { + if (publicationsBuilder_ == null) { + ensurePublicationsIsMutable(); + publications_.add(index, builderForValue.build()); + onChanged(); + } else { + publicationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public Builder addAllPublications( + java.lang.Iterable values) { + if (publicationsBuilder_ == null) { + ensurePublicationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, publications_); + onChanged(); + } else { + publicationsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public Builder clearPublications() { + if (publicationsBuilder_ == null) { + publications_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00080000); + onChanged(); + } else { + publicationsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public Builder removePublications(int index) { + if (publicationsBuilder_ == null) { + ensurePublicationsIsMutable(); + publications_.remove(index); + onChanged(); + } else { + publicationsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public com.google.cloud.talent.v4beta1.Publication.Builder getPublicationsBuilder(int index) { + return getPublicationsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public com.google.cloud.talent.v4beta1.PublicationOrBuilder getPublicationsOrBuilder( + int index) { + if (publicationsBuilder_ == null) { + return publications_.get(index); + } else { + return publicationsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public java.util.List + getPublicationsOrBuilderList() { + if (publicationsBuilder_ != null) { + return publicationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(publications_); + } + } + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public com.google.cloud.talent.v4beta1.Publication.Builder addPublicationsBuilder() { + return getPublicationsFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.Publication.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public com.google.cloud.talent.v4beta1.Publication.Builder addPublicationsBuilder(int index) { + return getPublicationsFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.Publication.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The publications published by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + public java.util.List + getPublicationsBuilderList() { + return getPublicationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Publication, + com.google.cloud.talent.v4beta1.Publication.Builder, + com.google.cloud.talent.v4beta1.PublicationOrBuilder> + getPublicationsFieldBuilder() { + if (publicationsBuilder_ == null) { + publicationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Publication, + com.google.cloud.talent.v4beta1.Publication.Builder, + com.google.cloud.talent.v4beta1.PublicationOrBuilder>( + publications_, + ((bitField0_ & 0x00080000) == 0x00080000), + getParentForChildren(), + isClean()); + publications_ = null; + } + return publicationsBuilder_; + } + + private java.util.List patents_ = + java.util.Collections.emptyList(); + + private void ensurePatentsIsMutable() { + if (!((bitField0_ & 0x00100000) == 0x00100000)) { + patents_ = new java.util.ArrayList(patents_); + bitField0_ |= 0x00100000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Patent, + com.google.cloud.talent.v4beta1.Patent.Builder, + com.google.cloud.talent.v4beta1.PatentOrBuilder> + patentsBuilder_; + + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public java.util.List getPatentsList() { + if (patentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(patents_); + } else { + return patentsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public int getPatentsCount() { + if (patentsBuilder_ == null) { + return patents_.size(); + } else { + return patentsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public com.google.cloud.talent.v4beta1.Patent getPatents(int index) { + if (patentsBuilder_ == null) { + return patents_.get(index); + } else { + return patentsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public Builder setPatents(int index, com.google.cloud.talent.v4beta1.Patent value) { + if (patentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePatentsIsMutable(); + patents_.set(index, value); + onChanged(); + } else { + patentsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public Builder setPatents( + int index, com.google.cloud.talent.v4beta1.Patent.Builder builderForValue) { + if (patentsBuilder_ == null) { + ensurePatentsIsMutable(); + patents_.set(index, builderForValue.build()); + onChanged(); + } else { + patentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public Builder addPatents(com.google.cloud.talent.v4beta1.Patent value) { + if (patentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePatentsIsMutable(); + patents_.add(value); + onChanged(); + } else { + patentsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public Builder addPatents(int index, com.google.cloud.talent.v4beta1.Patent value) { + if (patentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePatentsIsMutable(); + patents_.add(index, value); + onChanged(); + } else { + patentsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public Builder addPatents(com.google.cloud.talent.v4beta1.Patent.Builder builderForValue) { + if (patentsBuilder_ == null) { + ensurePatentsIsMutable(); + patents_.add(builderForValue.build()); + onChanged(); + } else { + patentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public Builder addPatents( + int index, com.google.cloud.talent.v4beta1.Patent.Builder builderForValue) { + if (patentsBuilder_ == null) { + ensurePatentsIsMutable(); + patents_.add(index, builderForValue.build()); + onChanged(); + } else { + patentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public Builder addAllPatents( + java.lang.Iterable values) { + if (patentsBuilder_ == null) { + ensurePatentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, patents_); + onChanged(); + } else { + patentsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public Builder clearPatents() { + if (patentsBuilder_ == null) { + patents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00100000); + onChanged(); + } else { + patentsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public Builder removePatents(int index) { + if (patentsBuilder_ == null) { + ensurePatentsIsMutable(); + patents_.remove(index); + onChanged(); + } else { + patentsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public com.google.cloud.talent.v4beta1.Patent.Builder getPatentsBuilder(int index) { + return getPatentsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public com.google.cloud.talent.v4beta1.PatentOrBuilder getPatentsOrBuilder(int index) { + if (patentsBuilder_ == null) { + return patents_.get(index); + } else { + return patentsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public java.util.List + getPatentsOrBuilderList() { + if (patentsBuilder_ != null) { + return patentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(patents_); + } + } + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public com.google.cloud.talent.v4beta1.Patent.Builder addPatentsBuilder() { + return getPatentsFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.Patent.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public com.google.cloud.talent.v4beta1.Patent.Builder addPatentsBuilder(int index) { + return getPatentsFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.Patent.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The patents acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + public java.util.List getPatentsBuilderList() { + return getPatentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Patent, + com.google.cloud.talent.v4beta1.Patent.Builder, + com.google.cloud.talent.v4beta1.PatentOrBuilder> + getPatentsFieldBuilder() { + if (patentsBuilder_ == null) { + patentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Patent, + com.google.cloud.talent.v4beta1.Patent.Builder, + com.google.cloud.talent.v4beta1.PatentOrBuilder>( + patents_, + ((bitField0_ & 0x00100000) == 0x00100000), + getParentForChildren(), + isClean()); + patents_ = null; + } + return patentsBuilder_; + } + + private java.util.List certifications_ = + java.util.Collections.emptyList(); + + private void ensureCertificationsIsMutable() { + if (!((bitField0_ & 0x00200000) == 0x00200000)) { + certifications_ = + new java.util.ArrayList(certifications_); + bitField0_ |= 0x00200000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Certification, + com.google.cloud.talent.v4beta1.Certification.Builder, + com.google.cloud.talent.v4beta1.CertificationOrBuilder> + certificationsBuilder_; + + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public java.util.List getCertificationsList() { + if (certificationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(certifications_); + } else { + return certificationsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public int getCertificationsCount() { + if (certificationsBuilder_ == null) { + return certifications_.size(); + } else { + return certificationsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public com.google.cloud.talent.v4beta1.Certification getCertifications(int index) { + if (certificationsBuilder_ == null) { + return certifications_.get(index); + } else { + return certificationsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public Builder setCertifications( + int index, com.google.cloud.talent.v4beta1.Certification value) { + if (certificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCertificationsIsMutable(); + certifications_.set(index, value); + onChanged(); + } else { + certificationsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public Builder setCertifications( + int index, com.google.cloud.talent.v4beta1.Certification.Builder builderForValue) { + if (certificationsBuilder_ == null) { + ensureCertificationsIsMutable(); + certifications_.set(index, builderForValue.build()); + onChanged(); + } else { + certificationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public Builder addCertifications(com.google.cloud.talent.v4beta1.Certification value) { + if (certificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCertificationsIsMutable(); + certifications_.add(value); + onChanged(); + } else { + certificationsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public Builder addCertifications( + int index, com.google.cloud.talent.v4beta1.Certification value) { + if (certificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCertificationsIsMutable(); + certifications_.add(index, value); + onChanged(); + } else { + certificationsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public Builder addCertifications( + com.google.cloud.talent.v4beta1.Certification.Builder builderForValue) { + if (certificationsBuilder_ == null) { + ensureCertificationsIsMutable(); + certifications_.add(builderForValue.build()); + onChanged(); + } else { + certificationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public Builder addCertifications( + int index, com.google.cloud.talent.v4beta1.Certification.Builder builderForValue) { + if (certificationsBuilder_ == null) { + ensureCertificationsIsMutable(); + certifications_.add(index, builderForValue.build()); + onChanged(); + } else { + certificationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public Builder addAllCertifications( + java.lang.Iterable values) { + if (certificationsBuilder_ == null) { + ensureCertificationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, certifications_); + onChanged(); + } else { + certificationsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public Builder clearCertifications() { + if (certificationsBuilder_ == null) { + certifications_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00200000); + onChanged(); + } else { + certificationsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public Builder removeCertifications(int index) { + if (certificationsBuilder_ == null) { + ensureCertificationsIsMutable(); + certifications_.remove(index); + onChanged(); + } else { + certificationsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public com.google.cloud.talent.v4beta1.Certification.Builder getCertificationsBuilder( + int index) { + return getCertificationsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public com.google.cloud.talent.v4beta1.CertificationOrBuilder getCertificationsOrBuilder( + int index) { + if (certificationsBuilder_ == null) { + return certifications_.get(index); + } else { + return certificationsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public java.util.List + getCertificationsOrBuilderList() { + if (certificationsBuilder_ != null) { + return certificationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(certifications_); + } + } + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public com.google.cloud.talent.v4beta1.Certification.Builder addCertificationsBuilder() { + return getCertificationsFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.Certification.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public com.google.cloud.talent.v4beta1.Certification.Builder addCertificationsBuilder( + int index) { + return getCertificationsFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.Certification.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The certifications acquired by the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + public java.util.List + getCertificationsBuilderList() { + return getCertificationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Certification, + com.google.cloud.talent.v4beta1.Certification.Builder, + com.google.cloud.talent.v4beta1.CertificationOrBuilder> + getCertificationsFieldBuilder() { + if (certificationsBuilder_ == null) { + certificationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Certification, + com.google.cloud.talent.v4beta1.Certification.Builder, + com.google.cloud.talent.v4beta1.CertificationOrBuilder>( + certifications_, + ((bitField0_ & 0x00200000) == 0x00200000), + getParentForChildren(), + isClean()); + certifications_ = null; + } + return certificationsBuilder_; + } + + private java.util.List jobApplications_ = + java.util.Collections.emptyList(); + + private void ensureJobApplicationsIsMutable() { + if (!((bitField0_ & 0x00400000) == 0x00400000)) { + jobApplications_ = + new java.util.ArrayList( + jobApplications_); + bitField0_ |= 0x00400000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.JobApplication, + com.google.cloud.talent.v4beta1.JobApplication.Builder, + com.google.cloud.talent.v4beta1.JobApplicationOrBuilder> + jobApplicationsBuilder_; + + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public java.util.List getJobApplicationsList() { + if (jobApplicationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(jobApplications_); + } else { + return jobApplicationsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public int getJobApplicationsCount() { + if (jobApplicationsBuilder_ == null) { + return jobApplications_.size(); + } else { + return jobApplicationsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public com.google.cloud.talent.v4beta1.JobApplication getJobApplications(int index) { + if (jobApplicationsBuilder_ == null) { + return jobApplications_.get(index); + } else { + return jobApplicationsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public Builder setJobApplications( + int index, com.google.cloud.talent.v4beta1.JobApplication value) { + if (jobApplicationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobApplicationsIsMutable(); + jobApplications_.set(index, value); + onChanged(); + } else { + jobApplicationsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public Builder setJobApplications( + int index, com.google.cloud.talent.v4beta1.JobApplication.Builder builderForValue) { + if (jobApplicationsBuilder_ == null) { + ensureJobApplicationsIsMutable(); + jobApplications_.set(index, builderForValue.build()); + onChanged(); + } else { + jobApplicationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public Builder addJobApplications(com.google.cloud.talent.v4beta1.JobApplication value) { + if (jobApplicationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobApplicationsIsMutable(); + jobApplications_.add(value); + onChanged(); + } else { + jobApplicationsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public Builder addJobApplications( + int index, com.google.cloud.talent.v4beta1.JobApplication value) { + if (jobApplicationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobApplicationsIsMutable(); + jobApplications_.add(index, value); + onChanged(); + } else { + jobApplicationsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public Builder addJobApplications( + com.google.cloud.talent.v4beta1.JobApplication.Builder builderForValue) { + if (jobApplicationsBuilder_ == null) { + ensureJobApplicationsIsMutable(); + jobApplications_.add(builderForValue.build()); + onChanged(); + } else { + jobApplicationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public Builder addJobApplications( + int index, com.google.cloud.talent.v4beta1.JobApplication.Builder builderForValue) { + if (jobApplicationsBuilder_ == null) { + ensureJobApplicationsIsMutable(); + jobApplications_.add(index, builderForValue.build()); + onChanged(); + } else { + jobApplicationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public Builder addAllJobApplications( + java.lang.Iterable values) { + if (jobApplicationsBuilder_ == null) { + ensureJobApplicationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jobApplications_); + onChanged(); + } else { + jobApplicationsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public Builder clearJobApplications() { + if (jobApplicationsBuilder_ == null) { + jobApplications_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00400000); + onChanged(); + } else { + jobApplicationsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public Builder removeJobApplications(int index) { + if (jobApplicationsBuilder_ == null) { + ensureJobApplicationsIsMutable(); + jobApplications_.remove(index); + onChanged(); + } else { + jobApplicationsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public com.google.cloud.talent.v4beta1.JobApplication.Builder getJobApplicationsBuilder( + int index) { + return getJobApplicationsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public com.google.cloud.talent.v4beta1.JobApplicationOrBuilder getJobApplicationsOrBuilder( + int index) { + if (jobApplicationsBuilder_ == null) { + return jobApplications_.get(index); + } else { + return jobApplicationsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public java.util.List + getJobApplicationsOrBuilderList() { + if (jobApplicationsBuilder_ != null) { + return jobApplicationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(jobApplications_); + } + } + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public com.google.cloud.talent.v4beta1.JobApplication.Builder addJobApplicationsBuilder() { + return getJobApplicationsFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.JobApplication.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public com.google.cloud.talent.v4beta1.JobApplication.Builder addJobApplicationsBuilder( + int index) { + return getJobApplicationsFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.JobApplication.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The job applications of the candidate.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + public java.util.List + getJobApplicationsBuilderList() { + return getJobApplicationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.JobApplication, + com.google.cloud.talent.v4beta1.JobApplication.Builder, + com.google.cloud.talent.v4beta1.JobApplicationOrBuilder> + getJobApplicationsFieldBuilder() { + if (jobApplicationsBuilder_ == null) { + jobApplicationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.JobApplication, + com.google.cloud.talent.v4beta1.JobApplication.Builder, + com.google.cloud.talent.v4beta1.JobApplicationOrBuilder>( + jobApplications_, + ((bitField0_ & 0x00400000) == 0x00400000), + getParentForChildren(), + isClean()); + jobApplications_ = null; + } + return jobApplicationsBuilder_; + } + + private java.util.List recruitingNotes_ = + java.util.Collections.emptyList(); + + private void ensureRecruitingNotesIsMutable() { + if (!((bitField0_ & 0x00800000) == 0x00800000)) { + recruitingNotes_ = + new java.util.ArrayList( + recruitingNotes_); + bitField0_ |= 0x00800000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.RecruitingNote, + com.google.cloud.talent.v4beta1.RecruitingNote.Builder, + com.google.cloud.talent.v4beta1.RecruitingNoteOrBuilder> + recruitingNotesBuilder_; + + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public java.util.List getRecruitingNotesList() { + if (recruitingNotesBuilder_ == null) { + return java.util.Collections.unmodifiableList(recruitingNotes_); + } else { + return recruitingNotesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public int getRecruitingNotesCount() { + if (recruitingNotesBuilder_ == null) { + return recruitingNotes_.size(); + } else { + return recruitingNotesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public com.google.cloud.talent.v4beta1.RecruitingNote getRecruitingNotes(int index) { + if (recruitingNotesBuilder_ == null) { + return recruitingNotes_.get(index); + } else { + return recruitingNotesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public Builder setRecruitingNotes( + int index, com.google.cloud.talent.v4beta1.RecruitingNote value) { + if (recruitingNotesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecruitingNotesIsMutable(); + recruitingNotes_.set(index, value); + onChanged(); + } else { + recruitingNotesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public Builder setRecruitingNotes( + int index, com.google.cloud.talent.v4beta1.RecruitingNote.Builder builderForValue) { + if (recruitingNotesBuilder_ == null) { + ensureRecruitingNotesIsMutable(); + recruitingNotes_.set(index, builderForValue.build()); + onChanged(); + } else { + recruitingNotesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public Builder addRecruitingNotes(com.google.cloud.talent.v4beta1.RecruitingNote value) { + if (recruitingNotesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecruitingNotesIsMutable(); + recruitingNotes_.add(value); + onChanged(); + } else { + recruitingNotesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public Builder addRecruitingNotes( + int index, com.google.cloud.talent.v4beta1.RecruitingNote value) { + if (recruitingNotesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecruitingNotesIsMutable(); + recruitingNotes_.add(index, value); + onChanged(); + } else { + recruitingNotesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public Builder addRecruitingNotes( + com.google.cloud.talent.v4beta1.RecruitingNote.Builder builderForValue) { + if (recruitingNotesBuilder_ == null) { + ensureRecruitingNotesIsMutable(); + recruitingNotes_.add(builderForValue.build()); + onChanged(); + } else { + recruitingNotesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public Builder addRecruitingNotes( + int index, com.google.cloud.talent.v4beta1.RecruitingNote.Builder builderForValue) { + if (recruitingNotesBuilder_ == null) { + ensureRecruitingNotesIsMutable(); + recruitingNotes_.add(index, builderForValue.build()); + onChanged(); + } else { + recruitingNotesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public Builder addAllRecruitingNotes( + java.lang.Iterable values) { + if (recruitingNotesBuilder_ == null) { + ensureRecruitingNotesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, recruitingNotes_); + onChanged(); + } else { + recruitingNotesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public Builder clearRecruitingNotes() { + if (recruitingNotesBuilder_ == null) { + recruitingNotes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00800000); + onChanged(); + } else { + recruitingNotesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public Builder removeRecruitingNotes(int index) { + if (recruitingNotesBuilder_ == null) { + ensureRecruitingNotesIsMutable(); + recruitingNotes_.remove(index); + onChanged(); + } else { + recruitingNotesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public com.google.cloud.talent.v4beta1.RecruitingNote.Builder getRecruitingNotesBuilder( + int index) { + return getRecruitingNotesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public com.google.cloud.talent.v4beta1.RecruitingNoteOrBuilder getRecruitingNotesOrBuilder( + int index) { + if (recruitingNotesBuilder_ == null) { + return recruitingNotes_.get(index); + } else { + return recruitingNotesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public java.util.List + getRecruitingNotesOrBuilderList() { + if (recruitingNotesBuilder_ != null) { + return recruitingNotesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(recruitingNotes_); + } + } + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public com.google.cloud.talent.v4beta1.RecruitingNote.Builder addRecruitingNotesBuilder() { + return getRecruitingNotesFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.RecruitingNote.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public com.google.cloud.talent.v4beta1.RecruitingNote.Builder addRecruitingNotesBuilder( + int index) { + return getRecruitingNotesFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.RecruitingNote.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The recruiting notes added for the candidate.
+     * For example, the recruiter can add some unstructured comments for this
+     * candidate like "this candidate also has experiences in volunteer work".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + public java.util.List + getRecruitingNotesBuilderList() { + return getRecruitingNotesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.RecruitingNote, + com.google.cloud.talent.v4beta1.RecruitingNote.Builder, + com.google.cloud.talent.v4beta1.RecruitingNoteOrBuilder> + getRecruitingNotesFieldBuilder() { + if (recruitingNotesBuilder_ == null) { + recruitingNotesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.RecruitingNote, + com.google.cloud.talent.v4beta1.RecruitingNote.Builder, + com.google.cloud.talent.v4beta1.RecruitingNoteOrBuilder>( + recruitingNotes_, + ((bitField0_ & 0x00800000) == 0x00800000), + getParentForChildren(), + isClean()); + recruitingNotes_ = null; + } + return recruitingNotesBuilder_; + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> + customAttributes_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> + internalGetCustomAttributes() { + if (customAttributes_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CustomAttributesDefaultEntryHolder.defaultEntry); + } + return customAttributes_; + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> + internalGetMutableCustomAttributes() { + onChanged(); + ; + if (customAttributes_ == null) { + customAttributes_ = + com.google.protobuf.MapField.newMapField( + CustomAttributesDefaultEntryHolder.defaultEntry); + } + if (!customAttributes_.isMutable()) { + customAttributes_ = customAttributes_.copy(); + } + return customAttributes_; + } + + public int getCustomAttributesCount() { + return internalGetCustomAttributes().getMap().size(); + } + /** + * + * + *
+     * Optional.
+     * A map of fields to hold both filterable and non-filterable custom profile
+     * attributes that aren't covered by the provided structured fields. See
+     * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more
+     * details.
+     * At most 100 filterable and at most 100 unfilterable keys are supported. If
+     * limit is exceeded, an error is thrown.
+     * Numeric custom attributes: each key can only map to one numeric value,
+     * otherwise an error is thrown.
+     * String custom attributes: each key can map up to 50 string values. For
+     * filterable string value, each value has a byte size of no more than 256B.
+     * For unfilterable string values, the maximum byte size of a single key is
+     * 64B. An error is thrown for any request exceeding the limit.
+     * The maximum total byte size is 10KB.
+     * Currently filterable numeric custom attributes are not supported, and
+     * they automatically set to unfilterable.
+     * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; + * + */ + public boolean containsCustomAttributes(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetCustomAttributes().getMap().containsKey(key); + } + /** Use {@link #getCustomAttributesMap()} instead. */ + @java.lang.Deprecated + public java.util.Map + getCustomAttributes() { + return getCustomAttributesMap(); + } + /** + * + * + *
+     * Optional.
+     * A map of fields to hold both filterable and non-filterable custom profile
+     * attributes that aren't covered by the provided structured fields. See
+     * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more
+     * details.
+     * At most 100 filterable and at most 100 unfilterable keys are supported. If
+     * limit is exceeded, an error is thrown.
+     * Numeric custom attributes: each key can only map to one numeric value,
+     * otherwise an error is thrown.
+     * String custom attributes: each key can map up to 50 string values. For
+     * filterable string value, each value has a byte size of no more than 256B.
+     * For unfilterable string values, the maximum byte size of a single key is
+     * 64B. An error is thrown for any request exceeding the limit.
+     * The maximum total byte size is 10KB.
+     * Currently filterable numeric custom attributes are not supported, and
+     * they automatically set to unfilterable.
+     * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; + * + */ + public java.util.Map + getCustomAttributesMap() { + return internalGetCustomAttributes().getMap(); + } + /** + * + * + *
+     * Optional.
+     * A map of fields to hold both filterable and non-filterable custom profile
+     * attributes that aren't covered by the provided structured fields. See
+     * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more
+     * details.
+     * At most 100 filterable and at most 100 unfilterable keys are supported. If
+     * limit is exceeded, an error is thrown.
+     * Numeric custom attributes: each key can only map to one numeric value,
+     * otherwise an error is thrown.
+     * String custom attributes: each key can map up to 50 string values. For
+     * filterable string value, each value has a byte size of no more than 256B.
+     * For unfilterable string values, the maximum byte size of a single key is
+     * 64B. An error is thrown for any request exceeding the limit.
+     * The maximum total byte size is 10KB.
+     * Currently filterable numeric custom attributes are not supported, and
+     * they automatically set to unfilterable.
+     * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; + * + */ + public com.google.cloud.talent.v4beta1.CustomAttribute getCustomAttributesOrDefault( + java.lang.String key, com.google.cloud.talent.v4beta1.CustomAttribute defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetCustomAttributes().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Optional.
+     * A map of fields to hold both filterable and non-filterable custom profile
+     * attributes that aren't covered by the provided structured fields. See
+     * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more
+     * details.
+     * At most 100 filterable and at most 100 unfilterable keys are supported. If
+     * limit is exceeded, an error is thrown.
+     * Numeric custom attributes: each key can only map to one numeric value,
+     * otherwise an error is thrown.
+     * String custom attributes: each key can map up to 50 string values. For
+     * filterable string value, each value has a byte size of no more than 256B.
+     * For unfilterable string values, the maximum byte size of a single key is
+     * 64B. An error is thrown for any request exceeding the limit.
+     * The maximum total byte size is 10KB.
+     * Currently filterable numeric custom attributes are not supported, and
+     * they automatically set to unfilterable.
+     * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; + * + */ + public com.google.cloud.talent.v4beta1.CustomAttribute getCustomAttributesOrThrow( + java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetCustomAttributes().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearCustomAttributes() { + internalGetMutableCustomAttributes().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A map of fields to hold both filterable and non-filterable custom profile
+     * attributes that aren't covered by the provided structured fields. See
+     * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more
+     * details.
+     * At most 100 filterable and at most 100 unfilterable keys are supported. If
+     * limit is exceeded, an error is thrown.
+     * Numeric custom attributes: each key can only map to one numeric value,
+     * otherwise an error is thrown.
+     * String custom attributes: each key can map up to 50 string values. For
+     * filterable string value, each value has a byte size of no more than 256B.
+     * For unfilterable string values, the maximum byte size of a single key is
+     * 64B. An error is thrown for any request exceeding the limit.
+     * The maximum total byte size is 10KB.
+     * Currently filterable numeric custom attributes are not supported, and
+     * they automatically set to unfilterable.
+     * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; + * + */ + public Builder removeCustomAttributes(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableCustomAttributes().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableCustomAttributes() { + return internalGetMutableCustomAttributes().getMutableMap(); + } + /** + * + * + *
+     * Optional.
+     * A map of fields to hold both filterable and non-filterable custom profile
+     * attributes that aren't covered by the provided structured fields. See
+     * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more
+     * details.
+     * At most 100 filterable and at most 100 unfilterable keys are supported. If
+     * limit is exceeded, an error is thrown.
+     * Numeric custom attributes: each key can only map to one numeric value,
+     * otherwise an error is thrown.
+     * String custom attributes: each key can map up to 50 string values. For
+     * filterable string value, each value has a byte size of no more than 256B.
+     * For unfilterable string values, the maximum byte size of a single key is
+     * 64B. An error is thrown for any request exceeding the limit.
+     * The maximum total byte size is 10KB.
+     * Currently filterable numeric custom attributes are not supported, and
+     * they automatically set to unfilterable.
+     * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; + * + */ + public Builder putCustomAttributes( + java.lang.String key, com.google.cloud.talent.v4beta1.CustomAttribute value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableCustomAttributes().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * Optional.
+     * A map of fields to hold both filterable and non-filterable custom profile
+     * attributes that aren't covered by the provided structured fields. See
+     * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more
+     * details.
+     * At most 100 filterable and at most 100 unfilterable keys are supported. If
+     * limit is exceeded, an error is thrown.
+     * Numeric custom attributes: each key can only map to one numeric value,
+     * otherwise an error is thrown.
+     * String custom attributes: each key can map up to 50 string values. For
+     * filterable string value, each value has a byte size of no more than 256B.
+     * For unfilterable string values, the maximum byte size of a single key is
+     * 64B. An error is thrown for any request exceeding the limit.
+     * The maximum total byte size is 10KB.
+     * Currently filterable numeric custom attributes are not supported, and
+     * they automatically set to unfilterable.
+     * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; + * + */ + public Builder putAllCustomAttributes( + java.util.Map values) { + internalGetMutableCustomAttributes().getMutableMap().putAll(values); + return this; + } + + private boolean processed_; + /** + * + * + *
+     * Output only. Indicates if the profile is fully processed and searchable.
+     * 
+ * + * bool processed = 27; + */ + public boolean getProcessed() { + return processed_; + } + /** + * + * + *
+     * Output only. Indicates if the profile is fully processed and searchable.
+     * 
+ * + * bool processed = 27; + */ + public Builder setProcessed(boolean value) { + + processed_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Indicates if the profile is fully processed and searchable.
+     * 
+ * + * bool processed = 27; + */ + public Builder clearProcessed() { + + processed_ = false; + onChanged(); + return this; + } + + private java.lang.Object keywordSnippet_ = ""; + /** + * + * + *
+     * Output only. Keyword snippet shows how the search result is related to a
+     * search query.
+     * 
+ * + * string keyword_snippet = 28; + */ + public java.lang.String getKeywordSnippet() { + java.lang.Object ref = keywordSnippet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + keywordSnippet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Keyword snippet shows how the search result is related to a
+     * search query.
+     * 
+ * + * string keyword_snippet = 28; + */ + public com.google.protobuf.ByteString getKeywordSnippetBytes() { + java.lang.Object ref = keywordSnippet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + keywordSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Keyword snippet shows how the search result is related to a
+     * search query.
+     * 
+ * + * string keyword_snippet = 28; + */ + public Builder setKeywordSnippet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + keywordSnippet_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Keyword snippet shows how the search result is related to a
+     * search query.
+     * 
+ * + * string keyword_snippet = 28; + */ + public Builder clearKeywordSnippet() { + + keywordSnippet_ = getDefaultInstance().getKeywordSnippet(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Keyword snippet shows how the search result is related to a
+     * search query.
+     * 
+ * + * string keyword_snippet = 28; + */ + public Builder setKeywordSnippetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + keywordSnippet_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Profile) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Profile) + private static final com.google.cloud.talent.v4beta1.Profile DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Profile(); + } + + public static com.google.cloud.talent.v4beta1.Profile getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Profile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Profile(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.Profile getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileEvent.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileEvent.java new file mode 100644 index 000000000000..4f5135abeb0c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileEvent.java @@ -0,0 +1,1377 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/event.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * An event issued when a profile searcher interacts with the application
+ * that implements Cloud Talent Solution.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ProfileEvent} + */ +public final class ProfileEvent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ProfileEvent) + ProfileEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProfileEvent.newBuilder() to construct. + private ProfileEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ProfileEvent() { + type_ = 0; + profiles_ = com.google.protobuf.LazyStringArrayList.EMPTY; + jobId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ProfileEvent( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + profiles_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + profiles_.add(s); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + jobId_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + profiles_ = profiles_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.EventProto + .internal_static_google_cloud_talent_v4beta1_ProfileEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.EventProto + .internal_static_google_cloud_talent_v4beta1_ProfileEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ProfileEvent.class, + com.google.cloud.talent.v4beta1.ProfileEvent.Builder.class); + } + + /** + * + * + *
+   * The enum represents types of client events for a candidate profile.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType} + */ + public enum ProfileEventType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value.
+     * 
+ * + * PROFILE_EVENT_TYPE_UNSPECIFIED = 0; + */ + PROFILE_EVENT_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * The profile is displayed.
+     * 
+ * + * IMPRESSION = 1; + */ + IMPRESSION(1), + /** + * + * + *
+     * The profile is viewed.
+     * 
+ * + * VIEW = 2; + */ + VIEW(2), + /** + * + * + *
+     * The profile is bookmarked.
+     * 
+ * + * BOOKMARK = 3; + */ + BOOKMARK(3), + /** + * + * + *
+     * Comment added to the profile.
+     * 
+ * + * COMMENT_ADDED = 4; + */ + COMMENT_ADDED(4), + /** + * + * + *
+     * Email sent regarding the profile.
+     * 
+ * + * EMAIL_SENT = 5; + */ + EMAIL_SENT(5), + /** + * + * + *
+     * The resume of the profile is viewed.
+     * 
+ * + * RESUME_VIEWED = 6; + */ + RESUME_VIEWED(6), + /** + * + * + *
+     * The profile is added to a job.
+     * 
+ * + * ADD_TO_JOB = 7; + */ + ADD_TO_JOB(7), + /** + * + * + *
+     * The recruiter explicitly highlights that a given profile is interesting
+     * enough for later review or is a good result for the search.
+     * 
+ * + * POSITIVE_REACTION_TO_PROFILE = 8; + */ + POSITIVE_REACTION_TO_PROFILE(8), + /** + * + * + *
+     * The recruiter explicitly highlights that a given profile is not
+     * interesting enough for later review or is not a good result for the
+     * search.
+     * 
+ * + * NEGATIVE_REACTION_TO_PROFILE = 9; + */ + NEGATIVE_REACTION_TO_PROFILE(9), + /** + * + * + *
+     * The candidate is interesting enough to set up an initial screen with the
+     * recruiter. This step may be skipped based on the interview process.
+     * 
+ * + * SCREEN = 10; + */ + SCREEN(10), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value.
+     * 
+ * + * PROFILE_EVENT_TYPE_UNSPECIFIED = 0; + */ + public static final int PROFILE_EVENT_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The profile is displayed.
+     * 
+ * + * IMPRESSION = 1; + */ + public static final int IMPRESSION_VALUE = 1; + /** + * + * + *
+     * The profile is viewed.
+     * 
+ * + * VIEW = 2; + */ + public static final int VIEW_VALUE = 2; + /** + * + * + *
+     * The profile is bookmarked.
+     * 
+ * + * BOOKMARK = 3; + */ + public static final int BOOKMARK_VALUE = 3; + /** + * + * + *
+     * Comment added to the profile.
+     * 
+ * + * COMMENT_ADDED = 4; + */ + public static final int COMMENT_ADDED_VALUE = 4; + /** + * + * + *
+     * Email sent regarding the profile.
+     * 
+ * + * EMAIL_SENT = 5; + */ + public static final int EMAIL_SENT_VALUE = 5; + /** + * + * + *
+     * The resume of the profile is viewed.
+     * 
+ * + * RESUME_VIEWED = 6; + */ + public static final int RESUME_VIEWED_VALUE = 6; + /** + * + * + *
+     * The profile is added to a job.
+     * 
+ * + * ADD_TO_JOB = 7; + */ + public static final int ADD_TO_JOB_VALUE = 7; + /** + * + * + *
+     * The recruiter explicitly highlights that a given profile is interesting
+     * enough for later review or is a good result for the search.
+     * 
+ * + * POSITIVE_REACTION_TO_PROFILE = 8; + */ + public static final int POSITIVE_REACTION_TO_PROFILE_VALUE = 8; + /** + * + * + *
+     * The recruiter explicitly highlights that a given profile is not
+     * interesting enough for later review or is not a good result for the
+     * search.
+     * 
+ * + * NEGATIVE_REACTION_TO_PROFILE = 9; + */ + public static final int NEGATIVE_REACTION_TO_PROFILE_VALUE = 9; + /** + * + * + *
+     * The candidate is interesting enough to set up an initial screen with the
+     * recruiter. This step may be skipped based on the interview process.
+     * 
+ * + * SCREEN = 10; + */ + public static final int SCREEN_VALUE = 10; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static ProfileEventType valueOf(int value) { + return forNumber(value); + } + + public static ProfileEventType forNumber(int value) { + switch (value) { + case 0: + return PROFILE_EVENT_TYPE_UNSPECIFIED; + case 1: + return IMPRESSION; + case 2: + return VIEW; + case 3: + return BOOKMARK; + case 4: + return COMMENT_ADDED; + case 5: + return EMAIL_SENT; + case 6: + return RESUME_VIEWED; + case 7: + return ADD_TO_JOB; + case 8: + return POSITIVE_REACTION_TO_PROFILE; + case 9: + return NEGATIVE_REACTION_TO_PROFILE; + case 10: + return SCREEN; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ProfileEventType findValueByNumber(int number) { + return ProfileEventType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileEvent.getDescriptor().getEnumTypes().get(0); + } + + private static final ProfileEventType[] VALUES = values(); + + public static ProfileEventType 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()]; + } + + private final int value; + + private ProfileEventType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType) + } + + private int bitField0_; + public static final int TYPE_FIELD_NUMBER = 1; + private int type_; + /** + * + * + *
+   * Required.
+   * Type of event.
+   * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType type = 1; + */ + public int getTypeValue() { + return type_; + } + /** + * + * + *
+   * Required.
+   * Type of event.
+   * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType type = 1; + */ + public com.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType result = + com.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType.valueOf(type_); + return result == null + ? com.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType.UNRECOGNIZED + : result; + } + + public static final int PROFILES_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList profiles_; + /** + * + * + *
+   * Required.
+   * The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated
+   * with this client event.
+   * 
+ * + * repeated string profiles = 2; + */ + public com.google.protobuf.ProtocolStringList getProfilesList() { + return profiles_; + } + /** + * + * + *
+   * Required.
+   * The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated
+   * with this client event.
+   * 
+ * + * repeated string profiles = 2; + */ + public int getProfilesCount() { + return profiles_.size(); + } + /** + * + * + *
+   * Required.
+   * The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated
+   * with this client event.
+   * 
+ * + * repeated string profiles = 2; + */ + public java.lang.String getProfiles(int index) { + return profiles_.get(index); + } + /** + * + * + *
+   * Required.
+   * The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated
+   * with this client event.
+   * 
+ * + * repeated string profiles = 2; + */ + public com.google.protobuf.ByteString getProfilesBytes(int index) { + return profiles_.getByteString(index); + } + + public static final int JOB_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object jobId_; + /** + * + * + *
+   * Optional.
+   * The job ID associated with this client event if there is one. Leave it
+   * empty if the event isn't associated with a job.
+   * The job ID should be consistent with the
+   * [JobApplication.job.requisition_id][] in the profile.
+   * 
+ * + * string job_id = 3; + */ + public java.lang.String getJobId() { + java.lang.Object ref = jobId_; + 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(); + jobId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The job ID associated with this client event if there is one. Leave it
+   * empty if the event isn't associated with a job.
+   * The job ID should be consistent with the
+   * [JobApplication.job.requisition_id][] in the profile.
+   * 
+ * + * string job_id = 3; + */ + public com.google.protobuf.ByteString getJobIdBytes() { + java.lang.Object ref = jobId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobId_ = 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 (type_ + != com.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType + .PROFILE_EVENT_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, type_); + } + for (int i = 0; i < profiles_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, profiles_.getRaw(i)); + } + if (!getJobIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, jobId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ + != com.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType + .PROFILE_EVENT_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + } + { + int dataSize = 0; + for (int i = 0; i < profiles_.size(); i++) { + dataSize += computeStringSizeNoTag(profiles_.getRaw(i)); + } + size += dataSize; + size += 1 * getProfilesList().size(); + } + if (!getJobIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, jobId_); + } + size += unknownFields.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.cloud.talent.v4beta1.ProfileEvent)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ProfileEvent other = + (com.google.cloud.talent.v4beta1.ProfileEvent) obj; + + boolean result = true; + result = result && type_ == other.type_; + result = result && getProfilesList().equals(other.getProfilesList()); + result = result && getJobId().equals(other.getJobId()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + if (getProfilesCount() > 0) { + hash = (37 * hash) + PROFILES_FIELD_NUMBER; + hash = (53 * hash) + getProfilesList().hashCode(); + } + hash = (37 * hash) + JOB_ID_FIELD_NUMBER; + hash = (53 * hash) + getJobId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ProfileEvent parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ProfileEvent parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ProfileEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ProfileEvent 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.cloud.talent.v4beta1.ProfileEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ProfileEvent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ProfileEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ProfileEvent 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.cloud.talent.v4beta1.ProfileEvent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ProfileEvent 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.cloud.talent.v4beta1.ProfileEvent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ProfileEvent 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.cloud.talent.v4beta1.ProfileEvent 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; + } + /** + * + * + *
+   * An event issued when a profile searcher interacts with the application
+   * that implements Cloud Talent Solution.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ProfileEvent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ProfileEvent) + com.google.cloud.talent.v4beta1.ProfileEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.EventProto + .internal_static_google_cloud_talent_v4beta1_ProfileEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.EventProto + .internal_static_google_cloud_talent_v4beta1_ProfileEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ProfileEvent.class, + com.google.cloud.talent.v4beta1.ProfileEvent.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ProfileEvent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + type_ = 0; + + profiles_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + jobId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.EventProto + .internal_static_google_cloud_talent_v4beta1_ProfileEvent_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ProfileEvent getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ProfileEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ProfileEvent build() { + com.google.cloud.talent.v4beta1.ProfileEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ProfileEvent buildPartial() { + com.google.cloud.talent.v4beta1.ProfileEvent result = + new com.google.cloud.talent.v4beta1.ProfileEvent(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.type_ = type_; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + profiles_ = profiles_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.profiles_ = profiles_; + result.jobId_ = jobId_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ProfileEvent) { + return mergeFrom((com.google.cloud.talent.v4beta1.ProfileEvent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ProfileEvent other) { + if (other == com.google.cloud.talent.v4beta1.ProfileEvent.getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.profiles_.isEmpty()) { + if (profiles_.isEmpty()) { + profiles_ = other.profiles_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureProfilesIsMutable(); + profiles_.addAll(other.profiles_); + } + onChanged(); + } + if (!other.getJobId().isEmpty()) { + jobId_ = other.jobId_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.ProfileEvent parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.ProfileEvent) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private int type_ = 0; + /** + * + * + *
+     * Required.
+     * Type of event.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType type = 1; + */ + public int getTypeValue() { + return type_; + } + /** + * + * + *
+     * Required.
+     * Type of event.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType type = 1; + */ + public Builder setTypeValue(int value) { + type_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Type of event.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType type = 1; + */ + public com.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType result = + com.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType.valueOf(type_); + return result == null + ? com.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required.
+     * Type of event.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType type = 1; + */ + public Builder setType(com.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Type of event.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType type = 1; + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList profiles_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureProfilesIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + profiles_ = new com.google.protobuf.LazyStringArrayList(profiles_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Required.
+     * The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated
+     * with this client event.
+     * 
+ * + * repeated string profiles = 2; + */ + public com.google.protobuf.ProtocolStringList getProfilesList() { + return profiles_.getUnmodifiableView(); + } + /** + * + * + *
+     * Required.
+     * The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated
+     * with this client event.
+     * 
+ * + * repeated string profiles = 2; + */ + public int getProfilesCount() { + return profiles_.size(); + } + /** + * + * + *
+     * Required.
+     * The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated
+     * with this client event.
+     * 
+ * + * repeated string profiles = 2; + */ + public java.lang.String getProfiles(int index) { + return profiles_.get(index); + } + /** + * + * + *
+     * Required.
+     * The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated
+     * with this client event.
+     * 
+ * + * repeated string profiles = 2; + */ + public com.google.protobuf.ByteString getProfilesBytes(int index) { + return profiles_.getByteString(index); + } + /** + * + * + *
+     * Required.
+     * The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated
+     * with this client event.
+     * 
+ * + * repeated string profiles = 2; + */ + public Builder setProfiles(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureProfilesIsMutable(); + profiles_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated
+     * with this client event.
+     * 
+ * + * repeated string profiles = 2; + */ + public Builder addProfiles(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureProfilesIsMutable(); + profiles_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated
+     * with this client event.
+     * 
+ * + * repeated string profiles = 2; + */ + public Builder addAllProfiles(java.lang.Iterable values) { + ensureProfilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, profiles_); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated
+     * with this client event.
+     * 
+ * + * repeated string profiles = 2; + */ + public Builder clearProfiles() { + profiles_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated
+     * with this client event.
+     * 
+ * + * repeated string profiles = 2; + */ + public Builder addProfilesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureProfilesIsMutable(); + profiles_.add(value); + onChanged(); + return this; + } + + private java.lang.Object jobId_ = ""; + /** + * + * + *
+     * Optional.
+     * The job ID associated with this client event if there is one. Leave it
+     * empty if the event isn't associated with a job.
+     * The job ID should be consistent with the
+     * [JobApplication.job.requisition_id][] in the profile.
+     * 
+ * + * string job_id = 3; + */ + public java.lang.String getJobId() { + java.lang.Object ref = jobId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The job ID associated with this client event if there is one. Leave it
+     * empty if the event isn't associated with a job.
+     * The job ID should be consistent with the
+     * [JobApplication.job.requisition_id][] in the profile.
+     * 
+ * + * string job_id = 3; + */ + public com.google.protobuf.ByteString getJobIdBytes() { + java.lang.Object ref = jobId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The job ID associated with this client event if there is one. Leave it
+     * empty if the event isn't associated with a job.
+     * The job ID should be consistent with the
+     * [JobApplication.job.requisition_id][] in the profile.
+     * 
+ * + * string job_id = 3; + */ + public Builder setJobId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jobId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The job ID associated with this client event if there is one. Leave it
+     * empty if the event isn't associated with a job.
+     * The job ID should be consistent with the
+     * [JobApplication.job.requisition_id][] in the profile.
+     * 
+ * + * string job_id = 3; + */ + public Builder clearJobId() { + + jobId_ = getDefaultInstance().getJobId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The job ID associated with this client event if there is one. Leave it
+     * empty if the event isn't associated with a job.
+     * The job ID should be consistent with the
+     * [JobApplication.job.requisition_id][] in the profile.
+     * 
+ * + * string job_id = 3; + */ + public Builder setJobIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jobId_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ProfileEvent) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ProfileEvent) + private static final com.google.cloud.talent.v4beta1.ProfileEvent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ProfileEvent(); + } + + public static com.google.cloud.talent.v4beta1.ProfileEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProfileEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProfileEvent(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.ProfileEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileEventOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileEventOrBuilder.java new file mode 100644 index 000000000000..54ca5e7cf1b3 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileEventOrBuilder.java @@ -0,0 +1,111 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/event.proto + +package com.google.cloud.talent.v4beta1; + +public interface ProfileEventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ProfileEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * Type of event.
+   * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType type = 1; + */ + int getTypeValue(); + /** + * + * + *
+   * Required.
+   * Type of event.
+   * 
+ * + * .google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType type = 1; + */ + com.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType getType(); + + /** + * + * + *
+   * Required.
+   * The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated
+   * with this client event.
+   * 
+ * + * repeated string profiles = 2; + */ + java.util.List getProfilesList(); + /** + * + * + *
+   * Required.
+   * The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated
+   * with this client event.
+   * 
+ * + * repeated string profiles = 2; + */ + int getProfilesCount(); + /** + * + * + *
+   * Required.
+   * The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated
+   * with this client event.
+   * 
+ * + * repeated string profiles = 2; + */ + java.lang.String getProfiles(int index); + /** + * + * + *
+   * Required.
+   * The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated
+   * with this client event.
+   * 
+ * + * repeated string profiles = 2; + */ + com.google.protobuf.ByteString getProfilesBytes(int index); + + /** + * + * + *
+   * Optional.
+   * The job ID associated with this client event if there is one. Leave it
+   * empty if the event isn't associated with a job.
+   * The job ID should be consistent with the
+   * [JobApplication.job.requisition_id][] in the profile.
+   * 
+ * + * string job_id = 3; + */ + java.lang.String getJobId(); + /** + * + * + *
+   * Optional.
+   * The job ID associated with this client event if there is one. Leave it
+   * empty if the event isn't associated with a job.
+   * The job ID should be consistent with the
+   * [JobApplication.job.requisition_id][] in the profile.
+   * 
+ * + * string job_id = 3; + */ + com.google.protobuf.ByteString getJobIdBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileName.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileName.java new file mode 100644 index 000000000000..f69991fb37bc --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileName.java @@ -0,0 +1,208 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.cloud.talent.v4beta1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class ProfileName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/tenants/{tenant}/profiles/{profile}"); + + private volatile Map fieldValuesMap; + + private final String project; + private final String tenant; + private final String profile; + + public String getProject() { + return project; + } + + public String getTenant() { + return tenant; + } + + public String getProfile() { + return profile; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private ProfileName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + tenant = Preconditions.checkNotNull(builder.getTenant()); + profile = Preconditions.checkNotNull(builder.getProfile()); + } + + public static ProfileName of(String project, String tenant, String profile) { + return newBuilder().setProject(project).setTenant(tenant).setProfile(profile).build(); + } + + public static String format(String project, String tenant, String profile) { + return newBuilder() + .setProject(project) + .setTenant(tenant) + .setProfile(profile) + .build() + .toString(); + } + + public static ProfileName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "ProfileName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("tenant"), matchMap.get("profile")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (ProfileName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldMapBuilder.put("tenant", tenant); + fieldMapBuilder.put("profile", profile); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project", project, "tenant", tenant, "profile", profile); + } + + /** Builder for ProfileName. */ + public static class Builder { + + private String project; + private String tenant; + private String profile; + + public String getProject() { + return project; + } + + public String getTenant() { + return tenant; + } + + public String getProfile() { + return profile; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setTenant(String tenant) { + this.tenant = tenant; + return this; + } + + public Builder setProfile(String profile) { + this.profile = profile; + return this; + } + + private Builder() {} + + private Builder(ProfileName profileName) { + project = profileName.project; + tenant = profileName.tenant; + profile = profileName.profile; + } + + public ProfileName build() { + return new ProfileName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof ProfileName) { + ProfileName that = (ProfileName) o; + return (this.project.equals(that.project)) + && (this.tenant.equals(that.tenant)) + && (this.profile.equals(that.profile)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + h *= 1000003; + h ^= tenant.hashCode(); + h *= 1000003; + h ^= profile.hashCode(); + return h; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileOrBuilder.java new file mode 100644 index 000000000000..a0e89e668a3c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileOrBuilder.java @@ -0,0 +1,1528 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public interface ProfileOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Profile) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required during profile update.
+   * Resource name assigned to a profile by the API.
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+   * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Required during profile update.
+   * Resource name assigned to a profile by the API.
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+   * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional.
+   * Profile's id in client system if available.
+   * The maximum number of bytes allowed is 100.
+   * 
+ * + * string external_id = 2; + */ + java.lang.String getExternalId(); + /** + * + * + *
+   * Optional.
+   * Profile's id in client system if available.
+   * The maximum number of bytes allowed is 100.
+   * 
+ * + * string external_id = 2; + */ + com.google.protobuf.ByteString getExternalIdBytes(); + + /** + * + * + *
+   * Optional.
+   * The source description indicating where the profile is acquired.
+   * For example, if a candidate profile is acquired from a resume, the user can
+   * input "resume" here to indicate the source.
+   * The maximum number of bytes allowed is 100.
+   * 
+ * + * string source = 3; + */ + java.lang.String getSource(); + /** + * + * + *
+   * Optional.
+   * The source description indicating where the profile is acquired.
+   * For example, if a candidate profile is acquired from a resume, the user can
+   * input "resume" here to indicate the source.
+   * The maximum number of bytes allowed is 100.
+   * 
+ * + * string source = 3; + */ + com.google.protobuf.ByteString getSourceBytes(); + + /** + * + * + *
+   * Optional.
+   * The URI set by clients that links to this profile's client-side copy.
+   * The maximum number of bytes allowed is 4000.
+   * 
+ * + * string uri = 4; + */ + java.lang.String getUri(); + /** + * + * + *
+   * Optional.
+   * The URI set by clients that links to this profile's client-side copy.
+   * The maximum number of bytes allowed is 4000.
+   * 
+ * + * string uri = 4; + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
+   * Optional.
+   * The cluster id of the profile to associate with other profile(s) for the
+   * same candidate.
+   * A random UUID is assigned if
+   * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't provided. To
+   * ensure global uniqueness, customized
+   * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't supported.
+   * If [group_id][google.cloud.talent.v4beta1.Profile.group_id] is set, there
+   * must be at least one other profile with the same system generated
+   * [group_id][google.cloud.talent.v4beta1.Profile.group_id], otherwise an
+   * error is thrown.
+   * This is used to link multiple profiles to the same candidate. For example,
+   * a client has a candidate with two profiles, where one was created recently
+   * and the other one was created 5 years ago. These two profiles may be very
+   * different. The clients can create the first profile and get a generated
+   * [group_id][google.cloud.talent.v4beta1.Profile.group_id], and assign it
+   * when the second profile is created, indicating these two profiles are
+   * referring to the same candidate.
+   * 
+ * + * string group_id = 5; + */ + java.lang.String getGroupId(); + /** + * + * + *
+   * Optional.
+   * The cluster id of the profile to associate with other profile(s) for the
+   * same candidate.
+   * A random UUID is assigned if
+   * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't provided. To
+   * ensure global uniqueness, customized
+   * [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't supported.
+   * If [group_id][google.cloud.talent.v4beta1.Profile.group_id] is set, there
+   * must be at least one other profile with the same system generated
+   * [group_id][google.cloud.talent.v4beta1.Profile.group_id], otherwise an
+   * error is thrown.
+   * This is used to link multiple profiles to the same candidate. For example,
+   * a client has a candidate with two profiles, where one was created recently
+   * and the other one was created 5 years ago. These two profiles may be very
+   * different. The clients can create the first profile and get a generated
+   * [group_id][google.cloud.talent.v4beta1.Profile.group_id], and assign it
+   * when the second profile is created, indicating these two profiles are
+   * referring to the same candidate.
+   * 
+ * + * string group_id = 5; + */ + com.google.protobuf.ByteString getGroupIdBytes(); + + /** + * + * + *
+   * Optional.
+   * Indicates the hirable status of the candidate.
+   * 
+ * + * .google.protobuf.BoolValue is_hirable = 6; + */ + boolean hasIsHirable(); + /** + * + * + *
+   * Optional.
+   * Indicates the hirable status of the candidate.
+   * 
+ * + * .google.protobuf.BoolValue is_hirable = 6; + */ + com.google.protobuf.BoolValue getIsHirable(); + /** + * + * + *
+   * Optional.
+   * Indicates the hirable status of the candidate.
+   * 
+ * + * .google.protobuf.BoolValue is_hirable = 6; + */ + com.google.protobuf.BoolValueOrBuilder getIsHirableOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The timestamp when the profile was first created at this source.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7; + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Optional.
+   * The timestamp when the profile was first created at this source.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7; + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Optional.
+   * The timestamp when the profile was first created at this source.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The timestamp when the profile was last updated at this source.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8; + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Optional.
+   * The timestamp when the profile was last updated at this source.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8; + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Optional.
+   * The timestamp when the profile was last updated at this source.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The profile contents in HR-XML format.
+   * See http://schemas.liquid-technologies.com/hr-xml/2007-04-15/ for more
+   * information about Human Resources XML.
+   * Users can create a profile with only
+   * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] field. For
+   * example, the API parses the
+   * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] and
+   * creates a profile with all structured fields populated, for example.
+   * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord],
+   * [EducationRecord][google.cloud.talent.v4beta1.EducationRecord], etc. An
+   * error is thrown if the
+   * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] can't be
+   * parsed.
+   * If the [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] is
+   * provided during profile creation or update, any other structured data
+   * provided in the profile is ignored. The API populates these fields by
+   * parsing the HR-XML.
+   * 
+ * + * string resume_hrxml = 10; + */ + java.lang.String getResumeHrxml(); + /** + * + * + *
+   * Optional.
+   * The profile contents in HR-XML format.
+   * See http://schemas.liquid-technologies.com/hr-xml/2007-04-15/ for more
+   * information about Human Resources XML.
+   * Users can create a profile with only
+   * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] field. For
+   * example, the API parses the
+   * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] and
+   * creates a profile with all structured fields populated, for example.
+   * [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord],
+   * [EducationRecord][google.cloud.talent.v4beta1.EducationRecord], etc. An
+   * error is thrown if the
+   * [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] can't be
+   * parsed.
+   * If the [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] is
+   * provided during profile creation or update, any other structured data
+   * provided in the profile is ignored. The API populates these fields by
+   * parsing the HR-XML.
+   * 
+ * + * string resume_hrxml = 10; + */ + com.google.protobuf.ByteString getResumeHrxmlBytes(); + + /** + * + * + *
+   * Optional.
+   * The names of the candidate this profile references.
+   * Currently only one person name is supported.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + java.util.List getPersonNamesList(); + /** + * + * + *
+   * Optional.
+   * The names of the candidate this profile references.
+   * Currently only one person name is supported.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + com.google.cloud.talent.v4beta1.PersonName getPersonNames(int index); + /** + * + * + *
+   * Optional.
+   * The names of the candidate this profile references.
+   * Currently only one person name is supported.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + int getPersonNamesCount(); + /** + * + * + *
+   * Optional.
+   * The names of the candidate this profile references.
+   * Currently only one person name is supported.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + java.util.List + getPersonNamesOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The names of the candidate this profile references.
+   * Currently only one person name is supported.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; + */ + com.google.cloud.talent.v4beta1.PersonNameOrBuilder getPersonNamesOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * The candidate's postal addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + java.util.List getAddressesList(); + /** + * + * + *
+   * Optional.
+   * The candidate's postal addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + com.google.cloud.talent.v4beta1.Address getAddresses(int index); + /** + * + * + *
+   * Optional.
+   * The candidate's postal addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + int getAddressesCount(); + /** + * + * + *
+   * Optional.
+   * The candidate's postal addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + java.util.List + getAddressesOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The candidate's postal addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Address addresses = 12; + */ + com.google.cloud.talent.v4beta1.AddressOrBuilder getAddressesOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * The candidate's email addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + java.util.List getEmailAddressesList(); + /** + * + * + *
+   * Optional.
+   * The candidate's email addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + com.google.cloud.talent.v4beta1.Email getEmailAddresses(int index); + /** + * + * + *
+   * Optional.
+   * The candidate's email addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + int getEmailAddressesCount(); + /** + * + * + *
+   * Optional.
+   * The candidate's email addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + java.util.List + getEmailAddressesOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The candidate's email addresses.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; + */ + com.google.cloud.talent.v4beta1.EmailOrBuilder getEmailAddressesOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * The candidate's phone number(s).
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + java.util.List getPhoneNumbersList(); + /** + * + * + *
+   * Optional.
+   * The candidate's phone number(s).
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + com.google.cloud.talent.v4beta1.Phone getPhoneNumbers(int index); + /** + * + * + *
+   * Optional.
+   * The candidate's phone number(s).
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + int getPhoneNumbersCount(); + /** + * + * + *
+   * Optional.
+   * The candidate's phone number(s).
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + java.util.List + getPhoneNumbersOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The candidate's phone number(s).
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; + */ + com.google.cloud.talent.v4beta1.PhoneOrBuilder getPhoneNumbersOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * The candidate's personal URIs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + java.util.List getPersonalUrisList(); + /** + * + * + *
+   * Optional.
+   * The candidate's personal URIs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + com.google.cloud.talent.v4beta1.PersonalUri getPersonalUris(int index); + /** + * + * + *
+   * Optional.
+   * The candidate's personal URIs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + int getPersonalUrisCount(); + /** + * + * + *
+   * Optional.
+   * The candidate's personal URIs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + java.util.List + getPersonalUrisOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The candidate's personal URIs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; + */ + com.google.cloud.talent.v4beta1.PersonalUriOrBuilder getPersonalUrisOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * Available contact information besides
+   * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+   * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+   * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+   * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+   * example, Hang-out, Skype.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + java.util.List + getAdditionalContactInfoList(); + /** + * + * + *
+   * Optional.
+   * Available contact information besides
+   * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+   * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+   * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+   * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+   * example, Hang-out, Skype.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + com.google.cloud.talent.v4beta1.AdditionalContactInfo getAdditionalContactInfo(int index); + /** + * + * + *
+   * Optional.
+   * Available contact information besides
+   * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+   * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+   * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+   * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+   * example, Hang-out, Skype.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + int getAdditionalContactInfoCount(); + /** + * + * + *
+   * Optional.
+   * Available contact information besides
+   * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+   * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+   * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+   * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+   * example, Hang-out, Skype.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + java.util.List + getAdditionalContactInfoOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * Available contact information besides
+   * [addresses][google.cloud.talent.v4beta1.Profile.addresses],
+   * [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses],
+   * [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and
+   * [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For
+   * example, Hang-out, Skype.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; + * + */ + com.google.cloud.talent.v4beta1.AdditionalContactInfoOrBuilder getAdditionalContactInfoOrBuilder( + int index); + + /** + * + * + *
+   * Optional.
+   * The employment history records of the candidate. It's highly recommended
+   * to input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the employment records.
+   * * List different employment types separately, no matter how minor the
+   * change is.
+   * For example, only job title is changed from "software engineer" to "senior
+   * software engineer".
+   * * Provide
+   * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+   * for the current employment if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + java.util.List getEmploymentRecordsList(); + /** + * + * + *
+   * Optional.
+   * The employment history records of the candidate. It's highly recommended
+   * to input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the employment records.
+   * * List different employment types separately, no matter how minor the
+   * change is.
+   * For example, only job title is changed from "software engineer" to "senior
+   * software engineer".
+   * * Provide
+   * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+   * for the current employment if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + com.google.cloud.talent.v4beta1.EmploymentRecord getEmploymentRecords(int index); + /** + * + * + *
+   * Optional.
+   * The employment history records of the candidate. It's highly recommended
+   * to input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the employment records.
+   * * List different employment types separately, no matter how minor the
+   * change is.
+   * For example, only job title is changed from "software engineer" to "senior
+   * software engineer".
+   * * Provide
+   * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+   * for the current employment if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + int getEmploymentRecordsCount(); + /** + * + * + *
+   * Optional.
+   * The employment history records of the candidate. It's highly recommended
+   * to input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the employment records.
+   * * List different employment types separately, no matter how minor the
+   * change is.
+   * For example, only job title is changed from "software engineer" to "senior
+   * software engineer".
+   * * Provide
+   * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+   * for the current employment if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + java.util.List + getEmploymentRecordsOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The employment history records of the candidate. It's highly recommended
+   * to input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the employment records.
+   * * List different employment types separately, no matter how minor the
+   * change is.
+   * For example, only job title is changed from "software engineer" to "senior
+   * software engineer".
+   * * Provide
+   * [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current]
+   * for the current employment if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; + */ + com.google.cloud.talent.v4beta1.EmploymentRecordOrBuilder getEmploymentRecordsOrBuilder( + int index); + + /** + * + * + *
+   * Optional.
+   * The education history record of the candidate. It's highly recommended to
+   * input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the education records.
+   * * List each education type separately, no matter how minor the change is.
+   * For example, the profile contains the education experience from the same
+   * school but different degrees.
+   * * Provide
+   * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+   * for the current education if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + java.util.List getEducationRecordsList(); + /** + * + * + *
+   * Optional.
+   * The education history record of the candidate. It's highly recommended to
+   * input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the education records.
+   * * List each education type separately, no matter how minor the change is.
+   * For example, the profile contains the education experience from the same
+   * school but different degrees.
+   * * Provide
+   * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+   * for the current education if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + com.google.cloud.talent.v4beta1.EducationRecord getEducationRecords(int index); + /** + * + * + *
+   * Optional.
+   * The education history record of the candidate. It's highly recommended to
+   * input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the education records.
+   * * List each education type separately, no matter how minor the change is.
+   * For example, the profile contains the education experience from the same
+   * school but different degrees.
+   * * Provide
+   * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+   * for the current education if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + int getEducationRecordsCount(); + /** + * + * + *
+   * Optional.
+   * The education history record of the candidate. It's highly recommended to
+   * input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the education records.
+   * * List each education type separately, no matter how minor the change is.
+   * For example, the profile contains the education experience from the same
+   * school but different degrees.
+   * * Provide
+   * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+   * for the current education if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + java.util.List + getEducationRecordsOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The education history record of the candidate. It's highly recommended to
+   * input this information as accurately as possible to help improve search
+   * quality. Here are some recommendations:
+   * * Specify the start and end dates of the education records.
+   * * List each education type separately, no matter how minor the change is.
+   * For example, the profile contains the education experience from the same
+   * school but different degrees.
+   * * Provide
+   * [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current]
+   * for the current education if possible. If not, it's inferred from user
+   * inputs.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; + */ + com.google.cloud.talent.v4beta1.EducationRecordOrBuilder getEducationRecordsOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * The skill set of the candidate. It's highly recommended to provide as
+   * much information as possible to help improve the search quality.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + java.util.List getSkillsList(); + /** + * + * + *
+   * Optional.
+   * The skill set of the candidate. It's highly recommended to provide as
+   * much information as possible to help improve the search quality.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + com.google.cloud.talent.v4beta1.Skill getSkills(int index); + /** + * + * + *
+   * Optional.
+   * The skill set of the candidate. It's highly recommended to provide as
+   * much information as possible to help improve the search quality.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + int getSkillsCount(); + /** + * + * + *
+   * Optional.
+   * The skill set of the candidate. It's highly recommended to provide as
+   * much information as possible to help improve the search quality.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + java.util.List getSkillsOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The skill set of the candidate. It's highly recommended to provide as
+   * much information as possible to help improve the search quality.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Skill skills = 19; + */ + com.google.cloud.talent.v4beta1.SkillOrBuilder getSkillsOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * The individual or collaborative activities which the candidate has
+   * participated in, for example, open-source projects, class assignments that
+   * aren't listed in
+   * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + java.util.List getActivitiesList(); + /** + * + * + *
+   * Optional.
+   * The individual or collaborative activities which the candidate has
+   * participated in, for example, open-source projects, class assignments that
+   * aren't listed in
+   * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + com.google.cloud.talent.v4beta1.Activity getActivities(int index); + /** + * + * + *
+   * Optional.
+   * The individual or collaborative activities which the candidate has
+   * participated in, for example, open-source projects, class assignments that
+   * aren't listed in
+   * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + int getActivitiesCount(); + /** + * + * + *
+   * Optional.
+   * The individual or collaborative activities which the candidate has
+   * participated in, for example, open-source projects, class assignments that
+   * aren't listed in
+   * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + java.util.List + getActivitiesOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The individual or collaborative activities which the candidate has
+   * participated in, for example, open-source projects, class assignments that
+   * aren't listed in
+   * [employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Activity activities = 20; + */ + com.google.cloud.talent.v4beta1.ActivityOrBuilder getActivitiesOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * The publications published by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + java.util.List getPublicationsList(); + /** + * + * + *
+   * Optional.
+   * The publications published by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + com.google.cloud.talent.v4beta1.Publication getPublications(int index); + /** + * + * + *
+   * Optional.
+   * The publications published by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + int getPublicationsCount(); + /** + * + * + *
+   * Optional.
+   * The publications published by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + java.util.List + getPublicationsOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The publications published by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Publication publications = 21; + */ + com.google.cloud.talent.v4beta1.PublicationOrBuilder getPublicationsOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * The patents acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + java.util.List getPatentsList(); + /** + * + * + *
+   * Optional.
+   * The patents acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + com.google.cloud.talent.v4beta1.Patent getPatents(int index); + /** + * + * + *
+   * Optional.
+   * The patents acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + int getPatentsCount(); + /** + * + * + *
+   * Optional.
+   * The patents acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + java.util.List + getPatentsOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The patents acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Patent patents = 22; + */ + com.google.cloud.talent.v4beta1.PatentOrBuilder getPatentsOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * The certifications acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + java.util.List getCertificationsList(); + /** + * + * + *
+   * Optional.
+   * The certifications acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + com.google.cloud.talent.v4beta1.Certification getCertifications(int index); + /** + * + * + *
+   * Optional.
+   * The certifications acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + int getCertificationsCount(); + /** + * + * + *
+   * Optional.
+   * The certifications acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + java.util.List + getCertificationsOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The certifications acquired by the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; + */ + com.google.cloud.talent.v4beta1.CertificationOrBuilder getCertificationsOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * The job applications of the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + java.util.List getJobApplicationsList(); + /** + * + * + *
+   * Optional.
+   * The job applications of the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + com.google.cloud.talent.v4beta1.JobApplication getJobApplications(int index); + /** + * + * + *
+   * Optional.
+   * The job applications of the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + int getJobApplicationsCount(); + /** + * + * + *
+   * Optional.
+   * The job applications of the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + java.util.List + getJobApplicationsOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The job applications of the candidate.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + */ + com.google.cloud.talent.v4beta1.JobApplicationOrBuilder getJobApplicationsOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * The recruiting notes added for the candidate.
+   * For example, the recruiter can add some unstructured comments for this
+   * candidate like "this candidate also has experiences in volunteer work".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + java.util.List getRecruitingNotesList(); + /** + * + * + *
+   * Optional.
+   * The recruiting notes added for the candidate.
+   * For example, the recruiter can add some unstructured comments for this
+   * candidate like "this candidate also has experiences in volunteer work".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + com.google.cloud.talent.v4beta1.RecruitingNote getRecruitingNotes(int index); + /** + * + * + *
+   * Optional.
+   * The recruiting notes added for the candidate.
+   * For example, the recruiter can add some unstructured comments for this
+   * candidate like "this candidate also has experiences in volunteer work".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + int getRecruitingNotesCount(); + /** + * + * + *
+   * Optional.
+   * The recruiting notes added for the candidate.
+   * For example, the recruiter can add some unstructured comments for this
+   * candidate like "this candidate also has experiences in volunteer work".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + java.util.List + getRecruitingNotesOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The recruiting notes added for the candidate.
+   * For example, the recruiter can add some unstructured comments for this
+   * candidate like "this candidate also has experiences in volunteer work".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + */ + com.google.cloud.talent.v4beta1.RecruitingNoteOrBuilder getRecruitingNotesOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom profile
+   * attributes that aren't covered by the provided structured fields. See
+   * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more
+   * details.
+   * At most 100 filterable and at most 100 unfilterable keys are supported. If
+   * limit is exceeded, an error is thrown.
+   * Numeric custom attributes: each key can only map to one numeric value,
+   * otherwise an error is thrown.
+   * String custom attributes: each key can map up to 50 string values. For
+   * filterable string value, each value has a byte size of no more than 256B.
+   * For unfilterable string values, the maximum byte size of a single key is
+   * 64B. An error is thrown for any request exceeding the limit.
+   * The maximum total byte size is 10KB.
+   * Currently filterable numeric custom attributes are not supported, and
+   * they automatically set to unfilterable.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; + * + */ + int getCustomAttributesCount(); + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom profile
+   * attributes that aren't covered by the provided structured fields. See
+   * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more
+   * details.
+   * At most 100 filterable and at most 100 unfilterable keys are supported. If
+   * limit is exceeded, an error is thrown.
+   * Numeric custom attributes: each key can only map to one numeric value,
+   * otherwise an error is thrown.
+   * String custom attributes: each key can map up to 50 string values. For
+   * filterable string value, each value has a byte size of no more than 256B.
+   * For unfilterable string values, the maximum byte size of a single key is
+   * 64B. An error is thrown for any request exceeding the limit.
+   * The maximum total byte size is 10KB.
+   * Currently filterable numeric custom attributes are not supported, and
+   * they automatically set to unfilterable.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; + * + */ + boolean containsCustomAttributes(java.lang.String key); + /** Use {@link #getCustomAttributesMap()} instead. */ + @java.lang.Deprecated + java.util.Map + getCustomAttributes(); + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom profile
+   * attributes that aren't covered by the provided structured fields. See
+   * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more
+   * details.
+   * At most 100 filterable and at most 100 unfilterable keys are supported. If
+   * limit is exceeded, an error is thrown.
+   * Numeric custom attributes: each key can only map to one numeric value,
+   * otherwise an error is thrown.
+   * String custom attributes: each key can map up to 50 string values. For
+   * filterable string value, each value has a byte size of no more than 256B.
+   * For unfilterable string values, the maximum byte size of a single key is
+   * 64B. An error is thrown for any request exceeding the limit.
+   * The maximum total byte size is 10KB.
+   * Currently filterable numeric custom attributes are not supported, and
+   * they automatically set to unfilterable.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; + * + */ + java.util.Map + getCustomAttributesMap(); + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom profile
+   * attributes that aren't covered by the provided structured fields. See
+   * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more
+   * details.
+   * At most 100 filterable and at most 100 unfilterable keys are supported. If
+   * limit is exceeded, an error is thrown.
+   * Numeric custom attributes: each key can only map to one numeric value,
+   * otherwise an error is thrown.
+   * String custom attributes: each key can map up to 50 string values. For
+   * filterable string value, each value has a byte size of no more than 256B.
+   * For unfilterable string values, the maximum byte size of a single key is
+   * 64B. An error is thrown for any request exceeding the limit.
+   * The maximum total byte size is 10KB.
+   * Currently filterable numeric custom attributes are not supported, and
+   * they automatically set to unfilterable.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; + * + */ + com.google.cloud.talent.v4beta1.CustomAttribute getCustomAttributesOrDefault( + java.lang.String key, com.google.cloud.talent.v4beta1.CustomAttribute defaultValue); + /** + * + * + *
+   * Optional.
+   * A map of fields to hold both filterable and non-filterable custom profile
+   * attributes that aren't covered by the provided structured fields. See
+   * [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more
+   * details.
+   * At most 100 filterable and at most 100 unfilterable keys are supported. If
+   * limit is exceeded, an error is thrown.
+   * Numeric custom attributes: each key can only map to one numeric value,
+   * otherwise an error is thrown.
+   * String custom attributes: each key can map up to 50 string values. For
+   * filterable string value, each value has a byte size of no more than 256B.
+   * For unfilterable string values, the maximum byte size of a single key is
+   * 64B. An error is thrown for any request exceeding the limit.
+   * The maximum total byte size is 10KB.
+   * Currently filterable numeric custom attributes are not supported, and
+   * they automatically set to unfilterable.
+   * 
+ * + * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; + * + */ + com.google.cloud.talent.v4beta1.CustomAttribute getCustomAttributesOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. Indicates if the profile is fully processed and searchable.
+   * 
+ * + * bool processed = 27; + */ + boolean getProcessed(); + + /** + * + * + *
+   * Output only. Keyword snippet shows how the search result is related to a
+   * search query.
+   * 
+ * + * string keyword_snippet = 28; + */ + java.lang.String getKeywordSnippet(); + /** + * + * + *
+   * Output only. Keyword snippet shows how the search result is related to a
+   * search query.
+   * 
+ * + * string keyword_snippet = 28; + */ + com.google.protobuf.ByteString getKeywordSnippetBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileQuery.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileQuery.java new file mode 100644 index 000000000000..41055b884d2f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileQuery.java @@ -0,0 +1,8826 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Filters to apply when performing the search query.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ProfileQuery} + */ +public final class ProfileQuery extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ProfileQuery) + ProfileQueryOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProfileQuery.newBuilder() to construct. + private ProfileQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ProfileQuery() { + query_ = ""; + locationFilters_ = java.util.Collections.emptyList(); + jobTitleFilters_ = java.util.Collections.emptyList(); + employerFilters_ = java.util.Collections.emptyList(); + educationFilters_ = java.util.Collections.emptyList(); + skillFilters_ = java.util.Collections.emptyList(); + workExperienceFilter_ = java.util.Collections.emptyList(); + timeFilters_ = java.util.Collections.emptyList(); + applicationDateFilters_ = java.util.Collections.emptyList(); + applicationOutcomeReasonFilters_ = java.util.Collections.emptyList(); + applicationLastStageFilters_ = java.util.Collections.emptyList(); + applicationJobFilters_ = java.util.Collections.emptyList(); + applicationStatusFilters_ = java.util.Collections.emptyList(); + customFieldFilter_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ProfileQuery( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + query_ = s; + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + locationFilters_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + locationFilters_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.LocationFilter.parser(), extensionRegistry)); + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + jobTitleFilters_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + jobTitleFilters_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.JobTitleFilter.parser(), extensionRegistry)); + break; + } + case 34: + { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + employerFilters_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + employerFilters_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.EmployerFilter.parser(), extensionRegistry)); + break; + } + case 42: + { + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + educationFilters_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + educationFilters_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.EducationFilter.parser(), extensionRegistry)); + break; + } + case 50: + { + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + skillFilters_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000020; + } + skillFilters_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.SkillFilter.parser(), extensionRegistry)); + break; + } + case 58: + { + if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + workExperienceFilter_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000040; + } + workExperienceFilter_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.WorkExperienceFilter.parser(), + extensionRegistry)); + break; + } + case 66: + { + if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + timeFilters_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000080; + } + timeFilters_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.TimeFilter.parser(), extensionRegistry)); + break; + } + case 74: + { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (hirableFilter_ != null) { + subBuilder = hirableFilter_.toBuilder(); + } + hirableFilter_ = + input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(hirableFilter_); + hirableFilter_ = subBuilder.buildPartial(); + } + + break; + } + case 82: + { + if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + applicationDateFilters_ = + new java.util.ArrayList< + com.google.cloud.talent.v4beta1.ApplicationDateFilter>(); + mutable_bitField0_ |= 0x00000200; + } + applicationDateFilters_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.ApplicationDateFilter.parser(), + extensionRegistry)); + break; + } + case 90: + { + if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + applicationOutcomeReasonFilters_ = + new java.util.ArrayList< + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter>(); + mutable_bitField0_ |= 0x00000400; + } + applicationOutcomeReasonFilters_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.parser(), + extensionRegistry)); + break; + } + case 98: + { + if (!((mutable_bitField0_ & 0x00000800) == 0x00000800)) { + applicationLastStageFilters_ = + new java.util.ArrayList< + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter>(); + mutable_bitField0_ |= 0x00000800; + } + applicationLastStageFilters_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.parser(), + extensionRegistry)); + break; + } + case 106: + { + if (!((mutable_bitField0_ & 0x00001000) == 0x00001000)) { + applicationJobFilters_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00001000; + } + applicationJobFilters_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.ApplicationJobFilter.parser(), + extensionRegistry)); + break; + } + case 114: + { + if (!((mutable_bitField0_ & 0x00002000) == 0x00002000)) { + applicationStatusFilters_ = + new java.util.ArrayList< + com.google.cloud.talent.v4beta1.ApplicationStatusFilter>(); + mutable_bitField0_ |= 0x00002000; + } + applicationStatusFilters_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.ApplicationStatusFilter.parser(), + extensionRegistry)); + break; + } + case 122: + { + java.lang.String s = input.readStringRequireUtf8(); + + customFieldFilter_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + locationFilters_ = java.util.Collections.unmodifiableList(locationFilters_); + } + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + jobTitleFilters_ = java.util.Collections.unmodifiableList(jobTitleFilters_); + } + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + employerFilters_ = java.util.Collections.unmodifiableList(employerFilters_); + } + if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + educationFilters_ = java.util.Collections.unmodifiableList(educationFilters_); + } + if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + skillFilters_ = java.util.Collections.unmodifiableList(skillFilters_); + } + if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + workExperienceFilter_ = java.util.Collections.unmodifiableList(workExperienceFilter_); + } + if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + timeFilters_ = java.util.Collections.unmodifiableList(timeFilters_); + } + if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + applicationDateFilters_ = java.util.Collections.unmodifiableList(applicationDateFilters_); + } + if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + applicationOutcomeReasonFilters_ = + java.util.Collections.unmodifiableList(applicationOutcomeReasonFilters_); + } + if (((mutable_bitField0_ & 0x00000800) == 0x00000800)) { + applicationLastStageFilters_ = + java.util.Collections.unmodifiableList(applicationLastStageFilters_); + } + if (((mutable_bitField0_ & 0x00001000) == 0x00001000)) { + applicationJobFilters_ = java.util.Collections.unmodifiableList(applicationJobFilters_); + } + if (((mutable_bitField0_ & 0x00002000) == 0x00002000)) { + applicationStatusFilters_ = + java.util.Collections.unmodifiableList(applicationStatusFilters_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ProfileQuery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ProfileQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ProfileQuery.class, + com.google.cloud.talent.v4beta1.ProfileQuery.Builder.class); + } + + private int bitField0_; + public static final int QUERY_FIELD_NUMBER = 1; + private volatile java.lang.Object query_; + /** + * + * + *
+   * Optional.
+   * Keywords to match any text fields of profiles.
+   * For example, "software engineer in Palo Alto".
+   * 
+ * + * string query = 1; + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + 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(); + query_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * Keywords to match any text fields of profiles.
+   * For example, "software engineer in Palo Alto".
+   * 
+ * + * string query = 1; + */ + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCATION_FILTERS_FIELD_NUMBER = 2; + private java.util.List locationFilters_; + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the profiles to
+   * search against.
+   * If a location filter isn't specified, profiles fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If
+   * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+   * is specified, the result doesn't contain profiles from that location.
+   * For example, search for profiles with addresses in "New York City".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public java.util.List getLocationFiltersList() { + return locationFilters_; + } + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the profiles to
+   * search against.
+   * If a location filter isn't specified, profiles fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If
+   * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+   * is specified, the result doesn't contain profiles from that location.
+   * For example, search for profiles with addresses in "New York City".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public java.util.List + getLocationFiltersOrBuilderList() { + return locationFilters_; + } + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the profiles to
+   * search against.
+   * If a location filter isn't specified, profiles fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If
+   * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+   * is specified, the result doesn't contain profiles from that location.
+   * For example, search for profiles with addresses in "New York City".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public int getLocationFiltersCount() { + return locationFilters_.size(); + } + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the profiles to
+   * search against.
+   * If a location filter isn't specified, profiles fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If
+   * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+   * is specified, the result doesn't contain profiles from that location.
+   * For example, search for profiles with addresses in "New York City".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public com.google.cloud.talent.v4beta1.LocationFilter getLocationFilters(int index) { + return locationFilters_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the profiles to
+   * search against.
+   * If a location filter isn't specified, profiles fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If
+   * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+   * is specified, the result doesn't contain profiles from that location.
+   * For example, search for profiles with addresses in "New York City".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public com.google.cloud.talent.v4beta1.LocationFilterOrBuilder getLocationFiltersOrBuilder( + int index) { + return locationFilters_.get(index); + } + + public static final int JOB_TITLE_FILTERS_FIELD_NUMBER = 3; + private java.util.List jobTitleFilters_; + /** + * + * + *
+   * Optional.
+   * Job title filter specifies job titles of profiles to match on.
+   * If a job title isn't specified, profiles with any titles are retrieved.
+   * If multiple values are specified, profiles are retrieved with any of the
+   * specified job titles.
+   * If
+   * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+   * is specified, the result won't contain profiles with the job titles.
+   * For example, search for profiles with a job title "Product Manager".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public java.util.List getJobTitleFiltersList() { + return jobTitleFilters_; + } + /** + * + * + *
+   * Optional.
+   * Job title filter specifies job titles of profiles to match on.
+   * If a job title isn't specified, profiles with any titles are retrieved.
+   * If multiple values are specified, profiles are retrieved with any of the
+   * specified job titles.
+   * If
+   * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+   * is specified, the result won't contain profiles with the job titles.
+   * For example, search for profiles with a job title "Product Manager".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public java.util.List + getJobTitleFiltersOrBuilderList() { + return jobTitleFilters_; + } + /** + * + * + *
+   * Optional.
+   * Job title filter specifies job titles of profiles to match on.
+   * If a job title isn't specified, profiles with any titles are retrieved.
+   * If multiple values are specified, profiles are retrieved with any of the
+   * specified job titles.
+   * If
+   * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+   * is specified, the result won't contain profiles with the job titles.
+   * For example, search for profiles with a job title "Product Manager".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public int getJobTitleFiltersCount() { + return jobTitleFilters_.size(); + } + /** + * + * + *
+   * Optional.
+   * Job title filter specifies job titles of profiles to match on.
+   * If a job title isn't specified, profiles with any titles are retrieved.
+   * If multiple values are specified, profiles are retrieved with any of the
+   * specified job titles.
+   * If
+   * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+   * is specified, the result won't contain profiles with the job titles.
+   * For example, search for profiles with a job title "Product Manager".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public com.google.cloud.talent.v4beta1.JobTitleFilter getJobTitleFilters(int index) { + return jobTitleFilters_.get(index); + } + /** + * + * + *
+   * Optional.
+   * Job title filter specifies job titles of profiles to match on.
+   * If a job title isn't specified, profiles with any titles are retrieved.
+   * If multiple values are specified, profiles are retrieved with any of the
+   * specified job titles.
+   * If
+   * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+   * is specified, the result won't contain profiles with the job titles.
+   * For example, search for profiles with a job title "Product Manager".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public com.google.cloud.talent.v4beta1.JobTitleFilterOrBuilder getJobTitleFiltersOrBuilder( + int index) { + return jobTitleFilters_.get(index); + } + + public static final int EMPLOYER_FILTERS_FIELD_NUMBER = 4; + private java.util.List employerFilters_; + /** + * + * + *
+   * Optional.
+   * Employer filter specifies employers of profiles to match on.
+   * If an employer filter isn't specified, profiles with any employers are
+   * retrieved.
+   * If multiple employer filters are specified, profiles with any matching
+   * employers are retrieved.
+   * If
+   * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+   * is specified, the result won't contain profiles that match the employers.
+   * For example, search for profiles that have working experience at "Google
+   * LLC".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public java.util.List getEmployerFiltersList() { + return employerFilters_; + } + /** + * + * + *
+   * Optional.
+   * Employer filter specifies employers of profiles to match on.
+   * If an employer filter isn't specified, profiles with any employers are
+   * retrieved.
+   * If multiple employer filters are specified, profiles with any matching
+   * employers are retrieved.
+   * If
+   * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+   * is specified, the result won't contain profiles that match the employers.
+   * For example, search for profiles that have working experience at "Google
+   * LLC".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public java.util.List + getEmployerFiltersOrBuilderList() { + return employerFilters_; + } + /** + * + * + *
+   * Optional.
+   * Employer filter specifies employers of profiles to match on.
+   * If an employer filter isn't specified, profiles with any employers are
+   * retrieved.
+   * If multiple employer filters are specified, profiles with any matching
+   * employers are retrieved.
+   * If
+   * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+   * is specified, the result won't contain profiles that match the employers.
+   * For example, search for profiles that have working experience at "Google
+   * LLC".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public int getEmployerFiltersCount() { + return employerFilters_.size(); + } + /** + * + * + *
+   * Optional.
+   * Employer filter specifies employers of profiles to match on.
+   * If an employer filter isn't specified, profiles with any employers are
+   * retrieved.
+   * If multiple employer filters are specified, profiles with any matching
+   * employers are retrieved.
+   * If
+   * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+   * is specified, the result won't contain profiles that match the employers.
+   * For example, search for profiles that have working experience at "Google
+   * LLC".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public com.google.cloud.talent.v4beta1.EmployerFilter getEmployerFilters(int index) { + return employerFilters_.get(index); + } + /** + * + * + *
+   * Optional.
+   * Employer filter specifies employers of profiles to match on.
+   * If an employer filter isn't specified, profiles with any employers are
+   * retrieved.
+   * If multiple employer filters are specified, profiles with any matching
+   * employers are retrieved.
+   * If
+   * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+   * is specified, the result won't contain profiles that match the employers.
+   * For example, search for profiles that have working experience at "Google
+   * LLC".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public com.google.cloud.talent.v4beta1.EmployerFilterOrBuilder getEmployerFiltersOrBuilder( + int index) { + return employerFilters_.get(index); + } + + public static final int EDUCATION_FILTERS_FIELD_NUMBER = 5; + private java.util.List educationFilters_; + /** + * + * + *
+   * Optional.
+   * Education filter specifies education of profiles to match on.
+   * If an education filter isn't specified, profiles with any education are
+   * retrieved.
+   * If multiple education filters are specified, profiles that match any
+   * education filters are retrieved.
+   * If
+   * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+   * is specified, the result won't contain profiles that match the educations.
+   * For example, search for profiles with a master degree.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public java.util.List getEducationFiltersList() { + return educationFilters_; + } + /** + * + * + *
+   * Optional.
+   * Education filter specifies education of profiles to match on.
+   * If an education filter isn't specified, profiles with any education are
+   * retrieved.
+   * If multiple education filters are specified, profiles that match any
+   * education filters are retrieved.
+   * If
+   * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+   * is specified, the result won't contain profiles that match the educations.
+   * For example, search for profiles with a master degree.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public java.util.List + getEducationFiltersOrBuilderList() { + return educationFilters_; + } + /** + * + * + *
+   * Optional.
+   * Education filter specifies education of profiles to match on.
+   * If an education filter isn't specified, profiles with any education are
+   * retrieved.
+   * If multiple education filters are specified, profiles that match any
+   * education filters are retrieved.
+   * If
+   * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+   * is specified, the result won't contain profiles that match the educations.
+   * For example, search for profiles with a master degree.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public int getEducationFiltersCount() { + return educationFilters_.size(); + } + /** + * + * + *
+   * Optional.
+   * Education filter specifies education of profiles to match on.
+   * If an education filter isn't specified, profiles with any education are
+   * retrieved.
+   * If multiple education filters are specified, profiles that match any
+   * education filters are retrieved.
+   * If
+   * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+   * is specified, the result won't contain profiles that match the educations.
+   * For example, search for profiles with a master degree.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public com.google.cloud.talent.v4beta1.EducationFilter getEducationFilters(int index) { + return educationFilters_.get(index); + } + /** + * + * + *
+   * Optional.
+   * Education filter specifies education of profiles to match on.
+   * If an education filter isn't specified, profiles with any education are
+   * retrieved.
+   * If multiple education filters are specified, profiles that match any
+   * education filters are retrieved.
+   * If
+   * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+   * is specified, the result won't contain profiles that match the educations.
+   * For example, search for profiles with a master degree.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public com.google.cloud.talent.v4beta1.EducationFilterOrBuilder getEducationFiltersOrBuilder( + int index) { + return educationFilters_.get(index); + } + + public static final int SKILL_FILTERS_FIELD_NUMBER = 6; + private java.util.List skillFilters_; + /** + * + * + *
+   * Optional.
+   * Skill filter specifies skill of profiles to match on.
+   * If a skill filter isn't specified, profiles with any skills are retrieved.
+   * If multiple skill filters are specified, profiles that match any skill
+   * filters are retrieved.
+   * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+   * is specified, the result won't contain profiles that match the skills.
+   * For example, search for profiles that have "Java" and "Python" in skill
+   * list.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public java.util.List getSkillFiltersList() { + return skillFilters_; + } + /** + * + * + *
+   * Optional.
+   * Skill filter specifies skill of profiles to match on.
+   * If a skill filter isn't specified, profiles with any skills are retrieved.
+   * If multiple skill filters are specified, profiles that match any skill
+   * filters are retrieved.
+   * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+   * is specified, the result won't contain profiles that match the skills.
+   * For example, search for profiles that have "Java" and "Python" in skill
+   * list.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public java.util.List + getSkillFiltersOrBuilderList() { + return skillFilters_; + } + /** + * + * + *
+   * Optional.
+   * Skill filter specifies skill of profiles to match on.
+   * If a skill filter isn't specified, profiles with any skills are retrieved.
+   * If multiple skill filters are specified, profiles that match any skill
+   * filters are retrieved.
+   * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+   * is specified, the result won't contain profiles that match the skills.
+   * For example, search for profiles that have "Java" and "Python" in skill
+   * list.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public int getSkillFiltersCount() { + return skillFilters_.size(); + } + /** + * + * + *
+   * Optional.
+   * Skill filter specifies skill of profiles to match on.
+   * If a skill filter isn't specified, profiles with any skills are retrieved.
+   * If multiple skill filters are specified, profiles that match any skill
+   * filters are retrieved.
+   * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+   * is specified, the result won't contain profiles that match the skills.
+   * For example, search for profiles that have "Java" and "Python" in skill
+   * list.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public com.google.cloud.talent.v4beta1.SkillFilter getSkillFilters(int index) { + return skillFilters_.get(index); + } + /** + * + * + *
+   * Optional.
+   * Skill filter specifies skill of profiles to match on.
+   * If a skill filter isn't specified, profiles with any skills are retrieved.
+   * If multiple skill filters are specified, profiles that match any skill
+   * filters are retrieved.
+   * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+   * is specified, the result won't contain profiles that match the skills.
+   * For example, search for profiles that have "Java" and "Python" in skill
+   * list.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public com.google.cloud.talent.v4beta1.SkillFilterOrBuilder getSkillFiltersOrBuilder(int index) { + return skillFilters_.get(index); + } + + public static final int WORK_EXPERIENCE_FILTER_FIELD_NUMBER = 7; + private java.util.List + workExperienceFilter_; + /** + * + * + *
+   * Optional.
+   * Work experience filter specifies the total working experience of profiles
+   * to match on.
+   * If a work experience filter isn't specified, profiles with any
+   * professional experience are retrieved.
+   * If multiple work experience filters are specified, profiles that match any
+   * work experience filters are retrieved.
+   * For example, search for profiles with 10 years of work experience.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public java.util.List + getWorkExperienceFilterList() { + return workExperienceFilter_; + } + /** + * + * + *
+   * Optional.
+   * Work experience filter specifies the total working experience of profiles
+   * to match on.
+   * If a work experience filter isn't specified, profiles with any
+   * professional experience are retrieved.
+   * If multiple work experience filters are specified, profiles that match any
+   * work experience filters are retrieved.
+   * For example, search for profiles with 10 years of work experience.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public java.util.List + getWorkExperienceFilterOrBuilderList() { + return workExperienceFilter_; + } + /** + * + * + *
+   * Optional.
+   * Work experience filter specifies the total working experience of profiles
+   * to match on.
+   * If a work experience filter isn't specified, profiles with any
+   * professional experience are retrieved.
+   * If multiple work experience filters are specified, profiles that match any
+   * work experience filters are retrieved.
+   * For example, search for profiles with 10 years of work experience.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public int getWorkExperienceFilterCount() { + return workExperienceFilter_.size(); + } + /** + * + * + *
+   * Optional.
+   * Work experience filter specifies the total working experience of profiles
+   * to match on.
+   * If a work experience filter isn't specified, profiles with any
+   * professional experience are retrieved.
+   * If multiple work experience filters are specified, profiles that match any
+   * work experience filters are retrieved.
+   * For example, search for profiles with 10 years of work experience.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public com.google.cloud.talent.v4beta1.WorkExperienceFilter getWorkExperienceFilter(int index) { + return workExperienceFilter_.get(index); + } + /** + * + * + *
+   * Optional.
+   * Work experience filter specifies the total working experience of profiles
+   * to match on.
+   * If a work experience filter isn't specified, profiles with any
+   * professional experience are retrieved.
+   * If multiple work experience filters are specified, profiles that match any
+   * work experience filters are retrieved.
+   * For example, search for profiles with 10 years of work experience.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public com.google.cloud.talent.v4beta1.WorkExperienceFilterOrBuilder + getWorkExperienceFilterOrBuilder(int index) { + return workExperienceFilter_.get(index); + } + + public static final int TIME_FILTERS_FIELD_NUMBER = 8; + private java.util.List timeFilters_; + /** + * + * + *
+   * Optional.
+   * Time filter specifies the create/update timestamp of the profiles to match
+   * on.
+   * For example, search for profiles created since "2018-1-1".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public java.util.List getTimeFiltersList() { + return timeFilters_; + } + /** + * + * + *
+   * Optional.
+   * Time filter specifies the create/update timestamp of the profiles to match
+   * on.
+   * For example, search for profiles created since "2018-1-1".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public java.util.List + getTimeFiltersOrBuilderList() { + return timeFilters_; + } + /** + * + * + *
+   * Optional.
+   * Time filter specifies the create/update timestamp of the profiles to match
+   * on.
+   * For example, search for profiles created since "2018-1-1".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public int getTimeFiltersCount() { + return timeFilters_.size(); + } + /** + * + * + *
+   * Optional.
+   * Time filter specifies the create/update timestamp of the profiles to match
+   * on.
+   * For example, search for profiles created since "2018-1-1".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public com.google.cloud.talent.v4beta1.TimeFilter getTimeFilters(int index) { + return timeFilters_.get(index); + } + /** + * + * + *
+   * Optional.
+   * Time filter specifies the create/update timestamp of the profiles to match
+   * on.
+   * For example, search for profiles created since "2018-1-1".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public com.google.cloud.talent.v4beta1.TimeFilterOrBuilder getTimeFiltersOrBuilder(int index) { + return timeFilters_.get(index); + } + + public static final int HIRABLE_FILTER_FIELD_NUMBER = 9; + private com.google.protobuf.BoolValue hirableFilter_; + /** + * + * + *
+   * Optional.
+   * The hirable filter specifies the profile's hirable status to match on.
+   * 
+ * + * .google.protobuf.BoolValue hirable_filter = 9; + */ + public boolean hasHirableFilter() { + return hirableFilter_ != null; + } + /** + * + * + *
+   * Optional.
+   * The hirable filter specifies the profile's hirable status to match on.
+   * 
+ * + * .google.protobuf.BoolValue hirable_filter = 9; + */ + public com.google.protobuf.BoolValue getHirableFilter() { + return hirableFilter_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : hirableFilter_; + } + /** + * + * + *
+   * Optional.
+   * The hirable filter specifies the profile's hirable status to match on.
+   * 
+ * + * .google.protobuf.BoolValue hirable_filter = 9; + */ + public com.google.protobuf.BoolValueOrBuilder getHirableFilterOrBuilder() { + return getHirableFilter(); + } + + public static final int APPLICATION_DATE_FILTERS_FIELD_NUMBER = 10; + private java.util.List + applicationDateFilters_; + /** + * + * + *
+   * Optional.
+   * The application date filters specify application date ranges to match on.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public java.util.List + getApplicationDateFiltersList() { + return applicationDateFilters_; + } + /** + * + * + *
+   * Optional.
+   * The application date filters specify application date ranges to match on.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public java.util.List + getApplicationDateFiltersOrBuilderList() { + return applicationDateFilters_; + } + /** + * + * + *
+   * Optional.
+   * The application date filters specify application date ranges to match on.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public int getApplicationDateFiltersCount() { + return applicationDateFilters_.size(); + } + /** + * + * + *
+   * Optional.
+   * The application date filters specify application date ranges to match on.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationDateFilter getApplicationDateFilters( + int index) { + return applicationDateFilters_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The application date filters specify application date ranges to match on.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationDateFilterOrBuilder + getApplicationDateFiltersOrBuilder(int index) { + return applicationDateFilters_.get(index); + } + + public static final int APPLICATION_OUTCOME_REASON_FILTERS_FIELD_NUMBER = 11; + private java.util.List + applicationOutcomeReasonFilters_; + /** + * + * + *
+   * Optional.
+   * The application outcome reason filters specify the reasons for outcome of
+   * the job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public java.util.List + getApplicationOutcomeReasonFiltersList() { + return applicationOutcomeReasonFilters_; + } + /** + * + * + *
+   * Optional.
+   * The application outcome reason filters specify the reasons for outcome of
+   * the job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public java.util.List< + ? extends com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilterOrBuilder> + getApplicationOutcomeReasonFiltersOrBuilderList() { + return applicationOutcomeReasonFilters_; + } + /** + * + * + *
+   * Optional.
+   * The application outcome reason filters specify the reasons for outcome of
+   * the job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public int getApplicationOutcomeReasonFiltersCount() { + return applicationOutcomeReasonFilters_.size(); + } + /** + * + * + *
+   * Optional.
+   * The application outcome reason filters specify the reasons for outcome of
+   * the job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter + getApplicationOutcomeReasonFilters(int index) { + return applicationOutcomeReasonFilters_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The application outcome reason filters specify the reasons for outcome of
+   * the job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilterOrBuilder + getApplicationOutcomeReasonFiltersOrBuilder(int index) { + return applicationOutcomeReasonFilters_.get(index); + } + + public static final int APPLICATION_LAST_STAGE_FILTERS_FIELD_NUMBER = 12; + private java.util.List + applicationLastStageFilters_; + /** + * + * + *
+   * Optional.
+   * The application last stage filters specify the last stage of job
+   * application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public java.util.List + getApplicationLastStageFiltersList() { + return applicationLastStageFilters_; + } + /** + * + * + *
+   * Optional.
+   * The application last stage filters specify the last stage of job
+   * application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public java.util.List< + ? extends com.google.cloud.talent.v4beta1.ApplicationLastStageFilterOrBuilder> + getApplicationLastStageFiltersOrBuilderList() { + return applicationLastStageFilters_; + } + /** + * + * + *
+   * Optional.
+   * The application last stage filters specify the last stage of job
+   * application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public int getApplicationLastStageFiltersCount() { + return applicationLastStageFilters_.size(); + } + /** + * + * + *
+   * Optional.
+   * The application last stage filters specify the last stage of job
+   * application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationLastStageFilter getApplicationLastStageFilters( + int index) { + return applicationLastStageFilters_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The application last stage filters specify the last stage of job
+   * application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationLastStageFilterOrBuilder + getApplicationLastStageFiltersOrBuilder(int index) { + return applicationLastStageFilters_.get(index); + } + + public static final int APPLICATION_JOB_FILTERS_FIELD_NUMBER = 13; + private java.util.List + applicationJobFilters_; + /** + * + * + *
+   * Optional.
+   * The application job filters specify the job applied for in the application.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public java.util.List + getApplicationJobFiltersList() { + return applicationJobFilters_; + } + /** + * + * + *
+   * Optional.
+   * The application job filters specify the job applied for in the application.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public java.util.List + getApplicationJobFiltersOrBuilderList() { + return applicationJobFilters_; + } + /** + * + * + *
+   * Optional.
+   * The application job filters specify the job applied for in the application.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public int getApplicationJobFiltersCount() { + return applicationJobFilters_.size(); + } + /** + * + * + *
+   * Optional.
+   * The application job filters specify the job applied for in the application.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationJobFilter getApplicationJobFilters(int index) { + return applicationJobFilters_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The application job filters specify the job applied for in the application.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationJobFilterOrBuilder + getApplicationJobFiltersOrBuilder(int index) { + return applicationJobFilters_.get(index); + } + + public static final int APPLICATION_STATUS_FILTERS_FIELD_NUMBER = 14; + private java.util.List + applicationStatusFilters_; + /** + * + * + *
+   * Optional.
+   * The application status filters specify the status of job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public java.util.List + getApplicationStatusFiltersList() { + return applicationStatusFilters_; + } + /** + * + * + *
+   * Optional.
+   * The application status filters specify the status of job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public java.util.List + getApplicationStatusFiltersOrBuilderList() { + return applicationStatusFilters_; + } + /** + * + * + *
+   * Optional.
+   * The application status filters specify the status of job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public int getApplicationStatusFiltersCount() { + return applicationStatusFilters_.size(); + } + /** + * + * + *
+   * Optional.
+   * The application status filters specify the status of job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationStatusFilter getApplicationStatusFilters( + int index) { + return applicationStatusFilters_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The application status filters specify the status of job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationStatusFilterOrBuilder + getApplicationStatusFiltersOrBuilder(int index) { + return applicationStatusFilters_.get(index); + } + + public static final int CUSTOM_FIELD_FILTER_FIELD_NUMBER = 15; + private volatile java.lang.Object customFieldFilter_; + /** + * + * + *
+   * Optional.
+   * This filter specifies a structured syntax to match against the
+   * [Profile.custom_attributes][google.cloud.talent.v4beta1.Profile.custom_attributes]
+   * that are marked as `filterable`.
+   * The syntax for this expression is a subset of Google SQL syntax.
+   * Supported operators are: =, != where the left of the operator is a custom
+   * field key and the right of the operator is a string (surrounded by quotes)
+   * value.
+   * Supported functions are LOWER(<field_name>) to
+   * perform case insensitive match and EMPTY(<field_name>) to filter on the
+   * existence of a key.
+   * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+   * nesting (for example "((A AND B AND C) OR NOT D) AND E"), and there can be
+   * a maximum of 50 comparisons/functions in the expression. The expression
+   * must be < 2000 characters in length.
+   * Sample Query:
+   * (key1 = "TEST" OR LOWER(key1)="test" OR NOT EMPTY(key1))
+   * 
+ * + * string custom_field_filter = 15; + */ + public java.lang.String getCustomFieldFilter() { + java.lang.Object ref = customFieldFilter_; + 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(); + customFieldFilter_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * This filter specifies a structured syntax to match against the
+   * [Profile.custom_attributes][google.cloud.talent.v4beta1.Profile.custom_attributes]
+   * that are marked as `filterable`.
+   * The syntax for this expression is a subset of Google SQL syntax.
+   * Supported operators are: =, != where the left of the operator is a custom
+   * field key and the right of the operator is a string (surrounded by quotes)
+   * value.
+   * Supported functions are LOWER(<field_name>) to
+   * perform case insensitive match and EMPTY(<field_name>) to filter on the
+   * existence of a key.
+   * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+   * nesting (for example "((A AND B AND C) OR NOT D) AND E"), and there can be
+   * a maximum of 50 comparisons/functions in the expression. The expression
+   * must be < 2000 characters in length.
+   * Sample Query:
+   * (key1 = "TEST" OR LOWER(key1)="test" OR NOT EMPTY(key1))
+   * 
+ * + * string custom_field_filter = 15; + */ + public com.google.protobuf.ByteString getCustomFieldFilterBytes() { + java.lang.Object ref = customFieldFilter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customFieldFilter_ = 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 (!getQueryBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); + } + for (int i = 0; i < locationFilters_.size(); i++) { + output.writeMessage(2, locationFilters_.get(i)); + } + for (int i = 0; i < jobTitleFilters_.size(); i++) { + output.writeMessage(3, jobTitleFilters_.get(i)); + } + for (int i = 0; i < employerFilters_.size(); i++) { + output.writeMessage(4, employerFilters_.get(i)); + } + for (int i = 0; i < educationFilters_.size(); i++) { + output.writeMessage(5, educationFilters_.get(i)); + } + for (int i = 0; i < skillFilters_.size(); i++) { + output.writeMessage(6, skillFilters_.get(i)); + } + for (int i = 0; i < workExperienceFilter_.size(); i++) { + output.writeMessage(7, workExperienceFilter_.get(i)); + } + for (int i = 0; i < timeFilters_.size(); i++) { + output.writeMessage(8, timeFilters_.get(i)); + } + if (hirableFilter_ != null) { + output.writeMessage(9, getHirableFilter()); + } + for (int i = 0; i < applicationDateFilters_.size(); i++) { + output.writeMessage(10, applicationDateFilters_.get(i)); + } + for (int i = 0; i < applicationOutcomeReasonFilters_.size(); i++) { + output.writeMessage(11, applicationOutcomeReasonFilters_.get(i)); + } + for (int i = 0; i < applicationLastStageFilters_.size(); i++) { + output.writeMessage(12, applicationLastStageFilters_.get(i)); + } + for (int i = 0; i < applicationJobFilters_.size(); i++) { + output.writeMessage(13, applicationJobFilters_.get(i)); + } + for (int i = 0; i < applicationStatusFilters_.size(); i++) { + output.writeMessage(14, applicationStatusFilters_.get(i)); + } + if (!getCustomFieldFilterBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 15, customFieldFilter_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getQueryBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); + } + for (int i = 0; i < locationFilters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, locationFilters_.get(i)); + } + for (int i = 0; i < jobTitleFilters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, jobTitleFilters_.get(i)); + } + for (int i = 0; i < employerFilters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, employerFilters_.get(i)); + } + for (int i = 0; i < educationFilters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, educationFilters_.get(i)); + } + for (int i = 0; i < skillFilters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, skillFilters_.get(i)); + } + for (int i = 0; i < workExperienceFilter_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(7, workExperienceFilter_.get(i)); + } + for (int i = 0; i < timeFilters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, timeFilters_.get(i)); + } + if (hirableFilter_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getHirableFilter()); + } + for (int i = 0; i < applicationDateFilters_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, applicationDateFilters_.get(i)); + } + for (int i = 0; i < applicationOutcomeReasonFilters_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, applicationOutcomeReasonFilters_.get(i)); + } + for (int i = 0; i < applicationLastStageFilters_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, applicationLastStageFilters_.get(i)); + } + for (int i = 0; i < applicationJobFilters_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, applicationJobFilters_.get(i)); + } + for (int i = 0; i < applicationStatusFilters_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 14, applicationStatusFilters_.get(i)); + } + if (!getCustomFieldFilterBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, customFieldFilter_); + } + size += unknownFields.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.cloud.talent.v4beta1.ProfileQuery)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ProfileQuery other = + (com.google.cloud.talent.v4beta1.ProfileQuery) obj; + + boolean result = true; + result = result && getQuery().equals(other.getQuery()); + result = result && getLocationFiltersList().equals(other.getLocationFiltersList()); + result = result && getJobTitleFiltersList().equals(other.getJobTitleFiltersList()); + result = result && getEmployerFiltersList().equals(other.getEmployerFiltersList()); + result = result && getEducationFiltersList().equals(other.getEducationFiltersList()); + result = result && getSkillFiltersList().equals(other.getSkillFiltersList()); + result = result && getWorkExperienceFilterList().equals(other.getWorkExperienceFilterList()); + result = result && getTimeFiltersList().equals(other.getTimeFiltersList()); + result = result && (hasHirableFilter() == other.hasHirableFilter()); + if (hasHirableFilter()) { + result = result && getHirableFilter().equals(other.getHirableFilter()); + } + result = + result && getApplicationDateFiltersList().equals(other.getApplicationDateFiltersList()); + result = + result + && getApplicationOutcomeReasonFiltersList() + .equals(other.getApplicationOutcomeReasonFiltersList()); + result = + result + && getApplicationLastStageFiltersList() + .equals(other.getApplicationLastStageFiltersList()); + result = result && getApplicationJobFiltersList().equals(other.getApplicationJobFiltersList()); + result = + result && getApplicationStatusFiltersList().equals(other.getApplicationStatusFiltersList()); + result = result && getCustomFieldFilter().equals(other.getCustomFieldFilter()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + if (getLocationFiltersCount() > 0) { + hash = (37 * hash) + LOCATION_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getLocationFiltersList().hashCode(); + } + if (getJobTitleFiltersCount() > 0) { + hash = (37 * hash) + JOB_TITLE_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getJobTitleFiltersList().hashCode(); + } + if (getEmployerFiltersCount() > 0) { + hash = (37 * hash) + EMPLOYER_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getEmployerFiltersList().hashCode(); + } + if (getEducationFiltersCount() > 0) { + hash = (37 * hash) + EDUCATION_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getEducationFiltersList().hashCode(); + } + if (getSkillFiltersCount() > 0) { + hash = (37 * hash) + SKILL_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getSkillFiltersList().hashCode(); + } + if (getWorkExperienceFilterCount() > 0) { + hash = (37 * hash) + WORK_EXPERIENCE_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getWorkExperienceFilterList().hashCode(); + } + if (getTimeFiltersCount() > 0) { + hash = (37 * hash) + TIME_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getTimeFiltersList().hashCode(); + } + if (hasHirableFilter()) { + hash = (37 * hash) + HIRABLE_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getHirableFilter().hashCode(); + } + if (getApplicationDateFiltersCount() > 0) { + hash = (37 * hash) + APPLICATION_DATE_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getApplicationDateFiltersList().hashCode(); + } + if (getApplicationOutcomeReasonFiltersCount() > 0) { + hash = (37 * hash) + APPLICATION_OUTCOME_REASON_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getApplicationOutcomeReasonFiltersList().hashCode(); + } + if (getApplicationLastStageFiltersCount() > 0) { + hash = (37 * hash) + APPLICATION_LAST_STAGE_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getApplicationLastStageFiltersList().hashCode(); + } + if (getApplicationJobFiltersCount() > 0) { + hash = (37 * hash) + APPLICATION_JOB_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getApplicationJobFiltersList().hashCode(); + } + if (getApplicationStatusFiltersCount() > 0) { + hash = (37 * hash) + APPLICATION_STATUS_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getApplicationStatusFiltersList().hashCode(); + } + hash = (37 * hash) + CUSTOM_FIELD_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getCustomFieldFilter().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ProfileQuery parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ProfileQuery parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ProfileQuery parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ProfileQuery 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.cloud.talent.v4beta1.ProfileQuery parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ProfileQuery parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ProfileQuery parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ProfileQuery 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.cloud.talent.v4beta1.ProfileQuery parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ProfileQuery 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.cloud.talent.v4beta1.ProfileQuery parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ProfileQuery 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.cloud.talent.v4beta1.ProfileQuery 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; + } + /** + * + * + *
+   * Filters to apply when performing the search query.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ProfileQuery} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ProfileQuery) + com.google.cloud.talent.v4beta1.ProfileQueryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ProfileQuery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ProfileQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ProfileQuery.class, + com.google.cloud.talent.v4beta1.ProfileQuery.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ProfileQuery.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getLocationFiltersFieldBuilder(); + getJobTitleFiltersFieldBuilder(); + getEmployerFiltersFieldBuilder(); + getEducationFiltersFieldBuilder(); + getSkillFiltersFieldBuilder(); + getWorkExperienceFilterFieldBuilder(); + getTimeFiltersFieldBuilder(); + getApplicationDateFiltersFieldBuilder(); + getApplicationOutcomeReasonFiltersFieldBuilder(); + getApplicationLastStageFiltersFieldBuilder(); + getApplicationJobFiltersFieldBuilder(); + getApplicationStatusFiltersFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + query_ = ""; + + if (locationFiltersBuilder_ == null) { + locationFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + locationFiltersBuilder_.clear(); + } + if (jobTitleFiltersBuilder_ == null) { + jobTitleFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + jobTitleFiltersBuilder_.clear(); + } + if (employerFiltersBuilder_ == null) { + employerFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + employerFiltersBuilder_.clear(); + } + if (educationFiltersBuilder_ == null) { + educationFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + } else { + educationFiltersBuilder_.clear(); + } + if (skillFiltersBuilder_ == null) { + skillFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + } else { + skillFiltersBuilder_.clear(); + } + if (workExperienceFilterBuilder_ == null) { + workExperienceFilter_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + } else { + workExperienceFilterBuilder_.clear(); + } + if (timeFiltersBuilder_ == null) { + timeFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + } else { + timeFiltersBuilder_.clear(); + } + if (hirableFilterBuilder_ == null) { + hirableFilter_ = null; + } else { + hirableFilter_ = null; + hirableFilterBuilder_ = null; + } + if (applicationDateFiltersBuilder_ == null) { + applicationDateFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + } else { + applicationDateFiltersBuilder_.clear(); + } + if (applicationOutcomeReasonFiltersBuilder_ == null) { + applicationOutcomeReasonFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + } else { + applicationOutcomeReasonFiltersBuilder_.clear(); + } + if (applicationLastStageFiltersBuilder_ == null) { + applicationLastStageFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000800); + } else { + applicationLastStageFiltersBuilder_.clear(); + } + if (applicationJobFiltersBuilder_ == null) { + applicationJobFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + } else { + applicationJobFiltersBuilder_.clear(); + } + if (applicationStatusFiltersBuilder_ == null) { + applicationStatusFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00002000); + } else { + applicationStatusFiltersBuilder_.clear(); + } + customFieldFilter_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_ProfileQuery_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ProfileQuery getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ProfileQuery.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ProfileQuery build() { + com.google.cloud.talent.v4beta1.ProfileQuery result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ProfileQuery buildPartial() { + com.google.cloud.talent.v4beta1.ProfileQuery result = + new com.google.cloud.talent.v4beta1.ProfileQuery(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.query_ = query_; + if (locationFiltersBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + locationFilters_ = java.util.Collections.unmodifiableList(locationFilters_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.locationFilters_ = locationFilters_; + } else { + result.locationFilters_ = locationFiltersBuilder_.build(); + } + if (jobTitleFiltersBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + jobTitleFilters_ = java.util.Collections.unmodifiableList(jobTitleFilters_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.jobTitleFilters_ = jobTitleFilters_; + } else { + result.jobTitleFilters_ = jobTitleFiltersBuilder_.build(); + } + if (employerFiltersBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { + employerFilters_ = java.util.Collections.unmodifiableList(employerFilters_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.employerFilters_ = employerFilters_; + } else { + result.employerFilters_ = employerFiltersBuilder_.build(); + } + if (educationFiltersBuilder_ == null) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { + educationFilters_ = java.util.Collections.unmodifiableList(educationFilters_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.educationFilters_ = educationFilters_; + } else { + result.educationFilters_ = educationFiltersBuilder_.build(); + } + if (skillFiltersBuilder_ == null) { + if (((bitField0_ & 0x00000020) == 0x00000020)) { + skillFilters_ = java.util.Collections.unmodifiableList(skillFilters_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.skillFilters_ = skillFilters_; + } else { + result.skillFilters_ = skillFiltersBuilder_.build(); + } + if (workExperienceFilterBuilder_ == null) { + if (((bitField0_ & 0x00000040) == 0x00000040)) { + workExperienceFilter_ = java.util.Collections.unmodifiableList(workExperienceFilter_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.workExperienceFilter_ = workExperienceFilter_; + } else { + result.workExperienceFilter_ = workExperienceFilterBuilder_.build(); + } + if (timeFiltersBuilder_ == null) { + if (((bitField0_ & 0x00000080) == 0x00000080)) { + timeFilters_ = java.util.Collections.unmodifiableList(timeFilters_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.timeFilters_ = timeFilters_; + } else { + result.timeFilters_ = timeFiltersBuilder_.build(); + } + if (hirableFilterBuilder_ == null) { + result.hirableFilter_ = hirableFilter_; + } else { + result.hirableFilter_ = hirableFilterBuilder_.build(); + } + if (applicationDateFiltersBuilder_ == null) { + if (((bitField0_ & 0x00000200) == 0x00000200)) { + applicationDateFilters_ = java.util.Collections.unmodifiableList(applicationDateFilters_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.applicationDateFilters_ = applicationDateFilters_; + } else { + result.applicationDateFilters_ = applicationDateFiltersBuilder_.build(); + } + if (applicationOutcomeReasonFiltersBuilder_ == null) { + if (((bitField0_ & 0x00000400) == 0x00000400)) { + applicationOutcomeReasonFilters_ = + java.util.Collections.unmodifiableList(applicationOutcomeReasonFilters_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.applicationOutcomeReasonFilters_ = applicationOutcomeReasonFilters_; + } else { + result.applicationOutcomeReasonFilters_ = applicationOutcomeReasonFiltersBuilder_.build(); + } + if (applicationLastStageFiltersBuilder_ == null) { + if (((bitField0_ & 0x00000800) == 0x00000800)) { + applicationLastStageFilters_ = + java.util.Collections.unmodifiableList(applicationLastStageFilters_); + bitField0_ = (bitField0_ & ~0x00000800); + } + result.applicationLastStageFilters_ = applicationLastStageFilters_; + } else { + result.applicationLastStageFilters_ = applicationLastStageFiltersBuilder_.build(); + } + if (applicationJobFiltersBuilder_ == null) { + if (((bitField0_ & 0x00001000) == 0x00001000)) { + applicationJobFilters_ = java.util.Collections.unmodifiableList(applicationJobFilters_); + bitField0_ = (bitField0_ & ~0x00001000); + } + result.applicationJobFilters_ = applicationJobFilters_; + } else { + result.applicationJobFilters_ = applicationJobFiltersBuilder_.build(); + } + if (applicationStatusFiltersBuilder_ == null) { + if (((bitField0_ & 0x00002000) == 0x00002000)) { + applicationStatusFilters_ = + java.util.Collections.unmodifiableList(applicationStatusFilters_); + bitField0_ = (bitField0_ & ~0x00002000); + } + result.applicationStatusFilters_ = applicationStatusFilters_; + } else { + result.applicationStatusFilters_ = applicationStatusFiltersBuilder_.build(); + } + result.customFieldFilter_ = customFieldFilter_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ProfileQuery) { + return mergeFrom((com.google.cloud.talent.v4beta1.ProfileQuery) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ProfileQuery other) { + if (other == com.google.cloud.talent.v4beta1.ProfileQuery.getDefaultInstance()) return this; + if (!other.getQuery().isEmpty()) { + query_ = other.query_; + onChanged(); + } + if (locationFiltersBuilder_ == null) { + if (!other.locationFilters_.isEmpty()) { + if (locationFilters_.isEmpty()) { + locationFilters_ = other.locationFilters_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureLocationFiltersIsMutable(); + locationFilters_.addAll(other.locationFilters_); + } + onChanged(); + } + } else { + if (!other.locationFilters_.isEmpty()) { + if (locationFiltersBuilder_.isEmpty()) { + locationFiltersBuilder_.dispose(); + locationFiltersBuilder_ = null; + locationFilters_ = other.locationFilters_; + bitField0_ = (bitField0_ & ~0x00000002); + locationFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLocationFiltersFieldBuilder() + : null; + } else { + locationFiltersBuilder_.addAllMessages(other.locationFilters_); + } + } + } + if (jobTitleFiltersBuilder_ == null) { + if (!other.jobTitleFilters_.isEmpty()) { + if (jobTitleFilters_.isEmpty()) { + jobTitleFilters_ = other.jobTitleFilters_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureJobTitleFiltersIsMutable(); + jobTitleFilters_.addAll(other.jobTitleFilters_); + } + onChanged(); + } + } else { + if (!other.jobTitleFilters_.isEmpty()) { + if (jobTitleFiltersBuilder_.isEmpty()) { + jobTitleFiltersBuilder_.dispose(); + jobTitleFiltersBuilder_ = null; + jobTitleFilters_ = other.jobTitleFilters_; + bitField0_ = (bitField0_ & ~0x00000004); + jobTitleFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getJobTitleFiltersFieldBuilder() + : null; + } else { + jobTitleFiltersBuilder_.addAllMessages(other.jobTitleFilters_); + } + } + } + if (employerFiltersBuilder_ == null) { + if (!other.employerFilters_.isEmpty()) { + if (employerFilters_.isEmpty()) { + employerFilters_ = other.employerFilters_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureEmployerFiltersIsMutable(); + employerFilters_.addAll(other.employerFilters_); + } + onChanged(); + } + } else { + if (!other.employerFilters_.isEmpty()) { + if (employerFiltersBuilder_.isEmpty()) { + employerFiltersBuilder_.dispose(); + employerFiltersBuilder_ = null; + employerFilters_ = other.employerFilters_; + bitField0_ = (bitField0_ & ~0x00000008); + employerFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEmployerFiltersFieldBuilder() + : null; + } else { + employerFiltersBuilder_.addAllMessages(other.employerFilters_); + } + } + } + if (educationFiltersBuilder_ == null) { + if (!other.educationFilters_.isEmpty()) { + if (educationFilters_.isEmpty()) { + educationFilters_ = other.educationFilters_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureEducationFiltersIsMutable(); + educationFilters_.addAll(other.educationFilters_); + } + onChanged(); + } + } else { + if (!other.educationFilters_.isEmpty()) { + if (educationFiltersBuilder_.isEmpty()) { + educationFiltersBuilder_.dispose(); + educationFiltersBuilder_ = null; + educationFilters_ = other.educationFilters_; + bitField0_ = (bitField0_ & ~0x00000010); + educationFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEducationFiltersFieldBuilder() + : null; + } else { + educationFiltersBuilder_.addAllMessages(other.educationFilters_); + } + } + } + if (skillFiltersBuilder_ == null) { + if (!other.skillFilters_.isEmpty()) { + if (skillFilters_.isEmpty()) { + skillFilters_ = other.skillFilters_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureSkillFiltersIsMutable(); + skillFilters_.addAll(other.skillFilters_); + } + onChanged(); + } + } else { + if (!other.skillFilters_.isEmpty()) { + if (skillFiltersBuilder_.isEmpty()) { + skillFiltersBuilder_.dispose(); + skillFiltersBuilder_ = null; + skillFilters_ = other.skillFilters_; + bitField0_ = (bitField0_ & ~0x00000020); + skillFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSkillFiltersFieldBuilder() + : null; + } else { + skillFiltersBuilder_.addAllMessages(other.skillFilters_); + } + } + } + if (workExperienceFilterBuilder_ == null) { + if (!other.workExperienceFilter_.isEmpty()) { + if (workExperienceFilter_.isEmpty()) { + workExperienceFilter_ = other.workExperienceFilter_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureWorkExperienceFilterIsMutable(); + workExperienceFilter_.addAll(other.workExperienceFilter_); + } + onChanged(); + } + } else { + if (!other.workExperienceFilter_.isEmpty()) { + if (workExperienceFilterBuilder_.isEmpty()) { + workExperienceFilterBuilder_.dispose(); + workExperienceFilterBuilder_ = null; + workExperienceFilter_ = other.workExperienceFilter_; + bitField0_ = (bitField0_ & ~0x00000040); + workExperienceFilterBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWorkExperienceFilterFieldBuilder() + : null; + } else { + workExperienceFilterBuilder_.addAllMessages(other.workExperienceFilter_); + } + } + } + if (timeFiltersBuilder_ == null) { + if (!other.timeFilters_.isEmpty()) { + if (timeFilters_.isEmpty()) { + timeFilters_ = other.timeFilters_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureTimeFiltersIsMutable(); + timeFilters_.addAll(other.timeFilters_); + } + onChanged(); + } + } else { + if (!other.timeFilters_.isEmpty()) { + if (timeFiltersBuilder_.isEmpty()) { + timeFiltersBuilder_.dispose(); + timeFiltersBuilder_ = null; + timeFilters_ = other.timeFilters_; + bitField0_ = (bitField0_ & ~0x00000080); + timeFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTimeFiltersFieldBuilder() + : null; + } else { + timeFiltersBuilder_.addAllMessages(other.timeFilters_); + } + } + } + if (other.hasHirableFilter()) { + mergeHirableFilter(other.getHirableFilter()); + } + if (applicationDateFiltersBuilder_ == null) { + if (!other.applicationDateFilters_.isEmpty()) { + if (applicationDateFilters_.isEmpty()) { + applicationDateFilters_ = other.applicationDateFilters_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureApplicationDateFiltersIsMutable(); + applicationDateFilters_.addAll(other.applicationDateFilters_); + } + onChanged(); + } + } else { + if (!other.applicationDateFilters_.isEmpty()) { + if (applicationDateFiltersBuilder_.isEmpty()) { + applicationDateFiltersBuilder_.dispose(); + applicationDateFiltersBuilder_ = null; + applicationDateFilters_ = other.applicationDateFilters_; + bitField0_ = (bitField0_ & ~0x00000200); + applicationDateFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getApplicationDateFiltersFieldBuilder() + : null; + } else { + applicationDateFiltersBuilder_.addAllMessages(other.applicationDateFilters_); + } + } + } + if (applicationOutcomeReasonFiltersBuilder_ == null) { + if (!other.applicationOutcomeReasonFilters_.isEmpty()) { + if (applicationOutcomeReasonFilters_.isEmpty()) { + applicationOutcomeReasonFilters_ = other.applicationOutcomeReasonFilters_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureApplicationOutcomeReasonFiltersIsMutable(); + applicationOutcomeReasonFilters_.addAll(other.applicationOutcomeReasonFilters_); + } + onChanged(); + } + } else { + if (!other.applicationOutcomeReasonFilters_.isEmpty()) { + if (applicationOutcomeReasonFiltersBuilder_.isEmpty()) { + applicationOutcomeReasonFiltersBuilder_.dispose(); + applicationOutcomeReasonFiltersBuilder_ = null; + applicationOutcomeReasonFilters_ = other.applicationOutcomeReasonFilters_; + bitField0_ = (bitField0_ & ~0x00000400); + applicationOutcomeReasonFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getApplicationOutcomeReasonFiltersFieldBuilder() + : null; + } else { + applicationOutcomeReasonFiltersBuilder_.addAllMessages( + other.applicationOutcomeReasonFilters_); + } + } + } + if (applicationLastStageFiltersBuilder_ == null) { + if (!other.applicationLastStageFilters_.isEmpty()) { + if (applicationLastStageFilters_.isEmpty()) { + applicationLastStageFilters_ = other.applicationLastStageFilters_; + bitField0_ = (bitField0_ & ~0x00000800); + } else { + ensureApplicationLastStageFiltersIsMutable(); + applicationLastStageFilters_.addAll(other.applicationLastStageFilters_); + } + onChanged(); + } + } else { + if (!other.applicationLastStageFilters_.isEmpty()) { + if (applicationLastStageFiltersBuilder_.isEmpty()) { + applicationLastStageFiltersBuilder_.dispose(); + applicationLastStageFiltersBuilder_ = null; + applicationLastStageFilters_ = other.applicationLastStageFilters_; + bitField0_ = (bitField0_ & ~0x00000800); + applicationLastStageFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getApplicationLastStageFiltersFieldBuilder() + : null; + } else { + applicationLastStageFiltersBuilder_.addAllMessages(other.applicationLastStageFilters_); + } + } + } + if (applicationJobFiltersBuilder_ == null) { + if (!other.applicationJobFilters_.isEmpty()) { + if (applicationJobFilters_.isEmpty()) { + applicationJobFilters_ = other.applicationJobFilters_; + bitField0_ = (bitField0_ & ~0x00001000); + } else { + ensureApplicationJobFiltersIsMutable(); + applicationJobFilters_.addAll(other.applicationJobFilters_); + } + onChanged(); + } + } else { + if (!other.applicationJobFilters_.isEmpty()) { + if (applicationJobFiltersBuilder_.isEmpty()) { + applicationJobFiltersBuilder_.dispose(); + applicationJobFiltersBuilder_ = null; + applicationJobFilters_ = other.applicationJobFilters_; + bitField0_ = (bitField0_ & ~0x00001000); + applicationJobFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getApplicationJobFiltersFieldBuilder() + : null; + } else { + applicationJobFiltersBuilder_.addAllMessages(other.applicationJobFilters_); + } + } + } + if (applicationStatusFiltersBuilder_ == null) { + if (!other.applicationStatusFilters_.isEmpty()) { + if (applicationStatusFilters_.isEmpty()) { + applicationStatusFilters_ = other.applicationStatusFilters_; + bitField0_ = (bitField0_ & ~0x00002000); + } else { + ensureApplicationStatusFiltersIsMutable(); + applicationStatusFilters_.addAll(other.applicationStatusFilters_); + } + onChanged(); + } + } else { + if (!other.applicationStatusFilters_.isEmpty()) { + if (applicationStatusFiltersBuilder_.isEmpty()) { + applicationStatusFiltersBuilder_.dispose(); + applicationStatusFiltersBuilder_ = null; + applicationStatusFilters_ = other.applicationStatusFilters_; + bitField0_ = (bitField0_ & ~0x00002000); + applicationStatusFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getApplicationStatusFiltersFieldBuilder() + : null; + } else { + applicationStatusFiltersBuilder_.addAllMessages(other.applicationStatusFilters_); + } + } + } + if (!other.getCustomFieldFilter().isEmpty()) { + customFieldFilter_ = other.customFieldFilter_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.ProfileQuery parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.ProfileQuery) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object query_ = ""; + /** + * + * + *
+     * Optional.
+     * Keywords to match any text fields of profiles.
+     * For example, "software engineer in Palo Alto".
+     * 
+ * + * string query = 1; + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Keywords to match any text fields of profiles.
+     * For example, "software engineer in Palo Alto".
+     * 
+ * + * string query = 1; + */ + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Keywords to match any text fields of profiles.
+     * For example, "software engineer in Palo Alto".
+     * 
+ * + * string query = 1; + */ + public Builder setQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + query_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Keywords to match any text fields of profiles.
+     * For example, "software engineer in Palo Alto".
+     * 
+ * + * string query = 1; + */ + public Builder clearQuery() { + + query_ = getDefaultInstance().getQuery(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Keywords to match any text fields of profiles.
+     * For example, "software engineer in Palo Alto".
+     * 
+ * + * string query = 1; + */ + public Builder setQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + query_ = value; + onChanged(); + return this; + } + + private java.util.List locationFilters_ = + java.util.Collections.emptyList(); + + private void ensureLocationFiltersIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + locationFilters_ = + new java.util.ArrayList( + locationFilters_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.LocationFilter, + com.google.cloud.talent.v4beta1.LocationFilter.Builder, + com.google.cloud.talent.v4beta1.LocationFilterOrBuilder> + locationFiltersBuilder_; + + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public java.util.List getLocationFiltersList() { + if (locationFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(locationFilters_); + } else { + return locationFiltersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public int getLocationFiltersCount() { + if (locationFiltersBuilder_ == null) { + return locationFilters_.size(); + } else { + return locationFiltersBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public com.google.cloud.talent.v4beta1.LocationFilter getLocationFilters(int index) { + if (locationFiltersBuilder_ == null) { + return locationFilters_.get(index); + } else { + return locationFiltersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public Builder setLocationFilters( + int index, com.google.cloud.talent.v4beta1.LocationFilter value) { + if (locationFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationFiltersIsMutable(); + locationFilters_.set(index, value); + onChanged(); + } else { + locationFiltersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public Builder setLocationFilters( + int index, com.google.cloud.talent.v4beta1.LocationFilter.Builder builderForValue) { + if (locationFiltersBuilder_ == null) { + ensureLocationFiltersIsMutable(); + locationFilters_.set(index, builderForValue.build()); + onChanged(); + } else { + locationFiltersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public Builder addLocationFilters(com.google.cloud.talent.v4beta1.LocationFilter value) { + if (locationFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationFiltersIsMutable(); + locationFilters_.add(value); + onChanged(); + } else { + locationFiltersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public Builder addLocationFilters( + int index, com.google.cloud.talent.v4beta1.LocationFilter value) { + if (locationFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationFiltersIsMutable(); + locationFilters_.add(index, value); + onChanged(); + } else { + locationFiltersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public Builder addLocationFilters( + com.google.cloud.talent.v4beta1.LocationFilter.Builder builderForValue) { + if (locationFiltersBuilder_ == null) { + ensureLocationFiltersIsMutable(); + locationFilters_.add(builderForValue.build()); + onChanged(); + } else { + locationFiltersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public Builder addLocationFilters( + int index, com.google.cloud.talent.v4beta1.LocationFilter.Builder builderForValue) { + if (locationFiltersBuilder_ == null) { + ensureLocationFiltersIsMutable(); + locationFilters_.add(index, builderForValue.build()); + onChanged(); + } else { + locationFiltersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public Builder addAllLocationFilters( + java.lang.Iterable values) { + if (locationFiltersBuilder_ == null) { + ensureLocationFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locationFilters_); + onChanged(); + } else { + locationFiltersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public Builder clearLocationFilters() { + if (locationFiltersBuilder_ == null) { + locationFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + locationFiltersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public Builder removeLocationFilters(int index) { + if (locationFiltersBuilder_ == null) { + ensureLocationFiltersIsMutable(); + locationFilters_.remove(index); + onChanged(); + } else { + locationFiltersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public com.google.cloud.talent.v4beta1.LocationFilter.Builder getLocationFiltersBuilder( + int index) { + return getLocationFiltersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public com.google.cloud.talent.v4beta1.LocationFilterOrBuilder getLocationFiltersOrBuilder( + int index) { + if (locationFiltersBuilder_ == null) { + return locationFilters_.get(index); + } else { + return locationFiltersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public java.util.List + getLocationFiltersOrBuilderList() { + if (locationFiltersBuilder_ != null) { + return locationFiltersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(locationFilters_); + } + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public com.google.cloud.talent.v4beta1.LocationFilter.Builder addLocationFiltersBuilder() { + return getLocationFiltersFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.LocationFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public com.google.cloud.talent.v4beta1.LocationFilter.Builder addLocationFiltersBuilder( + int index) { + return getLocationFiltersFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.LocationFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The location filter specifies geo-regions containing the profiles to
+     * search against.
+     * If a location filter isn't specified, profiles fitting the other search
+     * criteria are retrieved regardless of where they're located.
+     * If
+     * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+     * is specified, the result doesn't contain profiles from that location.
+     * For example, search for profiles with addresses in "New York City".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + public java.util.List + getLocationFiltersBuilderList() { + return getLocationFiltersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.LocationFilter, + com.google.cloud.talent.v4beta1.LocationFilter.Builder, + com.google.cloud.talent.v4beta1.LocationFilterOrBuilder> + getLocationFiltersFieldBuilder() { + if (locationFiltersBuilder_ == null) { + locationFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.LocationFilter, + com.google.cloud.talent.v4beta1.LocationFilter.Builder, + com.google.cloud.talent.v4beta1.LocationFilterOrBuilder>( + locationFilters_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + locationFilters_ = null; + } + return locationFiltersBuilder_; + } + + private java.util.List jobTitleFilters_ = + java.util.Collections.emptyList(); + + private void ensureJobTitleFiltersIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + jobTitleFilters_ = + new java.util.ArrayList( + jobTitleFilters_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.JobTitleFilter, + com.google.cloud.talent.v4beta1.JobTitleFilter.Builder, + com.google.cloud.talent.v4beta1.JobTitleFilterOrBuilder> + jobTitleFiltersBuilder_; + + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public java.util.List getJobTitleFiltersList() { + if (jobTitleFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(jobTitleFilters_); + } else { + return jobTitleFiltersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public int getJobTitleFiltersCount() { + if (jobTitleFiltersBuilder_ == null) { + return jobTitleFilters_.size(); + } else { + return jobTitleFiltersBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public com.google.cloud.talent.v4beta1.JobTitleFilter getJobTitleFilters(int index) { + if (jobTitleFiltersBuilder_ == null) { + return jobTitleFilters_.get(index); + } else { + return jobTitleFiltersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public Builder setJobTitleFilters( + int index, com.google.cloud.talent.v4beta1.JobTitleFilter value) { + if (jobTitleFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobTitleFiltersIsMutable(); + jobTitleFilters_.set(index, value); + onChanged(); + } else { + jobTitleFiltersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public Builder setJobTitleFilters( + int index, com.google.cloud.talent.v4beta1.JobTitleFilter.Builder builderForValue) { + if (jobTitleFiltersBuilder_ == null) { + ensureJobTitleFiltersIsMutable(); + jobTitleFilters_.set(index, builderForValue.build()); + onChanged(); + } else { + jobTitleFiltersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public Builder addJobTitleFilters(com.google.cloud.talent.v4beta1.JobTitleFilter value) { + if (jobTitleFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobTitleFiltersIsMutable(); + jobTitleFilters_.add(value); + onChanged(); + } else { + jobTitleFiltersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public Builder addJobTitleFilters( + int index, com.google.cloud.talent.v4beta1.JobTitleFilter value) { + if (jobTitleFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobTitleFiltersIsMutable(); + jobTitleFilters_.add(index, value); + onChanged(); + } else { + jobTitleFiltersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public Builder addJobTitleFilters( + com.google.cloud.talent.v4beta1.JobTitleFilter.Builder builderForValue) { + if (jobTitleFiltersBuilder_ == null) { + ensureJobTitleFiltersIsMutable(); + jobTitleFilters_.add(builderForValue.build()); + onChanged(); + } else { + jobTitleFiltersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public Builder addJobTitleFilters( + int index, com.google.cloud.talent.v4beta1.JobTitleFilter.Builder builderForValue) { + if (jobTitleFiltersBuilder_ == null) { + ensureJobTitleFiltersIsMutable(); + jobTitleFilters_.add(index, builderForValue.build()); + onChanged(); + } else { + jobTitleFiltersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public Builder addAllJobTitleFilters( + java.lang.Iterable values) { + if (jobTitleFiltersBuilder_ == null) { + ensureJobTitleFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jobTitleFilters_); + onChanged(); + } else { + jobTitleFiltersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public Builder clearJobTitleFilters() { + if (jobTitleFiltersBuilder_ == null) { + jobTitleFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + jobTitleFiltersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public Builder removeJobTitleFilters(int index) { + if (jobTitleFiltersBuilder_ == null) { + ensureJobTitleFiltersIsMutable(); + jobTitleFilters_.remove(index); + onChanged(); + } else { + jobTitleFiltersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public com.google.cloud.talent.v4beta1.JobTitleFilter.Builder getJobTitleFiltersBuilder( + int index) { + return getJobTitleFiltersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public com.google.cloud.talent.v4beta1.JobTitleFilterOrBuilder getJobTitleFiltersOrBuilder( + int index) { + if (jobTitleFiltersBuilder_ == null) { + return jobTitleFilters_.get(index); + } else { + return jobTitleFiltersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public java.util.List + getJobTitleFiltersOrBuilderList() { + if (jobTitleFiltersBuilder_ != null) { + return jobTitleFiltersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(jobTitleFilters_); + } + } + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public com.google.cloud.talent.v4beta1.JobTitleFilter.Builder addJobTitleFiltersBuilder() { + return getJobTitleFiltersFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.JobTitleFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public com.google.cloud.talent.v4beta1.JobTitleFilter.Builder addJobTitleFiltersBuilder( + int index) { + return getJobTitleFiltersFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.JobTitleFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * Job title filter specifies job titles of profiles to match on.
+     * If a job title isn't specified, profiles with any titles are retrieved.
+     * If multiple values are specified, profiles are retrieved with any of the
+     * specified job titles.
+     * If
+     * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+     * is specified, the result won't contain profiles with the job titles.
+     * For example, search for profiles with a job title "Product Manager".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + public java.util.List + getJobTitleFiltersBuilderList() { + return getJobTitleFiltersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.JobTitleFilter, + com.google.cloud.talent.v4beta1.JobTitleFilter.Builder, + com.google.cloud.talent.v4beta1.JobTitleFilterOrBuilder> + getJobTitleFiltersFieldBuilder() { + if (jobTitleFiltersBuilder_ == null) { + jobTitleFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.JobTitleFilter, + com.google.cloud.talent.v4beta1.JobTitleFilter.Builder, + com.google.cloud.talent.v4beta1.JobTitleFilterOrBuilder>( + jobTitleFilters_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + jobTitleFilters_ = null; + } + return jobTitleFiltersBuilder_; + } + + private java.util.List employerFilters_ = + java.util.Collections.emptyList(); + + private void ensureEmployerFiltersIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + employerFilters_ = + new java.util.ArrayList( + employerFilters_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.EmployerFilter, + com.google.cloud.talent.v4beta1.EmployerFilter.Builder, + com.google.cloud.talent.v4beta1.EmployerFilterOrBuilder> + employerFiltersBuilder_; + + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public java.util.List getEmployerFiltersList() { + if (employerFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(employerFilters_); + } else { + return employerFiltersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public int getEmployerFiltersCount() { + if (employerFiltersBuilder_ == null) { + return employerFilters_.size(); + } else { + return employerFiltersBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public com.google.cloud.talent.v4beta1.EmployerFilter getEmployerFilters(int index) { + if (employerFiltersBuilder_ == null) { + return employerFilters_.get(index); + } else { + return employerFiltersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public Builder setEmployerFilters( + int index, com.google.cloud.talent.v4beta1.EmployerFilter value) { + if (employerFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmployerFiltersIsMutable(); + employerFilters_.set(index, value); + onChanged(); + } else { + employerFiltersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public Builder setEmployerFilters( + int index, com.google.cloud.talent.v4beta1.EmployerFilter.Builder builderForValue) { + if (employerFiltersBuilder_ == null) { + ensureEmployerFiltersIsMutable(); + employerFilters_.set(index, builderForValue.build()); + onChanged(); + } else { + employerFiltersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public Builder addEmployerFilters(com.google.cloud.talent.v4beta1.EmployerFilter value) { + if (employerFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmployerFiltersIsMutable(); + employerFilters_.add(value); + onChanged(); + } else { + employerFiltersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public Builder addEmployerFilters( + int index, com.google.cloud.talent.v4beta1.EmployerFilter value) { + if (employerFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmployerFiltersIsMutable(); + employerFilters_.add(index, value); + onChanged(); + } else { + employerFiltersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public Builder addEmployerFilters( + com.google.cloud.talent.v4beta1.EmployerFilter.Builder builderForValue) { + if (employerFiltersBuilder_ == null) { + ensureEmployerFiltersIsMutable(); + employerFilters_.add(builderForValue.build()); + onChanged(); + } else { + employerFiltersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public Builder addEmployerFilters( + int index, com.google.cloud.talent.v4beta1.EmployerFilter.Builder builderForValue) { + if (employerFiltersBuilder_ == null) { + ensureEmployerFiltersIsMutable(); + employerFilters_.add(index, builderForValue.build()); + onChanged(); + } else { + employerFiltersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public Builder addAllEmployerFilters( + java.lang.Iterable values) { + if (employerFiltersBuilder_ == null) { + ensureEmployerFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, employerFilters_); + onChanged(); + } else { + employerFiltersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public Builder clearEmployerFilters() { + if (employerFiltersBuilder_ == null) { + employerFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + employerFiltersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public Builder removeEmployerFilters(int index) { + if (employerFiltersBuilder_ == null) { + ensureEmployerFiltersIsMutable(); + employerFilters_.remove(index); + onChanged(); + } else { + employerFiltersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public com.google.cloud.talent.v4beta1.EmployerFilter.Builder getEmployerFiltersBuilder( + int index) { + return getEmployerFiltersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public com.google.cloud.talent.v4beta1.EmployerFilterOrBuilder getEmployerFiltersOrBuilder( + int index) { + if (employerFiltersBuilder_ == null) { + return employerFilters_.get(index); + } else { + return employerFiltersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public java.util.List + getEmployerFiltersOrBuilderList() { + if (employerFiltersBuilder_ != null) { + return employerFiltersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(employerFilters_); + } + } + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public com.google.cloud.talent.v4beta1.EmployerFilter.Builder addEmployerFiltersBuilder() { + return getEmployerFiltersFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.EmployerFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public com.google.cloud.talent.v4beta1.EmployerFilter.Builder addEmployerFiltersBuilder( + int index) { + return getEmployerFiltersFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.EmployerFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * Employer filter specifies employers of profiles to match on.
+     * If an employer filter isn't specified, profiles with any employers are
+     * retrieved.
+     * If multiple employer filters are specified, profiles with any matching
+     * employers are retrieved.
+     * If
+     * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+     * is specified, the result won't contain profiles that match the employers.
+     * For example, search for profiles that have working experience at "Google
+     * LLC".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + public java.util.List + getEmployerFiltersBuilderList() { + return getEmployerFiltersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.EmployerFilter, + com.google.cloud.talent.v4beta1.EmployerFilter.Builder, + com.google.cloud.talent.v4beta1.EmployerFilterOrBuilder> + getEmployerFiltersFieldBuilder() { + if (employerFiltersBuilder_ == null) { + employerFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.EmployerFilter, + com.google.cloud.talent.v4beta1.EmployerFilter.Builder, + com.google.cloud.talent.v4beta1.EmployerFilterOrBuilder>( + employerFilters_, + ((bitField0_ & 0x00000008) == 0x00000008), + getParentForChildren(), + isClean()); + employerFilters_ = null; + } + return employerFiltersBuilder_; + } + + private java.util.List educationFilters_ = + java.util.Collections.emptyList(); + + private void ensureEducationFiltersIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + educationFilters_ = + new java.util.ArrayList( + educationFilters_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.EducationFilter, + com.google.cloud.talent.v4beta1.EducationFilter.Builder, + com.google.cloud.talent.v4beta1.EducationFilterOrBuilder> + educationFiltersBuilder_; + + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public java.util.List + getEducationFiltersList() { + if (educationFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(educationFilters_); + } else { + return educationFiltersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public int getEducationFiltersCount() { + if (educationFiltersBuilder_ == null) { + return educationFilters_.size(); + } else { + return educationFiltersBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public com.google.cloud.talent.v4beta1.EducationFilter getEducationFilters(int index) { + if (educationFiltersBuilder_ == null) { + return educationFilters_.get(index); + } else { + return educationFiltersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public Builder setEducationFilters( + int index, com.google.cloud.talent.v4beta1.EducationFilter value) { + if (educationFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEducationFiltersIsMutable(); + educationFilters_.set(index, value); + onChanged(); + } else { + educationFiltersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public Builder setEducationFilters( + int index, com.google.cloud.talent.v4beta1.EducationFilter.Builder builderForValue) { + if (educationFiltersBuilder_ == null) { + ensureEducationFiltersIsMutable(); + educationFilters_.set(index, builderForValue.build()); + onChanged(); + } else { + educationFiltersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public Builder addEducationFilters(com.google.cloud.talent.v4beta1.EducationFilter value) { + if (educationFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEducationFiltersIsMutable(); + educationFilters_.add(value); + onChanged(); + } else { + educationFiltersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public Builder addEducationFilters( + int index, com.google.cloud.talent.v4beta1.EducationFilter value) { + if (educationFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEducationFiltersIsMutable(); + educationFilters_.add(index, value); + onChanged(); + } else { + educationFiltersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public Builder addEducationFilters( + com.google.cloud.talent.v4beta1.EducationFilter.Builder builderForValue) { + if (educationFiltersBuilder_ == null) { + ensureEducationFiltersIsMutable(); + educationFilters_.add(builderForValue.build()); + onChanged(); + } else { + educationFiltersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public Builder addEducationFilters( + int index, com.google.cloud.talent.v4beta1.EducationFilter.Builder builderForValue) { + if (educationFiltersBuilder_ == null) { + ensureEducationFiltersIsMutable(); + educationFilters_.add(index, builderForValue.build()); + onChanged(); + } else { + educationFiltersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public Builder addAllEducationFilters( + java.lang.Iterable values) { + if (educationFiltersBuilder_ == null) { + ensureEducationFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, educationFilters_); + onChanged(); + } else { + educationFiltersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public Builder clearEducationFilters() { + if (educationFiltersBuilder_ == null) { + educationFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + educationFiltersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public Builder removeEducationFilters(int index) { + if (educationFiltersBuilder_ == null) { + ensureEducationFiltersIsMutable(); + educationFilters_.remove(index); + onChanged(); + } else { + educationFiltersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public com.google.cloud.talent.v4beta1.EducationFilter.Builder getEducationFiltersBuilder( + int index) { + return getEducationFiltersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public com.google.cloud.talent.v4beta1.EducationFilterOrBuilder getEducationFiltersOrBuilder( + int index) { + if (educationFiltersBuilder_ == null) { + return educationFilters_.get(index); + } else { + return educationFiltersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public java.util.List + getEducationFiltersOrBuilderList() { + if (educationFiltersBuilder_ != null) { + return educationFiltersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(educationFilters_); + } + } + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public com.google.cloud.talent.v4beta1.EducationFilter.Builder addEducationFiltersBuilder() { + return getEducationFiltersFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.EducationFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public com.google.cloud.talent.v4beta1.EducationFilter.Builder addEducationFiltersBuilder( + int index) { + return getEducationFiltersFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.EducationFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * Education filter specifies education of profiles to match on.
+     * If an education filter isn't specified, profiles with any education are
+     * retrieved.
+     * If multiple education filters are specified, profiles that match any
+     * education filters are retrieved.
+     * If
+     * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+     * is specified, the result won't contain profiles that match the educations.
+     * For example, search for profiles with a master degree.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + public java.util.List + getEducationFiltersBuilderList() { + return getEducationFiltersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.EducationFilter, + com.google.cloud.talent.v4beta1.EducationFilter.Builder, + com.google.cloud.talent.v4beta1.EducationFilterOrBuilder> + getEducationFiltersFieldBuilder() { + if (educationFiltersBuilder_ == null) { + educationFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.EducationFilter, + com.google.cloud.talent.v4beta1.EducationFilter.Builder, + com.google.cloud.talent.v4beta1.EducationFilterOrBuilder>( + educationFilters_, + ((bitField0_ & 0x00000010) == 0x00000010), + getParentForChildren(), + isClean()); + educationFilters_ = null; + } + return educationFiltersBuilder_; + } + + private java.util.List skillFilters_ = + java.util.Collections.emptyList(); + + private void ensureSkillFiltersIsMutable() { + if (!((bitField0_ & 0x00000020) == 0x00000020)) { + skillFilters_ = + new java.util.ArrayList(skillFilters_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.SkillFilter, + com.google.cloud.talent.v4beta1.SkillFilter.Builder, + com.google.cloud.talent.v4beta1.SkillFilterOrBuilder> + skillFiltersBuilder_; + + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public java.util.List getSkillFiltersList() { + if (skillFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(skillFilters_); + } else { + return skillFiltersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public int getSkillFiltersCount() { + if (skillFiltersBuilder_ == null) { + return skillFilters_.size(); + } else { + return skillFiltersBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public com.google.cloud.talent.v4beta1.SkillFilter getSkillFilters(int index) { + if (skillFiltersBuilder_ == null) { + return skillFilters_.get(index); + } else { + return skillFiltersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public Builder setSkillFilters(int index, com.google.cloud.talent.v4beta1.SkillFilter value) { + if (skillFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillFiltersIsMutable(); + skillFilters_.set(index, value); + onChanged(); + } else { + skillFiltersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public Builder setSkillFilters( + int index, com.google.cloud.talent.v4beta1.SkillFilter.Builder builderForValue) { + if (skillFiltersBuilder_ == null) { + ensureSkillFiltersIsMutable(); + skillFilters_.set(index, builderForValue.build()); + onChanged(); + } else { + skillFiltersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public Builder addSkillFilters(com.google.cloud.talent.v4beta1.SkillFilter value) { + if (skillFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillFiltersIsMutable(); + skillFilters_.add(value); + onChanged(); + } else { + skillFiltersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public Builder addSkillFilters(int index, com.google.cloud.talent.v4beta1.SkillFilter value) { + if (skillFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillFiltersIsMutable(); + skillFilters_.add(index, value); + onChanged(); + } else { + skillFiltersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public Builder addSkillFilters( + com.google.cloud.talent.v4beta1.SkillFilter.Builder builderForValue) { + if (skillFiltersBuilder_ == null) { + ensureSkillFiltersIsMutable(); + skillFilters_.add(builderForValue.build()); + onChanged(); + } else { + skillFiltersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public Builder addSkillFilters( + int index, com.google.cloud.talent.v4beta1.SkillFilter.Builder builderForValue) { + if (skillFiltersBuilder_ == null) { + ensureSkillFiltersIsMutable(); + skillFilters_.add(index, builderForValue.build()); + onChanged(); + } else { + skillFiltersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public Builder addAllSkillFilters( + java.lang.Iterable values) { + if (skillFiltersBuilder_ == null) { + ensureSkillFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, skillFilters_); + onChanged(); + } else { + skillFiltersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public Builder clearSkillFilters() { + if (skillFiltersBuilder_ == null) { + skillFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + skillFiltersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public Builder removeSkillFilters(int index) { + if (skillFiltersBuilder_ == null) { + ensureSkillFiltersIsMutable(); + skillFilters_.remove(index); + onChanged(); + } else { + skillFiltersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public com.google.cloud.talent.v4beta1.SkillFilter.Builder getSkillFiltersBuilder(int index) { + return getSkillFiltersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public com.google.cloud.talent.v4beta1.SkillFilterOrBuilder getSkillFiltersOrBuilder( + int index) { + if (skillFiltersBuilder_ == null) { + return skillFilters_.get(index); + } else { + return skillFiltersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public java.util.List + getSkillFiltersOrBuilderList() { + if (skillFiltersBuilder_ != null) { + return skillFiltersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(skillFilters_); + } + } + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public com.google.cloud.talent.v4beta1.SkillFilter.Builder addSkillFiltersBuilder() { + return getSkillFiltersFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.SkillFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public com.google.cloud.talent.v4beta1.SkillFilter.Builder addSkillFiltersBuilder(int index) { + return getSkillFiltersFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.SkillFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * Skill filter specifies skill of profiles to match on.
+     * If a skill filter isn't specified, profiles with any skills are retrieved.
+     * If multiple skill filters are specified, profiles that match any skill
+     * filters are retrieved.
+     * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+     * is specified, the result won't contain profiles that match the skills.
+     * For example, search for profiles that have "Java" and "Python" in skill
+     * list.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + public java.util.List + getSkillFiltersBuilderList() { + return getSkillFiltersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.SkillFilter, + com.google.cloud.talent.v4beta1.SkillFilter.Builder, + com.google.cloud.talent.v4beta1.SkillFilterOrBuilder> + getSkillFiltersFieldBuilder() { + if (skillFiltersBuilder_ == null) { + skillFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.SkillFilter, + com.google.cloud.talent.v4beta1.SkillFilter.Builder, + com.google.cloud.talent.v4beta1.SkillFilterOrBuilder>( + skillFilters_, + ((bitField0_ & 0x00000020) == 0x00000020), + getParentForChildren(), + isClean()); + skillFilters_ = null; + } + return skillFiltersBuilder_; + } + + private java.util.List + workExperienceFilter_ = java.util.Collections.emptyList(); + + private void ensureWorkExperienceFilterIsMutable() { + if (!((bitField0_ & 0x00000040) == 0x00000040)) { + workExperienceFilter_ = + new java.util.ArrayList( + workExperienceFilter_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.WorkExperienceFilter, + com.google.cloud.talent.v4beta1.WorkExperienceFilter.Builder, + com.google.cloud.talent.v4beta1.WorkExperienceFilterOrBuilder> + workExperienceFilterBuilder_; + + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public java.util.List + getWorkExperienceFilterList() { + if (workExperienceFilterBuilder_ == null) { + return java.util.Collections.unmodifiableList(workExperienceFilter_); + } else { + return workExperienceFilterBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public int getWorkExperienceFilterCount() { + if (workExperienceFilterBuilder_ == null) { + return workExperienceFilter_.size(); + } else { + return workExperienceFilterBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public com.google.cloud.talent.v4beta1.WorkExperienceFilter getWorkExperienceFilter(int index) { + if (workExperienceFilterBuilder_ == null) { + return workExperienceFilter_.get(index); + } else { + return workExperienceFilterBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public Builder setWorkExperienceFilter( + int index, com.google.cloud.talent.v4beta1.WorkExperienceFilter value) { + if (workExperienceFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkExperienceFilterIsMutable(); + workExperienceFilter_.set(index, value); + onChanged(); + } else { + workExperienceFilterBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public Builder setWorkExperienceFilter( + int index, com.google.cloud.talent.v4beta1.WorkExperienceFilter.Builder builderForValue) { + if (workExperienceFilterBuilder_ == null) { + ensureWorkExperienceFilterIsMutable(); + workExperienceFilter_.set(index, builderForValue.build()); + onChanged(); + } else { + workExperienceFilterBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public Builder addWorkExperienceFilter( + com.google.cloud.talent.v4beta1.WorkExperienceFilter value) { + if (workExperienceFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkExperienceFilterIsMutable(); + workExperienceFilter_.add(value); + onChanged(); + } else { + workExperienceFilterBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public Builder addWorkExperienceFilter( + int index, com.google.cloud.talent.v4beta1.WorkExperienceFilter value) { + if (workExperienceFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkExperienceFilterIsMutable(); + workExperienceFilter_.add(index, value); + onChanged(); + } else { + workExperienceFilterBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public Builder addWorkExperienceFilter( + com.google.cloud.talent.v4beta1.WorkExperienceFilter.Builder builderForValue) { + if (workExperienceFilterBuilder_ == null) { + ensureWorkExperienceFilterIsMutable(); + workExperienceFilter_.add(builderForValue.build()); + onChanged(); + } else { + workExperienceFilterBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public Builder addWorkExperienceFilter( + int index, com.google.cloud.talent.v4beta1.WorkExperienceFilter.Builder builderForValue) { + if (workExperienceFilterBuilder_ == null) { + ensureWorkExperienceFilterIsMutable(); + workExperienceFilter_.add(index, builderForValue.build()); + onChanged(); + } else { + workExperienceFilterBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public Builder addAllWorkExperienceFilter( + java.lang.Iterable values) { + if (workExperienceFilterBuilder_ == null) { + ensureWorkExperienceFilterIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workExperienceFilter_); + onChanged(); + } else { + workExperienceFilterBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public Builder clearWorkExperienceFilter() { + if (workExperienceFilterBuilder_ == null) { + workExperienceFilter_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + workExperienceFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public Builder removeWorkExperienceFilter(int index) { + if (workExperienceFilterBuilder_ == null) { + ensureWorkExperienceFilterIsMutable(); + workExperienceFilter_.remove(index); + onChanged(); + } else { + workExperienceFilterBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public com.google.cloud.talent.v4beta1.WorkExperienceFilter.Builder + getWorkExperienceFilterBuilder(int index) { + return getWorkExperienceFilterFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public com.google.cloud.talent.v4beta1.WorkExperienceFilterOrBuilder + getWorkExperienceFilterOrBuilder(int index) { + if (workExperienceFilterBuilder_ == null) { + return workExperienceFilter_.get(index); + } else { + return workExperienceFilterBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public java.util.List + getWorkExperienceFilterOrBuilderList() { + if (workExperienceFilterBuilder_ != null) { + return workExperienceFilterBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(workExperienceFilter_); + } + } + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public com.google.cloud.talent.v4beta1.WorkExperienceFilter.Builder + addWorkExperienceFilterBuilder() { + return getWorkExperienceFilterFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.WorkExperienceFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public com.google.cloud.talent.v4beta1.WorkExperienceFilter.Builder + addWorkExperienceFilterBuilder(int index) { + return getWorkExperienceFilterFieldBuilder() + .addBuilder( + index, com.google.cloud.talent.v4beta1.WorkExperienceFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * Work experience filter specifies the total working experience of profiles
+     * to match on.
+     * If a work experience filter isn't specified, profiles with any
+     * professional experience are retrieved.
+     * If multiple work experience filters are specified, profiles that match any
+     * work experience filters are retrieved.
+     * For example, search for profiles with 10 years of work experience.
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + public java.util.List + getWorkExperienceFilterBuilderList() { + return getWorkExperienceFilterFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.WorkExperienceFilter, + com.google.cloud.talent.v4beta1.WorkExperienceFilter.Builder, + com.google.cloud.talent.v4beta1.WorkExperienceFilterOrBuilder> + getWorkExperienceFilterFieldBuilder() { + if (workExperienceFilterBuilder_ == null) { + workExperienceFilterBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.WorkExperienceFilter, + com.google.cloud.talent.v4beta1.WorkExperienceFilter.Builder, + com.google.cloud.talent.v4beta1.WorkExperienceFilterOrBuilder>( + workExperienceFilter_, + ((bitField0_ & 0x00000040) == 0x00000040), + getParentForChildren(), + isClean()); + workExperienceFilter_ = null; + } + return workExperienceFilterBuilder_; + } + + private java.util.List timeFilters_ = + java.util.Collections.emptyList(); + + private void ensureTimeFiltersIsMutable() { + if (!((bitField0_ & 0x00000080) == 0x00000080)) { + timeFilters_ = + new java.util.ArrayList(timeFilters_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.TimeFilter, + com.google.cloud.talent.v4beta1.TimeFilter.Builder, + com.google.cloud.talent.v4beta1.TimeFilterOrBuilder> + timeFiltersBuilder_; + + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public java.util.List getTimeFiltersList() { + if (timeFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(timeFilters_); + } else { + return timeFiltersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public int getTimeFiltersCount() { + if (timeFiltersBuilder_ == null) { + return timeFilters_.size(); + } else { + return timeFiltersBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public com.google.cloud.talent.v4beta1.TimeFilter getTimeFilters(int index) { + if (timeFiltersBuilder_ == null) { + return timeFilters_.get(index); + } else { + return timeFiltersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public Builder setTimeFilters(int index, com.google.cloud.talent.v4beta1.TimeFilter value) { + if (timeFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTimeFiltersIsMutable(); + timeFilters_.set(index, value); + onChanged(); + } else { + timeFiltersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public Builder setTimeFilters( + int index, com.google.cloud.talent.v4beta1.TimeFilter.Builder builderForValue) { + if (timeFiltersBuilder_ == null) { + ensureTimeFiltersIsMutable(); + timeFilters_.set(index, builderForValue.build()); + onChanged(); + } else { + timeFiltersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public Builder addTimeFilters(com.google.cloud.talent.v4beta1.TimeFilter value) { + if (timeFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTimeFiltersIsMutable(); + timeFilters_.add(value); + onChanged(); + } else { + timeFiltersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public Builder addTimeFilters(int index, com.google.cloud.talent.v4beta1.TimeFilter value) { + if (timeFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTimeFiltersIsMutable(); + timeFilters_.add(index, value); + onChanged(); + } else { + timeFiltersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public Builder addTimeFilters( + com.google.cloud.talent.v4beta1.TimeFilter.Builder builderForValue) { + if (timeFiltersBuilder_ == null) { + ensureTimeFiltersIsMutable(); + timeFilters_.add(builderForValue.build()); + onChanged(); + } else { + timeFiltersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public Builder addTimeFilters( + int index, com.google.cloud.talent.v4beta1.TimeFilter.Builder builderForValue) { + if (timeFiltersBuilder_ == null) { + ensureTimeFiltersIsMutable(); + timeFilters_.add(index, builderForValue.build()); + onChanged(); + } else { + timeFiltersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public Builder addAllTimeFilters( + java.lang.Iterable values) { + if (timeFiltersBuilder_ == null) { + ensureTimeFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, timeFilters_); + onChanged(); + } else { + timeFiltersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public Builder clearTimeFilters() { + if (timeFiltersBuilder_ == null) { + timeFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + timeFiltersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public Builder removeTimeFilters(int index) { + if (timeFiltersBuilder_ == null) { + ensureTimeFiltersIsMutable(); + timeFilters_.remove(index); + onChanged(); + } else { + timeFiltersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public com.google.cloud.talent.v4beta1.TimeFilter.Builder getTimeFiltersBuilder(int index) { + return getTimeFiltersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public com.google.cloud.talent.v4beta1.TimeFilterOrBuilder getTimeFiltersOrBuilder(int index) { + if (timeFiltersBuilder_ == null) { + return timeFilters_.get(index); + } else { + return timeFiltersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public java.util.List + getTimeFiltersOrBuilderList() { + if (timeFiltersBuilder_ != null) { + return timeFiltersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(timeFilters_); + } + } + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public com.google.cloud.talent.v4beta1.TimeFilter.Builder addTimeFiltersBuilder() { + return getTimeFiltersFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.TimeFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public com.google.cloud.talent.v4beta1.TimeFilter.Builder addTimeFiltersBuilder(int index) { + return getTimeFiltersFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.TimeFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * Time filter specifies the create/update timestamp of the profiles to match
+     * on.
+     * For example, search for profiles created since "2018-1-1".
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + public java.util.List + getTimeFiltersBuilderList() { + return getTimeFiltersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.TimeFilter, + com.google.cloud.talent.v4beta1.TimeFilter.Builder, + com.google.cloud.talent.v4beta1.TimeFilterOrBuilder> + getTimeFiltersFieldBuilder() { + if (timeFiltersBuilder_ == null) { + timeFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.TimeFilter, + com.google.cloud.talent.v4beta1.TimeFilter.Builder, + com.google.cloud.talent.v4beta1.TimeFilterOrBuilder>( + timeFilters_, + ((bitField0_ & 0x00000080) == 0x00000080), + getParentForChildren(), + isClean()); + timeFilters_ = null; + } + return timeFiltersBuilder_; + } + + private com.google.protobuf.BoolValue hirableFilter_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + hirableFilterBuilder_; + /** + * + * + *
+     * Optional.
+     * The hirable filter specifies the profile's hirable status to match on.
+     * 
+ * + * .google.protobuf.BoolValue hirable_filter = 9; + */ + public boolean hasHirableFilter() { + return hirableFilterBuilder_ != null || hirableFilter_ != null; + } + /** + * + * + *
+     * Optional.
+     * The hirable filter specifies the profile's hirable status to match on.
+     * 
+ * + * .google.protobuf.BoolValue hirable_filter = 9; + */ + public com.google.protobuf.BoolValue getHirableFilter() { + if (hirableFilterBuilder_ == null) { + return hirableFilter_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : hirableFilter_; + } else { + return hirableFilterBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The hirable filter specifies the profile's hirable status to match on.
+     * 
+ * + * .google.protobuf.BoolValue hirable_filter = 9; + */ + public Builder setHirableFilter(com.google.protobuf.BoolValue value) { + if (hirableFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hirableFilter_ = value; + onChanged(); + } else { + hirableFilterBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The hirable filter specifies the profile's hirable status to match on.
+     * 
+ * + * .google.protobuf.BoolValue hirable_filter = 9; + */ + public Builder setHirableFilter(com.google.protobuf.BoolValue.Builder builderForValue) { + if (hirableFilterBuilder_ == null) { + hirableFilter_ = builderForValue.build(); + onChanged(); + } else { + hirableFilterBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The hirable filter specifies the profile's hirable status to match on.
+     * 
+ * + * .google.protobuf.BoolValue hirable_filter = 9; + */ + public Builder mergeHirableFilter(com.google.protobuf.BoolValue value) { + if (hirableFilterBuilder_ == null) { + if (hirableFilter_ != null) { + hirableFilter_ = + com.google.protobuf.BoolValue.newBuilder(hirableFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + hirableFilter_ = value; + } + onChanged(); + } else { + hirableFilterBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The hirable filter specifies the profile's hirable status to match on.
+     * 
+ * + * .google.protobuf.BoolValue hirable_filter = 9; + */ + public Builder clearHirableFilter() { + if (hirableFilterBuilder_ == null) { + hirableFilter_ = null; + onChanged(); + } else { + hirableFilter_ = null; + hirableFilterBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The hirable filter specifies the profile's hirable status to match on.
+     * 
+ * + * .google.protobuf.BoolValue hirable_filter = 9; + */ + public com.google.protobuf.BoolValue.Builder getHirableFilterBuilder() { + + onChanged(); + return getHirableFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The hirable filter specifies the profile's hirable status to match on.
+     * 
+ * + * .google.protobuf.BoolValue hirable_filter = 9; + */ + public com.google.protobuf.BoolValueOrBuilder getHirableFilterOrBuilder() { + if (hirableFilterBuilder_ != null) { + return hirableFilterBuilder_.getMessageOrBuilder(); + } else { + return hirableFilter_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : hirableFilter_; + } + } + /** + * + * + *
+     * Optional.
+     * The hirable filter specifies the profile's hirable status to match on.
+     * 
+ * + * .google.protobuf.BoolValue hirable_filter = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getHirableFilterFieldBuilder() { + if (hirableFilterBuilder_ == null) { + hirableFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getHirableFilter(), getParentForChildren(), isClean()); + hirableFilter_ = null; + } + return hirableFilterBuilder_; + } + + private java.util.List + applicationDateFilters_ = java.util.Collections.emptyList(); + + private void ensureApplicationDateFiltersIsMutable() { + if (!((bitField0_ & 0x00000200) == 0x00000200)) { + applicationDateFilters_ = + new java.util.ArrayList( + applicationDateFilters_); + bitField0_ |= 0x00000200; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.ApplicationDateFilter, + com.google.cloud.talent.v4beta1.ApplicationDateFilter.Builder, + com.google.cloud.talent.v4beta1.ApplicationDateFilterOrBuilder> + applicationDateFiltersBuilder_; + + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public java.util.List + getApplicationDateFiltersList() { + if (applicationDateFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(applicationDateFilters_); + } else { + return applicationDateFiltersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public int getApplicationDateFiltersCount() { + if (applicationDateFiltersBuilder_ == null) { + return applicationDateFilters_.size(); + } else { + return applicationDateFiltersBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationDateFilter getApplicationDateFilters( + int index) { + if (applicationDateFiltersBuilder_ == null) { + return applicationDateFilters_.get(index); + } else { + return applicationDateFiltersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public Builder setApplicationDateFilters( + int index, com.google.cloud.talent.v4beta1.ApplicationDateFilter value) { + if (applicationDateFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationDateFiltersIsMutable(); + applicationDateFilters_.set(index, value); + onChanged(); + } else { + applicationDateFiltersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public Builder setApplicationDateFilters( + int index, com.google.cloud.talent.v4beta1.ApplicationDateFilter.Builder builderForValue) { + if (applicationDateFiltersBuilder_ == null) { + ensureApplicationDateFiltersIsMutable(); + applicationDateFilters_.set(index, builderForValue.build()); + onChanged(); + } else { + applicationDateFiltersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public Builder addApplicationDateFilters( + com.google.cloud.talent.v4beta1.ApplicationDateFilter value) { + if (applicationDateFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationDateFiltersIsMutable(); + applicationDateFilters_.add(value); + onChanged(); + } else { + applicationDateFiltersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public Builder addApplicationDateFilters( + int index, com.google.cloud.talent.v4beta1.ApplicationDateFilter value) { + if (applicationDateFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationDateFiltersIsMutable(); + applicationDateFilters_.add(index, value); + onChanged(); + } else { + applicationDateFiltersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public Builder addApplicationDateFilters( + com.google.cloud.talent.v4beta1.ApplicationDateFilter.Builder builderForValue) { + if (applicationDateFiltersBuilder_ == null) { + ensureApplicationDateFiltersIsMutable(); + applicationDateFilters_.add(builderForValue.build()); + onChanged(); + } else { + applicationDateFiltersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public Builder addApplicationDateFilters( + int index, com.google.cloud.talent.v4beta1.ApplicationDateFilter.Builder builderForValue) { + if (applicationDateFiltersBuilder_ == null) { + ensureApplicationDateFiltersIsMutable(); + applicationDateFilters_.add(index, builderForValue.build()); + onChanged(); + } else { + applicationDateFiltersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public Builder addAllApplicationDateFilters( + java.lang.Iterable + values) { + if (applicationDateFiltersBuilder_ == null) { + ensureApplicationDateFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, applicationDateFilters_); + onChanged(); + } else { + applicationDateFiltersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public Builder clearApplicationDateFilters() { + if (applicationDateFiltersBuilder_ == null) { + applicationDateFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + applicationDateFiltersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public Builder removeApplicationDateFilters(int index) { + if (applicationDateFiltersBuilder_ == null) { + ensureApplicationDateFiltersIsMutable(); + applicationDateFilters_.remove(index); + onChanged(); + } else { + applicationDateFiltersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationDateFilter.Builder + getApplicationDateFiltersBuilder(int index) { + return getApplicationDateFiltersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationDateFilterOrBuilder + getApplicationDateFiltersOrBuilder(int index) { + if (applicationDateFiltersBuilder_ == null) { + return applicationDateFilters_.get(index); + } else { + return applicationDateFiltersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public java.util.List + getApplicationDateFiltersOrBuilderList() { + if (applicationDateFiltersBuilder_ != null) { + return applicationDateFiltersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(applicationDateFilters_); + } + } + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationDateFilter.Builder + addApplicationDateFiltersBuilder() { + return getApplicationDateFiltersFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.ApplicationDateFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationDateFilter.Builder + addApplicationDateFiltersBuilder(int index) { + return getApplicationDateFiltersFieldBuilder() + .addBuilder( + index, com.google.cloud.talent.v4beta1.ApplicationDateFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The application date filters specify application date ranges to match on.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + public java.util.List + getApplicationDateFiltersBuilderList() { + return getApplicationDateFiltersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.ApplicationDateFilter, + com.google.cloud.talent.v4beta1.ApplicationDateFilter.Builder, + com.google.cloud.talent.v4beta1.ApplicationDateFilterOrBuilder> + getApplicationDateFiltersFieldBuilder() { + if (applicationDateFiltersBuilder_ == null) { + applicationDateFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.ApplicationDateFilter, + com.google.cloud.talent.v4beta1.ApplicationDateFilter.Builder, + com.google.cloud.talent.v4beta1.ApplicationDateFilterOrBuilder>( + applicationDateFilters_, + ((bitField0_ & 0x00000200) == 0x00000200), + getParentForChildren(), + isClean()); + applicationDateFilters_ = null; + } + return applicationDateFiltersBuilder_; + } + + private java.util.List + applicationOutcomeReasonFilters_ = java.util.Collections.emptyList(); + + private void ensureApplicationOutcomeReasonFiltersIsMutable() { + if (!((bitField0_ & 0x00000400) == 0x00000400)) { + applicationOutcomeReasonFilters_ = + new java.util.ArrayList( + applicationOutcomeReasonFilters_); + bitField0_ |= 0x00000400; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter, + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.Builder, + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilterOrBuilder> + applicationOutcomeReasonFiltersBuilder_; + + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public java.util.List + getApplicationOutcomeReasonFiltersList() { + if (applicationOutcomeReasonFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(applicationOutcomeReasonFilters_); + } else { + return applicationOutcomeReasonFiltersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public int getApplicationOutcomeReasonFiltersCount() { + if (applicationOutcomeReasonFiltersBuilder_ == null) { + return applicationOutcomeReasonFilters_.size(); + } else { + return applicationOutcomeReasonFiltersBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter + getApplicationOutcomeReasonFilters(int index) { + if (applicationOutcomeReasonFiltersBuilder_ == null) { + return applicationOutcomeReasonFilters_.get(index); + } else { + return applicationOutcomeReasonFiltersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public Builder setApplicationOutcomeReasonFilters( + int index, com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter value) { + if (applicationOutcomeReasonFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationOutcomeReasonFiltersIsMutable(); + applicationOutcomeReasonFilters_.set(index, value); + onChanged(); + } else { + applicationOutcomeReasonFiltersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public Builder setApplicationOutcomeReasonFilters( + int index, + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.Builder builderForValue) { + if (applicationOutcomeReasonFiltersBuilder_ == null) { + ensureApplicationOutcomeReasonFiltersIsMutable(); + applicationOutcomeReasonFilters_.set(index, builderForValue.build()); + onChanged(); + } else { + applicationOutcomeReasonFiltersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public Builder addApplicationOutcomeReasonFilters( + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter value) { + if (applicationOutcomeReasonFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationOutcomeReasonFiltersIsMutable(); + applicationOutcomeReasonFilters_.add(value); + onChanged(); + } else { + applicationOutcomeReasonFiltersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public Builder addApplicationOutcomeReasonFilters( + int index, com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter value) { + if (applicationOutcomeReasonFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationOutcomeReasonFiltersIsMutable(); + applicationOutcomeReasonFilters_.add(index, value); + onChanged(); + } else { + applicationOutcomeReasonFiltersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public Builder addApplicationOutcomeReasonFilters( + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.Builder builderForValue) { + if (applicationOutcomeReasonFiltersBuilder_ == null) { + ensureApplicationOutcomeReasonFiltersIsMutable(); + applicationOutcomeReasonFilters_.add(builderForValue.build()); + onChanged(); + } else { + applicationOutcomeReasonFiltersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public Builder addApplicationOutcomeReasonFilters( + int index, + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.Builder builderForValue) { + if (applicationOutcomeReasonFiltersBuilder_ == null) { + ensureApplicationOutcomeReasonFiltersIsMutable(); + applicationOutcomeReasonFilters_.add(index, builderForValue.build()); + onChanged(); + } else { + applicationOutcomeReasonFiltersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public Builder addAllApplicationOutcomeReasonFilters( + java.lang.Iterable + values) { + if (applicationOutcomeReasonFiltersBuilder_ == null) { + ensureApplicationOutcomeReasonFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, applicationOutcomeReasonFilters_); + onChanged(); + } else { + applicationOutcomeReasonFiltersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public Builder clearApplicationOutcomeReasonFilters() { + if (applicationOutcomeReasonFiltersBuilder_ == null) { + applicationOutcomeReasonFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + } else { + applicationOutcomeReasonFiltersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public Builder removeApplicationOutcomeReasonFilters(int index) { + if (applicationOutcomeReasonFiltersBuilder_ == null) { + ensureApplicationOutcomeReasonFiltersIsMutable(); + applicationOutcomeReasonFilters_.remove(index); + onChanged(); + } else { + applicationOutcomeReasonFiltersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.Builder + getApplicationOutcomeReasonFiltersBuilder(int index) { + return getApplicationOutcomeReasonFiltersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilterOrBuilder + getApplicationOutcomeReasonFiltersOrBuilder(int index) { + if (applicationOutcomeReasonFiltersBuilder_ == null) { + return applicationOutcomeReasonFilters_.get(index); + } else { + return applicationOutcomeReasonFiltersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public java.util.List< + ? extends com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilterOrBuilder> + getApplicationOutcomeReasonFiltersOrBuilderList() { + if (applicationOutcomeReasonFiltersBuilder_ != null) { + return applicationOutcomeReasonFiltersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(applicationOutcomeReasonFilters_); + } + } + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.Builder + addApplicationOutcomeReasonFiltersBuilder() { + return getApplicationOutcomeReasonFiltersFieldBuilder() + .addBuilder( + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.Builder + addApplicationOutcomeReasonFiltersBuilder(int index) { + return getApplicationOutcomeReasonFiltersFieldBuilder() + .addBuilder( + index, + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The application outcome reason filters specify the reasons for outcome of
+     * the job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + public java.util.List + getApplicationOutcomeReasonFiltersBuilderList() { + return getApplicationOutcomeReasonFiltersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter, + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.Builder, + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilterOrBuilder> + getApplicationOutcomeReasonFiltersFieldBuilder() { + if (applicationOutcomeReasonFiltersBuilder_ == null) { + applicationOutcomeReasonFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter, + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.Builder, + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilterOrBuilder>( + applicationOutcomeReasonFilters_, + ((bitField0_ & 0x00000400) == 0x00000400), + getParentForChildren(), + isClean()); + applicationOutcomeReasonFilters_ = null; + } + return applicationOutcomeReasonFiltersBuilder_; + } + + private java.util.List + applicationLastStageFilters_ = java.util.Collections.emptyList(); + + private void ensureApplicationLastStageFiltersIsMutable() { + if (!((bitField0_ & 0x00000800) == 0x00000800)) { + applicationLastStageFilters_ = + new java.util.ArrayList( + applicationLastStageFilters_); + bitField0_ |= 0x00000800; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter, + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.Builder, + com.google.cloud.talent.v4beta1.ApplicationLastStageFilterOrBuilder> + applicationLastStageFiltersBuilder_; + + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public java.util.List + getApplicationLastStageFiltersList() { + if (applicationLastStageFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(applicationLastStageFilters_); + } else { + return applicationLastStageFiltersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public int getApplicationLastStageFiltersCount() { + if (applicationLastStageFiltersBuilder_ == null) { + return applicationLastStageFilters_.size(); + } else { + return applicationLastStageFiltersBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationLastStageFilter + getApplicationLastStageFilters(int index) { + if (applicationLastStageFiltersBuilder_ == null) { + return applicationLastStageFilters_.get(index); + } else { + return applicationLastStageFiltersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public Builder setApplicationLastStageFilters( + int index, com.google.cloud.talent.v4beta1.ApplicationLastStageFilter value) { + if (applicationLastStageFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationLastStageFiltersIsMutable(); + applicationLastStageFilters_.set(index, value); + onChanged(); + } else { + applicationLastStageFiltersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public Builder setApplicationLastStageFilters( + int index, + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.Builder builderForValue) { + if (applicationLastStageFiltersBuilder_ == null) { + ensureApplicationLastStageFiltersIsMutable(); + applicationLastStageFilters_.set(index, builderForValue.build()); + onChanged(); + } else { + applicationLastStageFiltersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public Builder addApplicationLastStageFilters( + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter value) { + if (applicationLastStageFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationLastStageFiltersIsMutable(); + applicationLastStageFilters_.add(value); + onChanged(); + } else { + applicationLastStageFiltersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public Builder addApplicationLastStageFilters( + int index, com.google.cloud.talent.v4beta1.ApplicationLastStageFilter value) { + if (applicationLastStageFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationLastStageFiltersIsMutable(); + applicationLastStageFilters_.add(index, value); + onChanged(); + } else { + applicationLastStageFiltersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public Builder addApplicationLastStageFilters( + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.Builder builderForValue) { + if (applicationLastStageFiltersBuilder_ == null) { + ensureApplicationLastStageFiltersIsMutable(); + applicationLastStageFilters_.add(builderForValue.build()); + onChanged(); + } else { + applicationLastStageFiltersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public Builder addApplicationLastStageFilters( + int index, + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.Builder builderForValue) { + if (applicationLastStageFiltersBuilder_ == null) { + ensureApplicationLastStageFiltersIsMutable(); + applicationLastStageFilters_.add(index, builderForValue.build()); + onChanged(); + } else { + applicationLastStageFiltersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public Builder addAllApplicationLastStageFilters( + java.lang.Iterable + values) { + if (applicationLastStageFiltersBuilder_ == null) { + ensureApplicationLastStageFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, applicationLastStageFilters_); + onChanged(); + } else { + applicationLastStageFiltersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public Builder clearApplicationLastStageFilters() { + if (applicationLastStageFiltersBuilder_ == null) { + applicationLastStageFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + } else { + applicationLastStageFiltersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public Builder removeApplicationLastStageFilters(int index) { + if (applicationLastStageFiltersBuilder_ == null) { + ensureApplicationLastStageFiltersIsMutable(); + applicationLastStageFilters_.remove(index); + onChanged(); + } else { + applicationLastStageFiltersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.Builder + getApplicationLastStageFiltersBuilder(int index) { + return getApplicationLastStageFiltersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationLastStageFilterOrBuilder + getApplicationLastStageFiltersOrBuilder(int index) { + if (applicationLastStageFiltersBuilder_ == null) { + return applicationLastStageFilters_.get(index); + } else { + return applicationLastStageFiltersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public java.util.List< + ? extends com.google.cloud.talent.v4beta1.ApplicationLastStageFilterOrBuilder> + getApplicationLastStageFiltersOrBuilderList() { + if (applicationLastStageFiltersBuilder_ != null) { + return applicationLastStageFiltersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(applicationLastStageFilters_); + } + } + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.Builder + addApplicationLastStageFiltersBuilder() { + return getApplicationLastStageFiltersFieldBuilder() + .addBuilder( + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.Builder + addApplicationLastStageFiltersBuilder(int index) { + return getApplicationLastStageFiltersFieldBuilder() + .addBuilder( + index, + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The application last stage filters specify the last stage of job
+     * application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + public java.util.List + getApplicationLastStageFiltersBuilderList() { + return getApplicationLastStageFiltersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter, + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.Builder, + com.google.cloud.talent.v4beta1.ApplicationLastStageFilterOrBuilder> + getApplicationLastStageFiltersFieldBuilder() { + if (applicationLastStageFiltersBuilder_ == null) { + applicationLastStageFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter, + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter.Builder, + com.google.cloud.talent.v4beta1.ApplicationLastStageFilterOrBuilder>( + applicationLastStageFilters_, + ((bitField0_ & 0x00000800) == 0x00000800), + getParentForChildren(), + isClean()); + applicationLastStageFilters_ = null; + } + return applicationLastStageFiltersBuilder_; + } + + private java.util.List + applicationJobFilters_ = java.util.Collections.emptyList(); + + private void ensureApplicationJobFiltersIsMutable() { + if (!((bitField0_ & 0x00001000) == 0x00001000)) { + applicationJobFilters_ = + new java.util.ArrayList( + applicationJobFilters_); + bitField0_ |= 0x00001000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.ApplicationJobFilter, + com.google.cloud.talent.v4beta1.ApplicationJobFilter.Builder, + com.google.cloud.talent.v4beta1.ApplicationJobFilterOrBuilder> + applicationJobFiltersBuilder_; + + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public java.util.List + getApplicationJobFiltersList() { + if (applicationJobFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(applicationJobFilters_); + } else { + return applicationJobFiltersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public int getApplicationJobFiltersCount() { + if (applicationJobFiltersBuilder_ == null) { + return applicationJobFilters_.size(); + } else { + return applicationJobFiltersBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationJobFilter getApplicationJobFilters( + int index) { + if (applicationJobFiltersBuilder_ == null) { + return applicationJobFilters_.get(index); + } else { + return applicationJobFiltersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public Builder setApplicationJobFilters( + int index, com.google.cloud.talent.v4beta1.ApplicationJobFilter value) { + if (applicationJobFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationJobFiltersIsMutable(); + applicationJobFilters_.set(index, value); + onChanged(); + } else { + applicationJobFiltersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public Builder setApplicationJobFilters( + int index, com.google.cloud.talent.v4beta1.ApplicationJobFilter.Builder builderForValue) { + if (applicationJobFiltersBuilder_ == null) { + ensureApplicationJobFiltersIsMutable(); + applicationJobFilters_.set(index, builderForValue.build()); + onChanged(); + } else { + applicationJobFiltersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public Builder addApplicationJobFilters( + com.google.cloud.talent.v4beta1.ApplicationJobFilter value) { + if (applicationJobFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationJobFiltersIsMutable(); + applicationJobFilters_.add(value); + onChanged(); + } else { + applicationJobFiltersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public Builder addApplicationJobFilters( + int index, com.google.cloud.talent.v4beta1.ApplicationJobFilter value) { + if (applicationJobFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationJobFiltersIsMutable(); + applicationJobFilters_.add(index, value); + onChanged(); + } else { + applicationJobFiltersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public Builder addApplicationJobFilters( + com.google.cloud.talent.v4beta1.ApplicationJobFilter.Builder builderForValue) { + if (applicationJobFiltersBuilder_ == null) { + ensureApplicationJobFiltersIsMutable(); + applicationJobFilters_.add(builderForValue.build()); + onChanged(); + } else { + applicationJobFiltersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public Builder addApplicationJobFilters( + int index, com.google.cloud.talent.v4beta1.ApplicationJobFilter.Builder builderForValue) { + if (applicationJobFiltersBuilder_ == null) { + ensureApplicationJobFiltersIsMutable(); + applicationJobFilters_.add(index, builderForValue.build()); + onChanged(); + } else { + applicationJobFiltersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public Builder addAllApplicationJobFilters( + java.lang.Iterable values) { + if (applicationJobFiltersBuilder_ == null) { + ensureApplicationJobFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, applicationJobFilters_); + onChanged(); + } else { + applicationJobFiltersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public Builder clearApplicationJobFilters() { + if (applicationJobFiltersBuilder_ == null) { + applicationJobFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + } else { + applicationJobFiltersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public Builder removeApplicationJobFilters(int index) { + if (applicationJobFiltersBuilder_ == null) { + ensureApplicationJobFiltersIsMutable(); + applicationJobFilters_.remove(index); + onChanged(); + } else { + applicationJobFiltersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationJobFilter.Builder + getApplicationJobFiltersBuilder(int index) { + return getApplicationJobFiltersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationJobFilterOrBuilder + getApplicationJobFiltersOrBuilder(int index) { + if (applicationJobFiltersBuilder_ == null) { + return applicationJobFilters_.get(index); + } else { + return applicationJobFiltersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public java.util.List + getApplicationJobFiltersOrBuilderList() { + if (applicationJobFiltersBuilder_ != null) { + return applicationJobFiltersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(applicationJobFilters_); + } + } + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationJobFilter.Builder + addApplicationJobFiltersBuilder() { + return getApplicationJobFiltersFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.ApplicationJobFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationJobFilter.Builder + addApplicationJobFiltersBuilder(int index) { + return getApplicationJobFiltersFieldBuilder() + .addBuilder( + index, com.google.cloud.talent.v4beta1.ApplicationJobFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The application job filters specify the job applied for in the application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + public java.util.List + getApplicationJobFiltersBuilderList() { + return getApplicationJobFiltersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.ApplicationJobFilter, + com.google.cloud.talent.v4beta1.ApplicationJobFilter.Builder, + com.google.cloud.talent.v4beta1.ApplicationJobFilterOrBuilder> + getApplicationJobFiltersFieldBuilder() { + if (applicationJobFiltersBuilder_ == null) { + applicationJobFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.ApplicationJobFilter, + com.google.cloud.talent.v4beta1.ApplicationJobFilter.Builder, + com.google.cloud.talent.v4beta1.ApplicationJobFilterOrBuilder>( + applicationJobFilters_, + ((bitField0_ & 0x00001000) == 0x00001000), + getParentForChildren(), + isClean()); + applicationJobFilters_ = null; + } + return applicationJobFiltersBuilder_; + } + + private java.util.List + applicationStatusFilters_ = java.util.Collections.emptyList(); + + private void ensureApplicationStatusFiltersIsMutable() { + if (!((bitField0_ & 0x00002000) == 0x00002000)) { + applicationStatusFilters_ = + new java.util.ArrayList( + applicationStatusFilters_); + bitField0_ |= 0x00002000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.ApplicationStatusFilter, + com.google.cloud.talent.v4beta1.ApplicationStatusFilter.Builder, + com.google.cloud.talent.v4beta1.ApplicationStatusFilterOrBuilder> + applicationStatusFiltersBuilder_; + + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public java.util.List + getApplicationStatusFiltersList() { + if (applicationStatusFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(applicationStatusFilters_); + } else { + return applicationStatusFiltersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public int getApplicationStatusFiltersCount() { + if (applicationStatusFiltersBuilder_ == null) { + return applicationStatusFilters_.size(); + } else { + return applicationStatusFiltersBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationStatusFilter getApplicationStatusFilters( + int index) { + if (applicationStatusFiltersBuilder_ == null) { + return applicationStatusFilters_.get(index); + } else { + return applicationStatusFiltersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public Builder setApplicationStatusFilters( + int index, com.google.cloud.talent.v4beta1.ApplicationStatusFilter value) { + if (applicationStatusFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationStatusFiltersIsMutable(); + applicationStatusFilters_.set(index, value); + onChanged(); + } else { + applicationStatusFiltersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public Builder setApplicationStatusFilters( + int index, + com.google.cloud.talent.v4beta1.ApplicationStatusFilter.Builder builderForValue) { + if (applicationStatusFiltersBuilder_ == null) { + ensureApplicationStatusFiltersIsMutable(); + applicationStatusFilters_.set(index, builderForValue.build()); + onChanged(); + } else { + applicationStatusFiltersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public Builder addApplicationStatusFilters( + com.google.cloud.talent.v4beta1.ApplicationStatusFilter value) { + if (applicationStatusFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationStatusFiltersIsMutable(); + applicationStatusFilters_.add(value); + onChanged(); + } else { + applicationStatusFiltersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public Builder addApplicationStatusFilters( + int index, com.google.cloud.talent.v4beta1.ApplicationStatusFilter value) { + if (applicationStatusFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationStatusFiltersIsMutable(); + applicationStatusFilters_.add(index, value); + onChanged(); + } else { + applicationStatusFiltersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public Builder addApplicationStatusFilters( + com.google.cloud.talent.v4beta1.ApplicationStatusFilter.Builder builderForValue) { + if (applicationStatusFiltersBuilder_ == null) { + ensureApplicationStatusFiltersIsMutable(); + applicationStatusFilters_.add(builderForValue.build()); + onChanged(); + } else { + applicationStatusFiltersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public Builder addApplicationStatusFilters( + int index, + com.google.cloud.talent.v4beta1.ApplicationStatusFilter.Builder builderForValue) { + if (applicationStatusFiltersBuilder_ == null) { + ensureApplicationStatusFiltersIsMutable(); + applicationStatusFilters_.add(index, builderForValue.build()); + onChanged(); + } else { + applicationStatusFiltersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public Builder addAllApplicationStatusFilters( + java.lang.Iterable + values) { + if (applicationStatusFiltersBuilder_ == null) { + ensureApplicationStatusFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, applicationStatusFilters_); + onChanged(); + } else { + applicationStatusFiltersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public Builder clearApplicationStatusFilters() { + if (applicationStatusFiltersBuilder_ == null) { + applicationStatusFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + } else { + applicationStatusFiltersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public Builder removeApplicationStatusFilters(int index) { + if (applicationStatusFiltersBuilder_ == null) { + ensureApplicationStatusFiltersIsMutable(); + applicationStatusFilters_.remove(index); + onChanged(); + } else { + applicationStatusFiltersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationStatusFilter.Builder + getApplicationStatusFiltersBuilder(int index) { + return getApplicationStatusFiltersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationStatusFilterOrBuilder + getApplicationStatusFiltersOrBuilder(int index) { + if (applicationStatusFiltersBuilder_ == null) { + return applicationStatusFilters_.get(index); + } else { + return applicationStatusFiltersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public java.util.List< + ? extends com.google.cloud.talent.v4beta1.ApplicationStatusFilterOrBuilder> + getApplicationStatusFiltersOrBuilderList() { + if (applicationStatusFiltersBuilder_ != null) { + return applicationStatusFiltersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(applicationStatusFilters_); + } + } + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationStatusFilter.Builder + addApplicationStatusFiltersBuilder() { + return getApplicationStatusFiltersFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.ApplicationStatusFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public com.google.cloud.talent.v4beta1.ApplicationStatusFilter.Builder + addApplicationStatusFiltersBuilder(int index) { + return getApplicationStatusFiltersFieldBuilder() + .addBuilder( + index, com.google.cloud.talent.v4beta1.ApplicationStatusFilter.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * The application status filters specify the status of job application.
+     * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + public java.util.List + getApplicationStatusFiltersBuilderList() { + return getApplicationStatusFiltersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.ApplicationStatusFilter, + com.google.cloud.talent.v4beta1.ApplicationStatusFilter.Builder, + com.google.cloud.talent.v4beta1.ApplicationStatusFilterOrBuilder> + getApplicationStatusFiltersFieldBuilder() { + if (applicationStatusFiltersBuilder_ == null) { + applicationStatusFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.ApplicationStatusFilter, + com.google.cloud.talent.v4beta1.ApplicationStatusFilter.Builder, + com.google.cloud.talent.v4beta1.ApplicationStatusFilterOrBuilder>( + applicationStatusFilters_, + ((bitField0_ & 0x00002000) == 0x00002000), + getParentForChildren(), + isClean()); + applicationStatusFilters_ = null; + } + return applicationStatusFiltersBuilder_; + } + + private java.lang.Object customFieldFilter_ = ""; + /** + * + * + *
+     * Optional.
+     * This filter specifies a structured syntax to match against the
+     * [Profile.custom_attributes][google.cloud.talent.v4beta1.Profile.custom_attributes]
+     * that are marked as `filterable`.
+     * The syntax for this expression is a subset of Google SQL syntax.
+     * Supported operators are: =, != where the left of the operator is a custom
+     * field key and the right of the operator is a string (surrounded by quotes)
+     * value.
+     * Supported functions are LOWER(<field_name>) to
+     * perform case insensitive match and EMPTY(<field_name>) to filter on the
+     * existence of a key.
+     * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+     * nesting (for example "((A AND B AND C) OR NOT D) AND E"), and there can be
+     * a maximum of 50 comparisons/functions in the expression. The expression
+     * must be < 2000 characters in length.
+     * Sample Query:
+     * (key1 = "TEST" OR LOWER(key1)="test" OR NOT EMPTY(key1))
+     * 
+ * + * string custom_field_filter = 15; + */ + public java.lang.String getCustomFieldFilter() { + java.lang.Object ref = customFieldFilter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customFieldFilter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * This filter specifies a structured syntax to match against the
+     * [Profile.custom_attributes][google.cloud.talent.v4beta1.Profile.custom_attributes]
+     * that are marked as `filterable`.
+     * The syntax for this expression is a subset of Google SQL syntax.
+     * Supported operators are: =, != where the left of the operator is a custom
+     * field key and the right of the operator is a string (surrounded by quotes)
+     * value.
+     * Supported functions are LOWER(<field_name>) to
+     * perform case insensitive match and EMPTY(<field_name>) to filter on the
+     * existence of a key.
+     * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+     * nesting (for example "((A AND B AND C) OR NOT D) AND E"), and there can be
+     * a maximum of 50 comparisons/functions in the expression. The expression
+     * must be < 2000 characters in length.
+     * Sample Query:
+     * (key1 = "TEST" OR LOWER(key1)="test" OR NOT EMPTY(key1))
+     * 
+ * + * string custom_field_filter = 15; + */ + public com.google.protobuf.ByteString getCustomFieldFilterBytes() { + java.lang.Object ref = customFieldFilter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customFieldFilter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * This filter specifies a structured syntax to match against the
+     * [Profile.custom_attributes][google.cloud.talent.v4beta1.Profile.custom_attributes]
+     * that are marked as `filterable`.
+     * The syntax for this expression is a subset of Google SQL syntax.
+     * Supported operators are: =, != where the left of the operator is a custom
+     * field key and the right of the operator is a string (surrounded by quotes)
+     * value.
+     * Supported functions are LOWER(<field_name>) to
+     * perform case insensitive match and EMPTY(<field_name>) to filter on the
+     * existence of a key.
+     * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+     * nesting (for example "((A AND B AND C) OR NOT D) AND E"), and there can be
+     * a maximum of 50 comparisons/functions in the expression. The expression
+     * must be < 2000 characters in length.
+     * Sample Query:
+     * (key1 = "TEST" OR LOWER(key1)="test" OR NOT EMPTY(key1))
+     * 
+ * + * string custom_field_filter = 15; + */ + public Builder setCustomFieldFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + customFieldFilter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies a structured syntax to match against the
+     * [Profile.custom_attributes][google.cloud.talent.v4beta1.Profile.custom_attributes]
+     * that are marked as `filterable`.
+     * The syntax for this expression is a subset of Google SQL syntax.
+     * Supported operators are: =, != where the left of the operator is a custom
+     * field key and the right of the operator is a string (surrounded by quotes)
+     * value.
+     * Supported functions are LOWER(<field_name>) to
+     * perform case insensitive match and EMPTY(<field_name>) to filter on the
+     * existence of a key.
+     * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+     * nesting (for example "((A AND B AND C) OR NOT D) AND E"), and there can be
+     * a maximum of 50 comparisons/functions in the expression. The expression
+     * must be < 2000 characters in length.
+     * Sample Query:
+     * (key1 = "TEST" OR LOWER(key1)="test" OR NOT EMPTY(key1))
+     * 
+ * + * string custom_field_filter = 15; + */ + public Builder clearCustomFieldFilter() { + + customFieldFilter_ = getDefaultInstance().getCustomFieldFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This filter specifies a structured syntax to match against the
+     * [Profile.custom_attributes][google.cloud.talent.v4beta1.Profile.custom_attributes]
+     * that are marked as `filterable`.
+     * The syntax for this expression is a subset of Google SQL syntax.
+     * Supported operators are: =, != where the left of the operator is a custom
+     * field key and the right of the operator is a string (surrounded by quotes)
+     * value.
+     * Supported functions are LOWER(<field_name>) to
+     * perform case insensitive match and EMPTY(<field_name>) to filter on the
+     * existence of a key.
+     * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+     * nesting (for example "((A AND B AND C) OR NOT D) AND E"), and there can be
+     * a maximum of 50 comparisons/functions in the expression. The expression
+     * must be < 2000 characters in length.
+     * Sample Query:
+     * (key1 = "TEST" OR LOWER(key1)="test" OR NOT EMPTY(key1))
+     * 
+ * + * string custom_field_filter = 15; + */ + public Builder setCustomFieldFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + customFieldFilter_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ProfileQuery) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ProfileQuery) + private static final com.google.cloud.talent.v4beta1.ProfileQuery DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ProfileQuery(); + } + + public static com.google.cloud.talent.v4beta1.ProfileQuery getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProfileQuery parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProfileQuery(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.ProfileQuery getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileQueryOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileQueryOrBuilder.java new file mode 100644 index 000000000000..caff2452efe9 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileQueryOrBuilder.java @@ -0,0 +1,1110 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +public interface ProfileQueryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ProfileQuery) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * Keywords to match any text fields of profiles.
+   * For example, "software engineer in Palo Alto".
+   * 
+ * + * string query = 1; + */ + java.lang.String getQuery(); + /** + * + * + *
+   * Optional.
+   * Keywords to match any text fields of profiles.
+   * For example, "software engineer in Palo Alto".
+   * 
+ * + * string query = 1; + */ + com.google.protobuf.ByteString getQueryBytes(); + + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the profiles to
+   * search against.
+   * If a location filter isn't specified, profiles fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If
+   * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+   * is specified, the result doesn't contain profiles from that location.
+   * For example, search for profiles with addresses in "New York City".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + java.util.List getLocationFiltersList(); + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the profiles to
+   * search against.
+   * If a location filter isn't specified, profiles fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If
+   * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+   * is specified, the result doesn't contain profiles from that location.
+   * For example, search for profiles with addresses in "New York City".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + com.google.cloud.talent.v4beta1.LocationFilter getLocationFilters(int index); + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the profiles to
+   * search against.
+   * If a location filter isn't specified, profiles fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If
+   * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+   * is specified, the result doesn't contain profiles from that location.
+   * For example, search for profiles with addresses in "New York City".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + int getLocationFiltersCount(); + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the profiles to
+   * search against.
+   * If a location filter isn't specified, profiles fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If
+   * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+   * is specified, the result doesn't contain profiles from that location.
+   * For example, search for profiles with addresses in "New York City".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + java.util.List + getLocationFiltersOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The location filter specifies geo-regions containing the profiles to
+   * search against.
+   * If a location filter isn't specified, profiles fitting the other search
+   * criteria are retrieved regardless of where they're located.
+   * If
+   * [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated]
+   * is specified, the result doesn't contain profiles from that location.
+   * For example, search for profiles with addresses in "New York City".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; + */ + com.google.cloud.talent.v4beta1.LocationFilterOrBuilder getLocationFiltersOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * Job title filter specifies job titles of profiles to match on.
+   * If a job title isn't specified, profiles with any titles are retrieved.
+   * If multiple values are specified, profiles are retrieved with any of the
+   * specified job titles.
+   * If
+   * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+   * is specified, the result won't contain profiles with the job titles.
+   * For example, search for profiles with a job title "Product Manager".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + java.util.List getJobTitleFiltersList(); + /** + * + * + *
+   * Optional.
+   * Job title filter specifies job titles of profiles to match on.
+   * If a job title isn't specified, profiles with any titles are retrieved.
+   * If multiple values are specified, profiles are retrieved with any of the
+   * specified job titles.
+   * If
+   * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+   * is specified, the result won't contain profiles with the job titles.
+   * For example, search for profiles with a job title "Product Manager".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + com.google.cloud.talent.v4beta1.JobTitleFilter getJobTitleFilters(int index); + /** + * + * + *
+   * Optional.
+   * Job title filter specifies job titles of profiles to match on.
+   * If a job title isn't specified, profiles with any titles are retrieved.
+   * If multiple values are specified, profiles are retrieved with any of the
+   * specified job titles.
+   * If
+   * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+   * is specified, the result won't contain profiles with the job titles.
+   * For example, search for profiles with a job title "Product Manager".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + int getJobTitleFiltersCount(); + /** + * + * + *
+   * Optional.
+   * Job title filter specifies job titles of profiles to match on.
+   * If a job title isn't specified, profiles with any titles are retrieved.
+   * If multiple values are specified, profiles are retrieved with any of the
+   * specified job titles.
+   * If
+   * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+   * is specified, the result won't contain profiles with the job titles.
+   * For example, search for profiles with a job title "Product Manager".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + java.util.List + getJobTitleFiltersOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * Job title filter specifies job titles of profiles to match on.
+   * If a job title isn't specified, profiles with any titles are retrieved.
+   * If multiple values are specified, profiles are retrieved with any of the
+   * specified job titles.
+   * If
+   * [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated]
+   * is specified, the result won't contain profiles with the job titles.
+   * For example, search for profiles with a job title "Product Manager".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; + */ + com.google.cloud.talent.v4beta1.JobTitleFilterOrBuilder getJobTitleFiltersOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * Employer filter specifies employers of profiles to match on.
+   * If an employer filter isn't specified, profiles with any employers are
+   * retrieved.
+   * If multiple employer filters are specified, profiles with any matching
+   * employers are retrieved.
+   * If
+   * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+   * is specified, the result won't contain profiles that match the employers.
+   * For example, search for profiles that have working experience at "Google
+   * LLC".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + java.util.List getEmployerFiltersList(); + /** + * + * + *
+   * Optional.
+   * Employer filter specifies employers of profiles to match on.
+   * If an employer filter isn't specified, profiles with any employers are
+   * retrieved.
+   * If multiple employer filters are specified, profiles with any matching
+   * employers are retrieved.
+   * If
+   * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+   * is specified, the result won't contain profiles that match the employers.
+   * For example, search for profiles that have working experience at "Google
+   * LLC".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + com.google.cloud.talent.v4beta1.EmployerFilter getEmployerFilters(int index); + /** + * + * + *
+   * Optional.
+   * Employer filter specifies employers of profiles to match on.
+   * If an employer filter isn't specified, profiles with any employers are
+   * retrieved.
+   * If multiple employer filters are specified, profiles with any matching
+   * employers are retrieved.
+   * If
+   * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+   * is specified, the result won't contain profiles that match the employers.
+   * For example, search for profiles that have working experience at "Google
+   * LLC".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + int getEmployerFiltersCount(); + /** + * + * + *
+   * Optional.
+   * Employer filter specifies employers of profiles to match on.
+   * If an employer filter isn't specified, profiles with any employers are
+   * retrieved.
+   * If multiple employer filters are specified, profiles with any matching
+   * employers are retrieved.
+   * If
+   * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+   * is specified, the result won't contain profiles that match the employers.
+   * For example, search for profiles that have working experience at "Google
+   * LLC".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + java.util.List + getEmployerFiltersOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * Employer filter specifies employers of profiles to match on.
+   * If an employer filter isn't specified, profiles with any employers are
+   * retrieved.
+   * If multiple employer filters are specified, profiles with any matching
+   * employers are retrieved.
+   * If
+   * [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated]
+   * is specified, the result won't contain profiles that match the employers.
+   * For example, search for profiles that have working experience at "Google
+   * LLC".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; + */ + com.google.cloud.talent.v4beta1.EmployerFilterOrBuilder getEmployerFiltersOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * Education filter specifies education of profiles to match on.
+   * If an education filter isn't specified, profiles with any education are
+   * retrieved.
+   * If multiple education filters are specified, profiles that match any
+   * education filters are retrieved.
+   * If
+   * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+   * is specified, the result won't contain profiles that match the educations.
+   * For example, search for profiles with a master degree.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + java.util.List getEducationFiltersList(); + /** + * + * + *
+   * Optional.
+   * Education filter specifies education of profiles to match on.
+   * If an education filter isn't specified, profiles with any education are
+   * retrieved.
+   * If multiple education filters are specified, profiles that match any
+   * education filters are retrieved.
+   * If
+   * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+   * is specified, the result won't contain profiles that match the educations.
+   * For example, search for profiles with a master degree.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + com.google.cloud.talent.v4beta1.EducationFilter getEducationFilters(int index); + /** + * + * + *
+   * Optional.
+   * Education filter specifies education of profiles to match on.
+   * If an education filter isn't specified, profiles with any education are
+   * retrieved.
+   * If multiple education filters are specified, profiles that match any
+   * education filters are retrieved.
+   * If
+   * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+   * is specified, the result won't contain profiles that match the educations.
+   * For example, search for profiles with a master degree.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + int getEducationFiltersCount(); + /** + * + * + *
+   * Optional.
+   * Education filter specifies education of profiles to match on.
+   * If an education filter isn't specified, profiles with any education are
+   * retrieved.
+   * If multiple education filters are specified, profiles that match any
+   * education filters are retrieved.
+   * If
+   * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+   * is specified, the result won't contain profiles that match the educations.
+   * For example, search for profiles with a master degree.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + java.util.List + getEducationFiltersOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * Education filter specifies education of profiles to match on.
+   * If an education filter isn't specified, profiles with any education are
+   * retrieved.
+   * If multiple education filters are specified, profiles that match any
+   * education filters are retrieved.
+   * If
+   * [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated]
+   * is specified, the result won't contain profiles that match the educations.
+   * For example, search for profiles with a master degree.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; + */ + com.google.cloud.talent.v4beta1.EducationFilterOrBuilder getEducationFiltersOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * Skill filter specifies skill of profiles to match on.
+   * If a skill filter isn't specified, profiles with any skills are retrieved.
+   * If multiple skill filters are specified, profiles that match any skill
+   * filters are retrieved.
+   * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+   * is specified, the result won't contain profiles that match the skills.
+   * For example, search for profiles that have "Java" and "Python" in skill
+   * list.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + java.util.List getSkillFiltersList(); + /** + * + * + *
+   * Optional.
+   * Skill filter specifies skill of profiles to match on.
+   * If a skill filter isn't specified, profiles with any skills are retrieved.
+   * If multiple skill filters are specified, profiles that match any skill
+   * filters are retrieved.
+   * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+   * is specified, the result won't contain profiles that match the skills.
+   * For example, search for profiles that have "Java" and "Python" in skill
+   * list.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + com.google.cloud.talent.v4beta1.SkillFilter getSkillFilters(int index); + /** + * + * + *
+   * Optional.
+   * Skill filter specifies skill of profiles to match on.
+   * If a skill filter isn't specified, profiles with any skills are retrieved.
+   * If multiple skill filters are specified, profiles that match any skill
+   * filters are retrieved.
+   * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+   * is specified, the result won't contain profiles that match the skills.
+   * For example, search for profiles that have "Java" and "Python" in skill
+   * list.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + int getSkillFiltersCount(); + /** + * + * + *
+   * Optional.
+   * Skill filter specifies skill of profiles to match on.
+   * If a skill filter isn't specified, profiles with any skills are retrieved.
+   * If multiple skill filters are specified, profiles that match any skill
+   * filters are retrieved.
+   * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+   * is specified, the result won't contain profiles that match the skills.
+   * For example, search for profiles that have "Java" and "Python" in skill
+   * list.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + java.util.List + getSkillFiltersOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * Skill filter specifies skill of profiles to match on.
+   * If a skill filter isn't specified, profiles with any skills are retrieved.
+   * If multiple skill filters are specified, profiles that match any skill
+   * filters are retrieved.
+   * If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated]
+   * is specified, the result won't contain profiles that match the skills.
+   * For example, search for profiles that have "Java" and "Python" in skill
+   * list.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; + */ + com.google.cloud.talent.v4beta1.SkillFilterOrBuilder getSkillFiltersOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * Work experience filter specifies the total working experience of profiles
+   * to match on.
+   * If a work experience filter isn't specified, profiles with any
+   * professional experience are retrieved.
+   * If multiple work experience filters are specified, profiles that match any
+   * work experience filters are retrieved.
+   * For example, search for profiles with 10 years of work experience.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + java.util.List + getWorkExperienceFilterList(); + /** + * + * + *
+   * Optional.
+   * Work experience filter specifies the total working experience of profiles
+   * to match on.
+   * If a work experience filter isn't specified, profiles with any
+   * professional experience are retrieved.
+   * If multiple work experience filters are specified, profiles that match any
+   * work experience filters are retrieved.
+   * For example, search for profiles with 10 years of work experience.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + com.google.cloud.talent.v4beta1.WorkExperienceFilter getWorkExperienceFilter(int index); + /** + * + * + *
+   * Optional.
+   * Work experience filter specifies the total working experience of profiles
+   * to match on.
+   * If a work experience filter isn't specified, profiles with any
+   * professional experience are retrieved.
+   * If multiple work experience filters are specified, profiles that match any
+   * work experience filters are retrieved.
+   * For example, search for profiles with 10 years of work experience.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + int getWorkExperienceFilterCount(); + /** + * + * + *
+   * Optional.
+   * Work experience filter specifies the total working experience of profiles
+   * to match on.
+   * If a work experience filter isn't specified, profiles with any
+   * professional experience are retrieved.
+   * If multiple work experience filters are specified, profiles that match any
+   * work experience filters are retrieved.
+   * For example, search for profiles with 10 years of work experience.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + java.util.List + getWorkExperienceFilterOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * Work experience filter specifies the total working experience of profiles
+   * to match on.
+   * If a work experience filter isn't specified, profiles with any
+   * professional experience are retrieved.
+   * If multiple work experience filters are specified, profiles that match any
+   * work experience filters are retrieved.
+   * For example, search for profiles with 10 years of work experience.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; + * + */ + com.google.cloud.talent.v4beta1.WorkExperienceFilterOrBuilder getWorkExperienceFilterOrBuilder( + int index); + + /** + * + * + *
+   * Optional.
+   * Time filter specifies the create/update timestamp of the profiles to match
+   * on.
+   * For example, search for profiles created since "2018-1-1".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + java.util.List getTimeFiltersList(); + /** + * + * + *
+   * Optional.
+   * Time filter specifies the create/update timestamp of the profiles to match
+   * on.
+   * For example, search for profiles created since "2018-1-1".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + com.google.cloud.talent.v4beta1.TimeFilter getTimeFilters(int index); + /** + * + * + *
+   * Optional.
+   * Time filter specifies the create/update timestamp of the profiles to match
+   * on.
+   * For example, search for profiles created since "2018-1-1".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + int getTimeFiltersCount(); + /** + * + * + *
+   * Optional.
+   * Time filter specifies the create/update timestamp of the profiles to match
+   * on.
+   * For example, search for profiles created since "2018-1-1".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + java.util.List + getTimeFiltersOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * Time filter specifies the create/update timestamp of the profiles to match
+   * on.
+   * For example, search for profiles created since "2018-1-1".
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; + */ + com.google.cloud.talent.v4beta1.TimeFilterOrBuilder getTimeFiltersOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * The hirable filter specifies the profile's hirable status to match on.
+   * 
+ * + * .google.protobuf.BoolValue hirable_filter = 9; + */ + boolean hasHirableFilter(); + /** + * + * + *
+   * Optional.
+   * The hirable filter specifies the profile's hirable status to match on.
+   * 
+ * + * .google.protobuf.BoolValue hirable_filter = 9; + */ + com.google.protobuf.BoolValue getHirableFilter(); + /** + * + * + *
+   * Optional.
+   * The hirable filter specifies the profile's hirable status to match on.
+   * 
+ * + * .google.protobuf.BoolValue hirable_filter = 9; + */ + com.google.protobuf.BoolValueOrBuilder getHirableFilterOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The application date filters specify application date ranges to match on.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + java.util.List + getApplicationDateFiltersList(); + /** + * + * + *
+   * Optional.
+   * The application date filters specify application date ranges to match on.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + com.google.cloud.talent.v4beta1.ApplicationDateFilter getApplicationDateFilters(int index); + /** + * + * + *
+   * Optional.
+   * The application date filters specify application date ranges to match on.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + int getApplicationDateFiltersCount(); + /** + * + * + *
+   * Optional.
+   * The application date filters specify application date ranges to match on.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + java.util.List + getApplicationDateFiltersOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The application date filters specify application date ranges to match on.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; + * + */ + com.google.cloud.talent.v4beta1.ApplicationDateFilterOrBuilder getApplicationDateFiltersOrBuilder( + int index); + + /** + * + * + *
+   * Optional.
+   * The application outcome reason filters specify the reasons for outcome of
+   * the job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + java.util.List + getApplicationOutcomeReasonFiltersList(); + /** + * + * + *
+   * Optional.
+   * The application outcome reason filters specify the reasons for outcome of
+   * the job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter getApplicationOutcomeReasonFilters( + int index); + /** + * + * + *
+   * Optional.
+   * The application outcome reason filters specify the reasons for outcome of
+   * the job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + int getApplicationOutcomeReasonFiltersCount(); + /** + * + * + *
+   * Optional.
+   * The application outcome reason filters specify the reasons for outcome of
+   * the job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + java.util.List + getApplicationOutcomeReasonFiltersOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The application outcome reason filters specify the reasons for outcome of
+   * the job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * + */ + com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilterOrBuilder + getApplicationOutcomeReasonFiltersOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * The application last stage filters specify the last stage of job
+   * application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + java.util.List + getApplicationLastStageFiltersList(); + /** + * + * + *
+   * Optional.
+   * The application last stage filters specify the last stage of job
+   * application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + com.google.cloud.talent.v4beta1.ApplicationLastStageFilter getApplicationLastStageFilters( + int index); + /** + * + * + *
+   * Optional.
+   * The application last stage filters specify the last stage of job
+   * application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + int getApplicationLastStageFiltersCount(); + /** + * + * + *
+   * Optional.
+   * The application last stage filters specify the last stage of job
+   * application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + java.util.List + getApplicationLastStageFiltersOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The application last stage filters specify the last stage of job
+   * application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationLastStageFilter application_last_stage_filters = 12; + * + */ + com.google.cloud.talent.v4beta1.ApplicationLastStageFilterOrBuilder + getApplicationLastStageFiltersOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * The application job filters specify the job applied for in the application.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + java.util.List + getApplicationJobFiltersList(); + /** + * + * + *
+   * Optional.
+   * The application job filters specify the job applied for in the application.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + com.google.cloud.talent.v4beta1.ApplicationJobFilter getApplicationJobFilters(int index); + /** + * + * + *
+   * Optional.
+   * The application job filters specify the job applied for in the application.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + int getApplicationJobFiltersCount(); + /** + * + * + *
+   * Optional.
+   * The application job filters specify the job applied for in the application.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + java.util.List + getApplicationJobFiltersOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The application job filters specify the job applied for in the application.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; + * + */ + com.google.cloud.talent.v4beta1.ApplicationJobFilterOrBuilder getApplicationJobFiltersOrBuilder( + int index); + + /** + * + * + *
+   * Optional.
+   * The application status filters specify the status of job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + java.util.List + getApplicationStatusFiltersList(); + /** + * + * + *
+   * Optional.
+   * The application status filters specify the status of job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + com.google.cloud.talent.v4beta1.ApplicationStatusFilter getApplicationStatusFilters(int index); + /** + * + * + *
+   * Optional.
+   * The application status filters specify the status of job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + int getApplicationStatusFiltersCount(); + /** + * + * + *
+   * Optional.
+   * The application status filters specify the status of job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + java.util.List + getApplicationStatusFiltersOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * The application status filters specify the status of job application.
+   * 
+ * + * + * repeated .google.cloud.talent.v4beta1.ApplicationStatusFilter application_status_filters = 14; + * + */ + com.google.cloud.talent.v4beta1.ApplicationStatusFilterOrBuilder + getApplicationStatusFiltersOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * This filter specifies a structured syntax to match against the
+   * [Profile.custom_attributes][google.cloud.talent.v4beta1.Profile.custom_attributes]
+   * that are marked as `filterable`.
+   * The syntax for this expression is a subset of Google SQL syntax.
+   * Supported operators are: =, != where the left of the operator is a custom
+   * field key and the right of the operator is a string (surrounded by quotes)
+   * value.
+   * Supported functions are LOWER(<field_name>) to
+   * perform case insensitive match and EMPTY(<field_name>) to filter on the
+   * existence of a key.
+   * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+   * nesting (for example "((A AND B AND C) OR NOT D) AND E"), and there can be
+   * a maximum of 50 comparisons/functions in the expression. The expression
+   * must be < 2000 characters in length.
+   * Sample Query:
+   * (key1 = "TEST" OR LOWER(key1)="test" OR NOT EMPTY(key1))
+   * 
+ * + * string custom_field_filter = 15; + */ + java.lang.String getCustomFieldFilter(); + /** + * + * + *
+   * Optional.
+   * This filter specifies a structured syntax to match against the
+   * [Profile.custom_attributes][google.cloud.talent.v4beta1.Profile.custom_attributes]
+   * that are marked as `filterable`.
+   * The syntax for this expression is a subset of Google SQL syntax.
+   * Supported operators are: =, != where the left of the operator is a custom
+   * field key and the right of the operator is a string (surrounded by quotes)
+   * value.
+   * Supported functions are LOWER(<field_name>) to
+   * perform case insensitive match and EMPTY(<field_name>) to filter on the
+   * existence of a key.
+   * Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
+   * nesting (for example "((A AND B AND C) OR NOT D) AND E"), and there can be
+   * a maximum of 50 comparisons/functions in the expression. The expression
+   * must be < 2000 characters in length.
+   * Sample Query:
+   * (key1 = "TEST" OR LOWER(key1)="test" OR NOT EMPTY(key1))
+   * 
+ * + * string custom_field_filter = 15; + */ + com.google.protobuf.ByteString getCustomFieldFilterBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileResourceProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileResourceProto.java new file mode 100644 index 000000000000..32ef535b4be8 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileResourceProto.java @@ -0,0 +1,528 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public final class ProfileResourceProto { + private ProfileResourceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Profile_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Profile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Profile_CustomAttributesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Profile_CustomAttributesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_PersonName_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_PersonName_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_PersonName_PersonStructuredName_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_PersonName_PersonStructuredName_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Address_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Address_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Email_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Email_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Phone_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Phone_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_PersonalUri_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_PersonalUri_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_AdditionalContactInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_AdditionalContactInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_EmploymentRecord_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_EmploymentRecord_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_EducationRecord_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_EducationRecord_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Degree_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Degree_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Skill_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Skill_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Activity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Activity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Publication_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Publication_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Patent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Patent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_JobApplication_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_JobApplication_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Certification_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Certification_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_RecruitingNote_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_RecruitingNote_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n)google/cloud/talent/v4beta1/profile.pr" + + "oto\022\033google.cloud.talent.v4beta1\032\034google" + + "/api/annotations.proto\032(google/cloud/tal" + + "ent/v4beta1/common.proto\032%google/cloud/t" + + "alent/v4beta1/job.proto\032\037google/protobuf" + + "/timestamp.proto\032\036google/protobuf/wrappe" + + "rs.proto\032\026google/type/date.proto\032 google" + + "/type/postal_address.proto\"\276\013\n\007Profile\022\014" + + "\n\004name\030\001 \001(\t\022\023\n\013external_id\030\002 \001(\t\022\016\n\006sou" + + "rce\030\003 \001(\t\022\013\n\003uri\030\004 \001(\t\022\020\n\010group_id\030\005 \001(\t" + + "\022.\n\nis_hirable\030\006 \001(\0132\032.google.protobuf.B" + + "oolValue\022/\n\013create_time\030\007 \001(\0132\032.google.p" + + "rotobuf.Timestamp\022/\n\013update_time\030\010 \001(\0132\032" + + ".google.protobuf.Timestamp\022\024\n\014resume_hrx" + + "ml\030\n \001(\t\022=\n\014person_names\030\013 \003(\0132\'.google." + + "cloud.talent.v4beta1.PersonName\0227\n\taddre" + + "sses\030\014 \003(\0132$.google.cloud.talent.v4beta1" + + ".Address\022;\n\017email_addresses\030\r \003(\0132\".goog" + + "le.cloud.talent.v4beta1.Email\0229\n\rphone_n" + + "umbers\030\016 \003(\0132\".google.cloud.talent.v4bet" + + "a1.Phone\022?\n\rpersonal_uris\030\017 \003(\0132(.google" + + ".cloud.talent.v4beta1.PersonalUri\022S\n\027add" + + "itional_contact_info\030\020 \003(\01322.google.clou" + + "d.talent.v4beta1.AdditionalContactInfo\022I" + + "\n\022employment_records\030\021 \003(\0132-.google.clou" + + "d.talent.v4beta1.EmploymentRecord\022G\n\021edu" + + "cation_records\030\022 \003(\0132,.google.cloud.tale" + + "nt.v4beta1.EducationRecord\0222\n\006skills\030\023 \003" + + "(\0132\".google.cloud.talent.v4beta1.Skill\0229" + + "\n\nactivities\030\024 \003(\0132%.google.cloud.talent" + + ".v4beta1.Activity\022>\n\014publications\030\025 \003(\0132" + + "(.google.cloud.talent.v4beta1.Publicatio" + + "n\0224\n\007patents\030\026 \003(\0132#.google.cloud.talent" + + ".v4beta1.Patent\022B\n\016certifications\030\027 \003(\0132" + + "*.google.cloud.talent.v4beta1.Certificat" + + "ion\022E\n\020job_applications\030\030 \003(\0132+.google.c" + + "loud.talent.v4beta1.JobApplication\022E\n\020re" + + "cruiting_notes\030\031 \003(\0132+.google.cloud.tale" + + "nt.v4beta1.RecruitingNote\022U\n\021custom_attr" + + "ibutes\030\032 \003(\0132:.google.cloud.talent.v4bet" + + "a1.Profile.CustomAttributesEntry\022\021\n\tproc" + + "essed\030\033 \001(\010\022\027\n\017keyword_snippet\030\034 \001(\t\032e\n\025" + + "CustomAttributesEntry\022\013\n\003key\030\001 \001(\t\022;\n\005va" + + "lue\030\002 \001(\0132,.google.cloud.talent.v4beta1." + + "CustomAttribute:\0028\001\"\243\002\n\nPersonName\022\030\n\016fo" + + "rmatted_name\030\001 \001(\tH\000\022W\n\017structured_name\030" + + "\002 \001(\0132<.google.cloud.talent.v4beta1.Pers" + + "onName.PersonStructuredNameH\000\022\026\n\016preferr" + + "ed_name\030\003 \001(\t\032{\n\024PersonStructuredName\022\022\n" + + "\ngiven_name\030\001 \001(\t\022\026\n\016middle_initial\030\002 \001(" + + "\t\022\023\n\013family_name\030\003 \001(\t\022\020\n\010suffixes\030\004 \003(\t" + + "\022\020\n\010prefixes\030\005 \003(\tB\r\n\013person_name\"\334\001\n\007Ad" + + "dress\022<\n\005usage\030\001 \001(\0162-.google.cloud.tale" + + "nt.v4beta1.ContactInfoUsage\022\036\n\024unstructu" + + "red_address\030\002 \001(\tH\000\0228\n\022structured_addres" + + "s\030\003 \001(\0132\032.google.type.PostalAddressH\000\022.\n" + + "\nis_current\030\004 \001(\0132\032.google.protobuf.Bool" + + "ValueB\t\n\007address\"\\\n\005Email\022<\n\005usage\030\001 \001(\016" + + "2-.google.cloud.talent.v4beta1.ContactIn" + + "foUsage\022\025\n\remail_address\030\002 \001(\t\"\317\002\n\005Phone" + + "\022<\n\005usage\030\001 \001(\0162-.google.cloud.talent.v4" + + "beta1.ContactInfoUsage\022:\n\004type\030\002 \001(\0162,.g" + + "oogle.cloud.talent.v4beta1.Phone.PhoneTy" + + "pe\022\016\n\006number\030\003 \001(\t\022\026\n\016when_available\030\004 \001" + + "(\t\"\243\001\n\tPhoneType\022\032\n\026PHONE_TYPE_UNSPECIFI" + + "ED\020\000\022\014\n\010LANDLINE\020\001\022\n\n\006MOBILE\020\002\022\007\n\003FAX\020\003\022" + + "\t\n\005PAGER\020\004\022\016\n\nTTY_OR_TDD\020\005\022\r\n\tVOICEMAIL\020" + + "\006\022\013\n\007VIRTUAL\020\007\022\010\n\004VOIP\020\010\022\026\n\022MOBILE_OR_LA" + + "NDLINE\020\t\"\032\n\013PersonalUri\022\013\n\003uri\030\001 \001(\t\"w\n\025" + + "AdditionalContactInfo\022<\n\005usage\030\001 \001(\0162-.g" + + "oogle.cloud.talent.v4beta1.ContactInfoUs" + + "age\022\014\n\004name\030\002 \001(\t\022\022\n\ncontact_id\030\003 \001(\t\"\354\003" + + "\n\020EmploymentRecord\022%\n\nstart_date\030\001 \001(\0132\021" + + ".google.type.Date\022#\n\010end_date\030\002 \001(\0132\021.go" + + "ogle.type.Date\022\025\n\remployer_name\030\003 \001(\t\022\025\n" + + "\rdivision_name\030\004 \001(\t\0225\n\007address\030\005 \001(\0132$." + + "google.cloud.talent.v4beta1.Address\022\021\n\tj" + + "ob_title\030\006 \001(\t\022\027\n\017job_description\030\007 \001(\t\022" + + ":\n\026is_supervised_position\030\010 \001(\0132\032.google" + + ".protobuf.BoolValue\0224\n\020is_self_employed\030" + + "\t \001(\0132\032.google.protobuf.BoolValue\022.\n\nis_" + + "current\030\n \001(\0132\032.google.protobuf.BoolValu" + + "e\022\031\n\021job_title_snippet\030\013 \001(\t\022\037\n\027job_desc" + + "ription_snippet\030\014 \001(\t\022\035\n\025employer_name_s" + + "nippet\030\r \001(\t\"\302\003\n\017EducationRecord\022%\n\nstar" + + "t_date\030\001 \001(\0132\021.google.type.Date\022#\n\010end_d" + + "ate\030\002 \001(\0132\021.google.type.Date\0223\n\030expected" + + "_graduation_date\030\003 \001(\0132\021.google.type.Dat" + + "e\022\023\n\013school_name\030\004 \001(\t\0225\n\007address\030\005 \001(\0132" + + "$.google.cloud.talent.v4beta1.Address\022\034\n" + + "\022degree_description\030\006 \001(\tH\000\022@\n\021structure" + + "d_degree\030\007 \001(\0132#.google.cloud.talent.v4b" + + "eta1.DegreeH\000\022\023\n\013description\030\010 \001(\t\022.\n\nis" + + "_current\030\t \001(\0132\032.google.protobuf.BoolVal" + + "ue\022\033\n\023school_name_snippet\030\n \001(\t\022\026\n\016degre" + + "e_snippet\030\013 \001(\tB\010\n\006degree\"t\n\006Degree\022<\n\013d" + + "egree_type\030\001 \001(\0162\'.google.cloud.talent.v" + + "4beta1.DegreeType\022\023\n\013degree_name\030\002 \001(\t\022\027" + + "\n\017fields_of_study\030\003 \003(\t\"\324\002\n\005Skill\022\024\n\014dis" + + "play_name\030\001 \001(\t\022)\n\016last_used_date\030\002 \001(\0132" + + "\021.google.type.Date\022G\n\005level\030\003 \001(\01628.goog" + + "le.cloud.talent.v4beta1.Skill.SkillProfi" + + "ciencyLevel\022\017\n\007context\030\004 \001(\t\022\032\n\022skill_na" + + "me_snippet\030\005 \001(\t\"\223\001\n\025SkillProficiencyLev" + + "el\022\'\n#SKILL_PROFICIENCY_LEVEL_UNSPECIFIE" + + "D\020\000\022\031\n\025FUNDAMENTAL_AWARENESS\020\001\022\n\n\006NOVICE" + + "\020\002\022\020\n\014INTERMEDIATE\020\003\022\014\n\010ADVANCED\020\004\022\n\n\006EX" + + "PERT\020\005\"\303\002\n\010Activity\022\024\n\014display_name\030\001 \001(" + + "\t\022\023\n\013description\030\002 \001(\t\022\013\n\003uri\030\003 \001(\t\022&\n\013c" + + "reate_date\030\004 \001(\0132\021.google.type.Date\022&\n\013u" + + "pdate_date\030\005 \001(\0132\021.google.type.Date\022\024\n\014t" + + "eam_members\030\006 \003(\t\0227\n\013skills_used\030\007 \003(\0132\"" + + ".google.cloud.talent.v4beta1.Skill\022\035\n\025ac" + + "tivity_name_snippet\030\010 \001(\t\022$\n\034activity_de" + + "scription_snippet\030\t \001(\t\022\033\n\023skills_used_s" + + "nippet\030\n \003(\t\"\313\001\n\013Publication\022\017\n\007authors\030" + + "\001 \003(\t\022\r\n\005title\030\002 \001(\t\022\023\n\013description\030\003 \001(" + + "\t\022\017\n\007journal\030\004 \001(\t\022\016\n\006volume\030\005 \001(\t\022\021\n\tpu" + + "blisher\030\006 \001(\t\022+\n\020publication_date\030\007 \001(\0132" + + "\021.google.type.Date\022\030\n\020publication_type\030\010" + + " \001(\t\022\014\n\004isbn\030\t \001(\t\"\251\002\n\006Patent\022\024\n\014display" + + "_name\030\001 \001(\t\022\021\n\tinventors\030\002 \003(\t\022\025\n\rpatent" + + "_status\030\003 \001(\t\022-\n\022patent_status_date\030\004 \001(" + + "\0132\021.google.type.Date\022-\n\022patent_filing_da" + + "te\030\005 \001(\0132\021.google.type.Date\022\025\n\rpatent_of" + + "fice\030\006 \001(\t\022\025\n\rpatent_number\030\007 \001(\t\022\032\n\022pat" + + "ent_description\030\010 \001(\t\0227\n\013skills_used\030\t \003" + + "(\0132\".google.cloud.talent.v4beta1.Skill\"\373" + + "\005\n\016JobApplication\022-\n\003job\030\001 \001(\0132 .google." + + "cloud.talent.v4beta1.Job\022\026\n\016application_" + + "id\030\002 \001(\t\022+\n\020application_date\030\003 \001(\0132\021.goo" + + "gle.type.Date\022\022\n\nlast_stage\030\004 \001(\t\022L\n\005sta" + + "te\030\005 \001(\0162=.google.cloud.talent.v4beta1.J" + + "obApplication.ApplicationStatus\022\037\n\027avera" + + "ge_interview_score\030\006 \001(\001\022 \n\030interview_sc" + + "ore_scale_id\030\007 \001(\t\022\034\n\024number_of_intervie" + + "ws\030\010 \001(\005\0228\n\024is_employee_referred\030\t \001(\0132\032" + + ".google.protobuf.BoolValue\022/\n\013update_tim" + + "e\030\n \001(\0132\032.google.protobuf.Timestamp\022\026\n\016o" + + "utcome_reason\030\013 \001(\t\022\034\n\024outcome_positiven" + + "ess\030\014 \001(\001\022,\n\010is_match\030\r \001(\0132\032.google.pro" + + "tobuf.BoolValue\022\031\n\021job_title_snippet\030\016 \001" + + "(\t\"\307\001\n\021ApplicationStatus\022\"\n\036APPLICATION_" + + "STATUS_UNSPECIFIED\020\000\022\022\n\016OFFER_EXTENDED\020\001" + + "\022\031\n\025REJECTED_BY_CANDIDATE\020\002\022\n\n\006ACTIVE\020\003\022" + + "\030\n\024REJECTED_BY_EMPLOYER\020\004\022\026\n\022HIRED_PENDI" + + "NG_DATE\020\005\022\021\n\rHIRED_STARTED\020\006\022\016\n\nPROSPECT" + + "ED\020\007\"\236\001\n\rCertification\022\024\n\014display_name\030\001" + + " \001(\t\022\'\n\014acquire_date\030\002 \001(\0132\021.google.type" + + ".Date\022&\n\013expire_date\030\003 \001(\0132\021.google.type" + + ".Date\022\021\n\tauthority\030\004 \001(\t\022\023\n\013description\030" + + "\005 \001(\t\"g\n\016RecruitingNote\022\014\n\004note\030\001 \001(\t\022\021\n" + + "\tcommenter\030\002 \001(\t\022&\n\013create_date\030\003 \001(\0132\021." + + "google.type.Date\022\014\n\004type\030\004 \001(\tB\202\001\n\037com.g" + + "oogle.cloud.talent.v4beta1B\024ProfileResou" + + "rceProtoP\001ZAgoogle.golang.org/genproto/g" + + "oogleapis/cloud/talent/v4beta1;talent\242\002\003" + + "CTSb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(), + com.google.cloud.talent.v4beta1.JobResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + com.google.type.DateProto.getDescriptor(), + com.google.type.PostalAddressProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_talent_v4beta1_Profile_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_talent_v4beta1_Profile_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Profile_descriptor, + new java.lang.String[] { + "Name", + "ExternalId", + "Source", + "Uri", + "GroupId", + "IsHirable", + "CreateTime", + "UpdateTime", + "ResumeHrxml", + "PersonNames", + "Addresses", + "EmailAddresses", + "PhoneNumbers", + "PersonalUris", + "AdditionalContactInfo", + "EmploymentRecords", + "EducationRecords", + "Skills", + "Activities", + "Publications", + "Patents", + "Certifications", + "JobApplications", + "RecruitingNotes", + "CustomAttributes", + "Processed", + "KeywordSnippet", + }); + internal_static_google_cloud_talent_v4beta1_Profile_CustomAttributesEntry_descriptor = + internal_static_google_cloud_talent_v4beta1_Profile_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_talent_v4beta1_Profile_CustomAttributesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Profile_CustomAttributesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_talent_v4beta1_PersonName_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_talent_v4beta1_PersonName_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_PersonName_descriptor, + new java.lang.String[] { + "FormattedName", "StructuredName", "PreferredName", "PersonName", + }); + internal_static_google_cloud_talent_v4beta1_PersonName_PersonStructuredName_descriptor = + internal_static_google_cloud_talent_v4beta1_PersonName_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_talent_v4beta1_PersonName_PersonStructuredName_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_PersonName_PersonStructuredName_descriptor, + new java.lang.String[] { + "GivenName", "MiddleInitial", "FamilyName", "Suffixes", "Prefixes", + }); + internal_static_google_cloud_talent_v4beta1_Address_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_talent_v4beta1_Address_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Address_descriptor, + new java.lang.String[] { + "Usage", "UnstructuredAddress", "StructuredAddress", "IsCurrent", "Address", + }); + internal_static_google_cloud_talent_v4beta1_Email_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_talent_v4beta1_Email_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Email_descriptor, + new java.lang.String[] { + "Usage", "EmailAddress", + }); + internal_static_google_cloud_talent_v4beta1_Phone_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_talent_v4beta1_Phone_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Phone_descriptor, + new java.lang.String[] { + "Usage", "Type", "Number", "WhenAvailable", + }); + internal_static_google_cloud_talent_v4beta1_PersonalUri_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_talent_v4beta1_PersonalUri_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_PersonalUri_descriptor, + new java.lang.String[] { + "Uri", + }); + internal_static_google_cloud_talent_v4beta1_AdditionalContactInfo_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_talent_v4beta1_AdditionalContactInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_AdditionalContactInfo_descriptor, + new java.lang.String[] { + "Usage", "Name", "ContactId", + }); + internal_static_google_cloud_talent_v4beta1_EmploymentRecord_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_talent_v4beta1_EmploymentRecord_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_EmploymentRecord_descriptor, + new java.lang.String[] { + "StartDate", + "EndDate", + "EmployerName", + "DivisionName", + "Address", + "JobTitle", + "JobDescription", + "IsSupervisedPosition", + "IsSelfEmployed", + "IsCurrent", + "JobTitleSnippet", + "JobDescriptionSnippet", + "EmployerNameSnippet", + }); + internal_static_google_cloud_talent_v4beta1_EducationRecord_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_talent_v4beta1_EducationRecord_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_EducationRecord_descriptor, + new java.lang.String[] { + "StartDate", + "EndDate", + "ExpectedGraduationDate", + "SchoolName", + "Address", + "DegreeDescription", + "StructuredDegree", + "Description", + "IsCurrent", + "SchoolNameSnippet", + "DegreeSnippet", + "Degree", + }); + internal_static_google_cloud_talent_v4beta1_Degree_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_talent_v4beta1_Degree_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Degree_descriptor, + new java.lang.String[] { + "DegreeType", "DegreeName", "FieldsOfStudy", + }); + internal_static_google_cloud_talent_v4beta1_Skill_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_talent_v4beta1_Skill_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Skill_descriptor, + new java.lang.String[] { + "DisplayName", "LastUsedDate", "Level", "Context", "SkillNameSnippet", + }); + internal_static_google_cloud_talent_v4beta1_Activity_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_talent_v4beta1_Activity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Activity_descriptor, + new java.lang.String[] { + "DisplayName", + "Description", + "Uri", + "CreateDate", + "UpdateDate", + "TeamMembers", + "SkillsUsed", + "ActivityNameSnippet", + "ActivityDescriptionSnippet", + "SkillsUsedSnippet", + }); + internal_static_google_cloud_talent_v4beta1_Publication_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_talent_v4beta1_Publication_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Publication_descriptor, + new java.lang.String[] { + "Authors", + "Title", + "Description", + "Journal", + "Volume", + "Publisher", + "PublicationDate", + "PublicationType", + "Isbn", + }); + internal_static_google_cloud_talent_v4beta1_Patent_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_talent_v4beta1_Patent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Patent_descriptor, + new java.lang.String[] { + "DisplayName", + "Inventors", + "PatentStatus", + "PatentStatusDate", + "PatentFilingDate", + "PatentOffice", + "PatentNumber", + "PatentDescription", + "SkillsUsed", + }); + internal_static_google_cloud_talent_v4beta1_JobApplication_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_talent_v4beta1_JobApplication_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_JobApplication_descriptor, + new java.lang.String[] { + "Job", + "ApplicationId", + "ApplicationDate", + "LastStage", + "State", + "AverageInterviewScore", + "InterviewScoreScaleId", + "NumberOfInterviews", + "IsEmployeeReferred", + "UpdateTime", + "OutcomeReason", + "OutcomePositiveness", + "IsMatch", + "JobTitleSnippet", + }); + internal_static_google_cloud_talent_v4beta1_Certification_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_talent_v4beta1_Certification_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Certification_descriptor, + new java.lang.String[] { + "DisplayName", "AcquireDate", "ExpireDate", "Authority", "Description", + }); + internal_static_google_cloud_talent_v4beta1_RecruitingNote_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_talent_v4beta1_RecruitingNote_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_RecruitingNote_descriptor, + new java.lang.String[] { + "Note", "Commenter", "CreateDate", "Type", + }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(); + com.google.cloud.talent.v4beta1.JobResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.type.DateProto.getDescriptor(); + com.google.type.PostalAddressProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceProto.java new file mode 100644 index 000000000000..81756400465c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceProto.java @@ -0,0 +1,256 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +public final class ProfileServiceProto { + private ProfileServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ListProfilesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ListProfilesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ListProfilesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ListProfilesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_CreateProfileRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_CreateProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_GetProfileRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_GetProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_UpdateProfileRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_UpdateProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_DeleteProfileRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_DeleteProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_SearchProfilesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_SearchProfilesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_SearchProfilesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_SearchProfilesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_SummarizedProfile_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_SummarizedProfile_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n1google/cloud/talent/v4beta1/profile_se" + + "rvice.proto\022\033google.cloud.talent.v4beta1" + + "\032\034google/api/annotations.proto\032(google/c" + + "loud/talent/v4beta1/common.proto\032)google" + + "/cloud/talent/v4beta1/filters.proto\032+goo" + + "gle/cloud/talent/v4beta1/histogram.proto" + + "\032)google/cloud/talent/v4beta1/profile.pr" + + "oto\032\033google/protobuf/empty.proto\032 google" + + "/protobuf/field_mask.proto\"|\n\023ListProfil" + + "esRequest\022\016\n\006parent\030\001 \001(\t\022\022\n\npage_token\030" + + "\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022.\n\nfield_mask\030\004" + + " \001(\0132\032.google.protobuf.FieldMask\"g\n\024List" + + "ProfilesResponse\0226\n\010profiles\030\001 \003(\0132$.goo" + + "gle.cloud.talent.v4beta1.Profile\022\027\n\017next" + + "_page_token\030\002 \001(\t\"]\n\024CreateProfileReques" + + "t\022\016\n\006parent\030\001 \001(\t\0225\n\007profile\030\002 \001(\0132$.goo" + + "gle.cloud.talent.v4beta1.Profile\"!\n\021GetP" + + "rofileRequest\022\014\n\004name\030\001 \001(\t\"~\n\024UpdatePro" + + "fileRequest\0225\n\007profile\030\001 \001(\0132$.google.cl" + + "oud.talent.v4beta1.Profile\022/\n\013update_mas" + + "k\030\002 \001(\0132\032.google.protobuf.FieldMask\"$\n\024D" + + "eleteProfileRequest\022\014\n\004name\030\001 \001(\t\"\374\002\n\025Se" + + "archProfilesRequest\022\016\n\006parent\030\001 \001(\t\022F\n\020r" + + "equest_metadata\030\002 \001(\0132,.google.cloud.tal" + + "ent.v4beta1.RequestMetadata\022@\n\rprofile_q" + + "uery\030\003 \001(\0132).google.cloud.talent.v4beta1" + + ".ProfileQuery\022\021\n\tpage_size\030\004 \001(\005\022\022\n\npage" + + "_token\030\005 \001(\t\022\016\n\006offset\030\006 \001(\005\022\033\n\023disable_" + + "spell_check\030\007 \001(\010\022\020\n\010order_by\030\010 \001(\t\022\033\n\023c" + + "ase_sensitive_sort\030\t \001(\010\022F\n\021histogram_qu" + + "eries\030\n \003(\0132+.google.cloud.talent.v4beta" + + "1.HistogramQuery\"\374\002\n\026SearchProfilesRespo" + + "nse\022\034\n\024estimated_total_size\030\001 \001(\003\022I\n\020spe" + + "ll_correction\030\002 \001(\0132/.google.cloud.talen" + + "t.v4beta1.SpellingCorrection\022?\n\010metadata" + + "\030\003 \001(\0132-.google.cloud.talent.v4beta1.Res" + + "ponseMetadata\022\027\n\017next_page_token\030\004 \001(\t\022R" + + "\n\027histogram_query_results\030\005 \003(\01321.google" + + ".cloud.talent.v4beta1.HistogramQueryResu" + + "lt\022K\n\023summarized_profiles\030\006 \003(\0132..google" + + ".cloud.talent.v4beta1.SummarizedProfile\"" + + "\202\001\n\021SummarizedProfile\0226\n\010profiles\030\001 \003(\0132" + + "$.google.cloud.talent.v4beta1.Profile\0225\n" + + "\007summary\030\002 \001(\0132$.google.cloud.talent.v4b" + + "eta1.Profile2\377\007\n\016ProfileService\022\254\001\n\014List" + + "Profiles\0220.google.cloud.talent.v4beta1.L" + + "istProfilesRequest\0321.google.cloud.talent" + + ".v4beta1.ListProfilesResponse\"7\202\323\344\223\0021\022//" + + "v4beta1/{parent=projects/*/tenants/*}/pr" + + "ofiles\022\244\001\n\rCreateProfile\0221.google.cloud." + + "talent.v4beta1.CreateProfileRequest\032$.go" + + "ogle.cloud.talent.v4beta1.Profile\":\202\323\344\223\002" + + "4\"//v4beta1/{parent=projects/*/tenants/*" + + "}/profiles:\001*\022\233\001\n\nGetProfile\022..google.cl" + + "oud.talent.v4beta1.GetProfileRequest\032$.g" + + "oogle.cloud.talent.v4beta1.Profile\"7\202\323\344\223" + + "\0021\022//v4beta1/{name=projects/*/tenants/*/" + + "profiles/*}\022\254\001\n\rUpdateProfile\0221.google.c" + + "loud.talent.v4beta1.UpdateProfileRequest" + + "\032$.google.cloud.talent.v4beta1.Profile\"B" + + "\202\323\344\223\002<27/v4beta1/{profile.name=projects/" + + "*/tenants/*/profiles/*}:\001*\022\223\001\n\rDeletePro" + + "file\0221.google.cloud.talent.v4beta1.Delet" + + "eProfileRequest\032\026.google.protobuf.Empty\"" + + "7\202\323\344\223\0021*//v4beta1/{name=projects/*/tenan" + + "ts/*/profiles/*}\022\263\001\n\016SearchProfiles\0222.go" + + "ogle.cloud.talent.v4beta1.SearchProfiles" + + "Request\0323.google.cloud.talent.v4beta1.Se" + + "archProfilesResponse\"8\202\323\344\223\0022\"-/v4beta1/{" + + "parent=projects/*/tenants/*}:search:\001*B\201" + + "\001\n\037com.google.cloud.talent.v4beta1B\023Prof" + + "ileServiceProtoP\001ZAgoogle.golang.org/gen" + + "proto/googleapis/cloud/talent/v4beta1;ta" + + "lent\242\002\003CTSb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(), + com.google.cloud.talent.v4beta1.FiltersProto.getDescriptor(), + com.google.cloud.talent.v4beta1.HistogramProto.getDescriptor(), + com.google.cloud.talent.v4beta1.ProfileResourceProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_talent_v4beta1_ListProfilesRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_talent_v4beta1_ListProfilesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ListProfilesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageToken", "PageSize", "FieldMask", + }); + internal_static_google_cloud_talent_v4beta1_ListProfilesResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_talent_v4beta1_ListProfilesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ListProfilesResponse_descriptor, + new java.lang.String[] { + "Profiles", "NextPageToken", + }); + internal_static_google_cloud_talent_v4beta1_CreateProfileRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_talent_v4beta1_CreateProfileRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_CreateProfileRequest_descriptor, + new java.lang.String[] { + "Parent", "Profile", + }); + internal_static_google_cloud_talent_v4beta1_GetProfileRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_talent_v4beta1_GetProfileRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_GetProfileRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_talent_v4beta1_UpdateProfileRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_talent_v4beta1_UpdateProfileRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_UpdateProfileRequest_descriptor, + new java.lang.String[] { + "Profile", "UpdateMask", + }); + internal_static_google_cloud_talent_v4beta1_DeleteProfileRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_talent_v4beta1_DeleteProfileRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_DeleteProfileRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_talent_v4beta1_SearchProfilesRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_talent_v4beta1_SearchProfilesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_SearchProfilesRequest_descriptor, + new java.lang.String[] { + "Parent", + "RequestMetadata", + "ProfileQuery", + "PageSize", + "PageToken", + "Offset", + "DisableSpellCheck", + "OrderBy", + "CaseSensitiveSort", + "HistogramQueries", + }); + internal_static_google_cloud_talent_v4beta1_SearchProfilesResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_talent_v4beta1_SearchProfilesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_SearchProfilesResponse_descriptor, + new java.lang.String[] { + "EstimatedTotalSize", + "SpellCorrection", + "Metadata", + "NextPageToken", + "HistogramQueryResults", + "SummarizedProfiles", + }); + internal_static_google_cloud_talent_v4beta1_SummarizedProfile_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_talent_v4beta1_SummarizedProfile_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_SummarizedProfile_descriptor, + new java.lang.String[] { + "Profiles", "Summary", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.AnnotationsProto.http); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(); + com.google.cloud.talent.v4beta1.FiltersProto.getDescriptor(); + com.google.cloud.talent.v4beta1.HistogramProto.getDescriptor(); + com.google.cloud.talent.v4beta1.ProfileResourceProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProjectName.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProjectName.java new file mode 100644 index 000000000000..92004bb624cf --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProjectName.java @@ -0,0 +1,160 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.cloud.talent.v4beta1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class ProjectName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}"); + + private volatile Map fieldValuesMap; + + private final String project; + + public String getProject() { + return project; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private ProjectName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + } + + public static ProjectName of(String project) { + return newBuilder().setProject(project).build(); + } + + public static String format(String project) { + return newBuilder().setProject(project).build().toString(); + } + + public static ProjectName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "ProjectName.parse: formattedString not in valid format"); + return of(matchMap.get("project")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (ProjectName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project", project); + } + + /** Builder for ProjectName. */ + public static class Builder { + + private String project; + + public String getProject() { + return project; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + private Builder() {} + + private Builder(ProjectName projectName) { + project = projectName.project; + } + + public ProjectName build() { + return new ProjectName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof ProjectName) { + ProjectName that = (ProjectName) o; + return (this.project.equals(that.project)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + return h; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Publication.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Publication.java new file mode 100644 index 000000000000..b19d07d0a5ec --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Publication.java @@ -0,0 +1,2201 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Resource that represents a publication resource of a candidate.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Publication} + */ +public final class Publication extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Publication) + PublicationOrBuilder { + private static final long serialVersionUID = 0L; + // Use Publication.newBuilder() to construct. + private Publication(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Publication() { + authors_ = com.google.protobuf.LazyStringArrayList.EMPTY; + title_ = ""; + description_ = ""; + journal_ = ""; + volume_ = ""; + publisher_ = ""; + publicationType_ = ""; + isbn_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Publication( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + authors_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + authors_.add(s); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + title_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + journal_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + volume_ = s; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + publisher_ = s; + break; + } + case 58: + { + com.google.type.Date.Builder subBuilder = null; + if (publicationDate_ != null) { + subBuilder = publicationDate_.toBuilder(); + } + publicationDate_ = + input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(publicationDate_); + publicationDate_ = subBuilder.buildPartial(); + } + + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + + publicationType_ = s; + break; + } + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + + isbn_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + authors_ = authors_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Publication_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Publication_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Publication.class, + com.google.cloud.talent.v4beta1.Publication.Builder.class); + } + + private int bitField0_; + public static final int AUTHORS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList authors_; + /** + * + * + *
+   * Optional.
+   * A list of author names.
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string authors = 1; + */ + public com.google.protobuf.ProtocolStringList getAuthorsList() { + return authors_; + } + /** + * + * + *
+   * Optional.
+   * A list of author names.
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string authors = 1; + */ + public int getAuthorsCount() { + return authors_.size(); + } + /** + * + * + *
+   * Optional.
+   * A list of author names.
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string authors = 1; + */ + public java.lang.String getAuthors(int index) { + return authors_.get(index); + } + /** + * + * + *
+   * Optional.
+   * A list of author names.
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string authors = 1; + */ + public com.google.protobuf.ByteString getAuthorsBytes(int index) { + return authors_.getByteString(index); + } + + public static final int TITLE_FIELD_NUMBER = 2; + private volatile java.lang.Object title_; + /** + * + * + *
+   * Optional.
+   * The title of the publication.
+   * Number of characters allowed is 100.
+   * 
+ * + * string title = 2; + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + 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(); + title_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The title of the publication.
+   * Number of characters allowed is 100.
+   * 
+ * + * string title = 2; + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 3; + private volatile java.lang.Object description_; + /** + * + * + *
+   * Optional.
+   * The description of the publication.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string description = 3; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The description of the publication.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string description = 3; + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int JOURNAL_FIELD_NUMBER = 4; + private volatile java.lang.Object journal_; + /** + * + * + *
+   * Optional.
+   * The journal name of the publication.
+   * Number of characters allowed is 100.
+   * 
+ * + * string journal = 4; + */ + public java.lang.String getJournal() { + java.lang.Object ref = journal_; + 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(); + journal_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The journal name of the publication.
+   * Number of characters allowed is 100.
+   * 
+ * + * string journal = 4; + */ + public com.google.protobuf.ByteString getJournalBytes() { + java.lang.Object ref = journal_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + journal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VOLUME_FIELD_NUMBER = 5; + private volatile java.lang.Object volume_; + /** + * + * + *
+   * Optional.
+   * Volume number.
+   * Number of characters allowed is 100.
+   * 
+ * + * string volume = 5; + */ + public java.lang.String getVolume() { + java.lang.Object ref = volume_; + 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(); + volume_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * Volume number.
+   * Number of characters allowed is 100.
+   * 
+ * + * string volume = 5; + */ + public com.google.protobuf.ByteString getVolumeBytes() { + java.lang.Object ref = volume_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + volume_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PUBLISHER_FIELD_NUMBER = 6; + private volatile java.lang.Object publisher_; + /** + * + * + *
+   * Optional.
+   * The publisher of the journal.
+   * Number of characters allowed is 100.
+   * 
+ * + * string publisher = 6; + */ + public java.lang.String getPublisher() { + java.lang.Object ref = publisher_; + 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(); + publisher_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The publisher of the journal.
+   * Number of characters allowed is 100.
+   * 
+ * + * string publisher = 6; + */ + public com.google.protobuf.ByteString getPublisherBytes() { + java.lang.Object ref = publisher_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + publisher_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PUBLICATION_DATE_FIELD_NUMBER = 7; + private com.google.type.Date publicationDate_; + /** + * + * + *
+   * Optional.
+   * The publication date.
+   * 
+ * + * .google.type.Date publication_date = 7; + */ + public boolean hasPublicationDate() { + return publicationDate_ != null; + } + /** + * + * + *
+   * Optional.
+   * The publication date.
+   * 
+ * + * .google.type.Date publication_date = 7; + */ + public com.google.type.Date getPublicationDate() { + return publicationDate_ == null ? com.google.type.Date.getDefaultInstance() : publicationDate_; + } + /** + * + * + *
+   * Optional.
+   * The publication date.
+   * 
+ * + * .google.type.Date publication_date = 7; + */ + public com.google.type.DateOrBuilder getPublicationDateOrBuilder() { + return getPublicationDate(); + } + + public static final int PUBLICATION_TYPE_FIELD_NUMBER = 8; + private volatile java.lang.Object publicationType_; + /** + * + * + *
+   * Optional.
+   * The publication type.
+   * Number of characters allowed is 100.
+   * 
+ * + * string publication_type = 8; + */ + public java.lang.String getPublicationType() { + java.lang.Object ref = publicationType_; + 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(); + publicationType_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The publication type.
+   * Number of characters allowed is 100.
+   * 
+ * + * string publication_type = 8; + */ + public com.google.protobuf.ByteString getPublicationTypeBytes() { + java.lang.Object ref = publicationType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + publicationType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ISBN_FIELD_NUMBER = 9; + private volatile java.lang.Object isbn_; + /** + * + * + *
+   * Optional.
+   * ISBN number.
+   * Number of characters allowed is 100.
+   * 
+ * + * string isbn = 9; + */ + public java.lang.String getIsbn() { + java.lang.Object ref = isbn_; + 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(); + isbn_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * ISBN number.
+   * Number of characters allowed is 100.
+   * 
+ * + * string isbn = 9; + */ + public com.google.protobuf.ByteString getIsbnBytes() { + java.lang.Object ref = isbn_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + isbn_ = 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 { + for (int i = 0; i < authors_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, authors_.getRaw(i)); + } + if (!getTitleBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); + } + if (!getJournalBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, journal_); + } + if (!getVolumeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, volume_); + } + if (!getPublisherBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, publisher_); + } + if (publicationDate_ != null) { + output.writeMessage(7, getPublicationDate()); + } + if (!getPublicationTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, publicationType_); + } + if (!getIsbnBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, isbn_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < authors_.size(); i++) { + dataSize += computeStringSizeNoTag(authors_.getRaw(i)); + } + size += dataSize; + size += 1 * getAuthorsList().size(); + } + if (!getTitleBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_); + } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); + } + if (!getJournalBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, journal_); + } + if (!getVolumeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, volume_); + } + if (!getPublisherBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, publisher_); + } + if (publicationDate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getPublicationDate()); + } + if (!getPublicationTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, publicationType_); + } + if (!getIsbnBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, isbn_); + } + size += unknownFields.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.cloud.talent.v4beta1.Publication)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Publication other = + (com.google.cloud.talent.v4beta1.Publication) obj; + + boolean result = true; + result = result && getAuthorsList().equals(other.getAuthorsList()); + result = result && getTitle().equals(other.getTitle()); + result = result && getDescription().equals(other.getDescription()); + result = result && getJournal().equals(other.getJournal()); + result = result && getVolume().equals(other.getVolume()); + result = result && getPublisher().equals(other.getPublisher()); + result = result && (hasPublicationDate() == other.hasPublicationDate()); + if (hasPublicationDate()) { + result = result && getPublicationDate().equals(other.getPublicationDate()); + } + result = result && getPublicationType().equals(other.getPublicationType()); + result = result && getIsbn().equals(other.getIsbn()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAuthorsCount() > 0) { + hash = (37 * hash) + AUTHORS_FIELD_NUMBER; + hash = (53 * hash) + getAuthorsList().hashCode(); + } + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + JOURNAL_FIELD_NUMBER; + hash = (53 * hash) + getJournal().hashCode(); + hash = (37 * hash) + VOLUME_FIELD_NUMBER; + hash = (53 * hash) + getVolume().hashCode(); + hash = (37 * hash) + PUBLISHER_FIELD_NUMBER; + hash = (53 * hash) + getPublisher().hashCode(); + if (hasPublicationDate()) { + hash = (37 * hash) + PUBLICATION_DATE_FIELD_NUMBER; + hash = (53 * hash) + getPublicationDate().hashCode(); + } + hash = (37 * hash) + PUBLICATION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getPublicationType().hashCode(); + hash = (37 * hash) + ISBN_FIELD_NUMBER; + hash = (53 * hash) + getIsbn().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Publication parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Publication parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Publication parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Publication 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.cloud.talent.v4beta1.Publication parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Publication parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Publication parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Publication 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.cloud.talent.v4beta1.Publication parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Publication 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.cloud.talent.v4beta1.Publication parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Publication 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.cloud.talent.v4beta1.Publication 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; + } + /** + * + * + *
+   * Resource that represents a publication resource of a candidate.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Publication} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Publication) + com.google.cloud.talent.v4beta1.PublicationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Publication_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Publication_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Publication.class, + com.google.cloud.talent.v4beta1.Publication.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Publication.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + authors_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + title_ = ""; + + description_ = ""; + + journal_ = ""; + + volume_ = ""; + + publisher_ = ""; + + if (publicationDateBuilder_ == null) { + publicationDate_ = null; + } else { + publicationDate_ = null; + publicationDateBuilder_ = null; + } + publicationType_ = ""; + + isbn_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Publication_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Publication getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Publication.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Publication build() { + com.google.cloud.talent.v4beta1.Publication result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Publication buildPartial() { + com.google.cloud.talent.v4beta1.Publication result = + new com.google.cloud.talent.v4beta1.Publication(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + authors_ = authors_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.authors_ = authors_; + result.title_ = title_; + result.description_ = description_; + result.journal_ = journal_; + result.volume_ = volume_; + result.publisher_ = publisher_; + if (publicationDateBuilder_ == null) { + result.publicationDate_ = publicationDate_; + } else { + result.publicationDate_ = publicationDateBuilder_.build(); + } + result.publicationType_ = publicationType_; + result.isbn_ = isbn_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Publication) { + return mergeFrom((com.google.cloud.talent.v4beta1.Publication) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Publication other) { + if (other == com.google.cloud.talent.v4beta1.Publication.getDefaultInstance()) return this; + if (!other.authors_.isEmpty()) { + if (authors_.isEmpty()) { + authors_ = other.authors_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAuthorsIsMutable(); + authors_.addAll(other.authors_); + } + onChanged(); + } + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (!other.getJournal().isEmpty()) { + journal_ = other.journal_; + onChanged(); + } + if (!other.getVolume().isEmpty()) { + volume_ = other.volume_; + onChanged(); + } + if (!other.getPublisher().isEmpty()) { + publisher_ = other.publisher_; + onChanged(); + } + if (other.hasPublicationDate()) { + mergePublicationDate(other.getPublicationDate()); + } + if (!other.getPublicationType().isEmpty()) { + publicationType_ = other.publicationType_; + onChanged(); + } + if (!other.getIsbn().isEmpty()) { + isbn_ = other.isbn_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.Publication parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.Publication) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList authors_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureAuthorsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + authors_ = new com.google.protobuf.LazyStringArrayList(authors_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * Optional.
+     * A list of author names.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string authors = 1; + */ + public com.google.protobuf.ProtocolStringList getAuthorsList() { + return authors_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional.
+     * A list of author names.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string authors = 1; + */ + public int getAuthorsCount() { + return authors_.size(); + } + /** + * + * + *
+     * Optional.
+     * A list of author names.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string authors = 1; + */ + public java.lang.String getAuthors(int index) { + return authors_.get(index); + } + /** + * + * + *
+     * Optional.
+     * A list of author names.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string authors = 1; + */ + public com.google.protobuf.ByteString getAuthorsBytes(int index) { + return authors_.getByteString(index); + } + /** + * + * + *
+     * Optional.
+     * A list of author names.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string authors = 1; + */ + public Builder setAuthors(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAuthorsIsMutable(); + authors_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of author names.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string authors = 1; + */ + public Builder addAuthors(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAuthorsIsMutable(); + authors_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of author names.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string authors = 1; + */ + public Builder addAllAuthors(java.lang.Iterable values) { + ensureAuthorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, authors_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of author names.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string authors = 1; + */ + public Builder clearAuthors() { + authors_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of author names.
+     * Number of characters allowed is 100.
+     * 
+ * + * repeated string authors = 1; + */ + public Builder addAuthorsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAuthorsIsMutable(); + authors_.add(value); + onChanged(); + return this; + } + + private java.lang.Object title_ = ""; + /** + * + * + *
+     * Optional.
+     * The title of the publication.
+     * Number of characters allowed is 100.
+     * 
+ * + * string title = 2; + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The title of the publication.
+     * Number of characters allowed is 100.
+     * 
+ * + * string title = 2; + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The title of the publication.
+     * Number of characters allowed is 100.
+     * 
+ * + * string title = 2; + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + title_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The title of the publication.
+     * Number of characters allowed is 100.
+     * 
+ * + * string title = 2; + */ + public Builder clearTitle() { + + title_ = getDefaultInstance().getTitle(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The title of the publication.
+     * Number of characters allowed is 100.
+     * 
+ * + * string title = 2; + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + title_ = value; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * Optional.
+     * The description of the publication.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 3; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The description of the publication.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 3; + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The description of the publication.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 3; + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The description of the publication.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 3; + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The description of the publication.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string description = 3; + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private java.lang.Object journal_ = ""; + /** + * + * + *
+     * Optional.
+     * The journal name of the publication.
+     * Number of characters allowed is 100.
+     * 
+ * + * string journal = 4; + */ + public java.lang.String getJournal() { + java.lang.Object ref = journal_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + journal_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The journal name of the publication.
+     * Number of characters allowed is 100.
+     * 
+ * + * string journal = 4; + */ + public com.google.protobuf.ByteString getJournalBytes() { + java.lang.Object ref = journal_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + journal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The journal name of the publication.
+     * Number of characters allowed is 100.
+     * 
+ * + * string journal = 4; + */ + public Builder setJournal(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + journal_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The journal name of the publication.
+     * Number of characters allowed is 100.
+     * 
+ * + * string journal = 4; + */ + public Builder clearJournal() { + + journal_ = getDefaultInstance().getJournal(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The journal name of the publication.
+     * Number of characters allowed is 100.
+     * 
+ * + * string journal = 4; + */ + public Builder setJournalBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + journal_ = value; + onChanged(); + return this; + } + + private java.lang.Object volume_ = ""; + /** + * + * + *
+     * Optional.
+     * Volume number.
+     * Number of characters allowed is 100.
+     * 
+ * + * string volume = 5; + */ + public java.lang.String getVolume() { + java.lang.Object ref = volume_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + volume_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Volume number.
+     * Number of characters allowed is 100.
+     * 
+ * + * string volume = 5; + */ + public com.google.protobuf.ByteString getVolumeBytes() { + java.lang.Object ref = volume_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + volume_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Volume number.
+     * Number of characters allowed is 100.
+     * 
+ * + * string volume = 5; + */ + public Builder setVolume(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + volume_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Volume number.
+     * Number of characters allowed is 100.
+     * 
+ * + * string volume = 5; + */ + public Builder clearVolume() { + + volume_ = getDefaultInstance().getVolume(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Volume number.
+     * Number of characters allowed is 100.
+     * 
+ * + * string volume = 5; + */ + public Builder setVolumeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + volume_ = value; + onChanged(); + return this; + } + + private java.lang.Object publisher_ = ""; + /** + * + * + *
+     * Optional.
+     * The publisher of the journal.
+     * Number of characters allowed is 100.
+     * 
+ * + * string publisher = 6; + */ + public java.lang.String getPublisher() { + java.lang.Object ref = publisher_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + publisher_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The publisher of the journal.
+     * Number of characters allowed is 100.
+     * 
+ * + * string publisher = 6; + */ + public com.google.protobuf.ByteString getPublisherBytes() { + java.lang.Object ref = publisher_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + publisher_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The publisher of the journal.
+     * Number of characters allowed is 100.
+     * 
+ * + * string publisher = 6; + */ + public Builder setPublisher(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + publisher_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The publisher of the journal.
+     * Number of characters allowed is 100.
+     * 
+ * + * string publisher = 6; + */ + public Builder clearPublisher() { + + publisher_ = getDefaultInstance().getPublisher(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The publisher of the journal.
+     * Number of characters allowed is 100.
+     * 
+ * + * string publisher = 6; + */ + public Builder setPublisherBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + publisher_ = value; + onChanged(); + return this; + } + + private com.google.type.Date publicationDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + publicationDateBuilder_; + /** + * + * + *
+     * Optional.
+     * The publication date.
+     * 
+ * + * .google.type.Date publication_date = 7; + */ + public boolean hasPublicationDate() { + return publicationDateBuilder_ != null || publicationDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * The publication date.
+     * 
+ * + * .google.type.Date publication_date = 7; + */ + public com.google.type.Date getPublicationDate() { + if (publicationDateBuilder_ == null) { + return publicationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : publicationDate_; + } else { + return publicationDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The publication date.
+     * 
+ * + * .google.type.Date publication_date = 7; + */ + public Builder setPublicationDate(com.google.type.Date value) { + if (publicationDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + publicationDate_ = value; + onChanged(); + } else { + publicationDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The publication date.
+     * 
+ * + * .google.type.Date publication_date = 7; + */ + public Builder setPublicationDate(com.google.type.Date.Builder builderForValue) { + if (publicationDateBuilder_ == null) { + publicationDate_ = builderForValue.build(); + onChanged(); + } else { + publicationDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The publication date.
+     * 
+ * + * .google.type.Date publication_date = 7; + */ + public Builder mergePublicationDate(com.google.type.Date value) { + if (publicationDateBuilder_ == null) { + if (publicationDate_ != null) { + publicationDate_ = + com.google.type.Date.newBuilder(publicationDate_).mergeFrom(value).buildPartial(); + } else { + publicationDate_ = value; + } + onChanged(); + } else { + publicationDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The publication date.
+     * 
+ * + * .google.type.Date publication_date = 7; + */ + public Builder clearPublicationDate() { + if (publicationDateBuilder_ == null) { + publicationDate_ = null; + onChanged(); + } else { + publicationDate_ = null; + publicationDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The publication date.
+     * 
+ * + * .google.type.Date publication_date = 7; + */ + public com.google.type.Date.Builder getPublicationDateBuilder() { + + onChanged(); + return getPublicationDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The publication date.
+     * 
+ * + * .google.type.Date publication_date = 7; + */ + public com.google.type.DateOrBuilder getPublicationDateOrBuilder() { + if (publicationDateBuilder_ != null) { + return publicationDateBuilder_.getMessageOrBuilder(); + } else { + return publicationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : publicationDate_; + } + } + /** + * + * + *
+     * Optional.
+     * The publication date.
+     * 
+ * + * .google.type.Date publication_date = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getPublicationDateFieldBuilder() { + if (publicationDateBuilder_ == null) { + publicationDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getPublicationDate(), getParentForChildren(), isClean()); + publicationDate_ = null; + } + return publicationDateBuilder_; + } + + private java.lang.Object publicationType_ = ""; + /** + * + * + *
+     * Optional.
+     * The publication type.
+     * Number of characters allowed is 100.
+     * 
+ * + * string publication_type = 8; + */ + public java.lang.String getPublicationType() { + java.lang.Object ref = publicationType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + publicationType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The publication type.
+     * Number of characters allowed is 100.
+     * 
+ * + * string publication_type = 8; + */ + public com.google.protobuf.ByteString getPublicationTypeBytes() { + java.lang.Object ref = publicationType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + publicationType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The publication type.
+     * Number of characters allowed is 100.
+     * 
+ * + * string publication_type = 8; + */ + public Builder setPublicationType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + publicationType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The publication type.
+     * Number of characters allowed is 100.
+     * 
+ * + * string publication_type = 8; + */ + public Builder clearPublicationType() { + + publicationType_ = getDefaultInstance().getPublicationType(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The publication type.
+     * Number of characters allowed is 100.
+     * 
+ * + * string publication_type = 8; + */ + public Builder setPublicationTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + publicationType_ = value; + onChanged(); + return this; + } + + private java.lang.Object isbn_ = ""; + /** + * + * + *
+     * Optional.
+     * ISBN number.
+     * Number of characters allowed is 100.
+     * 
+ * + * string isbn = 9; + */ + public java.lang.String getIsbn() { + java.lang.Object ref = isbn_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + isbn_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * ISBN number.
+     * Number of characters allowed is 100.
+     * 
+ * + * string isbn = 9; + */ + public com.google.protobuf.ByteString getIsbnBytes() { + java.lang.Object ref = isbn_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + isbn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * ISBN number.
+     * Number of characters allowed is 100.
+     * 
+ * + * string isbn = 9; + */ + public Builder setIsbn(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + isbn_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * ISBN number.
+     * Number of characters allowed is 100.
+     * 
+ * + * string isbn = 9; + */ + public Builder clearIsbn() { + + isbn_ = getDefaultInstance().getIsbn(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * ISBN number.
+     * Number of characters allowed is 100.
+     * 
+ * + * string isbn = 9; + */ + public Builder setIsbnBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + isbn_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Publication) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Publication) + private static final com.google.cloud.talent.v4beta1.Publication DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Publication(); + } + + public static com.google.cloud.talent.v4beta1.Publication getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Publication parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Publication(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.Publication getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PublicationOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PublicationOrBuilder.java new file mode 100644 index 000000000000..3a697b2afe8f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PublicationOrBuilder.java @@ -0,0 +1,268 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public interface PublicationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Publication) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * A list of author names.
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string authors = 1; + */ + java.util.List getAuthorsList(); + /** + * + * + *
+   * Optional.
+   * A list of author names.
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string authors = 1; + */ + int getAuthorsCount(); + /** + * + * + *
+   * Optional.
+   * A list of author names.
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string authors = 1; + */ + java.lang.String getAuthors(int index); + /** + * + * + *
+   * Optional.
+   * A list of author names.
+   * Number of characters allowed is 100.
+   * 
+ * + * repeated string authors = 1; + */ + com.google.protobuf.ByteString getAuthorsBytes(int index); + + /** + * + * + *
+   * Optional.
+   * The title of the publication.
+   * Number of characters allowed is 100.
+   * 
+ * + * string title = 2; + */ + java.lang.String getTitle(); + /** + * + * + *
+   * Optional.
+   * The title of the publication.
+   * Number of characters allowed is 100.
+   * 
+ * + * string title = 2; + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
+   * Optional.
+   * The description of the publication.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string description = 3; + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Optional.
+   * The description of the publication.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string description = 3; + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Optional.
+   * The journal name of the publication.
+   * Number of characters allowed is 100.
+   * 
+ * + * string journal = 4; + */ + java.lang.String getJournal(); + /** + * + * + *
+   * Optional.
+   * The journal name of the publication.
+   * Number of characters allowed is 100.
+   * 
+ * + * string journal = 4; + */ + com.google.protobuf.ByteString getJournalBytes(); + + /** + * + * + *
+   * Optional.
+   * Volume number.
+   * Number of characters allowed is 100.
+   * 
+ * + * string volume = 5; + */ + java.lang.String getVolume(); + /** + * + * + *
+   * Optional.
+   * Volume number.
+   * Number of characters allowed is 100.
+   * 
+ * + * string volume = 5; + */ + com.google.protobuf.ByteString getVolumeBytes(); + + /** + * + * + *
+   * Optional.
+   * The publisher of the journal.
+   * Number of characters allowed is 100.
+   * 
+ * + * string publisher = 6; + */ + java.lang.String getPublisher(); + /** + * + * + *
+   * Optional.
+   * The publisher of the journal.
+   * Number of characters allowed is 100.
+   * 
+ * + * string publisher = 6; + */ + com.google.protobuf.ByteString getPublisherBytes(); + + /** + * + * + *
+   * Optional.
+   * The publication date.
+   * 
+ * + * .google.type.Date publication_date = 7; + */ + boolean hasPublicationDate(); + /** + * + * + *
+   * Optional.
+   * The publication date.
+   * 
+ * + * .google.type.Date publication_date = 7; + */ + com.google.type.Date getPublicationDate(); + /** + * + * + *
+   * Optional.
+   * The publication date.
+   * 
+ * + * .google.type.Date publication_date = 7; + */ + com.google.type.DateOrBuilder getPublicationDateOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The publication type.
+   * Number of characters allowed is 100.
+   * 
+ * + * string publication_type = 8; + */ + java.lang.String getPublicationType(); + /** + * + * + *
+   * Optional.
+   * The publication type.
+   * Number of characters allowed is 100.
+   * 
+ * + * string publication_type = 8; + */ + com.google.protobuf.ByteString getPublicationTypeBytes(); + + /** + * + * + *
+   * Optional.
+   * ISBN number.
+   * Number of characters allowed is 100.
+   * 
+ * + * string isbn = 9; + */ + java.lang.String getIsbn(); + /** + * + * + *
+   * Optional.
+   * ISBN number.
+   * Number of characters allowed is 100.
+   * 
+ * + * string isbn = 9; + */ + com.google.protobuf.ByteString getIsbnBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RecruitingNote.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RecruitingNote.java new file mode 100644 index 000000000000..45dacc09b82a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RecruitingNote.java @@ -0,0 +1,1227 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * RecruitingNote represents a note/comment regarding the recruiting for a
+ * candidate. For example, "This candidate is a potential match for a frontend
+ * engineer at SF".
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.RecruitingNote} + */ +public final class RecruitingNote extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.RecruitingNote) + RecruitingNoteOrBuilder { + private static final long serialVersionUID = 0L; + // Use RecruitingNote.newBuilder() to construct. + private RecruitingNote(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RecruitingNote() { + note_ = ""; + commenter_ = ""; + type_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RecruitingNote( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + note_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + commenter_ = s; + break; + } + case 26: + { + com.google.type.Date.Builder subBuilder = null; + if (createDate_ != null) { + subBuilder = createDate_.toBuilder(); + } + createDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createDate_); + createDate_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + type_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_RecruitingNote_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_RecruitingNote_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.RecruitingNote.class, + com.google.cloud.talent.v4beta1.RecruitingNote.Builder.class); + } + + public static final int NOTE_FIELD_NUMBER = 1; + private volatile java.lang.Object note_; + /** + * + * + *
+   * Optional.
+   * The content of note.
+   * Number of characters allowed is 4,000.
+   * 
+ * + * string note = 1; + */ + public java.lang.String getNote() { + java.lang.Object ref = note_; + 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(); + note_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The content of note.
+   * Number of characters allowed is 4,000.
+   * 
+ * + * string note = 1; + */ + public com.google.protobuf.ByteString getNoteBytes() { + java.lang.Object ref = note_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + note_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMMENTER_FIELD_NUMBER = 2; + private volatile java.lang.Object commenter_; + /** + * + * + *
+   * Optional.
+   * The person who wrote the notes.
+   * Number of characters allowed is 100.
+   * 
+ * + * string commenter = 2; + */ + public java.lang.String getCommenter() { + java.lang.Object ref = commenter_; + 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(); + commenter_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The person who wrote the notes.
+   * Number of characters allowed is 100.
+   * 
+ * + * string commenter = 2; + */ + public com.google.protobuf.ByteString getCommenterBytes() { + java.lang.Object ref = commenter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + commenter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_DATE_FIELD_NUMBER = 3; + private com.google.type.Date createDate_; + /** + * + * + *
+   * Optional.
+   * The create date of the note.
+   * 
+ * + * .google.type.Date create_date = 3; + */ + public boolean hasCreateDate() { + return createDate_ != null; + } + /** + * + * + *
+   * Optional.
+   * The create date of the note.
+   * 
+ * + * .google.type.Date create_date = 3; + */ + public com.google.type.Date getCreateDate() { + return createDate_ == null ? com.google.type.Date.getDefaultInstance() : createDate_; + } + /** + * + * + *
+   * Optional.
+   * The create date of the note.
+   * 
+ * + * .google.type.Date create_date = 3; + */ + public com.google.type.DateOrBuilder getCreateDateOrBuilder() { + return getCreateDate(); + } + + public static final int TYPE_FIELD_NUMBER = 4; + private volatile java.lang.Object type_; + /** + * + * + *
+   * Optional.
+   * The note type.
+   * Number of characters allowed is 100.
+   * 
+ * + * string type = 4; + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + 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(); + type_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The note type.
+   * Number of characters allowed is 100.
+   * 
+ * + * string type = 4; + */ + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = 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 (!getNoteBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, note_); + } + if (!getCommenterBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, commenter_); + } + if (createDate_ != null) { + output.writeMessage(3, getCreateDate()); + } + if (!getTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, type_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNoteBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, note_); + } + if (!getCommenterBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, commenter_); + } + if (createDate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateDate()); + } + if (!getTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, type_); + } + size += unknownFields.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.cloud.talent.v4beta1.RecruitingNote)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.RecruitingNote other = + (com.google.cloud.talent.v4beta1.RecruitingNote) obj; + + boolean result = true; + result = result && getNote().equals(other.getNote()); + result = result && getCommenter().equals(other.getCommenter()); + result = result && (hasCreateDate() == other.hasCreateDate()); + if (hasCreateDate()) { + result = result && getCreateDate().equals(other.getCreateDate()); + } + result = result && getType().equals(other.getType()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NOTE_FIELD_NUMBER; + hash = (53 * hash) + getNote().hashCode(); + hash = (37 * hash) + COMMENTER_FIELD_NUMBER; + hash = (53 * hash) + getCommenter().hashCode(); + if (hasCreateDate()) { + hash = (37 * hash) + CREATE_DATE_FIELD_NUMBER; + hash = (53 * hash) + getCreateDate().hashCode(); + } + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.RecruitingNote parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.RecruitingNote parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.RecruitingNote parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.RecruitingNote 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.cloud.talent.v4beta1.RecruitingNote parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.RecruitingNote parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.RecruitingNote parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.RecruitingNote 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.cloud.talent.v4beta1.RecruitingNote parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.RecruitingNote 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.cloud.talent.v4beta1.RecruitingNote parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.RecruitingNote 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.cloud.talent.v4beta1.RecruitingNote 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; + } + /** + * + * + *
+   * RecruitingNote represents a note/comment regarding the recruiting for a
+   * candidate. For example, "This candidate is a potential match for a frontend
+   * engineer at SF".
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.RecruitingNote} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.RecruitingNote) + com.google.cloud.talent.v4beta1.RecruitingNoteOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_RecruitingNote_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_RecruitingNote_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.RecruitingNote.class, + com.google.cloud.talent.v4beta1.RecruitingNote.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.RecruitingNote.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + note_ = ""; + + commenter_ = ""; + + if (createDateBuilder_ == null) { + createDate_ = null; + } else { + createDate_ = null; + createDateBuilder_ = null; + } + type_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_RecruitingNote_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.RecruitingNote getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.RecruitingNote.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.RecruitingNote build() { + com.google.cloud.talent.v4beta1.RecruitingNote result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.RecruitingNote buildPartial() { + com.google.cloud.talent.v4beta1.RecruitingNote result = + new com.google.cloud.talent.v4beta1.RecruitingNote(this); + result.note_ = note_; + result.commenter_ = commenter_; + if (createDateBuilder_ == null) { + result.createDate_ = createDate_; + } else { + result.createDate_ = createDateBuilder_.build(); + } + result.type_ = type_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.RecruitingNote) { + return mergeFrom((com.google.cloud.talent.v4beta1.RecruitingNote) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.RecruitingNote other) { + if (other == com.google.cloud.talent.v4beta1.RecruitingNote.getDefaultInstance()) return this; + if (!other.getNote().isEmpty()) { + note_ = other.note_; + onChanged(); + } + if (!other.getCommenter().isEmpty()) { + commenter_ = other.commenter_; + onChanged(); + } + if (other.hasCreateDate()) { + mergeCreateDate(other.getCreateDate()); + } + if (!other.getType().isEmpty()) { + type_ = other.type_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.RecruitingNote parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.RecruitingNote) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object note_ = ""; + /** + * + * + *
+     * Optional.
+     * The content of note.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string note = 1; + */ + public java.lang.String getNote() { + java.lang.Object ref = note_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + note_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The content of note.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string note = 1; + */ + public com.google.protobuf.ByteString getNoteBytes() { + java.lang.Object ref = note_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + note_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The content of note.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string note = 1; + */ + public Builder setNote(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + note_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The content of note.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string note = 1; + */ + public Builder clearNote() { + + note_ = getDefaultInstance().getNote(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The content of note.
+     * Number of characters allowed is 4,000.
+     * 
+ * + * string note = 1; + */ + public Builder setNoteBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + note_ = value; + onChanged(); + return this; + } + + private java.lang.Object commenter_ = ""; + /** + * + * + *
+     * Optional.
+     * The person who wrote the notes.
+     * Number of characters allowed is 100.
+     * 
+ * + * string commenter = 2; + */ + public java.lang.String getCommenter() { + java.lang.Object ref = commenter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + commenter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The person who wrote the notes.
+     * Number of characters allowed is 100.
+     * 
+ * + * string commenter = 2; + */ + public com.google.protobuf.ByteString getCommenterBytes() { + java.lang.Object ref = commenter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + commenter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The person who wrote the notes.
+     * Number of characters allowed is 100.
+     * 
+ * + * string commenter = 2; + */ + public Builder setCommenter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + commenter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The person who wrote the notes.
+     * Number of characters allowed is 100.
+     * 
+ * + * string commenter = 2; + */ + public Builder clearCommenter() { + + commenter_ = getDefaultInstance().getCommenter(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The person who wrote the notes.
+     * Number of characters allowed is 100.
+     * 
+ * + * string commenter = 2; + */ + public Builder setCommenterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + commenter_ = value; + onChanged(); + return this; + } + + private com.google.type.Date createDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + createDateBuilder_; + /** + * + * + *
+     * Optional.
+     * The create date of the note.
+     * 
+ * + * .google.type.Date create_date = 3; + */ + public boolean hasCreateDate() { + return createDateBuilder_ != null || createDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * The create date of the note.
+     * 
+ * + * .google.type.Date create_date = 3; + */ + public com.google.type.Date getCreateDate() { + if (createDateBuilder_ == null) { + return createDate_ == null ? com.google.type.Date.getDefaultInstance() : createDate_; + } else { + return createDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The create date of the note.
+     * 
+ * + * .google.type.Date create_date = 3; + */ + public Builder setCreateDate(com.google.type.Date value) { + if (createDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createDate_ = value; + onChanged(); + } else { + createDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The create date of the note.
+     * 
+ * + * .google.type.Date create_date = 3; + */ + public Builder setCreateDate(com.google.type.Date.Builder builderForValue) { + if (createDateBuilder_ == null) { + createDate_ = builderForValue.build(); + onChanged(); + } else { + createDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The create date of the note.
+     * 
+ * + * .google.type.Date create_date = 3; + */ + public Builder mergeCreateDate(com.google.type.Date value) { + if (createDateBuilder_ == null) { + if (createDate_ != null) { + createDate_ = + com.google.type.Date.newBuilder(createDate_).mergeFrom(value).buildPartial(); + } else { + createDate_ = value; + } + onChanged(); + } else { + createDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The create date of the note.
+     * 
+ * + * .google.type.Date create_date = 3; + */ + public Builder clearCreateDate() { + if (createDateBuilder_ == null) { + createDate_ = null; + onChanged(); + } else { + createDate_ = null; + createDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The create date of the note.
+     * 
+ * + * .google.type.Date create_date = 3; + */ + public com.google.type.Date.Builder getCreateDateBuilder() { + + onChanged(); + return getCreateDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The create date of the note.
+     * 
+ * + * .google.type.Date create_date = 3; + */ + public com.google.type.DateOrBuilder getCreateDateOrBuilder() { + if (createDateBuilder_ != null) { + return createDateBuilder_.getMessageOrBuilder(); + } else { + return createDate_ == null ? com.google.type.Date.getDefaultInstance() : createDate_; + } + } + /** + * + * + *
+     * Optional.
+     * The create date of the note.
+     * 
+ * + * .google.type.Date create_date = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getCreateDateFieldBuilder() { + if (createDateBuilder_ == null) { + createDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getCreateDate(), getParentForChildren(), isClean()); + createDate_ = null; + } + return createDateBuilder_; + } + + private java.lang.Object type_ = ""; + /** + * + * + *
+     * Optional.
+     * The note type.
+     * Number of characters allowed is 100.
+     * 
+ * + * string type = 4; + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The note type.
+     * Number of characters allowed is 100.
+     * 
+ * + * string type = 4; + */ + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The note type.
+     * Number of characters allowed is 100.
+     * 
+ * + * string type = 4; + */ + public Builder setType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The note type.
+     * Number of characters allowed is 100.
+     * 
+ * + * string type = 4; + */ + public Builder clearType() { + + type_ = getDefaultInstance().getType(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The note type.
+     * Number of characters allowed is 100.
+     * 
+ * + * string type = 4; + */ + public Builder setTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + type_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.RecruitingNote) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.RecruitingNote) + private static final com.google.cloud.talent.v4beta1.RecruitingNote DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.RecruitingNote(); + } + + public static com.google.cloud.talent.v4beta1.RecruitingNote getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecruitingNote parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecruitingNote(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.RecruitingNote getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RecruitingNoteOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RecruitingNoteOrBuilder.java new file mode 100644 index 000000000000..02ea20bb9824 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RecruitingNoteOrBuilder.java @@ -0,0 +1,119 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public interface RecruitingNoteOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.RecruitingNote) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * The content of note.
+   * Number of characters allowed is 4,000.
+   * 
+ * + * string note = 1; + */ + java.lang.String getNote(); + /** + * + * + *
+   * Optional.
+   * The content of note.
+   * Number of characters allowed is 4,000.
+   * 
+ * + * string note = 1; + */ + com.google.protobuf.ByteString getNoteBytes(); + + /** + * + * + *
+   * Optional.
+   * The person who wrote the notes.
+   * Number of characters allowed is 100.
+   * 
+ * + * string commenter = 2; + */ + java.lang.String getCommenter(); + /** + * + * + *
+   * Optional.
+   * The person who wrote the notes.
+   * Number of characters allowed is 100.
+   * 
+ * + * string commenter = 2; + */ + com.google.protobuf.ByteString getCommenterBytes(); + + /** + * + * + *
+   * Optional.
+   * The create date of the note.
+   * 
+ * + * .google.type.Date create_date = 3; + */ + boolean hasCreateDate(); + /** + * + * + *
+   * Optional.
+   * The create date of the note.
+   * 
+ * + * .google.type.Date create_date = 3; + */ + com.google.type.Date getCreateDate(); + /** + * + * + *
+   * Optional.
+   * The create date of the note.
+   * 
+ * + * .google.type.Date create_date = 3; + */ + com.google.type.DateOrBuilder getCreateDateOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The note type.
+   * Number of characters allowed is 100.
+   * 
+ * + * string type = 4; + */ + java.lang.String getType(); + /** + * + * + *
+   * Optional.
+   * The note type.
+   * Number of characters allowed is 100.
+   * 
+ * + * string type = 4; + */ + com.google.protobuf.ByteString getTypeBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RequestMetadata.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RequestMetadata.java new file mode 100644 index 000000000000..1b4ca53cb817 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RequestMetadata.java @@ -0,0 +1,1561 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Meta information related to the job searcher or entity
+ * conducting the job search. This information is used to improve the
+ * performance of the service.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.RequestMetadata} + */ +public final class RequestMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.RequestMetadata) + RequestMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use RequestMetadata.newBuilder() to construct. + private RequestMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RequestMetadata() { + domain_ = ""; + sessionId_ = ""; + userId_ = ""; + allowMissingIds_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RequestMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + sessionId_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + userId_ = s; + break; + } + case 32: + { + allowMissingIds_ = input.readBool(); + break; + } + case 42: + { + com.google.cloud.talent.v4beta1.DeviceInfo.Builder subBuilder = null; + if (deviceInfo_ != null) { + subBuilder = deviceInfo_.toBuilder(); + } + deviceInfo_ = + input.readMessage( + com.google.cloud.talent.v4beta1.DeviceInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deviceInfo_); + deviceInfo_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_RequestMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_RequestMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.RequestMetadata.class, + com.google.cloud.talent.v4beta1.RequestMetadata.Builder.class); + } + + public static final int DOMAIN_FIELD_NUMBER = 1; + private volatile java.lang.Object domain_; + /** + * + * + *
+   * Required if
+   * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+   * is unset or `false`.
+   * The client-defined scope or source of the service call, which typically
+   * is the domain on
+   * which the service has been implemented and is currently being run.
+   * For example, if the service is being run by client <em>Foo, Inc.</em>, on
+   * job board www.foo.com and career site www.bar.com, then this field is
+   * set to "foo.com" for use on the job board, and "bar.com" for use on the
+   * career site.
+   * Note that any improvements to the model for a particular tenant site rely
+   * on this field being set correctly to a unique domain.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string domain = 1; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + 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(); + domain_ = s; + return s; + } + } + /** + * + * + *
+   * Required if
+   * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+   * is unset or `false`.
+   * The client-defined scope or source of the service call, which typically
+   * is the domain on
+   * which the service has been implemented and is currently being run.
+   * For example, if the service is being run by client <em>Foo, Inc.</em>, on
+   * job board www.foo.com and career site www.bar.com, then this field is
+   * set to "foo.com" for use on the job board, and "bar.com" for use on the
+   * career site.
+   * Note that any improvements to the model for a particular tenant site rely
+   * on this field being set correctly to a unique domain.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string domain = 1; + */ + public com.google.protobuf.ByteString getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SESSION_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object sessionId_; + /** + * + * + *
+   * Required if
+   * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+   * is unset or `false`.
+   * A unique session identification string. A session is defined as the
+   * duration of an end user's interaction with the service over a certain
+   * period.
+   * Obfuscate this field for privacy concerns before
+   * providing it to the service.
+   * Note that any improvements to the model for a particular tenant site rely
+   * on this field being set correctly to a unique session ID.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string session_id = 2; + */ + public java.lang.String getSessionId() { + java.lang.Object ref = sessionId_; + 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(); + sessionId_ = s; + return s; + } + } + /** + * + * + *
+   * Required if
+   * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+   * is unset or `false`.
+   * A unique session identification string. A session is defined as the
+   * duration of an end user's interaction with the service over a certain
+   * period.
+   * Obfuscate this field for privacy concerns before
+   * providing it to the service.
+   * Note that any improvements to the model for a particular tenant site rely
+   * on this field being set correctly to a unique session ID.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string session_id = 2; + */ + public com.google.protobuf.ByteString getSessionIdBytes() { + java.lang.Object ref = sessionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sessionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object userId_; + /** + * + * + *
+   * Required if
+   * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+   * is unset or `false`.
+   * A unique user identification string, as determined by the client.
+   * To have the strongest positive impact on search quality
+   * make sure the client-level is unique.
+   * Obfuscate this field for privacy concerns before
+   * providing it to the service.
+   * Note that any improvements to the model for a particular tenant site rely
+   * on this field being set correctly to a unique user ID.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string user_id = 3; + */ + public java.lang.String getUserId() { + java.lang.Object ref = userId_; + 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(); + userId_ = s; + return s; + } + } + /** + * + * + *
+   * Required if
+   * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+   * is unset or `false`.
+   * A unique user identification string, as determined by the client.
+   * To have the strongest positive impact on search quality
+   * make sure the client-level is unique.
+   * Obfuscate this field for privacy concerns before
+   * providing it to the service.
+   * Note that any improvements to the model for a particular tenant site rely
+   * on this field being set correctly to a unique user ID.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string user_id = 3; + */ + public com.google.protobuf.ByteString getUserIdBytes() { + java.lang.Object ref = userId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALLOW_MISSING_IDS_FIELD_NUMBER = 4; + private boolean allowMissingIds_; + /** + * + * + *
+   * Optional.
+   * If set to `true`,
+   * [domain][google.cloud.talent.v4beta1.RequestMetadata.domain],
+   * [session_id][google.cloud.talent.v4beta1.RequestMetadata.session_id] and
+   * [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] are
+   * optional. Only set when any of these fields isn't available for some
+   * reason. It is highly recommended not to set this field and provide accurate
+   * [domain][google.cloud.talent.v4beta1.RequestMetadata.domain],
+   * [session_id][google.cloud.talent.v4beta1.RequestMetadata.session_id] and
+   * [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] for the best
+   * service experience.
+   * 
+ * + * bool allow_missing_ids = 4; + */ + public boolean getAllowMissingIds() { + return allowMissingIds_; + } + + public static final int DEVICE_INFO_FIELD_NUMBER = 5; + private com.google.cloud.talent.v4beta1.DeviceInfo deviceInfo_; + /** + * + * + *
+   * Optional.
+   * The type of device used by the job seeker at the time of the call to the
+   * service.
+   * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo device_info = 5; + */ + public boolean hasDeviceInfo() { + return deviceInfo_ != null; + } + /** + * + * + *
+   * Optional.
+   * The type of device used by the job seeker at the time of the call to the
+   * service.
+   * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo device_info = 5; + */ + public com.google.cloud.talent.v4beta1.DeviceInfo getDeviceInfo() { + return deviceInfo_ == null + ? com.google.cloud.talent.v4beta1.DeviceInfo.getDefaultInstance() + : deviceInfo_; + } + /** + * + * + *
+   * Optional.
+   * The type of device used by the job seeker at the time of the call to the
+   * service.
+   * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo device_info = 5; + */ + public com.google.cloud.talent.v4beta1.DeviceInfoOrBuilder getDeviceInfoOrBuilder() { + return getDeviceInfo(); + } + + 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 (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, domain_); + } + if (!getSessionIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sessionId_); + } + if (!getUserIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, userId_); + } + if (allowMissingIds_ != false) { + output.writeBool(4, allowMissingIds_); + } + if (deviceInfo_ != null) { + output.writeMessage(5, getDeviceInfo()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, domain_); + } + if (!getSessionIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sessionId_); + } + if (!getUserIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, userId_); + } + if (allowMissingIds_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, allowMissingIds_); + } + if (deviceInfo_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDeviceInfo()); + } + size += unknownFields.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.cloud.talent.v4beta1.RequestMetadata)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.RequestMetadata other = + (com.google.cloud.talent.v4beta1.RequestMetadata) obj; + + boolean result = true; + result = result && getDomain().equals(other.getDomain()); + result = result && getSessionId().equals(other.getSessionId()); + result = result && getUserId().equals(other.getUserId()); + result = result && (getAllowMissingIds() == other.getAllowMissingIds()); + result = result && (hasDeviceInfo() == other.hasDeviceInfo()); + if (hasDeviceInfo()) { + result = result && getDeviceInfo().equals(other.getDeviceInfo()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + SESSION_ID_FIELD_NUMBER; + hash = (53 * hash) + getSessionId().hashCode(); + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + getUserId().hashCode(); + hash = (37 * hash) + ALLOW_MISSING_IDS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissingIds()); + if (hasDeviceInfo()) { + hash = (37 * hash) + DEVICE_INFO_FIELD_NUMBER; + hash = (53 * hash) + getDeviceInfo().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.RequestMetadata parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.RequestMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.RequestMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.RequestMetadata 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.cloud.talent.v4beta1.RequestMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.RequestMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.RequestMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.RequestMetadata 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.cloud.talent.v4beta1.RequestMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.RequestMetadata 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.cloud.talent.v4beta1.RequestMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.RequestMetadata 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.cloud.talent.v4beta1.RequestMetadata 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; + } + /** + * + * + *
+   * Input only.
+   * Meta information related to the job searcher or entity
+   * conducting the job search. This information is used to improve the
+   * performance of the service.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.RequestMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.RequestMetadata) + com.google.cloud.talent.v4beta1.RequestMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_RequestMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_RequestMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.RequestMetadata.class, + com.google.cloud.talent.v4beta1.RequestMetadata.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.RequestMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + domain_ = ""; + + sessionId_ = ""; + + userId_ = ""; + + allowMissingIds_ = false; + + if (deviceInfoBuilder_ == null) { + deviceInfo_ = null; + } else { + deviceInfo_ = null; + deviceInfoBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_RequestMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.RequestMetadata getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.RequestMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.RequestMetadata build() { + com.google.cloud.talent.v4beta1.RequestMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.RequestMetadata buildPartial() { + com.google.cloud.talent.v4beta1.RequestMetadata result = + new com.google.cloud.talent.v4beta1.RequestMetadata(this); + result.domain_ = domain_; + result.sessionId_ = sessionId_; + result.userId_ = userId_; + result.allowMissingIds_ = allowMissingIds_; + if (deviceInfoBuilder_ == null) { + result.deviceInfo_ = deviceInfo_; + } else { + result.deviceInfo_ = deviceInfoBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.RequestMetadata) { + return mergeFrom((com.google.cloud.talent.v4beta1.RequestMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.RequestMetadata other) { + if (other == com.google.cloud.talent.v4beta1.RequestMetadata.getDefaultInstance()) + return this; + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (!other.getSessionId().isEmpty()) { + sessionId_ = other.sessionId_; + onChanged(); + } + if (!other.getUserId().isEmpty()) { + userId_ = other.userId_; + onChanged(); + } + if (other.getAllowMissingIds() != false) { + setAllowMissingIds(other.getAllowMissingIds()); + } + if (other.hasDeviceInfo()) { + mergeDeviceInfo(other.getDeviceInfo()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.RequestMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.RequestMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object domain_ = ""; + /** + * + * + *
+     * Required if
+     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+     * is unset or `false`.
+     * The client-defined scope or source of the service call, which typically
+     * is the domain on
+     * which the service has been implemented and is currently being run.
+     * For example, if the service is being run by client <em>Foo, Inc.</em>, on
+     * job board www.foo.com and career site www.bar.com, then this field is
+     * set to "foo.com" for use on the job board, and "bar.com" for use on the
+     * career site.
+     * Note that any improvements to the model for a particular tenant site rely
+     * on this field being set correctly to a unique domain.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string domain = 1; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required if
+     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+     * is unset or `false`.
+     * The client-defined scope or source of the service call, which typically
+     * is the domain on
+     * which the service has been implemented and is currently being run.
+     * For example, if the service is being run by client <em>Foo, Inc.</em>, on
+     * job board www.foo.com and career site www.bar.com, then this field is
+     * set to "foo.com" for use on the job board, and "bar.com" for use on the
+     * career site.
+     * Note that any improvements to the model for a particular tenant site rely
+     * on this field being set correctly to a unique domain.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string domain = 1; + */ + public com.google.protobuf.ByteString getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required if
+     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+     * is unset or `false`.
+     * The client-defined scope or source of the service call, which typically
+     * is the domain on
+     * which the service has been implemented and is currently being run.
+     * For example, if the service is being run by client <em>Foo, Inc.</em>, on
+     * job board www.foo.com and career site www.bar.com, then this field is
+     * set to "foo.com" for use on the job board, and "bar.com" for use on the
+     * career site.
+     * Note that any improvements to the model for a particular tenant site rely
+     * on this field being set correctly to a unique domain.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string domain = 1; + */ + public Builder setDomain(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required if
+     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+     * is unset or `false`.
+     * The client-defined scope or source of the service call, which typically
+     * is the domain on
+     * which the service has been implemented and is currently being run.
+     * For example, if the service is being run by client <em>Foo, Inc.</em>, on
+     * job board www.foo.com and career site www.bar.com, then this field is
+     * set to "foo.com" for use on the job board, and "bar.com" for use on the
+     * career site.
+     * Note that any improvements to the model for a particular tenant site rely
+     * on this field being set correctly to a unique domain.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string domain = 1; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required if
+     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+     * is unset or `false`.
+     * The client-defined scope or source of the service call, which typically
+     * is the domain on
+     * which the service has been implemented and is currently being run.
+     * For example, if the service is being run by client <em>Foo, Inc.</em>, on
+     * job board www.foo.com and career site www.bar.com, then this field is
+     * set to "foo.com" for use on the job board, and "bar.com" for use on the
+     * career site.
+     * Note that any improvements to the model for a particular tenant site rely
+     * on this field being set correctly to a unique domain.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string domain = 1; + */ + public Builder setDomainBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private java.lang.Object sessionId_ = ""; + /** + * + * + *
+     * Required if
+     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+     * is unset or `false`.
+     * A unique session identification string. A session is defined as the
+     * duration of an end user's interaction with the service over a certain
+     * period.
+     * Obfuscate this field for privacy concerns before
+     * providing it to the service.
+     * Note that any improvements to the model for a particular tenant site rely
+     * on this field being set correctly to a unique session ID.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string session_id = 2; + */ + public java.lang.String getSessionId() { + java.lang.Object ref = sessionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sessionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required if
+     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+     * is unset or `false`.
+     * A unique session identification string. A session is defined as the
+     * duration of an end user's interaction with the service over a certain
+     * period.
+     * Obfuscate this field for privacy concerns before
+     * providing it to the service.
+     * Note that any improvements to the model for a particular tenant site rely
+     * on this field being set correctly to a unique session ID.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string session_id = 2; + */ + public com.google.protobuf.ByteString getSessionIdBytes() { + java.lang.Object ref = sessionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sessionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required if
+     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+     * is unset or `false`.
+     * A unique session identification string. A session is defined as the
+     * duration of an end user's interaction with the service over a certain
+     * period.
+     * Obfuscate this field for privacy concerns before
+     * providing it to the service.
+     * Note that any improvements to the model for a particular tenant site rely
+     * on this field being set correctly to a unique session ID.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string session_id = 2; + */ + public Builder setSessionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + sessionId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required if
+     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+     * is unset or `false`.
+     * A unique session identification string. A session is defined as the
+     * duration of an end user's interaction with the service over a certain
+     * period.
+     * Obfuscate this field for privacy concerns before
+     * providing it to the service.
+     * Note that any improvements to the model for a particular tenant site rely
+     * on this field being set correctly to a unique session ID.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string session_id = 2; + */ + public Builder clearSessionId() { + + sessionId_ = getDefaultInstance().getSessionId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required if
+     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+     * is unset or `false`.
+     * A unique session identification string. A session is defined as the
+     * duration of an end user's interaction with the service over a certain
+     * period.
+     * Obfuscate this field for privacy concerns before
+     * providing it to the service.
+     * Note that any improvements to the model for a particular tenant site rely
+     * on this field being set correctly to a unique session ID.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string session_id = 2; + */ + public Builder setSessionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + sessionId_ = value; + onChanged(); + return this; + } + + private java.lang.Object userId_ = ""; + /** + * + * + *
+     * Required if
+     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+     * is unset or `false`.
+     * A unique user identification string, as determined by the client.
+     * To have the strongest positive impact on search quality
+     * make sure the client-level is unique.
+     * Obfuscate this field for privacy concerns before
+     * providing it to the service.
+     * Note that any improvements to the model for a particular tenant site rely
+     * on this field being set correctly to a unique user ID.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string user_id = 3; + */ + public java.lang.String getUserId() { + java.lang.Object ref = userId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required if
+     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+     * is unset or `false`.
+     * A unique user identification string, as determined by the client.
+     * To have the strongest positive impact on search quality
+     * make sure the client-level is unique.
+     * Obfuscate this field for privacy concerns before
+     * providing it to the service.
+     * Note that any improvements to the model for a particular tenant site rely
+     * on this field being set correctly to a unique user ID.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string user_id = 3; + */ + public com.google.protobuf.ByteString getUserIdBytes() { + java.lang.Object ref = userId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required if
+     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+     * is unset or `false`.
+     * A unique user identification string, as determined by the client.
+     * To have the strongest positive impact on search quality
+     * make sure the client-level is unique.
+     * Obfuscate this field for privacy concerns before
+     * providing it to the service.
+     * Note that any improvements to the model for a particular tenant site rely
+     * on this field being set correctly to a unique user ID.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string user_id = 3; + */ + public Builder setUserId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + userId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required if
+     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+     * is unset or `false`.
+     * A unique user identification string, as determined by the client.
+     * To have the strongest positive impact on search quality
+     * make sure the client-level is unique.
+     * Obfuscate this field for privacy concerns before
+     * providing it to the service.
+     * Note that any improvements to the model for a particular tenant site rely
+     * on this field being set correctly to a unique user ID.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string user_id = 3; + */ + public Builder clearUserId() { + + userId_ = getDefaultInstance().getUserId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required if
+     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+     * is unset or `false`.
+     * A unique user identification string, as determined by the client.
+     * To have the strongest positive impact on search quality
+     * make sure the client-level is unique.
+     * Obfuscate this field for privacy concerns before
+     * providing it to the service.
+     * Note that any improvements to the model for a particular tenant site rely
+     * on this field being set correctly to a unique user ID.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string user_id = 3; + */ + public Builder setUserIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + userId_ = value; + onChanged(); + return this; + } + + private boolean allowMissingIds_; + /** + * + * + *
+     * Optional.
+     * If set to `true`,
+     * [domain][google.cloud.talent.v4beta1.RequestMetadata.domain],
+     * [session_id][google.cloud.talent.v4beta1.RequestMetadata.session_id] and
+     * [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] are
+     * optional. Only set when any of these fields isn't available for some
+     * reason. It is highly recommended not to set this field and provide accurate
+     * [domain][google.cloud.talent.v4beta1.RequestMetadata.domain],
+     * [session_id][google.cloud.talent.v4beta1.RequestMetadata.session_id] and
+     * [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] for the best
+     * service experience.
+     * 
+ * + * bool allow_missing_ids = 4; + */ + public boolean getAllowMissingIds() { + return allowMissingIds_; + } + /** + * + * + *
+     * Optional.
+     * If set to `true`,
+     * [domain][google.cloud.talent.v4beta1.RequestMetadata.domain],
+     * [session_id][google.cloud.talent.v4beta1.RequestMetadata.session_id] and
+     * [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] are
+     * optional. Only set when any of these fields isn't available for some
+     * reason. It is highly recommended not to set this field and provide accurate
+     * [domain][google.cloud.talent.v4beta1.RequestMetadata.domain],
+     * [session_id][google.cloud.talent.v4beta1.RequestMetadata.session_id] and
+     * [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] for the best
+     * service experience.
+     * 
+ * + * bool allow_missing_ids = 4; + */ + public Builder setAllowMissingIds(boolean value) { + + allowMissingIds_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * If set to `true`,
+     * [domain][google.cloud.talent.v4beta1.RequestMetadata.domain],
+     * [session_id][google.cloud.talent.v4beta1.RequestMetadata.session_id] and
+     * [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] are
+     * optional. Only set when any of these fields isn't available for some
+     * reason. It is highly recommended not to set this field and provide accurate
+     * [domain][google.cloud.talent.v4beta1.RequestMetadata.domain],
+     * [session_id][google.cloud.talent.v4beta1.RequestMetadata.session_id] and
+     * [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] for the best
+     * service experience.
+     * 
+ * + * bool allow_missing_ids = 4; + */ + public Builder clearAllowMissingIds() { + + allowMissingIds_ = false; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.DeviceInfo deviceInfo_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.DeviceInfo, + com.google.cloud.talent.v4beta1.DeviceInfo.Builder, + com.google.cloud.talent.v4beta1.DeviceInfoOrBuilder> + deviceInfoBuilder_; + /** + * + * + *
+     * Optional.
+     * The type of device used by the job seeker at the time of the call to the
+     * service.
+     * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo device_info = 5; + */ + public boolean hasDeviceInfo() { + return deviceInfoBuilder_ != null || deviceInfo_ != null; + } + /** + * + * + *
+     * Optional.
+     * The type of device used by the job seeker at the time of the call to the
+     * service.
+     * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo device_info = 5; + */ + public com.google.cloud.talent.v4beta1.DeviceInfo getDeviceInfo() { + if (deviceInfoBuilder_ == null) { + return deviceInfo_ == null + ? com.google.cloud.talent.v4beta1.DeviceInfo.getDefaultInstance() + : deviceInfo_; + } else { + return deviceInfoBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The type of device used by the job seeker at the time of the call to the
+     * service.
+     * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo device_info = 5; + */ + public Builder setDeviceInfo(com.google.cloud.talent.v4beta1.DeviceInfo value) { + if (deviceInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deviceInfo_ = value; + onChanged(); + } else { + deviceInfoBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The type of device used by the job seeker at the time of the call to the
+     * service.
+     * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo device_info = 5; + */ + public Builder setDeviceInfo( + com.google.cloud.talent.v4beta1.DeviceInfo.Builder builderForValue) { + if (deviceInfoBuilder_ == null) { + deviceInfo_ = builderForValue.build(); + onChanged(); + } else { + deviceInfoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The type of device used by the job seeker at the time of the call to the
+     * service.
+     * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo device_info = 5; + */ + public Builder mergeDeviceInfo(com.google.cloud.talent.v4beta1.DeviceInfo value) { + if (deviceInfoBuilder_ == null) { + if (deviceInfo_ != null) { + deviceInfo_ = + com.google.cloud.talent.v4beta1.DeviceInfo.newBuilder(deviceInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + deviceInfo_ = value; + } + onChanged(); + } else { + deviceInfoBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The type of device used by the job seeker at the time of the call to the
+     * service.
+     * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo device_info = 5; + */ + public Builder clearDeviceInfo() { + if (deviceInfoBuilder_ == null) { + deviceInfo_ = null; + onChanged(); + } else { + deviceInfo_ = null; + deviceInfoBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The type of device used by the job seeker at the time of the call to the
+     * service.
+     * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo device_info = 5; + */ + public com.google.cloud.talent.v4beta1.DeviceInfo.Builder getDeviceInfoBuilder() { + + onChanged(); + return getDeviceInfoFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The type of device used by the job seeker at the time of the call to the
+     * service.
+     * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo device_info = 5; + */ + public com.google.cloud.talent.v4beta1.DeviceInfoOrBuilder getDeviceInfoOrBuilder() { + if (deviceInfoBuilder_ != null) { + return deviceInfoBuilder_.getMessageOrBuilder(); + } else { + return deviceInfo_ == null + ? com.google.cloud.talent.v4beta1.DeviceInfo.getDefaultInstance() + : deviceInfo_; + } + } + /** + * + * + *
+     * Optional.
+     * The type of device used by the job seeker at the time of the call to the
+     * service.
+     * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo device_info = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.DeviceInfo, + com.google.cloud.talent.v4beta1.DeviceInfo.Builder, + com.google.cloud.talent.v4beta1.DeviceInfoOrBuilder> + getDeviceInfoFieldBuilder() { + if (deviceInfoBuilder_ == null) { + deviceInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.DeviceInfo, + com.google.cloud.talent.v4beta1.DeviceInfo.Builder, + com.google.cloud.talent.v4beta1.DeviceInfoOrBuilder>( + getDeviceInfo(), getParentForChildren(), isClean()); + deviceInfo_ = null; + } + return deviceInfoBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.RequestMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.RequestMetadata) + private static final com.google.cloud.talent.v4beta1.RequestMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.RequestMetadata(); + } + + public static com.google.cloud.talent.v4beta1.RequestMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RequestMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RequestMetadata(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.RequestMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RequestMetadataOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RequestMetadataOrBuilder.java new file mode 100644 index 000000000000..cf63ae281cc2 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RequestMetadataOrBuilder.java @@ -0,0 +1,195 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +public interface RequestMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.RequestMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required if
+   * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+   * is unset or `false`.
+   * The client-defined scope or source of the service call, which typically
+   * is the domain on
+   * which the service has been implemented and is currently being run.
+   * For example, if the service is being run by client <em>Foo, Inc.</em>, on
+   * job board www.foo.com and career site www.bar.com, then this field is
+   * set to "foo.com" for use on the job board, and "bar.com" for use on the
+   * career site.
+   * Note that any improvements to the model for a particular tenant site rely
+   * on this field being set correctly to a unique domain.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string domain = 1; + */ + java.lang.String getDomain(); + /** + * + * + *
+   * Required if
+   * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+   * is unset or `false`.
+   * The client-defined scope or source of the service call, which typically
+   * is the domain on
+   * which the service has been implemented and is currently being run.
+   * For example, if the service is being run by client <em>Foo, Inc.</em>, on
+   * job board www.foo.com and career site www.bar.com, then this field is
+   * set to "foo.com" for use on the job board, and "bar.com" for use on the
+   * career site.
+   * Note that any improvements to the model for a particular tenant site rely
+   * on this field being set correctly to a unique domain.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string domain = 1; + */ + com.google.protobuf.ByteString getDomainBytes(); + + /** + * + * + *
+   * Required if
+   * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+   * is unset or `false`.
+   * A unique session identification string. A session is defined as the
+   * duration of an end user's interaction with the service over a certain
+   * period.
+   * Obfuscate this field for privacy concerns before
+   * providing it to the service.
+   * Note that any improvements to the model for a particular tenant site rely
+   * on this field being set correctly to a unique session ID.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string session_id = 2; + */ + java.lang.String getSessionId(); + /** + * + * + *
+   * Required if
+   * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+   * is unset or `false`.
+   * A unique session identification string. A session is defined as the
+   * duration of an end user's interaction with the service over a certain
+   * period.
+   * Obfuscate this field for privacy concerns before
+   * providing it to the service.
+   * Note that any improvements to the model for a particular tenant site rely
+   * on this field being set correctly to a unique session ID.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string session_id = 2; + */ + com.google.protobuf.ByteString getSessionIdBytes(); + + /** + * + * + *
+   * Required if
+   * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+   * is unset or `false`.
+   * A unique user identification string, as determined by the client.
+   * To have the strongest positive impact on search quality
+   * make sure the client-level is unique.
+   * Obfuscate this field for privacy concerns before
+   * providing it to the service.
+   * Note that any improvements to the model for a particular tenant site rely
+   * on this field being set correctly to a unique user ID.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string user_id = 3; + */ + java.lang.String getUserId(); + /** + * + * + *
+   * Required if
+   * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
+   * is unset or `false`.
+   * A unique user identification string, as determined by the client.
+   * To have the strongest positive impact on search quality
+   * make sure the client-level is unique.
+   * Obfuscate this field for privacy concerns before
+   * providing it to the service.
+   * Note that any improvements to the model for a particular tenant site rely
+   * on this field being set correctly to a unique user ID.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string user_id = 3; + */ + com.google.protobuf.ByteString getUserIdBytes(); + + /** + * + * + *
+   * Optional.
+   * If set to `true`,
+   * [domain][google.cloud.talent.v4beta1.RequestMetadata.domain],
+   * [session_id][google.cloud.talent.v4beta1.RequestMetadata.session_id] and
+   * [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] are
+   * optional. Only set when any of these fields isn't available for some
+   * reason. It is highly recommended not to set this field and provide accurate
+   * [domain][google.cloud.talent.v4beta1.RequestMetadata.domain],
+   * [session_id][google.cloud.talent.v4beta1.RequestMetadata.session_id] and
+   * [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] for the best
+   * service experience.
+   * 
+ * + * bool allow_missing_ids = 4; + */ + boolean getAllowMissingIds(); + + /** + * + * + *
+   * Optional.
+   * The type of device used by the job seeker at the time of the call to the
+   * service.
+   * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo device_info = 5; + */ + boolean hasDeviceInfo(); + /** + * + * + *
+   * Optional.
+   * The type of device used by the job seeker at the time of the call to the
+   * service.
+   * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo device_info = 5; + */ + com.google.cloud.talent.v4beta1.DeviceInfo getDeviceInfo(); + /** + * + * + *
+   * Optional.
+   * The type of device used by the job seeker at the time of the call to the
+   * service.
+   * 
+ * + * .google.cloud.talent.v4beta1.DeviceInfo device_info = 5; + */ + com.google.cloud.talent.v4beta1.DeviceInfoOrBuilder getDeviceInfoOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResponseMetadata.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResponseMetadata.java new file mode 100644 index 000000000000..34e358a38300 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResponseMetadata.java @@ -0,0 +1,607 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Output only.
+ * Additional information returned to client, such as debugging information.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ResponseMetadata} + */ +public final class ResponseMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ResponseMetadata) + ResponseMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use ResponseMetadata.newBuilder() to construct. + private ResponseMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ResponseMetadata() { + requestId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ResponseMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + requestId_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_ResponseMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_ResponseMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ResponseMetadata.class, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder.class); + } + + public static final int REQUEST_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object requestId_; + /** + * + * + *
+   * A unique id associated with this call.
+   * This id is logged for tracking purposes.
+   * 
+ * + * string request_id = 1; + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + /** + * + * + *
+   * A unique id associated with this call.
+   * This id is logged for tracking purposes.
+   * 
+ * + * string request_id = 1; + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 (!getRequestIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, requestId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getRequestIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, requestId_); + } + size += unknownFields.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.cloud.talent.v4beta1.ResponseMetadata)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.ResponseMetadata other = + (com.google.cloud.talent.v4beta1.ResponseMetadata) obj; + + boolean result = true; + result = result && getRequestId().equals(other.getRequestId()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.ResponseMetadata parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ResponseMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ResponseMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ResponseMetadata 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.cloud.talent.v4beta1.ResponseMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.ResponseMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.ResponseMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ResponseMetadata 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.cloud.talent.v4beta1.ResponseMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ResponseMetadata 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.cloud.talent.v4beta1.ResponseMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.ResponseMetadata 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.cloud.talent.v4beta1.ResponseMetadata 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; + } + /** + * + * + *
+   * Output only.
+   * Additional information returned to client, such as debugging information.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.ResponseMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ResponseMetadata) + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_ResponseMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_ResponseMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.ResponseMetadata.class, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.ResponseMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + requestId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_ResponseMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ResponseMetadata getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ResponseMetadata build() { + com.google.cloud.talent.v4beta1.ResponseMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.ResponseMetadata buildPartial() { + com.google.cloud.talent.v4beta1.ResponseMetadata result = + new com.google.cloud.talent.v4beta1.ResponseMetadata(this); + result.requestId_ = requestId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.ResponseMetadata) { + return mergeFrom((com.google.cloud.talent.v4beta1.ResponseMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ResponseMetadata other) { + if (other == com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance()) + return this; + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.ResponseMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.ResponseMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
+     * A unique id associated with this call.
+     * This id is logged for tracking purposes.
+     * 
+ * + * string request_id = 1; + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A unique id associated with this call.
+     * This id is logged for tracking purposes.
+     * 
+ * + * string request_id = 1; + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A unique id associated with this call.
+     * This id is logged for tracking purposes.
+     * 
+ * + * string request_id = 1; + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + requestId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A unique id associated with this call.
+     * This id is logged for tracking purposes.
+     * 
+ * + * string request_id = 1; + */ + public Builder clearRequestId() { + + requestId_ = getDefaultInstance().getRequestId(); + onChanged(); + return this; + } + /** + * + * + *
+     * A unique id associated with this call.
+     * This id is logged for tracking purposes.
+     * 
+ * + * string request_id = 1; + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestId_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ResponseMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ResponseMetadata) + private static final com.google.cloud.talent.v4beta1.ResponseMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ResponseMetadata(); + } + + public static com.google.cloud.talent.v4beta1.ResponseMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResponseMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResponseMetadata(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.ResponseMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResponseMetadataOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResponseMetadataOrBuilder.java new file mode 100644 index 000000000000..57e7d0d0e06d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResponseMetadataOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +public interface ResponseMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ResponseMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A unique id associated with this call.
+   * This id is logged for tracking purposes.
+   * 
+ * + * string request_id = 1; + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * A unique id associated with this call.
+   * This id is logged for tracking purposes.
+   * 
+ * + * string request_id = 1; + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResumeServiceProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResumeServiceProto.java new file mode 100644 index 000000000000..754986a7458e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResumeServiceProto.java @@ -0,0 +1,107 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/resume_service.proto + +package com.google.cloud.talent.v4beta1; + +public final class ResumeServiceProto { + private ResumeServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ParseResumeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ParseResumeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ParseResumeOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ParseResumeOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ParseResumeResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ParseResumeResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/talent/v4beta1/resume_ser" + + "vice.proto\022\033google.cloud.talent.v4beta1\032" + + "\034google/api/annotations.proto\032)google/cl" + + "oud/talent/v4beta1/profile.proto\"\242\001\n\022Par" + + "seResumeRequest\022\016\n\006parent\030\001 \001(\t\022\016\n\006resum" + + "e\030\002 \001(\014\022\023\n\013region_code\030\003 \001(\t\022\025\n\rlanguage" + + "_code\030\004 \001(\t\022@\n\007options\030\005 \001(\0132/.google.cl" + + "oud.talent.v4beta1.ParseResumeOptions\"M\n" + + "\022ParseResumeOptions\022\022\n\nenable_ocr\030\001 \001(\010\022" + + "#\n\033enable_full_skill_detection\030\002 \001(\010\"^\n\023" + + "ParseResumeResponse\0225\n\007profile\030\001 \001(\0132$.g" + + "oogle.cloud.talent.v4beta1.Profile\022\020\n\010ra" + + "w_text\030\002 \001(\t2\271\001\n\rResumeService\022\247\001\n\013Parse" + + "Resume\022/.google.cloud.talent.v4beta1.Par" + + "seResumeRequest\0320.google.cloud.talent.v4" + + "beta1.ParseResumeResponse\"5\202\323\344\223\002/\"*/v4be" + + "ta1/{parent=projects/*}/resumes:parse:\001*" + + "B\200\001\n\037com.google.cloud.talent.v4beta1B\022Re" + + "sumeServiceProtoP\001ZAgoogle.golang.org/ge" + + "nproto/googleapis/cloud/talent/v4beta1;t" + + "alent\242\002\003CTSb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.talent.v4beta1.ProfileResourceProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_talent_v4beta1_ParseResumeRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_talent_v4beta1_ParseResumeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ParseResumeRequest_descriptor, + new java.lang.String[] { + "Parent", "Resume", "RegionCode", "LanguageCode", "Options", + }); + internal_static_google_cloud_talent_v4beta1_ParseResumeOptions_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_talent_v4beta1_ParseResumeOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ParseResumeOptions_descriptor, + new java.lang.String[] { + "EnableOcr", "EnableFullSkillDetection", + }); + internal_static_google_cloud_talent_v4beta1_ParseResumeResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_talent_v4beta1_ParseResumeResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ParseResumeResponse_descriptor, + new java.lang.String[] { + "Profile", "RawText", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.AnnotationsProto.http); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.talent.v4beta1.ProfileResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsRequest.java new file mode 100644 index 000000000000..ebca35da3298 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsRequest.java @@ -0,0 +1,7364 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * The Request body of the `SearchJobs` call.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SearchJobsRequest} + */ +public final class SearchJobsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.SearchJobsRequest) + SearchJobsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchJobsRequest.newBuilder() to construct. + private SearchJobsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchJobsRequest() { + parent_ = ""; + searchMode_ = 0; + enableBroadening_ = false; + requirePreciseResultSize_ = false; + histogramQueries_ = java.util.Collections.emptyList(); + jobView_ = 0; + offset_ = 0; + pageSize_ = 0; + pageToken_ = ""; + orderBy_ = ""; + diversificationLevel_ = 0; + disableKeywordMatch_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SearchJobsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + searchMode_ = rawValue; + break; + } + case 26: + { + com.google.cloud.talent.v4beta1.RequestMetadata.Builder subBuilder = null; + if (requestMetadata_ != null) { + subBuilder = requestMetadata_.toBuilder(); + } + requestMetadata_ = + input.readMessage( + com.google.cloud.talent.v4beta1.RequestMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(requestMetadata_); + requestMetadata_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + com.google.cloud.talent.v4beta1.JobQuery.Builder subBuilder = null; + if (jobQuery_ != null) { + subBuilder = jobQuery_.toBuilder(); + } + jobQuery_ = + input.readMessage( + com.google.cloud.talent.v4beta1.JobQuery.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(jobQuery_); + jobQuery_ = subBuilder.buildPartial(); + } + + break; + } + case 40: + { + enableBroadening_ = input.readBool(); + break; + } + case 48: + { + requirePreciseResultSize_ = input.readBool(); + break; + } + case 58: + { + if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + histogramQueries_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000040; + } + histogramQueries_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.HistogramQuery.parser(), extensionRegistry)); + break; + } + case 64: + { + int rawValue = input.readEnum(); + + jobView_ = rawValue; + break; + } + case 72: + { + offset_ = input.readInt32(); + break; + } + case 80: + { + pageSize_ = input.readInt32(); + break; + } + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = s; + break; + } + case 104: + { + int rawValue = input.readEnum(); + + diversificationLevel_ = rawValue; + break; + } + case 114: + { + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.Builder + subBuilder = null; + if (customRankingInfo_ != null) { + subBuilder = customRankingInfo_.toBuilder(); + } + customRankingInfo_ = + input.readMessage( + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(customRankingInfo_); + customRankingInfo_ = subBuilder.buildPartial(); + } + + break; + } + case 128: + { + disableKeywordMatch_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + histogramQueries_ = java.util.Collections.unmodifiableList(histogramQueries_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SearchJobsRequest.class, + com.google.cloud.talent.v4beta1.SearchJobsRequest.Builder.class); + } + + /** + * + * + *
+   * A string-represented enumeration of the job search mode. The service
+   * operate differently for different modes of service.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode} + */ + public enum SearchMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The mode of the search method isn't specified.
+     * 
+ * + * SEARCH_MODE_UNSPECIFIED = 0; + */ + SEARCH_MODE_UNSPECIFIED(0), + /** + * + * + *
+     * The job search matches against all jobs, and featured jobs
+     * (jobs with promotionValue > 0) are not specially handled.
+     * 
+ * + * JOB_SEARCH = 1; + */ + JOB_SEARCH(1), + /** + * + * + *
+     * The job search matches only against featured jobs (jobs with a
+     * promotionValue > 0). This method doesn't return any jobs having a
+     * promotionValue <= 0. The search results order is determined by the
+     * promotionValue (jobs with a higher promotionValue are returned higher up
+     * in the search results), with relevance being used as a tiebreaker.
+     * 
+ * + * FEATURED_JOB_SEARCH = 2; + */ + FEATURED_JOB_SEARCH(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * The mode of the search method isn't specified.
+     * 
+ * + * SEARCH_MODE_UNSPECIFIED = 0; + */ + public static final int SEARCH_MODE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The job search matches against all jobs, and featured jobs
+     * (jobs with promotionValue > 0) are not specially handled.
+     * 
+ * + * JOB_SEARCH = 1; + */ + public static final int JOB_SEARCH_VALUE = 1; + /** + * + * + *
+     * The job search matches only against featured jobs (jobs with a
+     * promotionValue > 0). This method doesn't return any jobs having a
+     * promotionValue <= 0. The search results order is determined by the
+     * promotionValue (jobs with a higher promotionValue are returned higher up
+     * in the search results), with relevance being used as a tiebreaker.
+     * 
+ * + * FEATURED_JOB_SEARCH = 2; + */ + public static final int FEATURED_JOB_SEARCH_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static SearchMode valueOf(int value) { + return forNumber(value); + } + + public static SearchMode forNumber(int value) { + switch (value) { + case 0: + return SEARCH_MODE_UNSPECIFIED; + case 1: + return JOB_SEARCH; + case 2: + return FEATURED_JOB_SEARCH; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SearchMode findValueByNumber(int number) { + return SearchMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.SearchJobsRequest.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final SearchMode[] VALUES = values(); + + public static SearchMode 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()]; + } + + private final int value; + + private SearchMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode) + } + + /** + * + * + *
+   * Controls whether highly similar jobs are returned next to each other in
+   * the search results. Jobs are identified as highly similar based on
+   * their titles, job categories, and locations. Highly similar results are
+   * clustered so that only one representative job of the cluster is
+   * displayed to the job seeker higher up in the results, with the other jobs
+   * being displayed lower down in the results.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel} + */ + public enum DiversificationLevel implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The diversification level isn't specified.
+     * 
+ * + * DIVERSIFICATION_LEVEL_UNSPECIFIED = 0; + */ + DIVERSIFICATION_LEVEL_UNSPECIFIED(0), + /** + * + * + *
+     * Disables diversification. Jobs that would normally be pushed to the last
+     * page would not have their positions altered. This may result in highly
+     * similar jobs appearing in sequence in the search results.
+     * 
+ * + * DISABLED = 1; + */ + DISABLED(1), + /** + * + * + *
+     * Default diversifying behavior. The result list is ordered so that
+     * highly similar results are pushed to the end of the last page of search
+     * results.
+     * 
+ * + * SIMPLE = 2; + */ + SIMPLE(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * The diversification level isn't specified.
+     * 
+ * + * DIVERSIFICATION_LEVEL_UNSPECIFIED = 0; + */ + public static final int DIVERSIFICATION_LEVEL_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Disables diversification. Jobs that would normally be pushed to the last
+     * page would not have their positions altered. This may result in highly
+     * similar jobs appearing in sequence in the search results.
+     * 
+ * + * DISABLED = 1; + */ + public static final int DISABLED_VALUE = 1; + /** + * + * + *
+     * Default diversifying behavior. The result list is ordered so that
+     * highly similar results are pushed to the end of the last page of search
+     * results.
+     * 
+ * + * SIMPLE = 2; + */ + public static final int SIMPLE_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static DiversificationLevel valueOf(int value) { + return forNumber(value); + } + + public static DiversificationLevel forNumber(int value) { + switch (value) { + case 0: + return DIVERSIFICATION_LEVEL_UNSPECIFIED; + case 1: + return DISABLED; + case 2: + return SIMPLE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DiversificationLevel findValueByNumber(int number) { + return DiversificationLevel.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.SearchJobsRequest.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final DiversificationLevel[] VALUES = values(); + + public static DiversificationLevel 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()]; + } + + private final int value; + + private DiversificationLevel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel) + } + + public interface CustomRankingInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required.
+     * Controls over how important the score of
+     * [CustomRankingInfo.ranking_expression][google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ranking_expression]
+     * gets applied to job's final ranking position.
+     * An error is thrown if not specified.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel importance_level = 1; + * + */ + int getImportanceLevelValue(); + /** + * + * + *
+     * Required.
+     * Controls over how important the score of
+     * [CustomRankingInfo.ranking_expression][google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ranking_expression]
+     * gets applied to job's final ranking position.
+     * An error is thrown if not specified.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel importance_level = 1; + * + */ + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel + getImportanceLevel(); + + /** + * + * + *
+     * Required.
+     * Controls over how job documents get ranked on top of existing relevance
+     * score (determined by API algorithm). The product of ranking expression
+     * and relevance score is used to determine job's final ranking position.
+     * The syntax for this expression is a subset of Google SQL syntax.
+     * Supported operators are: +, -, *, /, where the left and right side of
+     * the operator is either a numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+     * key, integer/double value or an expression that can be evaluated to a
+     * number.
+     * Parenthesis are supported to adjust calculation precedence. The
+     * expression must be < 100 characters in length.
+     * Sample ranking expression
+     * (year + 25) * 0.25 - (freshness / 0.5)
+     * 
+ * + * string ranking_expression = 2; + */ + java.lang.String getRankingExpression(); + /** + * + * + *
+     * Required.
+     * Controls over how job documents get ranked on top of existing relevance
+     * score (determined by API algorithm). The product of ranking expression
+     * and relevance score is used to determine job's final ranking position.
+     * The syntax for this expression is a subset of Google SQL syntax.
+     * Supported operators are: +, -, *, /, where the left and right side of
+     * the operator is either a numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+     * key, integer/double value or an expression that can be evaluated to a
+     * number.
+     * Parenthesis are supported to adjust calculation precedence. The
+     * expression must be < 100 characters in length.
+     * Sample ranking expression
+     * (year + 25) * 0.25 - (freshness / 0.5)
+     * 
+ * + * string ranking_expression = 2; + */ + com.google.protobuf.ByteString getRankingExpressionBytes(); + } + /** + * + * + *
+   * Input only.
+   * Custom ranking information for
+   * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo} + */ + public static final class CustomRankingInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo) + CustomRankingInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use CustomRankingInfo.newBuilder() to construct. + private CustomRankingInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CustomRankingInfo() { + importanceLevel_ = 0; + rankingExpression_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CustomRankingInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + importanceLevel_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + rankingExpression_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_CustomRankingInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_CustomRankingInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.class, + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.Builder.class); + } + + /** + * + * + *
+     * The importance level for
+     * [CustomRankingInfo.ranking_expression][google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ranking_expression].
+     * 
+ * + * Protobuf enum {@code + * google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel} + */ + public enum ImportanceLevel implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Default value if the importance level isn't specified.
+       * 
+ * + * IMPORTANCE_LEVEL_UNSPECIFIED = 0; + */ + IMPORTANCE_LEVEL_UNSPECIFIED(0), + /** + * + * + *
+       * The given ranking expression is of None importance, existing relevance
+       * score (determined by API algorithm) dominates job's final ranking
+       * position.
+       * 
+ * + * NONE = 1; + */ + NONE(1), + /** + * + * + *
+       * The given ranking expression is of Low importance in terms of job's
+       * final ranking position compared to existing relevance
+       * score (determined by API algorithm).
+       * 
+ * + * LOW = 2; + */ + LOW(2), + /** + * + * + *
+       * The given ranking expression is of Mild importance in terms of job's
+       * final ranking position compared to existing relevance
+       * score (determined by API algorithm).
+       * 
+ * + * MILD = 3; + */ + MILD(3), + /** + * + * + *
+       * The given ranking expression is of Medium importance in terms of job's
+       * final ranking position compared to existing relevance
+       * score (determined by API algorithm).
+       * 
+ * + * MEDIUM = 4; + */ + MEDIUM(4), + /** + * + * + *
+       * The given ranking expression is of High importance in terms of job's
+       * final ranking position compared to existing relevance
+       * score (determined by API algorithm).
+       * 
+ * + * HIGH = 5; + */ + HIGH(5), + /** + * + * + *
+       * The given ranking expression is of Extreme importance, and dominates
+       * job's final ranking position with existing relevance
+       * score (determined by API algorithm) ignored.
+       * 
+ * + * EXTREME = 6; + */ + EXTREME(6), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * Default value if the importance level isn't specified.
+       * 
+ * + * IMPORTANCE_LEVEL_UNSPECIFIED = 0; + */ + public static final int IMPORTANCE_LEVEL_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * The given ranking expression is of None importance, existing relevance
+       * score (determined by API algorithm) dominates job's final ranking
+       * position.
+       * 
+ * + * NONE = 1; + */ + public static final int NONE_VALUE = 1; + /** + * + * + *
+       * The given ranking expression is of Low importance in terms of job's
+       * final ranking position compared to existing relevance
+       * score (determined by API algorithm).
+       * 
+ * + * LOW = 2; + */ + public static final int LOW_VALUE = 2; + /** + * + * + *
+       * The given ranking expression is of Mild importance in terms of job's
+       * final ranking position compared to existing relevance
+       * score (determined by API algorithm).
+       * 
+ * + * MILD = 3; + */ + public static final int MILD_VALUE = 3; + /** + * + * + *
+       * The given ranking expression is of Medium importance in terms of job's
+       * final ranking position compared to existing relevance
+       * score (determined by API algorithm).
+       * 
+ * + * MEDIUM = 4; + */ + public static final int MEDIUM_VALUE = 4; + /** + * + * + *
+       * The given ranking expression is of High importance in terms of job's
+       * final ranking position compared to existing relevance
+       * score (determined by API algorithm).
+       * 
+ * + * HIGH = 5; + */ + public static final int HIGH_VALUE = 5; + /** + * + * + *
+       * The given ranking expression is of Extreme importance, and dominates
+       * job's final ranking position with existing relevance
+       * score (determined by API algorithm) ignored.
+       * 
+ * + * EXTREME = 6; + */ + public static final int EXTREME_VALUE = 6; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static ImportanceLevel valueOf(int value) { + return forNumber(value); + } + + public static ImportanceLevel forNumber(int value) { + switch (value) { + case 0: + return IMPORTANCE_LEVEL_UNSPECIFIED; + case 1: + return NONE; + case 2: + return LOW; + case 3: + return MILD; + case 4: + return MEDIUM; + case 5: + return HIGH; + case 6: + return EXTREME; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ImportanceLevel findValueByNumber(int number) { + return ImportanceLevel.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ImportanceLevel[] VALUES = values(); + + public static ImportanceLevel 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()]; + } + + private final int value; + + private ImportanceLevel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel) + } + + public static final int IMPORTANCE_LEVEL_FIELD_NUMBER = 1; + private int importanceLevel_; + /** + * + * + *
+     * Required.
+     * Controls over how important the score of
+     * [CustomRankingInfo.ranking_expression][google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ranking_expression]
+     * gets applied to job's final ranking position.
+     * An error is thrown if not specified.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel importance_level = 1; + * + */ + public int getImportanceLevelValue() { + return importanceLevel_; + } + /** + * + * + *
+     * Required.
+     * Controls over how important the score of
+     * [CustomRankingInfo.ranking_expression][google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ranking_expression]
+     * gets applied to job's final ranking position.
+     * An error is thrown if not specified.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel importance_level = 1; + * + */ + public com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel + getImportanceLevel() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel result = + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel + .valueOf(importanceLevel_); + return result == null + ? com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel + .UNRECOGNIZED + : result; + } + + public static final int RANKING_EXPRESSION_FIELD_NUMBER = 2; + private volatile java.lang.Object rankingExpression_; + /** + * + * + *
+     * Required.
+     * Controls over how job documents get ranked on top of existing relevance
+     * score (determined by API algorithm). The product of ranking expression
+     * and relevance score is used to determine job's final ranking position.
+     * The syntax for this expression is a subset of Google SQL syntax.
+     * Supported operators are: +, -, *, /, where the left and right side of
+     * the operator is either a numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+     * key, integer/double value or an expression that can be evaluated to a
+     * number.
+     * Parenthesis are supported to adjust calculation precedence. The
+     * expression must be < 100 characters in length.
+     * Sample ranking expression
+     * (year + 25) * 0.25 - (freshness / 0.5)
+     * 
+ * + * string ranking_expression = 2; + */ + public java.lang.String getRankingExpression() { + java.lang.Object ref = rankingExpression_; + 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(); + rankingExpression_ = s; + return s; + } + } + /** + * + * + *
+     * Required.
+     * Controls over how job documents get ranked on top of existing relevance
+     * score (determined by API algorithm). The product of ranking expression
+     * and relevance score is used to determine job's final ranking position.
+     * The syntax for this expression is a subset of Google SQL syntax.
+     * Supported operators are: +, -, *, /, where the left and right side of
+     * the operator is either a numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+     * key, integer/double value or an expression that can be evaluated to a
+     * number.
+     * Parenthesis are supported to adjust calculation precedence. The
+     * expression must be < 100 characters in length.
+     * Sample ranking expression
+     * (year + 25) * 0.25 - (freshness / 0.5)
+     * 
+ * + * string ranking_expression = 2; + */ + public com.google.protobuf.ByteString getRankingExpressionBytes() { + java.lang.Object ref = rankingExpression_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rankingExpression_ = 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 (importanceLevel_ + != com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel + .IMPORTANCE_LEVEL_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, importanceLevel_); + } + if (!getRankingExpressionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, rankingExpression_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (importanceLevel_ + != com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel + .IMPORTANCE_LEVEL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, importanceLevel_); + } + if (!getRankingExpressionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, rankingExpression_); + } + size += unknownFields.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.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo other = + (com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo) obj; + + boolean result = true; + result = result && importanceLevel_ == other.importanceLevel_; + result = result && getRankingExpression().equals(other.getRankingExpression()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + IMPORTANCE_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + importanceLevel_; + hash = (37 * hash) + RANKING_EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getRankingExpression().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo 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.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo 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.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo + 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.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo 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.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo 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; + } + /** + * + * + *
+     * Input only.
+     * Custom ranking information for
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo) + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_CustomRankingInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_CustomRankingInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.class, + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.Builder.class); + } + + // Construct using + // com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + importanceLevel_ = 0; + + rankingExpression_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_CustomRankingInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo + getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo build() { + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo buildPartial() { + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo result = + new com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo(this); + result.importanceLevel_ = importanceLevel_; + result.rankingExpression_ = rankingExpression_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo) { + return mergeFrom( + (com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo other) { + if (other + == com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo + .getDefaultInstance()) return this; + if (other.importanceLevel_ != 0) { + setImportanceLevelValue(other.getImportanceLevelValue()); + } + if (!other.getRankingExpression().isEmpty()) { + rankingExpression_ = other.rankingExpression_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int importanceLevel_ = 0; + /** + * + * + *
+       * Required.
+       * Controls over how important the score of
+       * [CustomRankingInfo.ranking_expression][google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ranking_expression]
+       * gets applied to job's final ranking position.
+       * An error is thrown if not specified.
+       * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel importance_level = 1; + * + */ + public int getImportanceLevelValue() { + return importanceLevel_; + } + /** + * + * + *
+       * Required.
+       * Controls over how important the score of
+       * [CustomRankingInfo.ranking_expression][google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ranking_expression]
+       * gets applied to job's final ranking position.
+       * An error is thrown if not specified.
+       * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel importance_level = 1; + * + */ + public Builder setImportanceLevelValue(int value) { + importanceLevel_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Required.
+       * Controls over how important the score of
+       * [CustomRankingInfo.ranking_expression][google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ranking_expression]
+       * gets applied to job's final ranking position.
+       * An error is thrown if not specified.
+       * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel importance_level = 1; + * + */ + public com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel + getImportanceLevel() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel result = + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel + .valueOf(importanceLevel_); + return result == null + ? com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel + .UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Required.
+       * Controls over how important the score of
+       * [CustomRankingInfo.ranking_expression][google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ranking_expression]
+       * gets applied to job's final ranking position.
+       * An error is thrown if not specified.
+       * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel importance_level = 1; + * + */ + public Builder setImportanceLevel( + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel + value) { + if (value == null) { + throw new NullPointerException(); + } + + importanceLevel_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Required.
+       * Controls over how important the score of
+       * [CustomRankingInfo.ranking_expression][google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ranking_expression]
+       * gets applied to job's final ranking position.
+       * An error is thrown if not specified.
+       * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel importance_level = 1; + * + */ + public Builder clearImportanceLevel() { + + importanceLevel_ = 0; + onChanged(); + return this; + } + + private java.lang.Object rankingExpression_ = ""; + /** + * + * + *
+       * Required.
+       * Controls over how job documents get ranked on top of existing relevance
+       * score (determined by API algorithm). The product of ranking expression
+       * and relevance score is used to determine job's final ranking position.
+       * The syntax for this expression is a subset of Google SQL syntax.
+       * Supported operators are: +, -, *, /, where the left and right side of
+       * the operator is either a numeric
+       * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+       * key, integer/double value or an expression that can be evaluated to a
+       * number.
+       * Parenthesis are supported to adjust calculation precedence. The
+       * expression must be < 100 characters in length.
+       * Sample ranking expression
+       * (year + 25) * 0.25 - (freshness / 0.5)
+       * 
+ * + * string ranking_expression = 2; + */ + public java.lang.String getRankingExpression() { + java.lang.Object ref = rankingExpression_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rankingExpression_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required.
+       * Controls over how job documents get ranked on top of existing relevance
+       * score (determined by API algorithm). The product of ranking expression
+       * and relevance score is used to determine job's final ranking position.
+       * The syntax for this expression is a subset of Google SQL syntax.
+       * Supported operators are: +, -, *, /, where the left and right side of
+       * the operator is either a numeric
+       * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+       * key, integer/double value or an expression that can be evaluated to a
+       * number.
+       * Parenthesis are supported to adjust calculation precedence. The
+       * expression must be < 100 characters in length.
+       * Sample ranking expression
+       * (year + 25) * 0.25 - (freshness / 0.5)
+       * 
+ * + * string ranking_expression = 2; + */ + public com.google.protobuf.ByteString getRankingExpressionBytes() { + java.lang.Object ref = rankingExpression_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rankingExpression_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required.
+       * Controls over how job documents get ranked on top of existing relevance
+       * score (determined by API algorithm). The product of ranking expression
+       * and relevance score is used to determine job's final ranking position.
+       * The syntax for this expression is a subset of Google SQL syntax.
+       * Supported operators are: +, -, *, /, where the left and right side of
+       * the operator is either a numeric
+       * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+       * key, integer/double value or an expression that can be evaluated to a
+       * number.
+       * Parenthesis are supported to adjust calculation precedence. The
+       * expression must be < 100 characters in length.
+       * Sample ranking expression
+       * (year + 25) * 0.25 - (freshness / 0.5)
+       * 
+ * + * string ranking_expression = 2; + */ + public Builder setRankingExpression(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + rankingExpression_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Required.
+       * Controls over how job documents get ranked on top of existing relevance
+       * score (determined by API algorithm). The product of ranking expression
+       * and relevance score is used to determine job's final ranking position.
+       * The syntax for this expression is a subset of Google SQL syntax.
+       * Supported operators are: +, -, *, /, where the left and right side of
+       * the operator is either a numeric
+       * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+       * key, integer/double value or an expression that can be evaluated to a
+       * number.
+       * Parenthesis are supported to adjust calculation precedence. The
+       * expression must be < 100 characters in length.
+       * Sample ranking expression
+       * (year + 25) * 0.25 - (freshness / 0.5)
+       * 
+ * + * string ranking_expression = 2; + */ + public Builder clearRankingExpression() { + + rankingExpression_ = getDefaultInstance().getRankingExpression(); + onChanged(); + return this; + } + /** + * + * + *
+       * Required.
+       * Controls over how job documents get ranked on top of existing relevance
+       * score (determined by API algorithm). The product of ranking expression
+       * and relevance score is used to determine job's final ranking position.
+       * The syntax for this expression is a subset of Google SQL syntax.
+       * Supported operators are: +, -, *, /, where the left and right side of
+       * the operator is either a numeric
+       * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
+       * key, integer/double value or an expression that can be evaluated to a
+       * number.
+       * Parenthesis are supported to adjust calculation precedence. The
+       * expression must be < 100 characters in length.
+       * Sample ranking expression
+       * (year + 25) * 0.25 - (freshness / 0.5)
+       * 
+ * + * string ranking_expression = 2; + */ + public Builder setRankingExpressionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + rankingExpression_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo) + private static final com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo(); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomRankingInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CustomRankingInfo(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required.
+   * The resource name of the project to search within.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The resource name of the project to search within.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SEARCH_MODE_FIELD_NUMBER = 2; + private int searchMode_; + /** + * + * + *
+   * Optional.
+   * Mode of a search.
+   * Defaults to
+   * [SearchMode.JOB_SEARCH][google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.JOB_SEARCH].
+   * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode search_mode = 2; + */ + public int getSearchModeValue() { + return searchMode_; + } + /** + * + * + *
+   * Optional.
+   * Mode of a search.
+   * Defaults to
+   * [SearchMode.JOB_SEARCH][google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.JOB_SEARCH].
+   * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode search_mode = 2; + */ + public com.google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode getSearchMode() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode result = + com.google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.valueOf(searchMode_); + return result == null + ? com.google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.UNRECOGNIZED + : result; + } + + public static final int REQUEST_METADATA_FIELD_NUMBER = 3; + private com.google.cloud.talent.v4beta1.RequestMetadata requestMetadata_; + /** + * + * + *
+   * Required.
+   * The meta information collected about the job searcher, used to improve the
+   * search quality of the service.. The identifiers, (such as `user_id`) are
+   * provided by users, and must be unique and consistent.
+   * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 3; + */ + public boolean hasRequestMetadata() { + return requestMetadata_ != null; + } + /** + * + * + *
+   * Required.
+   * The meta information collected about the job searcher, used to improve the
+   * search quality of the service.. The identifiers, (such as `user_id`) are
+   * provided by users, and must be unique and consistent.
+   * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 3; + */ + public com.google.cloud.talent.v4beta1.RequestMetadata getRequestMetadata() { + return requestMetadata_ == null + ? com.google.cloud.talent.v4beta1.RequestMetadata.getDefaultInstance() + : requestMetadata_; + } + /** + * + * + *
+   * Required.
+   * The meta information collected about the job searcher, used to improve the
+   * search quality of the service.. The identifiers, (such as `user_id`) are
+   * provided by users, and must be unique and consistent.
+   * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 3; + */ + public com.google.cloud.talent.v4beta1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() { + return getRequestMetadata(); + } + + public static final int JOB_QUERY_FIELD_NUMBER = 4; + private com.google.cloud.talent.v4beta1.JobQuery jobQuery_; + /** + * + * + *
+   * Optional.
+   * Query used to search against jobs, such as keyword, location filters, etc.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobQuery job_query = 4; + */ + public boolean hasJobQuery() { + return jobQuery_ != null; + } + /** + * + * + *
+   * Optional.
+   * Query used to search against jobs, such as keyword, location filters, etc.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobQuery job_query = 4; + */ + public com.google.cloud.talent.v4beta1.JobQuery getJobQuery() { + return jobQuery_ == null + ? com.google.cloud.talent.v4beta1.JobQuery.getDefaultInstance() + : jobQuery_; + } + /** + * + * + *
+   * Optional.
+   * Query used to search against jobs, such as keyword, location filters, etc.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobQuery job_query = 4; + */ + public com.google.cloud.talent.v4beta1.JobQueryOrBuilder getJobQueryOrBuilder() { + return getJobQuery(); + } + + public static final int ENABLE_BROADENING_FIELD_NUMBER = 5; + private boolean enableBroadening_; + /** + * + * + *
+   * Optional.
+   * Controls whether to broaden the search when it produces sparse results.
+   * Broadened queries append results to the end of the matching results
+   * list.
+   * Defaults to false.
+   * 
+ * + * bool enable_broadening = 5; + */ + public boolean getEnableBroadening() { + return enableBroadening_; + } + + public static final int REQUIRE_PRECISE_RESULT_SIZE_FIELD_NUMBER = 6; + private boolean requirePreciseResultSize_; + /** + * + * + *
+   * Optional.
+   * Controls if the search job request requires the return of a precise
+   * count of the first 300 results. Setting this to `true` ensures
+   * consistency in the number of results per page. Best practice is to set this
+   * value to true if a client allows users to jump directly to a
+   * non-sequential search results page.
+   * Enabling this flag may adversely impact performance.
+   * Defaults to false.
+   * 
+ * + * bool require_precise_result_size = 6; + */ + public boolean getRequirePreciseResultSize() { + return requirePreciseResultSize_; + } + + public static final int HISTOGRAM_QUERIES_FIELD_NUMBER = 7; + private java.util.List histogramQueries_; + /** + * + * + *
+   * Optional.
+   * An expression specifies a histogram request against matching jobs.
+   * Expression syntax is an aggregation function call with histogram facets and
+   * other options.
+   * Available aggregation function calls are:
+   * * `count(string_histogram_facet)`: Count the number of matching entities,
+   * for each distinct attribute value.
+   * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+   * matching entities within each bucket.
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label]): bucket built-in function creates a bucket
+   * with range of [start, end). Note that the end is exclusive, for example,
+   * bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Job histogram facets:
+   * * company_id: histogram by [Job.distributor_company_id][].
+   * * company_display_name: histogram by
+   * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+   * * employment_type: histogram by
+   * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+   * for example, "FULL_TIME", "PART_TIME".
+   * * company_size: histogram by
+   * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+   * "SMALL", "MEDIUM", "BIG".
+   * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+   * Must specify list of numeric buckets in spec.
+   * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+   * Must specify list of numeric buckets in spec.
+   * * degree_type: histogram by the [Job.degree_type][], for example,
+   * "Bachelors", "Masters".
+   * * job_level: histogram by the
+   * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+   * "Entry Level".
+   * * country: histogram by the country code of jobs, for example, "US", "FR".
+   * * admin1: histogram by the admin1 code of jobs, which is a global
+   * placeholder referring to the state, province, or the particular term a
+   * country uses to define the geographic structure below the country level,
+   * for example, "CA", "IL".
+   * * city: histogram by a combination of the "city name, admin1 code". For
+   * example,  "Mountain View, CA", "New York, NY".
+   * * admin1_country: histogram by a combination of the "admin1 code, country",
+   * for example, "CA, US", "IL, US".
+   * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+   * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+   * of a city center can change, customers may need to refresh them
+   * periodically.
+   * * locale: histogram by the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en-US", "fr-FR".
+   * * language: histogram by the language subtag of the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en", "fr".
+   * * category: histogram by the
+   * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+   * "COMPUTER_AND_IT", "HEALTHCARE".
+   * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+   * salary, for example, "WEEKLY", "MONTHLY".
+   * * base_compensation: histogram by the base salary. Must specify list of
+   * numeric buckets to group results by.
+   * * annualized_base_compensation: histogram by the base annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * annualized_total_compensation: histogram by the total annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * string_custom_attribute: histogram by string
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * string_custom_attribute["key1"].
+   * * numeric_custom_attribute: histogram by numeric
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+   * group results by.
+   * Example expressions:
+   * * count(admin1)
+   * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+   * bucket(100000, MAX)])
+   * * count(string_custom_attribute["some-string-custom-attribute"])
+   * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public java.util.List getHistogramQueriesList() { + return histogramQueries_; + } + /** + * + * + *
+   * Optional.
+   * An expression specifies a histogram request against matching jobs.
+   * Expression syntax is an aggregation function call with histogram facets and
+   * other options.
+   * Available aggregation function calls are:
+   * * `count(string_histogram_facet)`: Count the number of matching entities,
+   * for each distinct attribute value.
+   * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+   * matching entities within each bucket.
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label]): bucket built-in function creates a bucket
+   * with range of [start, end). Note that the end is exclusive, for example,
+   * bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Job histogram facets:
+   * * company_id: histogram by [Job.distributor_company_id][].
+   * * company_display_name: histogram by
+   * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+   * * employment_type: histogram by
+   * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+   * for example, "FULL_TIME", "PART_TIME".
+   * * company_size: histogram by
+   * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+   * "SMALL", "MEDIUM", "BIG".
+   * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+   * Must specify list of numeric buckets in spec.
+   * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+   * Must specify list of numeric buckets in spec.
+   * * degree_type: histogram by the [Job.degree_type][], for example,
+   * "Bachelors", "Masters".
+   * * job_level: histogram by the
+   * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+   * "Entry Level".
+   * * country: histogram by the country code of jobs, for example, "US", "FR".
+   * * admin1: histogram by the admin1 code of jobs, which is a global
+   * placeholder referring to the state, province, or the particular term a
+   * country uses to define the geographic structure below the country level,
+   * for example, "CA", "IL".
+   * * city: histogram by a combination of the "city name, admin1 code". For
+   * example,  "Mountain View, CA", "New York, NY".
+   * * admin1_country: histogram by a combination of the "admin1 code, country",
+   * for example, "CA, US", "IL, US".
+   * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+   * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+   * of a city center can change, customers may need to refresh them
+   * periodically.
+   * * locale: histogram by the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en-US", "fr-FR".
+   * * language: histogram by the language subtag of the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en", "fr".
+   * * category: histogram by the
+   * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+   * "COMPUTER_AND_IT", "HEALTHCARE".
+   * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+   * salary, for example, "WEEKLY", "MONTHLY".
+   * * base_compensation: histogram by the base salary. Must specify list of
+   * numeric buckets to group results by.
+   * * annualized_base_compensation: histogram by the base annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * annualized_total_compensation: histogram by the total annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * string_custom_attribute: histogram by string
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * string_custom_attribute["key1"].
+   * * numeric_custom_attribute: histogram by numeric
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+   * group results by.
+   * Example expressions:
+   * * count(admin1)
+   * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+   * bucket(100000, MAX)])
+   * * count(string_custom_attribute["some-string-custom-attribute"])
+   * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public java.util.List + getHistogramQueriesOrBuilderList() { + return histogramQueries_; + } + /** + * + * + *
+   * Optional.
+   * An expression specifies a histogram request against matching jobs.
+   * Expression syntax is an aggregation function call with histogram facets and
+   * other options.
+   * Available aggregation function calls are:
+   * * `count(string_histogram_facet)`: Count the number of matching entities,
+   * for each distinct attribute value.
+   * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+   * matching entities within each bucket.
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label]): bucket built-in function creates a bucket
+   * with range of [start, end). Note that the end is exclusive, for example,
+   * bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Job histogram facets:
+   * * company_id: histogram by [Job.distributor_company_id][].
+   * * company_display_name: histogram by
+   * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+   * * employment_type: histogram by
+   * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+   * for example, "FULL_TIME", "PART_TIME".
+   * * company_size: histogram by
+   * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+   * "SMALL", "MEDIUM", "BIG".
+   * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+   * Must specify list of numeric buckets in spec.
+   * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+   * Must specify list of numeric buckets in spec.
+   * * degree_type: histogram by the [Job.degree_type][], for example,
+   * "Bachelors", "Masters".
+   * * job_level: histogram by the
+   * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+   * "Entry Level".
+   * * country: histogram by the country code of jobs, for example, "US", "FR".
+   * * admin1: histogram by the admin1 code of jobs, which is a global
+   * placeholder referring to the state, province, or the particular term a
+   * country uses to define the geographic structure below the country level,
+   * for example, "CA", "IL".
+   * * city: histogram by a combination of the "city name, admin1 code". For
+   * example,  "Mountain View, CA", "New York, NY".
+   * * admin1_country: histogram by a combination of the "admin1 code, country",
+   * for example, "CA, US", "IL, US".
+   * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+   * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+   * of a city center can change, customers may need to refresh them
+   * periodically.
+   * * locale: histogram by the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en-US", "fr-FR".
+   * * language: histogram by the language subtag of the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en", "fr".
+   * * category: histogram by the
+   * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+   * "COMPUTER_AND_IT", "HEALTHCARE".
+   * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+   * salary, for example, "WEEKLY", "MONTHLY".
+   * * base_compensation: histogram by the base salary. Must specify list of
+   * numeric buckets to group results by.
+   * * annualized_base_compensation: histogram by the base annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * annualized_total_compensation: histogram by the total annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * string_custom_attribute: histogram by string
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * string_custom_attribute["key1"].
+   * * numeric_custom_attribute: histogram by numeric
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+   * group results by.
+   * Example expressions:
+   * * count(admin1)
+   * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+   * bucket(100000, MAX)])
+   * * count(string_custom_attribute["some-string-custom-attribute"])
+   * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public int getHistogramQueriesCount() { + return histogramQueries_.size(); + } + /** + * + * + *
+   * Optional.
+   * An expression specifies a histogram request against matching jobs.
+   * Expression syntax is an aggregation function call with histogram facets and
+   * other options.
+   * Available aggregation function calls are:
+   * * `count(string_histogram_facet)`: Count the number of matching entities,
+   * for each distinct attribute value.
+   * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+   * matching entities within each bucket.
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label]): bucket built-in function creates a bucket
+   * with range of [start, end). Note that the end is exclusive, for example,
+   * bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Job histogram facets:
+   * * company_id: histogram by [Job.distributor_company_id][].
+   * * company_display_name: histogram by
+   * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+   * * employment_type: histogram by
+   * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+   * for example, "FULL_TIME", "PART_TIME".
+   * * company_size: histogram by
+   * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+   * "SMALL", "MEDIUM", "BIG".
+   * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+   * Must specify list of numeric buckets in spec.
+   * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+   * Must specify list of numeric buckets in spec.
+   * * degree_type: histogram by the [Job.degree_type][], for example,
+   * "Bachelors", "Masters".
+   * * job_level: histogram by the
+   * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+   * "Entry Level".
+   * * country: histogram by the country code of jobs, for example, "US", "FR".
+   * * admin1: histogram by the admin1 code of jobs, which is a global
+   * placeholder referring to the state, province, or the particular term a
+   * country uses to define the geographic structure below the country level,
+   * for example, "CA", "IL".
+   * * city: histogram by a combination of the "city name, admin1 code". For
+   * example,  "Mountain View, CA", "New York, NY".
+   * * admin1_country: histogram by a combination of the "admin1 code, country",
+   * for example, "CA, US", "IL, US".
+   * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+   * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+   * of a city center can change, customers may need to refresh them
+   * periodically.
+   * * locale: histogram by the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en-US", "fr-FR".
+   * * language: histogram by the language subtag of the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en", "fr".
+   * * category: histogram by the
+   * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+   * "COMPUTER_AND_IT", "HEALTHCARE".
+   * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+   * salary, for example, "WEEKLY", "MONTHLY".
+   * * base_compensation: histogram by the base salary. Must specify list of
+   * numeric buckets to group results by.
+   * * annualized_base_compensation: histogram by the base annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * annualized_total_compensation: histogram by the total annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * string_custom_attribute: histogram by string
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * string_custom_attribute["key1"].
+   * * numeric_custom_attribute: histogram by numeric
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+   * group results by.
+   * Example expressions:
+   * * count(admin1)
+   * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+   * bucket(100000, MAX)])
+   * * count(string_custom_attribute["some-string-custom-attribute"])
+   * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public com.google.cloud.talent.v4beta1.HistogramQuery getHistogramQueries(int index) { + return histogramQueries_.get(index); + } + /** + * + * + *
+   * Optional.
+   * An expression specifies a histogram request against matching jobs.
+   * Expression syntax is an aggregation function call with histogram facets and
+   * other options.
+   * Available aggregation function calls are:
+   * * `count(string_histogram_facet)`: Count the number of matching entities,
+   * for each distinct attribute value.
+   * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+   * matching entities within each bucket.
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label]): bucket built-in function creates a bucket
+   * with range of [start, end). Note that the end is exclusive, for example,
+   * bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Job histogram facets:
+   * * company_id: histogram by [Job.distributor_company_id][].
+   * * company_display_name: histogram by
+   * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+   * * employment_type: histogram by
+   * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+   * for example, "FULL_TIME", "PART_TIME".
+   * * company_size: histogram by
+   * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+   * "SMALL", "MEDIUM", "BIG".
+   * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+   * Must specify list of numeric buckets in spec.
+   * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+   * Must specify list of numeric buckets in spec.
+   * * degree_type: histogram by the [Job.degree_type][], for example,
+   * "Bachelors", "Masters".
+   * * job_level: histogram by the
+   * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+   * "Entry Level".
+   * * country: histogram by the country code of jobs, for example, "US", "FR".
+   * * admin1: histogram by the admin1 code of jobs, which is a global
+   * placeholder referring to the state, province, or the particular term a
+   * country uses to define the geographic structure below the country level,
+   * for example, "CA", "IL".
+   * * city: histogram by a combination of the "city name, admin1 code". For
+   * example,  "Mountain View, CA", "New York, NY".
+   * * admin1_country: histogram by a combination of the "admin1 code, country",
+   * for example, "CA, US", "IL, US".
+   * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+   * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+   * of a city center can change, customers may need to refresh them
+   * periodically.
+   * * locale: histogram by the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en-US", "fr-FR".
+   * * language: histogram by the language subtag of the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en", "fr".
+   * * category: histogram by the
+   * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+   * "COMPUTER_AND_IT", "HEALTHCARE".
+   * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+   * salary, for example, "WEEKLY", "MONTHLY".
+   * * base_compensation: histogram by the base salary. Must specify list of
+   * numeric buckets to group results by.
+   * * annualized_base_compensation: histogram by the base annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * annualized_total_compensation: histogram by the total annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * string_custom_attribute: histogram by string
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * string_custom_attribute["key1"].
+   * * numeric_custom_attribute: histogram by numeric
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+   * group results by.
+   * Example expressions:
+   * * count(admin1)
+   * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+   * bucket(100000, MAX)])
+   * * count(string_custom_attribute["some-string-custom-attribute"])
+   * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder getHistogramQueriesOrBuilder( + int index) { + return histogramQueries_.get(index); + } + + public static final int JOB_VIEW_FIELD_NUMBER = 8; + private int jobView_; + /** + * + * + *
+   * Optional.
+   * The desired job attributes returned for jobs in the
+   * search response. Defaults to [JobView.SMALL][] if no value is specified.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 8; + */ + public int getJobViewValue() { + return jobView_; + } + /** + * + * + *
+   * Optional.
+   * The desired job attributes returned for jobs in the
+   * search response. Defaults to [JobView.SMALL][] if no value is specified.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 8; + */ + public com.google.cloud.talent.v4beta1.JobView getJobView() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.JobView result = + com.google.cloud.talent.v4beta1.JobView.valueOf(jobView_); + return result == null ? com.google.cloud.talent.v4beta1.JobView.UNRECOGNIZED : result; + } + + public static final int OFFSET_FIELD_NUMBER = 9; + private int offset_; + /** + * + * + *
+   * Optional.
+   * An integer that specifies the current offset (that is, starting result
+   * location, amongst the jobs deemed by the API as relevant) in search
+   * results. This field is only considered if
+   * [page_token][google.cloud.talent.v4beta1.SearchJobsRequest.page_token] is
+   * unset.
+   * For example, 0 means to  return results starting from the first matching
+   * job, and 10 means to return from the 11th job. This can be used for
+   * pagination, (for example, pageSize = 10 and offset = 10 means to return
+   * from the second page).
+   * 
+ * + * int32 offset = 9; + */ + public int getOffset() { + return offset_; + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 10; + private int pageSize_; + /** + * + * + *
+   * Optional.
+   * A limit on the number of jobs returned in the search results.
+   * Increasing this value above the default value of 10 can increase search
+   * response time. The value can be between 1 and 100.
+   * 
+ * + * int32 page_size = 10; + */ + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 11; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * Optional.
+   * The token specifying the current offset within
+   * search results. See
+   * [SearchJobsResponse.next_page_token][google.cloud.talent.v4beta1.SearchJobsResponse.next_page_token]
+   * for an explanation of how to obtain the next set of query results.
+   * 
+ * + * string page_token = 11; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The token specifying the current offset within
+   * search results. See
+   * [SearchJobsResponse.next_page_token][google.cloud.talent.v4beta1.SearchJobsResponse.next_page_token]
+   * for an explanation of how to obtain the next set of query results.
+   * 
+ * + * string page_token = 11; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 12; + private volatile java.lang.Object orderBy_; + /** + * + * + *
+   * Optional.
+   * The criteria determining how search results are sorted. Default is
+   * "relevance desc".
+   * Supported options are:
+   * * "relevance desc": By relevance descending, as determined by the API
+   * algorithms. Relevance thresholding of query results is only available
+   * with this ordering.
+   * * "posting`_`publish`_`time desc": By
+   * [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time]
+   * descending.
+   * * "posting`_`update`_`time desc": By
+   * [Job.posting_update_time][google.cloud.talent.v4beta1.Job.posting_update_time]
+   * descending.
+   * * "title": By [Job.title][google.cloud.talent.v4beta1.Job.title] ascending.
+   * * "title desc": By [Job.title][google.cloud.talent.v4beta1.Job.title]
+   * descending.
+   * * "annualized`_`base`_`compensation": By job's
+   * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+   * ascending. Jobs whose annualized base compensation is unspecified are put
+   * at the end of search results.
+   * * "annualized`_`base`_`compensation desc": By job's
+   * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+   * descending. Jobs whose annualized base compensation is unspecified are put
+   * at the end of search results.
+   * * "annualized`_`total`_`compensation": By job's
+   * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+   * ascending. Jobs whose annualized base compensation is unspecified are put
+   * at the end of search results.
+   * * "annualized`_`total`_`compensation desc": By job's
+   * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+   * descending. Jobs whose annualized base compensation is unspecified are put
+   * at the end of search results.
+   * * "custom`_`ranking desc": By the relevance score adjusted to the
+   * [SearchJobsRequest.custom_ranking_info.ranking_expression][] with weight
+   * factor assigned by
+   * [SearchJobsRequest.custom_ranking_info.importance_level][] in descending
+   * order.
+   * * "location`_`distance": By the distance between the location on jobs and
+   *  locations specified in the
+   * [SearchJobsRequest.job_query.location_filters][].
+   * When this order is selected, the
+   * [SearchJobsRequest.job_query.location_filters][] must not be empty. When
+   * a job has multiple locations, the location closest to one of the locations
+   * specified in the location filter will be used to calculate location
+   * distance. Distance is calculated by the distance between two lat/long
+   * coordinates, with a precision of 10e-4 degrees (11.3 meters).
+   * Jobs that don't have locations specified will be ranked below jobs having
+   * locations.
+   * Diversification strategy is still applied unless explicitly disabled in
+   * [SearchJobsRequest.diversification_level][google.cloud.talent.v4beta1.SearchJobsRequest.diversification_level].
+   * 
+ * + * string order_by = 12; + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The criteria determining how search results are sorted. Default is
+   * "relevance desc".
+   * Supported options are:
+   * * "relevance desc": By relevance descending, as determined by the API
+   * algorithms. Relevance thresholding of query results is only available
+   * with this ordering.
+   * * "posting`_`publish`_`time desc": By
+   * [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time]
+   * descending.
+   * * "posting`_`update`_`time desc": By
+   * [Job.posting_update_time][google.cloud.talent.v4beta1.Job.posting_update_time]
+   * descending.
+   * * "title": By [Job.title][google.cloud.talent.v4beta1.Job.title] ascending.
+   * * "title desc": By [Job.title][google.cloud.talent.v4beta1.Job.title]
+   * descending.
+   * * "annualized`_`base`_`compensation": By job's
+   * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+   * ascending. Jobs whose annualized base compensation is unspecified are put
+   * at the end of search results.
+   * * "annualized`_`base`_`compensation desc": By job's
+   * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+   * descending. Jobs whose annualized base compensation is unspecified are put
+   * at the end of search results.
+   * * "annualized`_`total`_`compensation": By job's
+   * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+   * ascending. Jobs whose annualized base compensation is unspecified are put
+   * at the end of search results.
+   * * "annualized`_`total`_`compensation desc": By job's
+   * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+   * descending. Jobs whose annualized base compensation is unspecified are put
+   * at the end of search results.
+   * * "custom`_`ranking desc": By the relevance score adjusted to the
+   * [SearchJobsRequest.custom_ranking_info.ranking_expression][] with weight
+   * factor assigned by
+   * [SearchJobsRequest.custom_ranking_info.importance_level][] in descending
+   * order.
+   * * "location`_`distance": By the distance between the location on jobs and
+   *  locations specified in the
+   * [SearchJobsRequest.job_query.location_filters][].
+   * When this order is selected, the
+   * [SearchJobsRequest.job_query.location_filters][] must not be empty. When
+   * a job has multiple locations, the location closest to one of the locations
+   * specified in the location filter will be used to calculate location
+   * distance. Distance is calculated by the distance between two lat/long
+   * coordinates, with a precision of 10e-4 degrees (11.3 meters).
+   * Jobs that don't have locations specified will be ranked below jobs having
+   * locations.
+   * Diversification strategy is still applied unless explicitly disabled in
+   * [SearchJobsRequest.diversification_level][google.cloud.talent.v4beta1.SearchJobsRequest.diversification_level].
+   * 
+ * + * string order_by = 12; + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DIVERSIFICATION_LEVEL_FIELD_NUMBER = 13; + private int diversificationLevel_; + /** + * + * + *
+   * Optional.
+   * Controls whether highly similar jobs are returned next to each other in
+   * the search results. Jobs are identified as highly similar based on
+   * their titles, job categories, and locations. Highly similar results are
+   * clustered so that only one representative job of the cluster is
+   * displayed to the job seeker higher up in the results, with the other jobs
+   * being displayed lower down in the results.
+   * Defaults to
+   * [DiversificationLevel.SIMPLE][google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel.SIMPLE]
+   * if no value is specified.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel diversification_level = 13; + * + */ + public int getDiversificationLevelValue() { + return diversificationLevel_; + } + /** + * + * + *
+   * Optional.
+   * Controls whether highly similar jobs are returned next to each other in
+   * the search results. Jobs are identified as highly similar based on
+   * their titles, job categories, and locations. Highly similar results are
+   * clustered so that only one representative job of the cluster is
+   * displayed to the job seeker higher up in the results, with the other jobs
+   * being displayed lower down in the results.
+   * Defaults to
+   * [DiversificationLevel.SIMPLE][google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel.SIMPLE]
+   * if no value is specified.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel diversification_level = 13; + * + */ + public com.google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel + getDiversificationLevel() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel result = + com.google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel.valueOf( + diversificationLevel_); + return result == null + ? com.google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel.UNRECOGNIZED + : result; + } + + public static final int CUSTOM_RANKING_INFO_FIELD_NUMBER = 14; + private com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo customRankingInfo_; + /** + * + * + *
+   * Optional.
+   * Controls over how job documents get ranked on top of existing relevance
+   * score (determined by API algorithm).
+   * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo custom_ranking_info = 14; + * + */ + public boolean hasCustomRankingInfo() { + return customRankingInfo_ != null; + } + /** + * + * + *
+   * Optional.
+   * Controls over how job documents get ranked on top of existing relevance
+   * score (determined by API algorithm).
+   * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo custom_ranking_info = 14; + * + */ + public com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo + getCustomRankingInfo() { + return customRankingInfo_ == null + ? com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.getDefaultInstance() + : customRankingInfo_; + } + /** + * + * + *
+   * Optional.
+   * Controls over how job documents get ranked on top of existing relevance
+   * score (determined by API algorithm).
+   * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo custom_ranking_info = 14; + * + */ + public com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfoOrBuilder + getCustomRankingInfoOrBuilder() { + return getCustomRankingInfo(); + } + + public static final int DISABLE_KEYWORD_MATCH_FIELD_NUMBER = 16; + private boolean disableKeywordMatch_; + /** + * + * + *
+   * Optional.
+   * Controls whether to disable exact keyword match on [Job.job_title][],
+   * [Job.description][google.cloud.talent.v4beta1.Job.description],
+   * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name],
+   * [Job.locations][0],
+   * [Job.qualifications][google.cloud.talent.v4beta1.Job.qualifications]. When
+   * disable keyword match is turned off, a keyword match returns jobs that do
+   * not match given category filters when there are matching keywords. For
+   * example, for the query "program manager," a result is returned even if the
+   * job posting has the title "software developer," which doesn't fall into
+   * "program manager" ontology, but does have "program manager" appearing in
+   * its description.
+   * For queries like "cloud" that don't contain title or
+   * location specific ontology, jobs with "cloud" keyword matches are returned
+   * regardless of this flag's value.
+   * Please use [Company.keyword_searchable_custom_fields][] or
+   * [Company.keyword_searchable_custom_attributes][] if company specific
+   * globally matched custom field/attribute string values is needed. Enabling
+   * keyword match improves recall of subsequent search requests.
+   * Defaults to false.
+   * 
+ * + * bool disable_keyword_match = 16; + */ + public boolean getDisableKeywordMatch() { + return disableKeywordMatch_; + } + + 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 (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (searchMode_ + != com.google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.SEARCH_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, searchMode_); + } + if (requestMetadata_ != null) { + output.writeMessage(3, getRequestMetadata()); + } + if (jobQuery_ != null) { + output.writeMessage(4, getJobQuery()); + } + if (enableBroadening_ != false) { + output.writeBool(5, enableBroadening_); + } + if (requirePreciseResultSize_ != false) { + output.writeBool(6, requirePreciseResultSize_); + } + for (int i = 0; i < histogramQueries_.size(); i++) { + output.writeMessage(7, histogramQueries_.get(i)); + } + if (jobView_ != com.google.cloud.talent.v4beta1.JobView.JOB_VIEW_UNSPECIFIED.getNumber()) { + output.writeEnum(8, jobView_); + } + if (offset_ != 0) { + output.writeInt32(9, offset_); + } + if (pageSize_ != 0) { + output.writeInt32(10, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, pageToken_); + } + if (!getOrderByBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, orderBy_); + } + if (diversificationLevel_ + != com.google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel + .DIVERSIFICATION_LEVEL_UNSPECIFIED + .getNumber()) { + output.writeEnum(13, diversificationLevel_); + } + if (customRankingInfo_ != null) { + output.writeMessage(14, getCustomRankingInfo()); + } + if (disableKeywordMatch_ != false) { + output.writeBool(16, disableKeywordMatch_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (searchMode_ + != com.google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.SEARCH_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, searchMode_); + } + if (requestMetadata_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRequestMetadata()); + } + if (jobQuery_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getJobQuery()); + } + if (enableBroadening_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, enableBroadening_); + } + if (requirePreciseResultSize_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requirePreciseResultSize_); + } + for (int i = 0; i < histogramQueries_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, histogramQueries_.get(i)); + } + if (jobView_ != com.google.cloud.talent.v4beta1.JobView.JOB_VIEW_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, jobView_); + } + if (offset_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, offset_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(10, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, pageToken_); + } + if (!getOrderByBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, orderBy_); + } + if (diversificationLevel_ + != com.google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel + .DIVERSIFICATION_LEVEL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, diversificationLevel_); + } + if (customRankingInfo_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getCustomRankingInfo()); + } + if (disableKeywordMatch_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(16, disableKeywordMatch_); + } + size += unknownFields.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.cloud.talent.v4beta1.SearchJobsRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.SearchJobsRequest other = + (com.google.cloud.talent.v4beta1.SearchJobsRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && searchMode_ == other.searchMode_; + result = result && (hasRequestMetadata() == other.hasRequestMetadata()); + if (hasRequestMetadata()) { + result = result && getRequestMetadata().equals(other.getRequestMetadata()); + } + result = result && (hasJobQuery() == other.hasJobQuery()); + if (hasJobQuery()) { + result = result && getJobQuery().equals(other.getJobQuery()); + } + result = result && (getEnableBroadening() == other.getEnableBroadening()); + result = result && (getRequirePreciseResultSize() == other.getRequirePreciseResultSize()); + result = result && getHistogramQueriesList().equals(other.getHistogramQueriesList()); + result = result && jobView_ == other.jobView_; + result = result && (getOffset() == other.getOffset()); + result = result && (getPageSize() == other.getPageSize()); + result = result && getPageToken().equals(other.getPageToken()); + result = result && getOrderBy().equals(other.getOrderBy()); + result = result && diversificationLevel_ == other.diversificationLevel_; + result = result && (hasCustomRankingInfo() == other.hasCustomRankingInfo()); + if (hasCustomRankingInfo()) { + result = result && getCustomRankingInfo().equals(other.getCustomRankingInfo()); + } + result = result && (getDisableKeywordMatch() == other.getDisableKeywordMatch()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + SEARCH_MODE_FIELD_NUMBER; + hash = (53 * hash) + searchMode_; + if (hasRequestMetadata()) { + hash = (37 * hash) + REQUEST_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getRequestMetadata().hashCode(); + } + if (hasJobQuery()) { + hash = (37 * hash) + JOB_QUERY_FIELD_NUMBER; + hash = (53 * hash) + getJobQuery().hashCode(); + } + hash = (37 * hash) + ENABLE_BROADENING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableBroadening()); + hash = (37 * hash) + REQUIRE_PRECISE_RESULT_SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequirePreciseResultSize()); + if (getHistogramQueriesCount() > 0) { + hash = (37 * hash) + HISTOGRAM_QUERIES_FIELD_NUMBER; + hash = (53 * hash) + getHistogramQueriesList().hashCode(); + } + hash = (37 * hash) + JOB_VIEW_FIELD_NUMBER; + hash = (53 * hash) + jobView_; + hash = (37 * hash) + OFFSET_FIELD_NUMBER; + hash = (53 * hash) + getOffset(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + DIVERSIFICATION_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + diversificationLevel_; + if (hasCustomRankingInfo()) { + hash = (37 * hash) + CUSTOM_RANKING_INFO_FIELD_NUMBER; + hash = (53 * hash) + getCustomRankingInfo().hashCode(); + } + hash = (37 * hash) + DISABLE_KEYWORD_MATCH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableKeywordMatch()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest 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.cloud.talent.v4beta1.SearchJobsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest 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.cloud.talent.v4beta1.SearchJobsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest 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.cloud.talent.v4beta1.SearchJobsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest 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.cloud.talent.v4beta1.SearchJobsRequest 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; + } + /** + * + * + *
+   * Input only.
+   * The Request body of the `SearchJobs` call.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SearchJobsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.SearchJobsRequest) + com.google.cloud.talent.v4beta1.SearchJobsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SearchJobsRequest.class, + com.google.cloud.talent.v4beta1.SearchJobsRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.SearchJobsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getHistogramQueriesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + searchMode_ = 0; + + if (requestMetadataBuilder_ == null) { + requestMetadata_ = null; + } else { + requestMetadata_ = null; + requestMetadataBuilder_ = null; + } + if (jobQueryBuilder_ == null) { + jobQuery_ = null; + } else { + jobQuery_ = null; + jobQueryBuilder_ = null; + } + enableBroadening_ = false; + + requirePreciseResultSize_ = false; + + if (histogramQueriesBuilder_ == null) { + histogramQueries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + } else { + histogramQueriesBuilder_.clear(); + } + jobView_ = 0; + + offset_ = 0; + + pageSize_ = 0; + + pageToken_ = ""; + + orderBy_ = ""; + + diversificationLevel_ = 0; + + if (customRankingInfoBuilder_ == null) { + customRankingInfo_ = null; + } else { + customRankingInfo_ = null; + customRankingInfoBuilder_ = null; + } + disableKeywordMatch_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.SearchJobsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsRequest build() { + com.google.cloud.talent.v4beta1.SearchJobsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsRequest buildPartial() { + com.google.cloud.talent.v4beta1.SearchJobsRequest result = + new com.google.cloud.talent.v4beta1.SearchJobsRequest(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.parent_ = parent_; + result.searchMode_ = searchMode_; + if (requestMetadataBuilder_ == null) { + result.requestMetadata_ = requestMetadata_; + } else { + result.requestMetadata_ = requestMetadataBuilder_.build(); + } + if (jobQueryBuilder_ == null) { + result.jobQuery_ = jobQuery_; + } else { + result.jobQuery_ = jobQueryBuilder_.build(); + } + result.enableBroadening_ = enableBroadening_; + result.requirePreciseResultSize_ = requirePreciseResultSize_; + if (histogramQueriesBuilder_ == null) { + if (((bitField0_ & 0x00000040) == 0x00000040)) { + histogramQueries_ = java.util.Collections.unmodifiableList(histogramQueries_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.histogramQueries_ = histogramQueries_; + } else { + result.histogramQueries_ = histogramQueriesBuilder_.build(); + } + result.jobView_ = jobView_; + result.offset_ = offset_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + result.orderBy_ = orderBy_; + result.diversificationLevel_ = diversificationLevel_; + if (customRankingInfoBuilder_ == null) { + result.customRankingInfo_ = customRankingInfo_; + } else { + result.customRankingInfo_ = customRankingInfoBuilder_.build(); + } + result.disableKeywordMatch_ = disableKeywordMatch_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.SearchJobsRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.SearchJobsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.SearchJobsRequest other) { + if (other == com.google.cloud.talent.v4beta1.SearchJobsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.searchMode_ != 0) { + setSearchModeValue(other.getSearchModeValue()); + } + if (other.hasRequestMetadata()) { + mergeRequestMetadata(other.getRequestMetadata()); + } + if (other.hasJobQuery()) { + mergeJobQuery(other.getJobQuery()); + } + if (other.getEnableBroadening() != false) { + setEnableBroadening(other.getEnableBroadening()); + } + if (other.getRequirePreciseResultSize() != false) { + setRequirePreciseResultSize(other.getRequirePreciseResultSize()); + } + if (histogramQueriesBuilder_ == null) { + if (!other.histogramQueries_.isEmpty()) { + if (histogramQueries_.isEmpty()) { + histogramQueries_ = other.histogramQueries_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureHistogramQueriesIsMutable(); + histogramQueries_.addAll(other.histogramQueries_); + } + onChanged(); + } + } else { + if (!other.histogramQueries_.isEmpty()) { + if (histogramQueriesBuilder_.isEmpty()) { + histogramQueriesBuilder_.dispose(); + histogramQueriesBuilder_ = null; + histogramQueries_ = other.histogramQueries_; + bitField0_ = (bitField0_ & ~0x00000040); + histogramQueriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getHistogramQueriesFieldBuilder() + : null; + } else { + histogramQueriesBuilder_.addAllMessages(other.histogramQueries_); + } + } + } + if (other.jobView_ != 0) { + setJobViewValue(other.getJobViewValue()); + } + if (other.getOffset() != 0) { + setOffset(other.getOffset()); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + onChanged(); + } + if (other.diversificationLevel_ != 0) { + setDiversificationLevelValue(other.getDiversificationLevelValue()); + } + if (other.hasCustomRankingInfo()) { + mergeCustomRankingInfo(other.getCustomRankingInfo()); + } + if (other.getDisableKeywordMatch() != false) { + setDisableKeywordMatch(other.getDisableKeywordMatch()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.SearchJobsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.SearchJobsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required.
+     * The resource name of the project to search within.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the project to search within.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the project to search within.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the project to search within.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the project to search within.
+     * The format is "projects/{project_id}", for example,
+     * "projects/api-test-project".
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private int searchMode_ = 0; + /** + * + * + *
+     * Optional.
+     * Mode of a search.
+     * Defaults to
+     * [SearchMode.JOB_SEARCH][google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.JOB_SEARCH].
+     * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode search_mode = 2; + */ + public int getSearchModeValue() { + return searchMode_; + } + /** + * + * + *
+     * Optional.
+     * Mode of a search.
+     * Defaults to
+     * [SearchMode.JOB_SEARCH][google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.JOB_SEARCH].
+     * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode search_mode = 2; + */ + public Builder setSearchModeValue(int value) { + searchMode_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Mode of a search.
+     * Defaults to
+     * [SearchMode.JOB_SEARCH][google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.JOB_SEARCH].
+     * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode search_mode = 2; + */ + public com.google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode getSearchMode() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode result = + com.google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.valueOf(searchMode_); + return result == null + ? com.google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional.
+     * Mode of a search.
+     * Defaults to
+     * [SearchMode.JOB_SEARCH][google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.JOB_SEARCH].
+     * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode search_mode = 2; + */ + public Builder setSearchMode( + com.google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode value) { + if (value == null) { + throw new NullPointerException(); + } + + searchMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Mode of a search.
+     * Defaults to
+     * [SearchMode.JOB_SEARCH][google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.JOB_SEARCH].
+     * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode search_mode = 2; + */ + public Builder clearSearchMode() { + + searchMode_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.RequestMetadata requestMetadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.RequestMetadata, + com.google.cloud.talent.v4beta1.RequestMetadata.Builder, + com.google.cloud.talent.v4beta1.RequestMetadataOrBuilder> + requestMetadataBuilder_; + /** + * + * + *
+     * Required.
+     * The meta information collected about the job searcher, used to improve the
+     * search quality of the service.. The identifiers, (such as `user_id`) are
+     * provided by users, and must be unique and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 3; + */ + public boolean hasRequestMetadata() { + return requestMetadataBuilder_ != null || requestMetadata_ != null; + } + /** + * + * + *
+     * Required.
+     * The meta information collected about the job searcher, used to improve the
+     * search quality of the service.. The identifiers, (such as `user_id`) are
+     * provided by users, and must be unique and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 3; + */ + public com.google.cloud.talent.v4beta1.RequestMetadata getRequestMetadata() { + if (requestMetadataBuilder_ == null) { + return requestMetadata_ == null + ? com.google.cloud.talent.v4beta1.RequestMetadata.getDefaultInstance() + : requestMetadata_; + } else { + return requestMetadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required.
+     * The meta information collected about the job searcher, used to improve the
+     * search quality of the service.. The identifiers, (such as `user_id`) are
+     * provided by users, and must be unique and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 3; + */ + public Builder setRequestMetadata(com.google.cloud.talent.v4beta1.RequestMetadata value) { + if (requestMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + requestMetadata_ = value; + onChanged(); + } else { + requestMetadataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The meta information collected about the job searcher, used to improve the
+     * search quality of the service.. The identifiers, (such as `user_id`) are
+     * provided by users, and must be unique and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 3; + */ + public Builder setRequestMetadata( + com.google.cloud.talent.v4beta1.RequestMetadata.Builder builderForValue) { + if (requestMetadataBuilder_ == null) { + requestMetadata_ = builderForValue.build(); + onChanged(); + } else { + requestMetadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The meta information collected about the job searcher, used to improve the
+     * search quality of the service.. The identifiers, (such as `user_id`) are
+     * provided by users, and must be unique and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 3; + */ + public Builder mergeRequestMetadata(com.google.cloud.talent.v4beta1.RequestMetadata value) { + if (requestMetadataBuilder_ == null) { + if (requestMetadata_ != null) { + requestMetadata_ = + com.google.cloud.talent.v4beta1.RequestMetadata.newBuilder(requestMetadata_) + .mergeFrom(value) + .buildPartial(); + } else { + requestMetadata_ = value; + } + onChanged(); + } else { + requestMetadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The meta information collected about the job searcher, used to improve the
+     * search quality of the service.. The identifiers, (such as `user_id`) are
+     * provided by users, and must be unique and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 3; + */ + public Builder clearRequestMetadata() { + if (requestMetadataBuilder_ == null) { + requestMetadata_ = null; + onChanged(); + } else { + requestMetadata_ = null; + requestMetadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The meta information collected about the job searcher, used to improve the
+     * search quality of the service.. The identifiers, (such as `user_id`) are
+     * provided by users, and must be unique and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 3; + */ + public com.google.cloud.talent.v4beta1.RequestMetadata.Builder getRequestMetadataBuilder() { + + onChanged(); + return getRequestMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required.
+     * The meta information collected about the job searcher, used to improve the
+     * search quality of the service.. The identifiers, (such as `user_id`) are
+     * provided by users, and must be unique and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 3; + */ + public com.google.cloud.talent.v4beta1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() { + if (requestMetadataBuilder_ != null) { + return requestMetadataBuilder_.getMessageOrBuilder(); + } else { + return requestMetadata_ == null + ? com.google.cloud.talent.v4beta1.RequestMetadata.getDefaultInstance() + : requestMetadata_; + } + } + /** + * + * + *
+     * Required.
+     * The meta information collected about the job searcher, used to improve the
+     * search quality of the service.. The identifiers, (such as `user_id`) are
+     * provided by users, and must be unique and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.RequestMetadata, + com.google.cloud.talent.v4beta1.RequestMetadata.Builder, + com.google.cloud.talent.v4beta1.RequestMetadataOrBuilder> + getRequestMetadataFieldBuilder() { + if (requestMetadataBuilder_ == null) { + requestMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.RequestMetadata, + com.google.cloud.talent.v4beta1.RequestMetadata.Builder, + com.google.cloud.talent.v4beta1.RequestMetadataOrBuilder>( + getRequestMetadata(), getParentForChildren(), isClean()); + requestMetadata_ = null; + } + return requestMetadataBuilder_; + } + + private com.google.cloud.talent.v4beta1.JobQuery jobQuery_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.JobQuery, + com.google.cloud.talent.v4beta1.JobQuery.Builder, + com.google.cloud.talent.v4beta1.JobQueryOrBuilder> + jobQueryBuilder_; + /** + * + * + *
+     * Optional.
+     * Query used to search against jobs, such as keyword, location filters, etc.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobQuery job_query = 4; + */ + public boolean hasJobQuery() { + return jobQueryBuilder_ != null || jobQuery_ != null; + } + /** + * + * + *
+     * Optional.
+     * Query used to search against jobs, such as keyword, location filters, etc.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobQuery job_query = 4; + */ + public com.google.cloud.talent.v4beta1.JobQuery getJobQuery() { + if (jobQueryBuilder_ == null) { + return jobQuery_ == null + ? com.google.cloud.talent.v4beta1.JobQuery.getDefaultInstance() + : jobQuery_; + } else { + return jobQueryBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * Query used to search against jobs, such as keyword, location filters, etc.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobQuery job_query = 4; + */ + public Builder setJobQuery(com.google.cloud.talent.v4beta1.JobQuery value) { + if (jobQueryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + jobQuery_ = value; + onChanged(); + } else { + jobQueryBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Query used to search against jobs, such as keyword, location filters, etc.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobQuery job_query = 4; + */ + public Builder setJobQuery(com.google.cloud.talent.v4beta1.JobQuery.Builder builderForValue) { + if (jobQueryBuilder_ == null) { + jobQuery_ = builderForValue.build(); + onChanged(); + } else { + jobQueryBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Query used to search against jobs, such as keyword, location filters, etc.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobQuery job_query = 4; + */ + public Builder mergeJobQuery(com.google.cloud.talent.v4beta1.JobQuery value) { + if (jobQueryBuilder_ == null) { + if (jobQuery_ != null) { + jobQuery_ = + com.google.cloud.talent.v4beta1.JobQuery.newBuilder(jobQuery_) + .mergeFrom(value) + .buildPartial(); + } else { + jobQuery_ = value; + } + onChanged(); + } else { + jobQueryBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Query used to search against jobs, such as keyword, location filters, etc.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobQuery job_query = 4; + */ + public Builder clearJobQuery() { + if (jobQueryBuilder_ == null) { + jobQuery_ = null; + onChanged(); + } else { + jobQuery_ = null; + jobQueryBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Query used to search against jobs, such as keyword, location filters, etc.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobQuery job_query = 4; + */ + public com.google.cloud.talent.v4beta1.JobQuery.Builder getJobQueryBuilder() { + + onChanged(); + return getJobQueryFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * Query used to search against jobs, such as keyword, location filters, etc.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobQuery job_query = 4; + */ + public com.google.cloud.talent.v4beta1.JobQueryOrBuilder getJobQueryOrBuilder() { + if (jobQueryBuilder_ != null) { + return jobQueryBuilder_.getMessageOrBuilder(); + } else { + return jobQuery_ == null + ? com.google.cloud.talent.v4beta1.JobQuery.getDefaultInstance() + : jobQuery_; + } + } + /** + * + * + *
+     * Optional.
+     * Query used to search against jobs, such as keyword, location filters, etc.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobQuery job_query = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.JobQuery, + com.google.cloud.talent.v4beta1.JobQuery.Builder, + com.google.cloud.talent.v4beta1.JobQueryOrBuilder> + getJobQueryFieldBuilder() { + if (jobQueryBuilder_ == null) { + jobQueryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.JobQuery, + com.google.cloud.talent.v4beta1.JobQuery.Builder, + com.google.cloud.talent.v4beta1.JobQueryOrBuilder>( + getJobQuery(), getParentForChildren(), isClean()); + jobQuery_ = null; + } + return jobQueryBuilder_; + } + + private boolean enableBroadening_; + /** + * + * + *
+     * Optional.
+     * Controls whether to broaden the search when it produces sparse results.
+     * Broadened queries append results to the end of the matching results
+     * list.
+     * Defaults to false.
+     * 
+ * + * bool enable_broadening = 5; + */ + public boolean getEnableBroadening() { + return enableBroadening_; + } + /** + * + * + *
+     * Optional.
+     * Controls whether to broaden the search when it produces sparse results.
+     * Broadened queries append results to the end of the matching results
+     * list.
+     * Defaults to false.
+     * 
+ * + * bool enable_broadening = 5; + */ + public Builder setEnableBroadening(boolean value) { + + enableBroadening_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Controls whether to broaden the search when it produces sparse results.
+     * Broadened queries append results to the end of the matching results
+     * list.
+     * Defaults to false.
+     * 
+ * + * bool enable_broadening = 5; + */ + public Builder clearEnableBroadening() { + + enableBroadening_ = false; + onChanged(); + return this; + } + + private boolean requirePreciseResultSize_; + /** + * + * + *
+     * Optional.
+     * Controls if the search job request requires the return of a precise
+     * count of the first 300 results. Setting this to `true` ensures
+     * consistency in the number of results per page. Best practice is to set this
+     * value to true if a client allows users to jump directly to a
+     * non-sequential search results page.
+     * Enabling this flag may adversely impact performance.
+     * Defaults to false.
+     * 
+ * + * bool require_precise_result_size = 6; + */ + public boolean getRequirePreciseResultSize() { + return requirePreciseResultSize_; + } + /** + * + * + *
+     * Optional.
+     * Controls if the search job request requires the return of a precise
+     * count of the first 300 results. Setting this to `true` ensures
+     * consistency in the number of results per page. Best practice is to set this
+     * value to true if a client allows users to jump directly to a
+     * non-sequential search results page.
+     * Enabling this flag may adversely impact performance.
+     * Defaults to false.
+     * 
+ * + * bool require_precise_result_size = 6; + */ + public Builder setRequirePreciseResultSize(boolean value) { + + requirePreciseResultSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Controls if the search job request requires the return of a precise
+     * count of the first 300 results. Setting this to `true` ensures
+     * consistency in the number of results per page. Best practice is to set this
+     * value to true if a client allows users to jump directly to a
+     * non-sequential search results page.
+     * Enabling this flag may adversely impact performance.
+     * Defaults to false.
+     * 
+ * + * bool require_precise_result_size = 6; + */ + public Builder clearRequirePreciseResultSize() { + + requirePreciseResultSize_ = false; + onChanged(); + return this; + } + + private java.util.List histogramQueries_ = + java.util.Collections.emptyList(); + + private void ensureHistogramQueriesIsMutable() { + if (!((bitField0_ & 0x00000040) == 0x00000040)) { + histogramQueries_ = + new java.util.ArrayList( + histogramQueries_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.HistogramQuery, + com.google.cloud.talent.v4beta1.HistogramQuery.Builder, + com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder> + histogramQueriesBuilder_; + + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public java.util.List + getHistogramQueriesList() { + if (histogramQueriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(histogramQueries_); + } else { + return histogramQueriesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public int getHistogramQueriesCount() { + if (histogramQueriesBuilder_ == null) { + return histogramQueries_.size(); + } else { + return histogramQueriesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public com.google.cloud.talent.v4beta1.HistogramQuery getHistogramQueries(int index) { + if (histogramQueriesBuilder_ == null) { + return histogramQueries_.get(index); + } else { + return histogramQueriesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public Builder setHistogramQueries( + int index, com.google.cloud.talent.v4beta1.HistogramQuery value) { + if (histogramQueriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHistogramQueriesIsMutable(); + histogramQueries_.set(index, value); + onChanged(); + } else { + histogramQueriesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public Builder setHistogramQueries( + int index, com.google.cloud.talent.v4beta1.HistogramQuery.Builder builderForValue) { + if (histogramQueriesBuilder_ == null) { + ensureHistogramQueriesIsMutable(); + histogramQueries_.set(index, builderForValue.build()); + onChanged(); + } else { + histogramQueriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public Builder addHistogramQueries(com.google.cloud.talent.v4beta1.HistogramQuery value) { + if (histogramQueriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHistogramQueriesIsMutable(); + histogramQueries_.add(value); + onChanged(); + } else { + histogramQueriesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public Builder addHistogramQueries( + int index, com.google.cloud.talent.v4beta1.HistogramQuery value) { + if (histogramQueriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHistogramQueriesIsMutable(); + histogramQueries_.add(index, value); + onChanged(); + } else { + histogramQueriesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public Builder addHistogramQueries( + com.google.cloud.talent.v4beta1.HistogramQuery.Builder builderForValue) { + if (histogramQueriesBuilder_ == null) { + ensureHistogramQueriesIsMutable(); + histogramQueries_.add(builderForValue.build()); + onChanged(); + } else { + histogramQueriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public Builder addHistogramQueries( + int index, com.google.cloud.talent.v4beta1.HistogramQuery.Builder builderForValue) { + if (histogramQueriesBuilder_ == null) { + ensureHistogramQueriesIsMutable(); + histogramQueries_.add(index, builderForValue.build()); + onChanged(); + } else { + histogramQueriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public Builder addAllHistogramQueries( + java.lang.Iterable values) { + if (histogramQueriesBuilder_ == null) { + ensureHistogramQueriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, histogramQueries_); + onChanged(); + } else { + histogramQueriesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public Builder clearHistogramQueries() { + if (histogramQueriesBuilder_ == null) { + histogramQueries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + histogramQueriesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public Builder removeHistogramQueries(int index) { + if (histogramQueriesBuilder_ == null) { + ensureHistogramQueriesIsMutable(); + histogramQueries_.remove(index); + onChanged(); + } else { + histogramQueriesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public com.google.cloud.talent.v4beta1.HistogramQuery.Builder getHistogramQueriesBuilder( + int index) { + return getHistogramQueriesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder getHistogramQueriesOrBuilder( + int index) { + if (histogramQueriesBuilder_ == null) { + return histogramQueries_.get(index); + } else { + return histogramQueriesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public java.util.List + getHistogramQueriesOrBuilderList() { + if (histogramQueriesBuilder_ != null) { + return histogramQueriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(histogramQueries_); + } + } + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public com.google.cloud.talent.v4beta1.HistogramQuery.Builder addHistogramQueriesBuilder() { + return getHistogramQueriesFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.HistogramQuery.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public com.google.cloud.talent.v4beta1.HistogramQuery.Builder addHistogramQueriesBuilder( + int index) { + return getHistogramQueriesFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.HistogramQuery.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * An expression specifies a histogram request against matching jobs.
+     * Expression syntax is an aggregation function call with histogram facets and
+     * other options.
+     * Available aggregation function calls are:
+     * * `count(string_histogram_facet)`: Count the number of matching entities,
+     * for each distinct attribute value.
+     * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+     * matching entities within each bucket.
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label]): bucket built-in function creates a bucket
+     * with range of [start, end). Note that the end is exclusive, for example,
+     * bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Job histogram facets:
+     * * company_id: histogram by [Job.distributor_company_id][].
+     * * company_display_name: histogram by
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+     * * employment_type: histogram by
+     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+     * for example, "FULL_TIME", "PART_TIME".
+     * * company_size: histogram by
+     * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+     * "SMALL", "MEDIUM", "BIG".
+     * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+     * Must specify list of numeric buckets in spec.
+     * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+     * Must specify list of numeric buckets in spec.
+     * * degree_type: histogram by the [Job.degree_type][], for example,
+     * "Bachelors", "Masters".
+     * * job_level: histogram by the
+     * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+     * "Entry Level".
+     * * country: histogram by the country code of jobs, for example, "US", "FR".
+     * * admin1: histogram by the admin1 code of jobs, which is a global
+     * placeholder referring to the state, province, or the particular term a
+     * country uses to define the geographic structure below the country level,
+     * for example, "CA", "IL".
+     * * city: histogram by a combination of the "city name, admin1 code". For
+     * example,  "Mountain View, CA", "New York, NY".
+     * * admin1_country: histogram by a combination of the "admin1 code, country",
+     * for example, "CA, US", "IL, US".
+     * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+     * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+     * of a city center can change, customers may need to refresh them
+     * periodically.
+     * * locale: histogram by the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en-US", "fr-FR".
+     * * language: histogram by the language subtag of the
+     * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+     * example, "en", "fr".
+     * * category: histogram by the
+     * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+     * "COMPUTER_AND_IT", "HEALTHCARE".
+     * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+     * salary, for example, "WEEKLY", "MONTHLY".
+     * * base_compensation: histogram by the base salary. Must specify list of
+     * numeric buckets to group results by.
+     * * annualized_base_compensation: histogram by the base annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * annualized_total_compensation: histogram by the total annualized salary.
+     * Must specify list of numeric buckets to group results by.
+     * * string_custom_attribute: histogram by string
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * string_custom_attribute["key1"].
+     * * numeric_custom_attribute: histogram by numeric
+     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+     * Values can be accessed via square bracket notations like
+     * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+     * group results by.
+     * Example expressions:
+     * * count(admin1)
+     * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+     * bucket(100000, MAX)])
+     * * count(string_custom_attribute["some-string-custom-attribute"])
+     * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + public java.util.List + getHistogramQueriesBuilderList() { + return getHistogramQueriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.HistogramQuery, + com.google.cloud.talent.v4beta1.HistogramQuery.Builder, + com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder> + getHistogramQueriesFieldBuilder() { + if (histogramQueriesBuilder_ == null) { + histogramQueriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.HistogramQuery, + com.google.cloud.talent.v4beta1.HistogramQuery.Builder, + com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder>( + histogramQueries_, + ((bitField0_ & 0x00000040) == 0x00000040), + getParentForChildren(), + isClean()); + histogramQueries_ = null; + } + return histogramQueriesBuilder_; + } + + private int jobView_ = 0; + /** + * + * + *
+     * Optional.
+     * The desired job attributes returned for jobs in the
+     * search response. Defaults to [JobView.SMALL][] if no value is specified.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 8; + */ + public int getJobViewValue() { + return jobView_; + } + /** + * + * + *
+     * Optional.
+     * The desired job attributes returned for jobs in the
+     * search response. Defaults to [JobView.SMALL][] if no value is specified.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 8; + */ + public Builder setJobViewValue(int value) { + jobView_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The desired job attributes returned for jobs in the
+     * search response. Defaults to [JobView.SMALL][] if no value is specified.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 8; + */ + public com.google.cloud.talent.v4beta1.JobView getJobView() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.JobView result = + com.google.cloud.talent.v4beta1.JobView.valueOf(jobView_); + return result == null ? com.google.cloud.talent.v4beta1.JobView.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Optional.
+     * The desired job attributes returned for jobs in the
+     * search response. Defaults to [JobView.SMALL][] if no value is specified.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 8; + */ + public Builder setJobView(com.google.cloud.talent.v4beta1.JobView value) { + if (value == null) { + throw new NullPointerException(); + } + + jobView_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The desired job attributes returned for jobs in the
+     * search response. Defaults to [JobView.SMALL][] if no value is specified.
+     * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 8; + */ + public Builder clearJobView() { + + jobView_ = 0; + onChanged(); + return this; + } + + private int offset_; + /** + * + * + *
+     * Optional.
+     * An integer that specifies the current offset (that is, starting result
+     * location, amongst the jobs deemed by the API as relevant) in search
+     * results. This field is only considered if
+     * [page_token][google.cloud.talent.v4beta1.SearchJobsRequest.page_token] is
+     * unset.
+     * For example, 0 means to  return results starting from the first matching
+     * job, and 10 means to return from the 11th job. This can be used for
+     * pagination, (for example, pageSize = 10 and offset = 10 means to return
+     * from the second page).
+     * 
+ * + * int32 offset = 9; + */ + public int getOffset() { + return offset_; + } + /** + * + * + *
+     * Optional.
+     * An integer that specifies the current offset (that is, starting result
+     * location, amongst the jobs deemed by the API as relevant) in search
+     * results. This field is only considered if
+     * [page_token][google.cloud.talent.v4beta1.SearchJobsRequest.page_token] is
+     * unset.
+     * For example, 0 means to  return results starting from the first matching
+     * job, and 10 means to return from the 11th job. This can be used for
+     * pagination, (for example, pageSize = 10 and offset = 10 means to return
+     * from the second page).
+     * 
+ * + * int32 offset = 9; + */ + public Builder setOffset(int value) { + + offset_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * An integer that specifies the current offset (that is, starting result
+     * location, amongst the jobs deemed by the API as relevant) in search
+     * results. This field is only considered if
+     * [page_token][google.cloud.talent.v4beta1.SearchJobsRequest.page_token] is
+     * unset.
+     * For example, 0 means to  return results starting from the first matching
+     * job, and 10 means to return from the 11th job. This can be used for
+     * pagination, (for example, pageSize = 10 and offset = 10 means to return
+     * from the second page).
+     * 
+ * + * int32 offset = 9; + */ + public Builder clearOffset() { + + offset_ = 0; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional.
+     * A limit on the number of jobs returned in the search results.
+     * Increasing this value above the default value of 10 can increase search
+     * response time. The value can be between 1 and 100.
+     * 
+ * + * int32 page_size = 10; + */ + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional.
+     * A limit on the number of jobs returned in the search results.
+     * Increasing this value above the default value of 10 can increase search
+     * response time. The value can be between 1 and 100.
+     * 
+ * + * int32 page_size = 10; + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A limit on the number of jobs returned in the search results.
+     * Increasing this value above the default value of 10 can increase search
+     * response time. The value can be between 1 and 100.
+     * 
+ * + * int32 page_size = 10; + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional.
+     * The token specifying the current offset within
+     * search results. See
+     * [SearchJobsResponse.next_page_token][google.cloud.talent.v4beta1.SearchJobsResponse.next_page_token]
+     * for an explanation of how to obtain the next set of query results.
+     * 
+ * + * string page_token = 11; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The token specifying the current offset within
+     * search results. See
+     * [SearchJobsResponse.next_page_token][google.cloud.talent.v4beta1.SearchJobsResponse.next_page_token]
+     * for an explanation of how to obtain the next set of query results.
+     * 
+ * + * string page_token = 11; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The token specifying the current offset within
+     * search results. See
+     * [SearchJobsResponse.next_page_token][google.cloud.talent.v4beta1.SearchJobsResponse.next_page_token]
+     * for an explanation of how to obtain the next set of query results.
+     * 
+ * + * string page_token = 11; + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The token specifying the current offset within
+     * search results. See
+     * [SearchJobsResponse.next_page_token][google.cloud.talent.v4beta1.SearchJobsResponse.next_page_token]
+     * for an explanation of how to obtain the next set of query results.
+     * 
+ * + * string page_token = 11; + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The token specifying the current offset within
+     * search results. See
+     * [SearchJobsResponse.next_page_token][google.cloud.talent.v4beta1.SearchJobsResponse.next_page_token]
+     * for an explanation of how to obtain the next set of query results.
+     * 
+ * + * string page_token = 11; + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + /** + * + * + *
+     * Optional.
+     * The criteria determining how search results are sorted. Default is
+     * "relevance desc".
+     * Supported options are:
+     * * "relevance desc": By relevance descending, as determined by the API
+     * algorithms. Relevance thresholding of query results is only available
+     * with this ordering.
+     * * "posting`_`publish`_`time desc": By
+     * [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time]
+     * descending.
+     * * "posting`_`update`_`time desc": By
+     * [Job.posting_update_time][google.cloud.talent.v4beta1.Job.posting_update_time]
+     * descending.
+     * * "title": By [Job.title][google.cloud.talent.v4beta1.Job.title] ascending.
+     * * "title desc": By [Job.title][google.cloud.talent.v4beta1.Job.title]
+     * descending.
+     * * "annualized`_`base`_`compensation": By job's
+     * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+     * ascending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "annualized`_`base`_`compensation desc": By job's
+     * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+     * descending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "annualized`_`total`_`compensation": By job's
+     * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+     * ascending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "annualized`_`total`_`compensation desc": By job's
+     * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+     * descending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "custom`_`ranking desc": By the relevance score adjusted to the
+     * [SearchJobsRequest.custom_ranking_info.ranking_expression][] with weight
+     * factor assigned by
+     * [SearchJobsRequest.custom_ranking_info.importance_level][] in descending
+     * order.
+     * * "location`_`distance": By the distance between the location on jobs and
+     *  locations specified in the
+     * [SearchJobsRequest.job_query.location_filters][].
+     * When this order is selected, the
+     * [SearchJobsRequest.job_query.location_filters][] must not be empty. When
+     * a job has multiple locations, the location closest to one of the locations
+     * specified in the location filter will be used to calculate location
+     * distance. Distance is calculated by the distance between two lat/long
+     * coordinates, with a precision of 10e-4 degrees (11.3 meters).
+     * Jobs that don't have locations specified will be ranked below jobs having
+     * locations.
+     * Diversification strategy is still applied unless explicitly disabled in
+     * [SearchJobsRequest.diversification_level][google.cloud.talent.v4beta1.SearchJobsRequest.diversification_level].
+     * 
+ * + * string order_by = 12; + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The criteria determining how search results are sorted. Default is
+     * "relevance desc".
+     * Supported options are:
+     * * "relevance desc": By relevance descending, as determined by the API
+     * algorithms. Relevance thresholding of query results is only available
+     * with this ordering.
+     * * "posting`_`publish`_`time desc": By
+     * [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time]
+     * descending.
+     * * "posting`_`update`_`time desc": By
+     * [Job.posting_update_time][google.cloud.talent.v4beta1.Job.posting_update_time]
+     * descending.
+     * * "title": By [Job.title][google.cloud.talent.v4beta1.Job.title] ascending.
+     * * "title desc": By [Job.title][google.cloud.talent.v4beta1.Job.title]
+     * descending.
+     * * "annualized`_`base`_`compensation": By job's
+     * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+     * ascending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "annualized`_`base`_`compensation desc": By job's
+     * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+     * descending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "annualized`_`total`_`compensation": By job's
+     * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+     * ascending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "annualized`_`total`_`compensation desc": By job's
+     * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+     * descending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "custom`_`ranking desc": By the relevance score adjusted to the
+     * [SearchJobsRequest.custom_ranking_info.ranking_expression][] with weight
+     * factor assigned by
+     * [SearchJobsRequest.custom_ranking_info.importance_level][] in descending
+     * order.
+     * * "location`_`distance": By the distance between the location on jobs and
+     *  locations specified in the
+     * [SearchJobsRequest.job_query.location_filters][].
+     * When this order is selected, the
+     * [SearchJobsRequest.job_query.location_filters][] must not be empty. When
+     * a job has multiple locations, the location closest to one of the locations
+     * specified in the location filter will be used to calculate location
+     * distance. Distance is calculated by the distance between two lat/long
+     * coordinates, with a precision of 10e-4 degrees (11.3 meters).
+     * Jobs that don't have locations specified will be ranked below jobs having
+     * locations.
+     * Diversification strategy is still applied unless explicitly disabled in
+     * [SearchJobsRequest.diversification_level][google.cloud.talent.v4beta1.SearchJobsRequest.diversification_level].
+     * 
+ * + * string order_by = 12; + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The criteria determining how search results are sorted. Default is
+     * "relevance desc".
+     * Supported options are:
+     * * "relevance desc": By relevance descending, as determined by the API
+     * algorithms. Relevance thresholding of query results is only available
+     * with this ordering.
+     * * "posting`_`publish`_`time desc": By
+     * [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time]
+     * descending.
+     * * "posting`_`update`_`time desc": By
+     * [Job.posting_update_time][google.cloud.talent.v4beta1.Job.posting_update_time]
+     * descending.
+     * * "title": By [Job.title][google.cloud.talent.v4beta1.Job.title] ascending.
+     * * "title desc": By [Job.title][google.cloud.talent.v4beta1.Job.title]
+     * descending.
+     * * "annualized`_`base`_`compensation": By job's
+     * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+     * ascending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "annualized`_`base`_`compensation desc": By job's
+     * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+     * descending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "annualized`_`total`_`compensation": By job's
+     * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+     * ascending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "annualized`_`total`_`compensation desc": By job's
+     * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+     * descending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "custom`_`ranking desc": By the relevance score adjusted to the
+     * [SearchJobsRequest.custom_ranking_info.ranking_expression][] with weight
+     * factor assigned by
+     * [SearchJobsRequest.custom_ranking_info.importance_level][] in descending
+     * order.
+     * * "location`_`distance": By the distance between the location on jobs and
+     *  locations specified in the
+     * [SearchJobsRequest.job_query.location_filters][].
+     * When this order is selected, the
+     * [SearchJobsRequest.job_query.location_filters][] must not be empty. When
+     * a job has multiple locations, the location closest to one of the locations
+     * specified in the location filter will be used to calculate location
+     * distance. Distance is calculated by the distance between two lat/long
+     * coordinates, with a precision of 10e-4 degrees (11.3 meters).
+     * Jobs that don't have locations specified will be ranked below jobs having
+     * locations.
+     * Diversification strategy is still applied unless explicitly disabled in
+     * [SearchJobsRequest.diversification_level][google.cloud.talent.v4beta1.SearchJobsRequest.diversification_level].
+     * 
+ * + * string order_by = 12; + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + orderBy_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The criteria determining how search results are sorted. Default is
+     * "relevance desc".
+     * Supported options are:
+     * * "relevance desc": By relevance descending, as determined by the API
+     * algorithms. Relevance thresholding of query results is only available
+     * with this ordering.
+     * * "posting`_`publish`_`time desc": By
+     * [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time]
+     * descending.
+     * * "posting`_`update`_`time desc": By
+     * [Job.posting_update_time][google.cloud.talent.v4beta1.Job.posting_update_time]
+     * descending.
+     * * "title": By [Job.title][google.cloud.talent.v4beta1.Job.title] ascending.
+     * * "title desc": By [Job.title][google.cloud.talent.v4beta1.Job.title]
+     * descending.
+     * * "annualized`_`base`_`compensation": By job's
+     * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+     * ascending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "annualized`_`base`_`compensation desc": By job's
+     * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+     * descending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "annualized`_`total`_`compensation": By job's
+     * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+     * ascending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "annualized`_`total`_`compensation desc": By job's
+     * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+     * descending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "custom`_`ranking desc": By the relevance score adjusted to the
+     * [SearchJobsRequest.custom_ranking_info.ranking_expression][] with weight
+     * factor assigned by
+     * [SearchJobsRequest.custom_ranking_info.importance_level][] in descending
+     * order.
+     * * "location`_`distance": By the distance between the location on jobs and
+     *  locations specified in the
+     * [SearchJobsRequest.job_query.location_filters][].
+     * When this order is selected, the
+     * [SearchJobsRequest.job_query.location_filters][] must not be empty. When
+     * a job has multiple locations, the location closest to one of the locations
+     * specified in the location filter will be used to calculate location
+     * distance. Distance is calculated by the distance between two lat/long
+     * coordinates, with a precision of 10e-4 degrees (11.3 meters).
+     * Jobs that don't have locations specified will be ranked below jobs having
+     * locations.
+     * Diversification strategy is still applied unless explicitly disabled in
+     * [SearchJobsRequest.diversification_level][google.cloud.talent.v4beta1.SearchJobsRequest.diversification_level].
+     * 
+ * + * string order_by = 12; + */ + public Builder clearOrderBy() { + + orderBy_ = getDefaultInstance().getOrderBy(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The criteria determining how search results are sorted. Default is
+     * "relevance desc".
+     * Supported options are:
+     * * "relevance desc": By relevance descending, as determined by the API
+     * algorithms. Relevance thresholding of query results is only available
+     * with this ordering.
+     * * "posting`_`publish`_`time desc": By
+     * [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time]
+     * descending.
+     * * "posting`_`update`_`time desc": By
+     * [Job.posting_update_time][google.cloud.talent.v4beta1.Job.posting_update_time]
+     * descending.
+     * * "title": By [Job.title][google.cloud.talent.v4beta1.Job.title] ascending.
+     * * "title desc": By [Job.title][google.cloud.talent.v4beta1.Job.title]
+     * descending.
+     * * "annualized`_`base`_`compensation": By job's
+     * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+     * ascending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "annualized`_`base`_`compensation desc": By job's
+     * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+     * descending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "annualized`_`total`_`compensation": By job's
+     * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+     * ascending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "annualized`_`total`_`compensation desc": By job's
+     * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+     * descending. Jobs whose annualized base compensation is unspecified are put
+     * at the end of search results.
+     * * "custom`_`ranking desc": By the relevance score adjusted to the
+     * [SearchJobsRequest.custom_ranking_info.ranking_expression][] with weight
+     * factor assigned by
+     * [SearchJobsRequest.custom_ranking_info.importance_level][] in descending
+     * order.
+     * * "location`_`distance": By the distance between the location on jobs and
+     *  locations specified in the
+     * [SearchJobsRequest.job_query.location_filters][].
+     * When this order is selected, the
+     * [SearchJobsRequest.job_query.location_filters][] must not be empty. When
+     * a job has multiple locations, the location closest to one of the locations
+     * specified in the location filter will be used to calculate location
+     * distance. Distance is calculated by the distance between two lat/long
+     * coordinates, with a precision of 10e-4 degrees (11.3 meters).
+     * Jobs that don't have locations specified will be ranked below jobs having
+     * locations.
+     * Diversification strategy is still applied unless explicitly disabled in
+     * [SearchJobsRequest.diversification_level][google.cloud.talent.v4beta1.SearchJobsRequest.diversification_level].
+     * 
+ * + * string order_by = 12; + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + orderBy_ = value; + onChanged(); + return this; + } + + private int diversificationLevel_ = 0; + /** + * + * + *
+     * Optional.
+     * Controls whether highly similar jobs are returned next to each other in
+     * the search results. Jobs are identified as highly similar based on
+     * their titles, job categories, and locations. Highly similar results are
+     * clustered so that only one representative job of the cluster is
+     * displayed to the job seeker higher up in the results, with the other jobs
+     * being displayed lower down in the results.
+     * Defaults to
+     * [DiversificationLevel.SIMPLE][google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel.SIMPLE]
+     * if no value is specified.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel diversification_level = 13; + * + */ + public int getDiversificationLevelValue() { + return diversificationLevel_; + } + /** + * + * + *
+     * Optional.
+     * Controls whether highly similar jobs are returned next to each other in
+     * the search results. Jobs are identified as highly similar based on
+     * their titles, job categories, and locations. Highly similar results are
+     * clustered so that only one representative job of the cluster is
+     * displayed to the job seeker higher up in the results, with the other jobs
+     * being displayed lower down in the results.
+     * Defaults to
+     * [DiversificationLevel.SIMPLE][google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel.SIMPLE]
+     * if no value is specified.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel diversification_level = 13; + * + */ + public Builder setDiversificationLevelValue(int value) { + diversificationLevel_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Controls whether highly similar jobs are returned next to each other in
+     * the search results. Jobs are identified as highly similar based on
+     * their titles, job categories, and locations. Highly similar results are
+     * clustered so that only one representative job of the cluster is
+     * displayed to the job seeker higher up in the results, with the other jobs
+     * being displayed lower down in the results.
+     * Defaults to
+     * [DiversificationLevel.SIMPLE][google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel.SIMPLE]
+     * if no value is specified.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel diversification_level = 13; + * + */ + public com.google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel + getDiversificationLevel() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel result = + com.google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel.valueOf( + diversificationLevel_); + return result == null + ? com.google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional.
+     * Controls whether highly similar jobs are returned next to each other in
+     * the search results. Jobs are identified as highly similar based on
+     * their titles, job categories, and locations. Highly similar results are
+     * clustered so that only one representative job of the cluster is
+     * displayed to the job seeker higher up in the results, with the other jobs
+     * being displayed lower down in the results.
+     * Defaults to
+     * [DiversificationLevel.SIMPLE][google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel.SIMPLE]
+     * if no value is specified.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel diversification_level = 13; + * + */ + public Builder setDiversificationLevel( + com.google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel value) { + if (value == null) { + throw new NullPointerException(); + } + + diversificationLevel_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Controls whether highly similar jobs are returned next to each other in
+     * the search results. Jobs are identified as highly similar based on
+     * their titles, job categories, and locations. Highly similar results are
+     * clustered so that only one representative job of the cluster is
+     * displayed to the job seeker higher up in the results, with the other jobs
+     * being displayed lower down in the results.
+     * Defaults to
+     * [DiversificationLevel.SIMPLE][google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel.SIMPLE]
+     * if no value is specified.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel diversification_level = 13; + * + */ + public Builder clearDiversificationLevel() { + + diversificationLevel_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo customRankingInfo_ = + null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo, + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.Builder, + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfoOrBuilder> + customRankingInfoBuilder_; + /** + * + * + *
+     * Optional.
+     * Controls over how job documents get ranked on top of existing relevance
+     * score (determined by API algorithm).
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo custom_ranking_info = 14; + * + */ + public boolean hasCustomRankingInfo() { + return customRankingInfoBuilder_ != null || customRankingInfo_ != null; + } + /** + * + * + *
+     * Optional.
+     * Controls over how job documents get ranked on top of existing relevance
+     * score (determined by API algorithm).
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo custom_ranking_info = 14; + * + */ + public com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo + getCustomRankingInfo() { + if (customRankingInfoBuilder_ == null) { + return customRankingInfo_ == null + ? com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo + .getDefaultInstance() + : customRankingInfo_; + } else { + return customRankingInfoBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * Controls over how job documents get ranked on top of existing relevance
+     * score (determined by API algorithm).
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo custom_ranking_info = 14; + * + */ + public Builder setCustomRankingInfo( + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo value) { + if (customRankingInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customRankingInfo_ = value; + onChanged(); + } else { + customRankingInfoBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Controls over how job documents get ranked on top of existing relevance
+     * score (determined by API algorithm).
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo custom_ranking_info = 14; + * + */ + public Builder setCustomRankingInfo( + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.Builder + builderForValue) { + if (customRankingInfoBuilder_ == null) { + customRankingInfo_ = builderForValue.build(); + onChanged(); + } else { + customRankingInfoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Controls over how job documents get ranked on top of existing relevance
+     * score (determined by API algorithm).
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo custom_ranking_info = 14; + * + */ + public Builder mergeCustomRankingInfo( + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo value) { + if (customRankingInfoBuilder_ == null) { + if (customRankingInfo_ != null) { + customRankingInfo_ = + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.newBuilder( + customRankingInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + customRankingInfo_ = value; + } + onChanged(); + } else { + customRankingInfoBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Controls over how job documents get ranked on top of existing relevance
+     * score (determined by API algorithm).
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo custom_ranking_info = 14; + * + */ + public Builder clearCustomRankingInfo() { + if (customRankingInfoBuilder_ == null) { + customRankingInfo_ = null; + onChanged(); + } else { + customRankingInfo_ = null; + customRankingInfoBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Controls over how job documents get ranked on top of existing relevance
+     * score (determined by API algorithm).
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo custom_ranking_info = 14; + * + */ + public com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.Builder + getCustomRankingInfoBuilder() { + + onChanged(); + return getCustomRankingInfoFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * Controls over how job documents get ranked on top of existing relevance
+     * score (determined by API algorithm).
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo custom_ranking_info = 14; + * + */ + public com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfoOrBuilder + getCustomRankingInfoOrBuilder() { + if (customRankingInfoBuilder_ != null) { + return customRankingInfoBuilder_.getMessageOrBuilder(); + } else { + return customRankingInfo_ == null + ? com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo + .getDefaultInstance() + : customRankingInfo_; + } + } + /** + * + * + *
+     * Optional.
+     * Controls over how job documents get ranked on top of existing relevance
+     * score (determined by API algorithm).
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo custom_ranking_info = 14; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo, + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.Builder, + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfoOrBuilder> + getCustomRankingInfoFieldBuilder() { + if (customRankingInfoBuilder_ == null) { + customRankingInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo, + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.Builder, + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfoOrBuilder>( + getCustomRankingInfo(), getParentForChildren(), isClean()); + customRankingInfo_ = null; + } + return customRankingInfoBuilder_; + } + + private boolean disableKeywordMatch_; + /** + * + * + *
+     * Optional.
+     * Controls whether to disable exact keyword match on [Job.job_title][],
+     * [Job.description][google.cloud.talent.v4beta1.Job.description],
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name],
+     * [Job.locations][0],
+     * [Job.qualifications][google.cloud.talent.v4beta1.Job.qualifications]. When
+     * disable keyword match is turned off, a keyword match returns jobs that do
+     * not match given category filters when there are matching keywords. For
+     * example, for the query "program manager," a result is returned even if the
+     * job posting has the title "software developer," which doesn't fall into
+     * "program manager" ontology, but does have "program manager" appearing in
+     * its description.
+     * For queries like "cloud" that don't contain title or
+     * location specific ontology, jobs with "cloud" keyword matches are returned
+     * regardless of this flag's value.
+     * Please use [Company.keyword_searchable_custom_fields][] or
+     * [Company.keyword_searchable_custom_attributes][] if company specific
+     * globally matched custom field/attribute string values is needed. Enabling
+     * keyword match improves recall of subsequent search requests.
+     * Defaults to false.
+     * 
+ * + * bool disable_keyword_match = 16; + */ + public boolean getDisableKeywordMatch() { + return disableKeywordMatch_; + } + /** + * + * + *
+     * Optional.
+     * Controls whether to disable exact keyword match on [Job.job_title][],
+     * [Job.description][google.cloud.talent.v4beta1.Job.description],
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name],
+     * [Job.locations][0],
+     * [Job.qualifications][google.cloud.talent.v4beta1.Job.qualifications]. When
+     * disable keyword match is turned off, a keyword match returns jobs that do
+     * not match given category filters when there are matching keywords. For
+     * example, for the query "program manager," a result is returned even if the
+     * job posting has the title "software developer," which doesn't fall into
+     * "program manager" ontology, but does have "program manager" appearing in
+     * its description.
+     * For queries like "cloud" that don't contain title or
+     * location specific ontology, jobs with "cloud" keyword matches are returned
+     * regardless of this flag's value.
+     * Please use [Company.keyword_searchable_custom_fields][] or
+     * [Company.keyword_searchable_custom_attributes][] if company specific
+     * globally matched custom field/attribute string values is needed. Enabling
+     * keyword match improves recall of subsequent search requests.
+     * Defaults to false.
+     * 
+ * + * bool disable_keyword_match = 16; + */ + public Builder setDisableKeywordMatch(boolean value) { + + disableKeywordMatch_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Controls whether to disable exact keyword match on [Job.job_title][],
+     * [Job.description][google.cloud.talent.v4beta1.Job.description],
+     * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name],
+     * [Job.locations][0],
+     * [Job.qualifications][google.cloud.talent.v4beta1.Job.qualifications]. When
+     * disable keyword match is turned off, a keyword match returns jobs that do
+     * not match given category filters when there are matching keywords. For
+     * example, for the query "program manager," a result is returned even if the
+     * job posting has the title "software developer," which doesn't fall into
+     * "program manager" ontology, but does have "program manager" appearing in
+     * its description.
+     * For queries like "cloud" that don't contain title or
+     * location specific ontology, jobs with "cloud" keyword matches are returned
+     * regardless of this flag's value.
+     * Please use [Company.keyword_searchable_custom_fields][] or
+     * [Company.keyword_searchable_custom_attributes][] if company specific
+     * globally matched custom field/attribute string values is needed. Enabling
+     * keyword match improves recall of subsequent search requests.
+     * Defaults to false.
+     * 
+ * + * bool disable_keyword_match = 16; + */ + public Builder clearDisableKeywordMatch() { + + disableKeywordMatch_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.SearchJobsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.SearchJobsRequest) + private static final com.google.cloud.talent.v4beta1.SearchJobsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.SearchJobsRequest(); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchJobsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SearchJobsRequest(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.SearchJobsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsRequestOrBuilder.java new file mode 100644 index 000000000000..b87b6f341593 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsRequestOrBuilder.java @@ -0,0 +1,977 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface SearchJobsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.SearchJobsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The resource name of the project to search within.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required.
+   * The resource name of the project to search within.
+   * The format is "projects/{project_id}", for example,
+   * "projects/api-test-project".
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional.
+   * Mode of a search.
+   * Defaults to
+   * [SearchMode.JOB_SEARCH][google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.JOB_SEARCH].
+   * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode search_mode = 2; + */ + int getSearchModeValue(); + /** + * + * + *
+   * Optional.
+   * Mode of a search.
+   * Defaults to
+   * [SearchMode.JOB_SEARCH][google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.JOB_SEARCH].
+   * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode search_mode = 2; + */ + com.google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode getSearchMode(); + + /** + * + * + *
+   * Required.
+   * The meta information collected about the job searcher, used to improve the
+   * search quality of the service.. The identifiers, (such as `user_id`) are
+   * provided by users, and must be unique and consistent.
+   * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 3; + */ + boolean hasRequestMetadata(); + /** + * + * + *
+   * Required.
+   * The meta information collected about the job searcher, used to improve the
+   * search quality of the service.. The identifiers, (such as `user_id`) are
+   * provided by users, and must be unique and consistent.
+   * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 3; + */ + com.google.cloud.talent.v4beta1.RequestMetadata getRequestMetadata(); + /** + * + * + *
+   * Required.
+   * The meta information collected about the job searcher, used to improve the
+   * search quality of the service.. The identifiers, (such as `user_id`) are
+   * provided by users, and must be unique and consistent.
+   * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 3; + */ + com.google.cloud.talent.v4beta1.RequestMetadataOrBuilder getRequestMetadataOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * Query used to search against jobs, such as keyword, location filters, etc.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobQuery job_query = 4; + */ + boolean hasJobQuery(); + /** + * + * + *
+   * Optional.
+   * Query used to search against jobs, such as keyword, location filters, etc.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobQuery job_query = 4; + */ + com.google.cloud.talent.v4beta1.JobQuery getJobQuery(); + /** + * + * + *
+   * Optional.
+   * Query used to search against jobs, such as keyword, location filters, etc.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobQuery job_query = 4; + */ + com.google.cloud.talent.v4beta1.JobQueryOrBuilder getJobQueryOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * Controls whether to broaden the search when it produces sparse results.
+   * Broadened queries append results to the end of the matching results
+   * list.
+   * Defaults to false.
+   * 
+ * + * bool enable_broadening = 5; + */ + boolean getEnableBroadening(); + + /** + * + * + *
+   * Optional.
+   * Controls if the search job request requires the return of a precise
+   * count of the first 300 results. Setting this to `true` ensures
+   * consistency in the number of results per page. Best practice is to set this
+   * value to true if a client allows users to jump directly to a
+   * non-sequential search results page.
+   * Enabling this flag may adversely impact performance.
+   * Defaults to false.
+   * 
+ * + * bool require_precise_result_size = 6; + */ + boolean getRequirePreciseResultSize(); + + /** + * + * + *
+   * Optional.
+   * An expression specifies a histogram request against matching jobs.
+   * Expression syntax is an aggregation function call with histogram facets and
+   * other options.
+   * Available aggregation function calls are:
+   * * `count(string_histogram_facet)`: Count the number of matching entities,
+   * for each distinct attribute value.
+   * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+   * matching entities within each bucket.
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label]): bucket built-in function creates a bucket
+   * with range of [start, end). Note that the end is exclusive, for example,
+   * bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Job histogram facets:
+   * * company_id: histogram by [Job.distributor_company_id][].
+   * * company_display_name: histogram by
+   * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+   * * employment_type: histogram by
+   * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+   * for example, "FULL_TIME", "PART_TIME".
+   * * company_size: histogram by
+   * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+   * "SMALL", "MEDIUM", "BIG".
+   * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+   * Must specify list of numeric buckets in spec.
+   * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+   * Must specify list of numeric buckets in spec.
+   * * degree_type: histogram by the [Job.degree_type][], for example,
+   * "Bachelors", "Masters".
+   * * job_level: histogram by the
+   * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+   * "Entry Level".
+   * * country: histogram by the country code of jobs, for example, "US", "FR".
+   * * admin1: histogram by the admin1 code of jobs, which is a global
+   * placeholder referring to the state, province, or the particular term a
+   * country uses to define the geographic structure below the country level,
+   * for example, "CA", "IL".
+   * * city: histogram by a combination of the "city name, admin1 code". For
+   * example,  "Mountain View, CA", "New York, NY".
+   * * admin1_country: histogram by a combination of the "admin1 code, country",
+   * for example, "CA, US", "IL, US".
+   * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+   * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+   * of a city center can change, customers may need to refresh them
+   * periodically.
+   * * locale: histogram by the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en-US", "fr-FR".
+   * * language: histogram by the language subtag of the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en", "fr".
+   * * category: histogram by the
+   * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+   * "COMPUTER_AND_IT", "HEALTHCARE".
+   * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+   * salary, for example, "WEEKLY", "MONTHLY".
+   * * base_compensation: histogram by the base salary. Must specify list of
+   * numeric buckets to group results by.
+   * * annualized_base_compensation: histogram by the base annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * annualized_total_compensation: histogram by the total annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * string_custom_attribute: histogram by string
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * string_custom_attribute["key1"].
+   * * numeric_custom_attribute: histogram by numeric
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+   * group results by.
+   * Example expressions:
+   * * count(admin1)
+   * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+   * bucket(100000, MAX)])
+   * * count(string_custom_attribute["some-string-custom-attribute"])
+   * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + java.util.List getHistogramQueriesList(); + /** + * + * + *
+   * Optional.
+   * An expression specifies a histogram request against matching jobs.
+   * Expression syntax is an aggregation function call with histogram facets and
+   * other options.
+   * Available aggregation function calls are:
+   * * `count(string_histogram_facet)`: Count the number of matching entities,
+   * for each distinct attribute value.
+   * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+   * matching entities within each bucket.
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label]): bucket built-in function creates a bucket
+   * with range of [start, end). Note that the end is exclusive, for example,
+   * bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Job histogram facets:
+   * * company_id: histogram by [Job.distributor_company_id][].
+   * * company_display_name: histogram by
+   * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+   * * employment_type: histogram by
+   * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+   * for example, "FULL_TIME", "PART_TIME".
+   * * company_size: histogram by
+   * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+   * "SMALL", "MEDIUM", "BIG".
+   * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+   * Must specify list of numeric buckets in spec.
+   * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+   * Must specify list of numeric buckets in spec.
+   * * degree_type: histogram by the [Job.degree_type][], for example,
+   * "Bachelors", "Masters".
+   * * job_level: histogram by the
+   * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+   * "Entry Level".
+   * * country: histogram by the country code of jobs, for example, "US", "FR".
+   * * admin1: histogram by the admin1 code of jobs, which is a global
+   * placeholder referring to the state, province, or the particular term a
+   * country uses to define the geographic structure below the country level,
+   * for example, "CA", "IL".
+   * * city: histogram by a combination of the "city name, admin1 code". For
+   * example,  "Mountain View, CA", "New York, NY".
+   * * admin1_country: histogram by a combination of the "admin1 code, country",
+   * for example, "CA, US", "IL, US".
+   * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+   * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+   * of a city center can change, customers may need to refresh them
+   * periodically.
+   * * locale: histogram by the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en-US", "fr-FR".
+   * * language: histogram by the language subtag of the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en", "fr".
+   * * category: histogram by the
+   * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+   * "COMPUTER_AND_IT", "HEALTHCARE".
+   * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+   * salary, for example, "WEEKLY", "MONTHLY".
+   * * base_compensation: histogram by the base salary. Must specify list of
+   * numeric buckets to group results by.
+   * * annualized_base_compensation: histogram by the base annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * annualized_total_compensation: histogram by the total annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * string_custom_attribute: histogram by string
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * string_custom_attribute["key1"].
+   * * numeric_custom_attribute: histogram by numeric
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+   * group results by.
+   * Example expressions:
+   * * count(admin1)
+   * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+   * bucket(100000, MAX)])
+   * * count(string_custom_attribute["some-string-custom-attribute"])
+   * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + com.google.cloud.talent.v4beta1.HistogramQuery getHistogramQueries(int index); + /** + * + * + *
+   * Optional.
+   * An expression specifies a histogram request against matching jobs.
+   * Expression syntax is an aggregation function call with histogram facets and
+   * other options.
+   * Available aggregation function calls are:
+   * * `count(string_histogram_facet)`: Count the number of matching entities,
+   * for each distinct attribute value.
+   * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+   * matching entities within each bucket.
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label]): bucket built-in function creates a bucket
+   * with range of [start, end). Note that the end is exclusive, for example,
+   * bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Job histogram facets:
+   * * company_id: histogram by [Job.distributor_company_id][].
+   * * company_display_name: histogram by
+   * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+   * * employment_type: histogram by
+   * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+   * for example, "FULL_TIME", "PART_TIME".
+   * * company_size: histogram by
+   * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+   * "SMALL", "MEDIUM", "BIG".
+   * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+   * Must specify list of numeric buckets in spec.
+   * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+   * Must specify list of numeric buckets in spec.
+   * * degree_type: histogram by the [Job.degree_type][], for example,
+   * "Bachelors", "Masters".
+   * * job_level: histogram by the
+   * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+   * "Entry Level".
+   * * country: histogram by the country code of jobs, for example, "US", "FR".
+   * * admin1: histogram by the admin1 code of jobs, which is a global
+   * placeholder referring to the state, province, or the particular term a
+   * country uses to define the geographic structure below the country level,
+   * for example, "CA", "IL".
+   * * city: histogram by a combination of the "city name, admin1 code". For
+   * example,  "Mountain View, CA", "New York, NY".
+   * * admin1_country: histogram by a combination of the "admin1 code, country",
+   * for example, "CA, US", "IL, US".
+   * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+   * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+   * of a city center can change, customers may need to refresh them
+   * periodically.
+   * * locale: histogram by the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en-US", "fr-FR".
+   * * language: histogram by the language subtag of the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en", "fr".
+   * * category: histogram by the
+   * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+   * "COMPUTER_AND_IT", "HEALTHCARE".
+   * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+   * salary, for example, "WEEKLY", "MONTHLY".
+   * * base_compensation: histogram by the base salary. Must specify list of
+   * numeric buckets to group results by.
+   * * annualized_base_compensation: histogram by the base annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * annualized_total_compensation: histogram by the total annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * string_custom_attribute: histogram by string
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * string_custom_attribute["key1"].
+   * * numeric_custom_attribute: histogram by numeric
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+   * group results by.
+   * Example expressions:
+   * * count(admin1)
+   * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+   * bucket(100000, MAX)])
+   * * count(string_custom_attribute["some-string-custom-attribute"])
+   * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + int getHistogramQueriesCount(); + /** + * + * + *
+   * Optional.
+   * An expression specifies a histogram request against matching jobs.
+   * Expression syntax is an aggregation function call with histogram facets and
+   * other options.
+   * Available aggregation function calls are:
+   * * `count(string_histogram_facet)`: Count the number of matching entities,
+   * for each distinct attribute value.
+   * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+   * matching entities within each bucket.
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label]): bucket built-in function creates a bucket
+   * with range of [start, end). Note that the end is exclusive, for example,
+   * bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Job histogram facets:
+   * * company_id: histogram by [Job.distributor_company_id][].
+   * * company_display_name: histogram by
+   * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+   * * employment_type: histogram by
+   * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+   * for example, "FULL_TIME", "PART_TIME".
+   * * company_size: histogram by
+   * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+   * "SMALL", "MEDIUM", "BIG".
+   * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+   * Must specify list of numeric buckets in spec.
+   * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+   * Must specify list of numeric buckets in spec.
+   * * degree_type: histogram by the [Job.degree_type][], for example,
+   * "Bachelors", "Masters".
+   * * job_level: histogram by the
+   * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+   * "Entry Level".
+   * * country: histogram by the country code of jobs, for example, "US", "FR".
+   * * admin1: histogram by the admin1 code of jobs, which is a global
+   * placeholder referring to the state, province, or the particular term a
+   * country uses to define the geographic structure below the country level,
+   * for example, "CA", "IL".
+   * * city: histogram by a combination of the "city name, admin1 code". For
+   * example,  "Mountain View, CA", "New York, NY".
+   * * admin1_country: histogram by a combination of the "admin1 code, country",
+   * for example, "CA, US", "IL, US".
+   * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+   * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+   * of a city center can change, customers may need to refresh them
+   * periodically.
+   * * locale: histogram by the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en-US", "fr-FR".
+   * * language: histogram by the language subtag of the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en", "fr".
+   * * category: histogram by the
+   * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+   * "COMPUTER_AND_IT", "HEALTHCARE".
+   * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+   * salary, for example, "WEEKLY", "MONTHLY".
+   * * base_compensation: histogram by the base salary. Must specify list of
+   * numeric buckets to group results by.
+   * * annualized_base_compensation: histogram by the base annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * annualized_total_compensation: histogram by the total annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * string_custom_attribute: histogram by string
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * string_custom_attribute["key1"].
+   * * numeric_custom_attribute: histogram by numeric
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+   * group results by.
+   * Example expressions:
+   * * count(admin1)
+   * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+   * bucket(100000, MAX)])
+   * * count(string_custom_attribute["some-string-custom-attribute"])
+   * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + java.util.List + getHistogramQueriesOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * An expression specifies a histogram request against matching jobs.
+   * Expression syntax is an aggregation function call with histogram facets and
+   * other options.
+   * Available aggregation function calls are:
+   * * `count(string_histogram_facet)`: Count the number of matching entities,
+   * for each distinct attribute value.
+   * * `count(numeric_histogram_facet, list of buckets)`: Count the number of
+   * matching entities within each bucket.
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets, for example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label]): bucket built-in function creates a bucket
+   * with range of [start, end). Note that the end is exclusive, for example,
+   * bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Job histogram facets:
+   * * company_id: histogram by [Job.distributor_company_id][].
+   * * company_display_name: histogram by
+   * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name].
+   * * employment_type: histogram by
+   * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types],
+   * for example, "FULL_TIME", "PART_TIME".
+   * * company_size: histogram by
+   * [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example,
+   * "SMALL", "MEDIUM", "BIG".
+   * * publish_time_in_month: histogram by the [Job.publish_time][] in months.
+   * Must specify list of numeric buckets in spec.
+   * * publish_time_in_year: histogram by the [Job.publish_time][] in years.
+   * Must specify list of numeric buckets in spec.
+   * * degree_type: histogram by the [Job.degree_type][], for example,
+   * "Bachelors", "Masters".
+   * * job_level: histogram by the
+   * [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example,
+   * "Entry Level".
+   * * country: histogram by the country code of jobs, for example, "US", "FR".
+   * * admin1: histogram by the admin1 code of jobs, which is a global
+   * placeholder referring to the state, province, or the particular term a
+   * country uses to define the geographic structure below the country level,
+   * for example, "CA", "IL".
+   * * city: histogram by a combination of the "city name, admin1 code". For
+   * example,  "Mountain View, CA", "New York, NY".
+   * * admin1_country: histogram by a combination of the "admin1 code, country",
+   * for example, "CA, US", "IL, US".
+   * * city_coordinate: histogram by the city center's GPS coordinates (latitude
+   * and longitude), for example, 37.4038522,-122.0987765. Since the coordinates
+   * of a city center can change, customers may need to refresh them
+   * periodically.
+   * * locale: histogram by the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en-US", "fr-FR".
+   * * language: histogram by the language subtag of the
+   * [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for
+   * example, "en", "fr".
+   * * category: histogram by the
+   * [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example,
+   * "COMPUTER_AND_IT", "HEALTHCARE".
+   * * base_compensation_unit: histogram by the [CompensationUnit][] of base
+   * salary, for example, "WEEKLY", "MONTHLY".
+   * * base_compensation: histogram by the base salary. Must specify list of
+   * numeric buckets to group results by.
+   * * annualized_base_compensation: histogram by the base annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * annualized_total_compensation: histogram by the total annualized salary.
+   * Must specify list of numeric buckets to group results by.
+   * * string_custom_attribute: histogram by string
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * string_custom_attribute["key1"].
+   * * numeric_custom_attribute: histogram by numeric
+   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes].
+   * Values can be accessed via square bracket notations like
+   * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to
+   * group results by.
+   * Example expressions:
+   * * count(admin1)
+   * * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),
+   * bucket(100000, MAX)])
+   * * count(string_custom_attribute["some-string-custom-attribute"])
+   * * count(numeric_custom_attribute["some-numeric-custom-attribute"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; + */ + com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder getHistogramQueriesOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * The desired job attributes returned for jobs in the
+   * search response. Defaults to [JobView.SMALL][] if no value is specified.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 8; + */ + int getJobViewValue(); + /** + * + * + *
+   * Optional.
+   * The desired job attributes returned for jobs in the
+   * search response. Defaults to [JobView.SMALL][] if no value is specified.
+   * 
+ * + * .google.cloud.talent.v4beta1.JobView job_view = 8; + */ + com.google.cloud.talent.v4beta1.JobView getJobView(); + + /** + * + * + *
+   * Optional.
+   * An integer that specifies the current offset (that is, starting result
+   * location, amongst the jobs deemed by the API as relevant) in search
+   * results. This field is only considered if
+   * [page_token][google.cloud.talent.v4beta1.SearchJobsRequest.page_token] is
+   * unset.
+   * For example, 0 means to  return results starting from the first matching
+   * job, and 10 means to return from the 11th job. This can be used for
+   * pagination, (for example, pageSize = 10 and offset = 10 means to return
+   * from the second page).
+   * 
+ * + * int32 offset = 9; + */ + int getOffset(); + + /** + * + * + *
+   * Optional.
+   * A limit on the number of jobs returned in the search results.
+   * Increasing this value above the default value of 10 can increase search
+   * response time. The value can be between 1 and 100.
+   * 
+ * + * int32 page_size = 10; + */ + int getPageSize(); + + /** + * + * + *
+   * Optional.
+   * The token specifying the current offset within
+   * search results. See
+   * [SearchJobsResponse.next_page_token][google.cloud.talent.v4beta1.SearchJobsResponse.next_page_token]
+   * for an explanation of how to obtain the next set of query results.
+   * 
+ * + * string page_token = 11; + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional.
+   * The token specifying the current offset within
+   * search results. See
+   * [SearchJobsResponse.next_page_token][google.cloud.talent.v4beta1.SearchJobsResponse.next_page_token]
+   * for an explanation of how to obtain the next set of query results.
+   * 
+ * + * string page_token = 11; + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional.
+   * The criteria determining how search results are sorted. Default is
+   * "relevance desc".
+   * Supported options are:
+   * * "relevance desc": By relevance descending, as determined by the API
+   * algorithms. Relevance thresholding of query results is only available
+   * with this ordering.
+   * * "posting`_`publish`_`time desc": By
+   * [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time]
+   * descending.
+   * * "posting`_`update`_`time desc": By
+   * [Job.posting_update_time][google.cloud.talent.v4beta1.Job.posting_update_time]
+   * descending.
+   * * "title": By [Job.title][google.cloud.talent.v4beta1.Job.title] ascending.
+   * * "title desc": By [Job.title][google.cloud.talent.v4beta1.Job.title]
+   * descending.
+   * * "annualized`_`base`_`compensation": By job's
+   * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+   * ascending. Jobs whose annualized base compensation is unspecified are put
+   * at the end of search results.
+   * * "annualized`_`base`_`compensation desc": By job's
+   * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+   * descending. Jobs whose annualized base compensation is unspecified are put
+   * at the end of search results.
+   * * "annualized`_`total`_`compensation": By job's
+   * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+   * ascending. Jobs whose annualized base compensation is unspecified are put
+   * at the end of search results.
+   * * "annualized`_`total`_`compensation desc": By job's
+   * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+   * descending. Jobs whose annualized base compensation is unspecified are put
+   * at the end of search results.
+   * * "custom`_`ranking desc": By the relevance score adjusted to the
+   * [SearchJobsRequest.custom_ranking_info.ranking_expression][] with weight
+   * factor assigned by
+   * [SearchJobsRequest.custom_ranking_info.importance_level][] in descending
+   * order.
+   * * "location`_`distance": By the distance between the location on jobs and
+   *  locations specified in the
+   * [SearchJobsRequest.job_query.location_filters][].
+   * When this order is selected, the
+   * [SearchJobsRequest.job_query.location_filters][] must not be empty. When
+   * a job has multiple locations, the location closest to one of the locations
+   * specified in the location filter will be used to calculate location
+   * distance. Distance is calculated by the distance between two lat/long
+   * coordinates, with a precision of 10e-4 degrees (11.3 meters).
+   * Jobs that don't have locations specified will be ranked below jobs having
+   * locations.
+   * Diversification strategy is still applied unless explicitly disabled in
+   * [SearchJobsRequest.diversification_level][google.cloud.talent.v4beta1.SearchJobsRequest.diversification_level].
+   * 
+ * + * string order_by = 12; + */ + java.lang.String getOrderBy(); + /** + * + * + *
+   * Optional.
+   * The criteria determining how search results are sorted. Default is
+   * "relevance desc".
+   * Supported options are:
+   * * "relevance desc": By relevance descending, as determined by the API
+   * algorithms. Relevance thresholding of query results is only available
+   * with this ordering.
+   * * "posting`_`publish`_`time desc": By
+   * [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time]
+   * descending.
+   * * "posting`_`update`_`time desc": By
+   * [Job.posting_update_time][google.cloud.talent.v4beta1.Job.posting_update_time]
+   * descending.
+   * * "title": By [Job.title][google.cloud.talent.v4beta1.Job.title] ascending.
+   * * "title desc": By [Job.title][google.cloud.talent.v4beta1.Job.title]
+   * descending.
+   * * "annualized`_`base`_`compensation": By job's
+   * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+   * ascending. Jobs whose annualized base compensation is unspecified are put
+   * at the end of search results.
+   * * "annualized`_`base`_`compensation desc": By job's
+   * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range]
+   * descending. Jobs whose annualized base compensation is unspecified are put
+   * at the end of search results.
+   * * "annualized`_`total`_`compensation": By job's
+   * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+   * ascending. Jobs whose annualized base compensation is unspecified are put
+   * at the end of search results.
+   * * "annualized`_`total`_`compensation desc": By job's
+   * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range]
+   * descending. Jobs whose annualized base compensation is unspecified are put
+   * at the end of search results.
+   * * "custom`_`ranking desc": By the relevance score adjusted to the
+   * [SearchJobsRequest.custom_ranking_info.ranking_expression][] with weight
+   * factor assigned by
+   * [SearchJobsRequest.custom_ranking_info.importance_level][] in descending
+   * order.
+   * * "location`_`distance": By the distance between the location on jobs and
+   *  locations specified in the
+   * [SearchJobsRequest.job_query.location_filters][].
+   * When this order is selected, the
+   * [SearchJobsRequest.job_query.location_filters][] must not be empty. When
+   * a job has multiple locations, the location closest to one of the locations
+   * specified in the location filter will be used to calculate location
+   * distance. Distance is calculated by the distance between two lat/long
+   * coordinates, with a precision of 10e-4 degrees (11.3 meters).
+   * Jobs that don't have locations specified will be ranked below jobs having
+   * locations.
+   * Diversification strategy is still applied unless explicitly disabled in
+   * [SearchJobsRequest.diversification_level][google.cloud.talent.v4beta1.SearchJobsRequest.diversification_level].
+   * 
+ * + * string order_by = 12; + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
+   * Optional.
+   * Controls whether highly similar jobs are returned next to each other in
+   * the search results. Jobs are identified as highly similar based on
+   * their titles, job categories, and locations. Highly similar results are
+   * clustered so that only one representative job of the cluster is
+   * displayed to the job seeker higher up in the results, with the other jobs
+   * being displayed lower down in the results.
+   * Defaults to
+   * [DiversificationLevel.SIMPLE][google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel.SIMPLE]
+   * if no value is specified.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel diversification_level = 13; + * + */ + int getDiversificationLevelValue(); + /** + * + * + *
+   * Optional.
+   * Controls whether highly similar jobs are returned next to each other in
+   * the search results. Jobs are identified as highly similar based on
+   * their titles, job categories, and locations. Highly similar results are
+   * clustered so that only one representative job of the cluster is
+   * displayed to the job seeker higher up in the results, with the other jobs
+   * being displayed lower down in the results.
+   * Defaults to
+   * [DiversificationLevel.SIMPLE][google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel.SIMPLE]
+   * if no value is specified.
+   * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel diversification_level = 13; + * + */ + com.google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel getDiversificationLevel(); + + /** + * + * + *
+   * Optional.
+   * Controls over how job documents get ranked on top of existing relevance
+   * score (determined by API algorithm).
+   * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo custom_ranking_info = 14; + * + */ + boolean hasCustomRankingInfo(); + /** + * + * + *
+   * Optional.
+   * Controls over how job documents get ranked on top of existing relevance
+   * score (determined by API algorithm).
+   * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo custom_ranking_info = 14; + * + */ + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo getCustomRankingInfo(); + /** + * + * + *
+   * Optional.
+   * Controls over how job documents get ranked on top of existing relevance
+   * score (determined by API algorithm).
+   * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo custom_ranking_info = 14; + * + */ + com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfoOrBuilder + getCustomRankingInfoOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * Controls whether to disable exact keyword match on [Job.job_title][],
+   * [Job.description][google.cloud.talent.v4beta1.Job.description],
+   * [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name],
+   * [Job.locations][0],
+   * [Job.qualifications][google.cloud.talent.v4beta1.Job.qualifications]. When
+   * disable keyword match is turned off, a keyword match returns jobs that do
+   * not match given category filters when there are matching keywords. For
+   * example, for the query "program manager," a result is returned even if the
+   * job posting has the title "software developer," which doesn't fall into
+   * "program manager" ontology, but does have "program manager" appearing in
+   * its description.
+   * For queries like "cloud" that don't contain title or
+   * location specific ontology, jobs with "cloud" keyword matches are returned
+   * regardless of this flag's value.
+   * Please use [Company.keyword_searchable_custom_fields][] or
+   * [Company.keyword_searchable_custom_attributes][] if company specific
+   * globally matched custom field/attribute string values is needed. Enabling
+   * keyword match improves recall of subsequent search requests.
+   * Defaults to false.
+   * 
+ * + * bool disable_keyword_match = 16; + */ + boolean getDisableKeywordMatch(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsResponse.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsResponse.java new file mode 100644 index 000000000000..fcbc5f970298 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsResponse.java @@ -0,0 +1,5880 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Output only.
+ * Response for SearchJob method.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SearchJobsResponse} + */ +public final class SearchJobsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.SearchJobsResponse) + SearchJobsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchJobsResponse.newBuilder() to construct. + private SearchJobsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchJobsResponse() { + matchingJobs_ = java.util.Collections.emptyList(); + histogramQueryResults_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + locationFilters_ = java.util.Collections.emptyList(); + estimatedTotalSize_ = 0; + totalSize_ = 0; + broadenedQueryJobsCount_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SearchJobsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + matchingJobs_ = + new java.util.ArrayList< + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob>(); + mutable_bitField0_ |= 0x00000001; + } + matchingJobs_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.parser(), + extensionRegistry)); + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + histogramQueryResults_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + histogramQueryResults_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.HistogramQueryResult.parser(), + extensionRegistry)); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + case 34: + { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + locationFilters_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + locationFilters_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.Location.parser(), extensionRegistry)); + break; + } + case 40: + { + estimatedTotalSize_ = input.readInt32(); + break; + } + case 48: + { + totalSize_ = input.readInt32(); + break; + } + case 58: + { + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = + input.readMessage( + com.google.cloud.talent.v4beta1.ResponseMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + case 64: + { + broadenedQueryJobsCount_ = input.readInt32(); + break; + } + case 74: + { + com.google.cloud.talent.v4beta1.SpellingCorrection.Builder subBuilder = null; + if (spellCorrection_ != null) { + subBuilder = spellCorrection_.toBuilder(); + } + spellCorrection_ = + input.readMessage( + com.google.cloud.talent.v4beta1.SpellingCorrection.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spellCorrection_); + spellCorrection_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + matchingJobs_ = java.util.Collections.unmodifiableList(matchingJobs_); + } + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + histogramQueryResults_ = java.util.Collections.unmodifiableList(histogramQueryResults_); + } + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + locationFilters_ = java.util.Collections.unmodifiableList(locationFilters_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SearchJobsResponse.class, + com.google.cloud.talent.v4beta1.SearchJobsResponse.Builder.class); + } + + public interface MatchingJobOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Job resource that matches the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + boolean hasJob(); + /** + * + * + *
+     * Job resource that matches the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + com.google.cloud.talent.v4beta1.Job getJob(); + /** + * + * + *
+     * Job resource that matches the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + com.google.cloud.talent.v4beta1.JobOrBuilder getJobOrBuilder(); + + /** + * + * + *
+     * A summary of the job with core information that's displayed on the search
+     * results listing page.
+     * 
+ * + * string job_summary = 2; + */ + java.lang.String getJobSummary(); + /** + * + * + *
+     * A summary of the job with core information that's displayed on the search
+     * results listing page.
+     * 
+ * + * string job_summary = 2; + */ + com.google.protobuf.ByteString getJobSummaryBytes(); + + /** + * + * + *
+     * Contains snippets of text from the [Job.job_title][] field most
+     * closely matching a search query's keywords, if available. The matching
+     * query keywords are enclosed in HTML bold tags.
+     * 
+ * + * string job_title_snippet = 3; + */ + java.lang.String getJobTitleSnippet(); + /** + * + * + *
+     * Contains snippets of text from the [Job.job_title][] field most
+     * closely matching a search query's keywords, if available. The matching
+     * query keywords are enclosed in HTML bold tags.
+     * 
+ * + * string job_title_snippet = 3; + */ + com.google.protobuf.ByteString getJobTitleSnippetBytes(); + + /** + * + * + *
+     * Contains snippets of text from the
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+     * similar fields that most closely match a search query's keywords, if
+     * available. All HTML tags in the original fields are stripped when
+     * returned in this field, and matching query keywords are enclosed in HTML
+     * bold tags.
+     * 
+ * + * string search_text_snippet = 4; + */ + java.lang.String getSearchTextSnippet(); + /** + * + * + *
+     * Contains snippets of text from the
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+     * similar fields that most closely match a search query's keywords, if
+     * available. All HTML tags in the original fields are stripped when
+     * returned in this field, and matching query keywords are enclosed in HTML
+     * bold tags.
+     * 
+ * + * string search_text_snippet = 4; + */ + com.google.protobuf.ByteString getSearchTextSnippetBytes(); + + /** + * + * + *
+     * Commute information which is generated based on specified
+     *  [CommuteFilter][google.cloud.talent.v4beta1.CommuteFilter].
+     * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo commute_info = 5; + */ + boolean hasCommuteInfo(); + /** + * + * + *
+     * Commute information which is generated based on specified
+     *  [CommuteFilter][google.cloud.talent.v4beta1.CommuteFilter].
+     * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo commute_info = 5; + */ + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo getCommuteInfo(); + /** + * + * + *
+     * Commute information which is generated based on specified
+     *  [CommuteFilter][google.cloud.talent.v4beta1.CommuteFilter].
+     * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo commute_info = 5; + */ + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfoOrBuilder + getCommuteInfoOrBuilder(); + } + /** + * + * + *
+   * Output only.
+   * Job entry with metadata inside
+   * [SearchJobsResponse][google.cloud.talent.v4beta1.SearchJobsResponse].
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob} + */ + public static final class MatchingJob extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob) + MatchingJobOrBuilder { + private static final long serialVersionUID = 0L; + // Use MatchingJob.newBuilder() to construct. + private MatchingJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MatchingJob() { + jobSummary_ = ""; + jobTitleSnippet_ = ""; + searchTextSnippet_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private MatchingJob( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.talent.v4beta1.Job.Builder subBuilder = null; + if (job_ != null) { + subBuilder = job_.toBuilder(); + } + job_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Job.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(job_); + job_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + jobSummary_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + jobTitleSnippet_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + searchTextSnippet_ = s; + break; + } + case 42: + { + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.Builder subBuilder = + null; + if (commuteInfo_ != null) { + subBuilder = commuteInfo_.toBuilder(); + } + commuteInfo_ = + input.readMessage( + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(commuteInfo_); + commuteInfo_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_MatchingJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_MatchingJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.class, + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.Builder.class); + } + + public static final int JOB_FIELD_NUMBER = 1; + private com.google.cloud.talent.v4beta1.Job job_; + /** + * + * + *
+     * Job resource that matches the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public boolean hasJob() { + return job_ != null; + } + /** + * + * + *
+     * Job resource that matches the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public com.google.cloud.talent.v4beta1.Job getJob() { + return job_ == null ? com.google.cloud.talent.v4beta1.Job.getDefaultInstance() : job_; + } + /** + * + * + *
+     * Job resource that matches the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public com.google.cloud.talent.v4beta1.JobOrBuilder getJobOrBuilder() { + return getJob(); + } + + public static final int JOB_SUMMARY_FIELD_NUMBER = 2; + private volatile java.lang.Object jobSummary_; + /** + * + * + *
+     * A summary of the job with core information that's displayed on the search
+     * results listing page.
+     * 
+ * + * string job_summary = 2; + */ + public java.lang.String getJobSummary() { + java.lang.Object ref = jobSummary_; + 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(); + jobSummary_ = s; + return s; + } + } + /** + * + * + *
+     * A summary of the job with core information that's displayed on the search
+     * results listing page.
+     * 
+ * + * string job_summary = 2; + */ + public com.google.protobuf.ByteString getJobSummaryBytes() { + java.lang.Object ref = jobSummary_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobSummary_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int JOB_TITLE_SNIPPET_FIELD_NUMBER = 3; + private volatile java.lang.Object jobTitleSnippet_; + /** + * + * + *
+     * Contains snippets of text from the [Job.job_title][] field most
+     * closely matching a search query's keywords, if available. The matching
+     * query keywords are enclosed in HTML bold tags.
+     * 
+ * + * string job_title_snippet = 3; + */ + public java.lang.String getJobTitleSnippet() { + java.lang.Object ref = jobTitleSnippet_; + 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(); + jobTitleSnippet_ = s; + return s; + } + } + /** + * + * + *
+     * Contains snippets of text from the [Job.job_title][] field most
+     * closely matching a search query's keywords, if available. The matching
+     * query keywords are enclosed in HTML bold tags.
+     * 
+ * + * string job_title_snippet = 3; + */ + public com.google.protobuf.ByteString getJobTitleSnippetBytes() { + java.lang.Object ref = jobTitleSnippet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobTitleSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SEARCH_TEXT_SNIPPET_FIELD_NUMBER = 4; + private volatile java.lang.Object searchTextSnippet_; + /** + * + * + *
+     * Contains snippets of text from the
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+     * similar fields that most closely match a search query's keywords, if
+     * available. All HTML tags in the original fields are stripped when
+     * returned in this field, and matching query keywords are enclosed in HTML
+     * bold tags.
+     * 
+ * + * string search_text_snippet = 4; + */ + public java.lang.String getSearchTextSnippet() { + java.lang.Object ref = searchTextSnippet_; + 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(); + searchTextSnippet_ = s; + return s; + } + } + /** + * + * + *
+     * Contains snippets of text from the
+     * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+     * similar fields that most closely match a search query's keywords, if
+     * available. All HTML tags in the original fields are stripped when
+     * returned in this field, and matching query keywords are enclosed in HTML
+     * bold tags.
+     * 
+ * + * string search_text_snippet = 4; + */ + public com.google.protobuf.ByteString getSearchTextSnippetBytes() { + java.lang.Object ref = searchTextSnippet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + searchTextSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMMUTE_INFO_FIELD_NUMBER = 5; + private com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo commuteInfo_; + /** + * + * + *
+     * Commute information which is generated based on specified
+     *  [CommuteFilter][google.cloud.talent.v4beta1.CommuteFilter].
+     * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo commute_info = 5; + */ + public boolean hasCommuteInfo() { + return commuteInfo_ != null; + } + /** + * + * + *
+     * Commute information which is generated based on specified
+     *  [CommuteFilter][google.cloud.talent.v4beta1.CommuteFilter].
+     * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo commute_info = 5; + */ + public com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo getCommuteInfo() { + return commuteInfo_ == null + ? com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.getDefaultInstance() + : commuteInfo_; + } + /** + * + * + *
+     * Commute information which is generated based on specified
+     *  [CommuteFilter][google.cloud.talent.v4beta1.CommuteFilter].
+     * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo commute_info = 5; + */ + public com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfoOrBuilder + getCommuteInfoOrBuilder() { + return getCommuteInfo(); + } + + 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 (job_ != null) { + output.writeMessage(1, getJob()); + } + if (!getJobSummaryBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, jobSummary_); + } + if (!getJobTitleSnippetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, jobTitleSnippet_); + } + if (!getSearchTextSnippetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, searchTextSnippet_); + } + if (commuteInfo_ != null) { + output.writeMessage(5, getCommuteInfo()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (job_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getJob()); + } + if (!getJobSummaryBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, jobSummary_); + } + if (!getJobTitleSnippetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, jobTitleSnippet_); + } + if (!getSearchTextSnippetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, searchTextSnippet_); + } + if (commuteInfo_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCommuteInfo()); + } + size += unknownFields.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.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob other = + (com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob) obj; + + boolean result = true; + result = result && (hasJob() == other.hasJob()); + if (hasJob()) { + result = result && getJob().equals(other.getJob()); + } + result = result && getJobSummary().equals(other.getJobSummary()); + result = result && getJobTitleSnippet().equals(other.getJobTitleSnippet()); + result = result && getSearchTextSnippet().equals(other.getSearchTextSnippet()); + result = result && (hasCommuteInfo() == other.hasCommuteInfo()); + if (hasCommuteInfo()) { + result = result && getCommuteInfo().equals(other.getCommuteInfo()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasJob()) { + hash = (37 * hash) + JOB_FIELD_NUMBER; + hash = (53 * hash) + getJob().hashCode(); + } + hash = (37 * hash) + JOB_SUMMARY_FIELD_NUMBER; + hash = (53 * hash) + getJobSummary().hashCode(); + hash = (37 * hash) + JOB_TITLE_SNIPPET_FIELD_NUMBER; + hash = (53 * hash) + getJobTitleSnippet().hashCode(); + hash = (37 * hash) + SEARCH_TEXT_SNIPPET_FIELD_NUMBER; + hash = (53 * hash) + getSearchTextSnippet().hashCode(); + if (hasCommuteInfo()) { + hash = (37 * hash) + COMMUTE_INFO_FIELD_NUMBER; + hash = (53 * hash) + getCommuteInfo().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob 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.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob 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.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob 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.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob 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.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob 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; + } + /** + * + * + *
+     * Output only.
+     * Job entry with metadata inside
+     * [SearchJobsResponse][google.cloud.talent.v4beta1.SearchJobsResponse].
+     * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob) + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_MatchingJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_MatchingJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.class, + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (jobBuilder_ == null) { + job_ = null; + } else { + job_ = null; + jobBuilder_ = null; + } + jobSummary_ = ""; + + jobTitleSnippet_ = ""; + + searchTextSnippet_ = ""; + + if (commuteInfoBuilder_ == null) { + commuteInfo_ = null; + } else { + commuteInfo_ = null; + commuteInfoBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_MatchingJob_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob + getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob build() { + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob buildPartial() { + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob result = + new com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob(this); + if (jobBuilder_ == null) { + result.job_ = job_; + } else { + result.job_ = jobBuilder_.build(); + } + result.jobSummary_ = jobSummary_; + result.jobTitleSnippet_ = jobTitleSnippet_; + result.searchTextSnippet_ = searchTextSnippet_; + if (commuteInfoBuilder_ == null) { + result.commuteInfo_ = commuteInfo_; + } else { + result.commuteInfo_ = commuteInfoBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob) { + return mergeFrom((com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob other) { + if (other + == com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.getDefaultInstance()) + return this; + if (other.hasJob()) { + mergeJob(other.getJob()); + } + if (!other.getJobSummary().isEmpty()) { + jobSummary_ = other.jobSummary_; + onChanged(); + } + if (!other.getJobTitleSnippet().isEmpty()) { + jobTitleSnippet_ = other.jobTitleSnippet_; + onChanged(); + } + if (!other.getSearchTextSnippet().isEmpty()) { + searchTextSnippet_ = other.searchTextSnippet_; + onChanged(); + } + if (other.hasCommuteInfo()) { + mergeCommuteInfo(other.getCommuteInfo()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.talent.v4beta1.Job job_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job, + com.google.cloud.talent.v4beta1.Job.Builder, + com.google.cloud.talent.v4beta1.JobOrBuilder> + jobBuilder_; + /** + * + * + *
+       * Job resource that matches the specified
+       * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+       * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public boolean hasJob() { + return jobBuilder_ != null || job_ != null; + } + /** + * + * + *
+       * Job resource that matches the specified
+       * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+       * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public com.google.cloud.talent.v4beta1.Job getJob() { + if (jobBuilder_ == null) { + return job_ == null ? com.google.cloud.talent.v4beta1.Job.getDefaultInstance() : job_; + } else { + return jobBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Job resource that matches the specified
+       * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+       * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public Builder setJob(com.google.cloud.talent.v4beta1.Job value) { + if (jobBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + job_ = value; + onChanged(); + } else { + jobBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Job resource that matches the specified
+       * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+       * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public Builder setJob(com.google.cloud.talent.v4beta1.Job.Builder builderForValue) { + if (jobBuilder_ == null) { + job_ = builderForValue.build(); + onChanged(); + } else { + jobBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Job resource that matches the specified
+       * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+       * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public Builder mergeJob(com.google.cloud.talent.v4beta1.Job value) { + if (jobBuilder_ == null) { + if (job_ != null) { + job_ = + com.google.cloud.talent.v4beta1.Job.newBuilder(job_) + .mergeFrom(value) + .buildPartial(); + } else { + job_ = value; + } + onChanged(); + } else { + jobBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Job resource that matches the specified
+       * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+       * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public Builder clearJob() { + if (jobBuilder_ == null) { + job_ = null; + onChanged(); + } else { + job_ = null; + jobBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Job resource that matches the specified
+       * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+       * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public com.google.cloud.talent.v4beta1.Job.Builder getJobBuilder() { + + onChanged(); + return getJobFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Job resource that matches the specified
+       * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+       * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public com.google.cloud.talent.v4beta1.JobOrBuilder getJobOrBuilder() { + if (jobBuilder_ != null) { + return jobBuilder_.getMessageOrBuilder(); + } else { + return job_ == null ? com.google.cloud.talent.v4beta1.Job.getDefaultInstance() : job_; + } + } + /** + * + * + *
+       * Job resource that matches the specified
+       * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+       * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job, + com.google.cloud.talent.v4beta1.Job.Builder, + com.google.cloud.talent.v4beta1.JobOrBuilder> + getJobFieldBuilder() { + if (jobBuilder_ == null) { + jobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job, + com.google.cloud.talent.v4beta1.Job.Builder, + com.google.cloud.talent.v4beta1.JobOrBuilder>( + getJob(), getParentForChildren(), isClean()); + job_ = null; + } + return jobBuilder_; + } + + private java.lang.Object jobSummary_ = ""; + /** + * + * + *
+       * A summary of the job with core information that's displayed on the search
+       * results listing page.
+       * 
+ * + * string job_summary = 2; + */ + public java.lang.String getJobSummary() { + java.lang.Object ref = jobSummary_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobSummary_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * A summary of the job with core information that's displayed on the search
+       * results listing page.
+       * 
+ * + * string job_summary = 2; + */ + public com.google.protobuf.ByteString getJobSummaryBytes() { + java.lang.Object ref = jobSummary_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobSummary_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * A summary of the job with core information that's displayed on the search
+       * results listing page.
+       * 
+ * + * string job_summary = 2; + */ + public Builder setJobSummary(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jobSummary_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * A summary of the job with core information that's displayed on the search
+       * results listing page.
+       * 
+ * + * string job_summary = 2; + */ + public Builder clearJobSummary() { + + jobSummary_ = getDefaultInstance().getJobSummary(); + onChanged(); + return this; + } + /** + * + * + *
+       * A summary of the job with core information that's displayed on the search
+       * results listing page.
+       * 
+ * + * string job_summary = 2; + */ + public Builder setJobSummaryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jobSummary_ = value; + onChanged(); + return this; + } + + private java.lang.Object jobTitleSnippet_ = ""; + /** + * + * + *
+       * Contains snippets of text from the [Job.job_title][] field most
+       * closely matching a search query's keywords, if available. The matching
+       * query keywords are enclosed in HTML bold tags.
+       * 
+ * + * string job_title_snippet = 3; + */ + public java.lang.String getJobTitleSnippet() { + java.lang.Object ref = jobTitleSnippet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobTitleSnippet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Contains snippets of text from the [Job.job_title][] field most
+       * closely matching a search query's keywords, if available. The matching
+       * query keywords are enclosed in HTML bold tags.
+       * 
+ * + * string job_title_snippet = 3; + */ + public com.google.protobuf.ByteString getJobTitleSnippetBytes() { + java.lang.Object ref = jobTitleSnippet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobTitleSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Contains snippets of text from the [Job.job_title][] field most
+       * closely matching a search query's keywords, if available. The matching
+       * query keywords are enclosed in HTML bold tags.
+       * 
+ * + * string job_title_snippet = 3; + */ + public Builder setJobTitleSnippet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jobTitleSnippet_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Contains snippets of text from the [Job.job_title][] field most
+       * closely matching a search query's keywords, if available. The matching
+       * query keywords are enclosed in HTML bold tags.
+       * 
+ * + * string job_title_snippet = 3; + */ + public Builder clearJobTitleSnippet() { + + jobTitleSnippet_ = getDefaultInstance().getJobTitleSnippet(); + onChanged(); + return this; + } + /** + * + * + *
+       * Contains snippets of text from the [Job.job_title][] field most
+       * closely matching a search query's keywords, if available. The matching
+       * query keywords are enclosed in HTML bold tags.
+       * 
+ * + * string job_title_snippet = 3; + */ + public Builder setJobTitleSnippetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jobTitleSnippet_ = value; + onChanged(); + return this; + } + + private java.lang.Object searchTextSnippet_ = ""; + /** + * + * + *
+       * Contains snippets of text from the
+       * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+       * similar fields that most closely match a search query's keywords, if
+       * available. All HTML tags in the original fields are stripped when
+       * returned in this field, and matching query keywords are enclosed in HTML
+       * bold tags.
+       * 
+ * + * string search_text_snippet = 4; + */ + public java.lang.String getSearchTextSnippet() { + java.lang.Object ref = searchTextSnippet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + searchTextSnippet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Contains snippets of text from the
+       * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+       * similar fields that most closely match a search query's keywords, if
+       * available. All HTML tags in the original fields are stripped when
+       * returned in this field, and matching query keywords are enclosed in HTML
+       * bold tags.
+       * 
+ * + * string search_text_snippet = 4; + */ + public com.google.protobuf.ByteString getSearchTextSnippetBytes() { + java.lang.Object ref = searchTextSnippet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + searchTextSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Contains snippets of text from the
+       * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+       * similar fields that most closely match a search query's keywords, if
+       * available. All HTML tags in the original fields are stripped when
+       * returned in this field, and matching query keywords are enclosed in HTML
+       * bold tags.
+       * 
+ * + * string search_text_snippet = 4; + */ + public Builder setSearchTextSnippet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + searchTextSnippet_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Contains snippets of text from the
+       * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+       * similar fields that most closely match a search query's keywords, if
+       * available. All HTML tags in the original fields are stripped when
+       * returned in this field, and matching query keywords are enclosed in HTML
+       * bold tags.
+       * 
+ * + * string search_text_snippet = 4; + */ + public Builder clearSearchTextSnippet() { + + searchTextSnippet_ = getDefaultInstance().getSearchTextSnippet(); + onChanged(); + return this; + } + /** + * + * + *
+       * Contains snippets of text from the
+       * [Job.description][google.cloud.talent.v4beta1.Job.description] and
+       * similar fields that most closely match a search query's keywords, if
+       * available. All HTML tags in the original fields are stripped when
+       * returned in this field, and matching query keywords are enclosed in HTML
+       * bold tags.
+       * 
+ * + * string search_text_snippet = 4; + */ + public Builder setSearchTextSnippetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + searchTextSnippet_ = value; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo commuteInfo_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo, + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.Builder, + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfoOrBuilder> + commuteInfoBuilder_; + /** + * + * + *
+       * Commute information which is generated based on specified
+       *  [CommuteFilter][google.cloud.talent.v4beta1.CommuteFilter].
+       * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo commute_info = 5; + */ + public boolean hasCommuteInfo() { + return commuteInfoBuilder_ != null || commuteInfo_ != null; + } + /** + * + * + *
+       * Commute information which is generated based on specified
+       *  [CommuteFilter][google.cloud.talent.v4beta1.CommuteFilter].
+       * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo commute_info = 5; + */ + public com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo getCommuteInfo() { + if (commuteInfoBuilder_ == null) { + return commuteInfo_ == null + ? com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.getDefaultInstance() + : commuteInfo_; + } else { + return commuteInfoBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Commute information which is generated based on specified
+       *  [CommuteFilter][google.cloud.talent.v4beta1.CommuteFilter].
+       * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo commute_info = 5; + */ + public Builder setCommuteInfo( + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo value) { + if (commuteInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + commuteInfo_ = value; + onChanged(); + } else { + commuteInfoBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Commute information which is generated based on specified
+       *  [CommuteFilter][google.cloud.talent.v4beta1.CommuteFilter].
+       * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo commute_info = 5; + */ + public Builder setCommuteInfo( + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.Builder builderForValue) { + if (commuteInfoBuilder_ == null) { + commuteInfo_ = builderForValue.build(); + onChanged(); + } else { + commuteInfoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Commute information which is generated based on specified
+       *  [CommuteFilter][google.cloud.talent.v4beta1.CommuteFilter].
+       * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo commute_info = 5; + */ + public Builder mergeCommuteInfo( + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo value) { + if (commuteInfoBuilder_ == null) { + if (commuteInfo_ != null) { + commuteInfo_ = + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.newBuilder( + commuteInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + commuteInfo_ = value; + } + onChanged(); + } else { + commuteInfoBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Commute information which is generated based on specified
+       *  [CommuteFilter][google.cloud.talent.v4beta1.CommuteFilter].
+       * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo commute_info = 5; + */ + public Builder clearCommuteInfo() { + if (commuteInfoBuilder_ == null) { + commuteInfo_ = null; + onChanged(); + } else { + commuteInfo_ = null; + commuteInfoBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Commute information which is generated based on specified
+       *  [CommuteFilter][google.cloud.talent.v4beta1.CommuteFilter].
+       * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo commute_info = 5; + */ + public com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.Builder + getCommuteInfoBuilder() { + + onChanged(); + return getCommuteInfoFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Commute information which is generated based on specified
+       *  [CommuteFilter][google.cloud.talent.v4beta1.CommuteFilter].
+       * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo commute_info = 5; + */ + public com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfoOrBuilder + getCommuteInfoOrBuilder() { + if (commuteInfoBuilder_ != null) { + return commuteInfoBuilder_.getMessageOrBuilder(); + } else { + return commuteInfo_ == null + ? com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.getDefaultInstance() + : commuteInfo_; + } + } + /** + * + * + *
+       * Commute information which is generated based on specified
+       *  [CommuteFilter][google.cloud.talent.v4beta1.CommuteFilter].
+       * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo commute_info = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo, + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.Builder, + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfoOrBuilder> + getCommuteInfoFieldBuilder() { + if (commuteInfoBuilder_ == null) { + commuteInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo, + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.Builder, + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfoOrBuilder>( + getCommuteInfo(), getParentForChildren(), isClean()); + commuteInfo_ = null; + } + return commuteInfoBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob) + private static final com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob(); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MatchingJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MatchingJob(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface CommuteInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Location used as the destination in the commute calculation.
+     * 
+ * + * .google.cloud.talent.v4beta1.Location job_location = 1; + */ + boolean hasJobLocation(); + /** + * + * + *
+     * Location used as the destination in the commute calculation.
+     * 
+ * + * .google.cloud.talent.v4beta1.Location job_location = 1; + */ + com.google.cloud.talent.v4beta1.Location getJobLocation(); + /** + * + * + *
+     * Location used as the destination in the commute calculation.
+     * 
+ * + * .google.cloud.talent.v4beta1.Location job_location = 1; + */ + com.google.cloud.talent.v4beta1.LocationOrBuilder getJobLocationOrBuilder(); + + /** + * + * + *
+     * The number of seconds required to travel to the job location from the
+     * query location. A duration of 0 seconds indicates that the job isn't
+     * reachable within the requested duration, but was returned as part of an
+     * expanded query.
+     * 
+ * + * .google.protobuf.Duration travel_duration = 2; + */ + boolean hasTravelDuration(); + /** + * + * + *
+     * The number of seconds required to travel to the job location from the
+     * query location. A duration of 0 seconds indicates that the job isn't
+     * reachable within the requested duration, but was returned as part of an
+     * expanded query.
+     * 
+ * + * .google.protobuf.Duration travel_duration = 2; + */ + com.google.protobuf.Duration getTravelDuration(); + /** + * + * + *
+     * The number of seconds required to travel to the job location from the
+     * query location. A duration of 0 seconds indicates that the job isn't
+     * reachable within the requested duration, but was returned as part of an
+     * expanded query.
+     * 
+ * + * .google.protobuf.Duration travel_duration = 2; + */ + com.google.protobuf.DurationOrBuilder getTravelDurationOrBuilder(); + } + /** + * + * + *
+   * Output only.
+   * Commute details related to this job.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo} + */ + public static final class CommuteInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo) + CommuteInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use CommuteInfo.newBuilder() to construct. + private CommuteInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CommuteInfo() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CommuteInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.talent.v4beta1.Location.Builder subBuilder = null; + if (jobLocation_ != null) { + subBuilder = jobLocation_.toBuilder(); + } + jobLocation_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Location.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(jobLocation_); + jobLocation_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (travelDuration_ != null) { + subBuilder = travelDuration_.toBuilder(); + } + travelDuration_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(travelDuration_); + travelDuration_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_CommuteInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_CommuteInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.class, + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.Builder.class); + } + + public static final int JOB_LOCATION_FIELD_NUMBER = 1; + private com.google.cloud.talent.v4beta1.Location jobLocation_; + /** + * + * + *
+     * Location used as the destination in the commute calculation.
+     * 
+ * + * .google.cloud.talent.v4beta1.Location job_location = 1; + */ + public boolean hasJobLocation() { + return jobLocation_ != null; + } + /** + * + * + *
+     * Location used as the destination in the commute calculation.
+     * 
+ * + * .google.cloud.talent.v4beta1.Location job_location = 1; + */ + public com.google.cloud.talent.v4beta1.Location getJobLocation() { + return jobLocation_ == null + ? com.google.cloud.talent.v4beta1.Location.getDefaultInstance() + : jobLocation_; + } + /** + * + * + *
+     * Location used as the destination in the commute calculation.
+     * 
+ * + * .google.cloud.talent.v4beta1.Location job_location = 1; + */ + public com.google.cloud.talent.v4beta1.LocationOrBuilder getJobLocationOrBuilder() { + return getJobLocation(); + } + + public static final int TRAVEL_DURATION_FIELD_NUMBER = 2; + private com.google.protobuf.Duration travelDuration_; + /** + * + * + *
+     * The number of seconds required to travel to the job location from the
+     * query location. A duration of 0 seconds indicates that the job isn't
+     * reachable within the requested duration, but was returned as part of an
+     * expanded query.
+     * 
+ * + * .google.protobuf.Duration travel_duration = 2; + */ + public boolean hasTravelDuration() { + return travelDuration_ != null; + } + /** + * + * + *
+     * The number of seconds required to travel to the job location from the
+     * query location. A duration of 0 seconds indicates that the job isn't
+     * reachable within the requested duration, but was returned as part of an
+     * expanded query.
+     * 
+ * + * .google.protobuf.Duration travel_duration = 2; + */ + public com.google.protobuf.Duration getTravelDuration() { + return travelDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : travelDuration_; + } + /** + * + * + *
+     * The number of seconds required to travel to the job location from the
+     * query location. A duration of 0 seconds indicates that the job isn't
+     * reachable within the requested duration, but was returned as part of an
+     * expanded query.
+     * 
+ * + * .google.protobuf.Duration travel_duration = 2; + */ + public com.google.protobuf.DurationOrBuilder getTravelDurationOrBuilder() { + return getTravelDuration(); + } + + 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 (jobLocation_ != null) { + output.writeMessage(1, getJobLocation()); + } + if (travelDuration_ != null) { + output.writeMessage(2, getTravelDuration()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (jobLocation_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getJobLocation()); + } + if (travelDuration_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTravelDuration()); + } + size += unknownFields.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.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo other = + (com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo) obj; + + boolean result = true; + result = result && (hasJobLocation() == other.hasJobLocation()); + if (hasJobLocation()) { + result = result && getJobLocation().equals(other.getJobLocation()); + } + result = result && (hasTravelDuration() == other.hasTravelDuration()); + if (hasTravelDuration()) { + result = result && getTravelDuration().equals(other.getTravelDuration()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasJobLocation()) { + hash = (37 * hash) + JOB_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getJobLocation().hashCode(); + } + if (hasTravelDuration()) { + hash = (37 * hash) + TRAVEL_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getTravelDuration().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo 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.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo 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.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo 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.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo 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.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo 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; + } + /** + * + * + *
+     * Output only.
+     * Commute details related to this job.
+     * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo) + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_CommuteInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_CommuteInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.class, + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (jobLocationBuilder_ == null) { + jobLocation_ = null; + } else { + jobLocation_ = null; + jobLocationBuilder_ = null; + } + if (travelDurationBuilder_ == null) { + travelDuration_ = null; + } else { + travelDuration_ = null; + travelDurationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_CommuteInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo + getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo build() { + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo buildPartial() { + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo result = + new com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo(this); + if (jobLocationBuilder_ == null) { + result.jobLocation_ = jobLocation_; + } else { + result.jobLocation_ = jobLocationBuilder_.build(); + } + if (travelDurationBuilder_ == null) { + result.travelDuration_ = travelDuration_; + } else { + result.travelDuration_ = travelDurationBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo) { + return mergeFrom((com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo other) { + if (other + == com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo.getDefaultInstance()) + return this; + if (other.hasJobLocation()) { + mergeJobLocation(other.getJobLocation()); + } + if (other.hasTravelDuration()) { + mergeTravelDuration(other.getTravelDuration()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.talent.v4beta1.Location jobLocation_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Location, + com.google.cloud.talent.v4beta1.Location.Builder, + com.google.cloud.talent.v4beta1.LocationOrBuilder> + jobLocationBuilder_; + /** + * + * + *
+       * Location used as the destination in the commute calculation.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location job_location = 1; + */ + public boolean hasJobLocation() { + return jobLocationBuilder_ != null || jobLocation_ != null; + } + /** + * + * + *
+       * Location used as the destination in the commute calculation.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location job_location = 1; + */ + public com.google.cloud.talent.v4beta1.Location getJobLocation() { + if (jobLocationBuilder_ == null) { + return jobLocation_ == null + ? com.google.cloud.talent.v4beta1.Location.getDefaultInstance() + : jobLocation_; + } else { + return jobLocationBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Location used as the destination in the commute calculation.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location job_location = 1; + */ + public Builder setJobLocation(com.google.cloud.talent.v4beta1.Location value) { + if (jobLocationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + jobLocation_ = value; + onChanged(); + } else { + jobLocationBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Location used as the destination in the commute calculation.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location job_location = 1; + */ + public Builder setJobLocation( + com.google.cloud.talent.v4beta1.Location.Builder builderForValue) { + if (jobLocationBuilder_ == null) { + jobLocation_ = builderForValue.build(); + onChanged(); + } else { + jobLocationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Location used as the destination in the commute calculation.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location job_location = 1; + */ + public Builder mergeJobLocation(com.google.cloud.talent.v4beta1.Location value) { + if (jobLocationBuilder_ == null) { + if (jobLocation_ != null) { + jobLocation_ = + com.google.cloud.talent.v4beta1.Location.newBuilder(jobLocation_) + .mergeFrom(value) + .buildPartial(); + } else { + jobLocation_ = value; + } + onChanged(); + } else { + jobLocationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Location used as the destination in the commute calculation.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location job_location = 1; + */ + public Builder clearJobLocation() { + if (jobLocationBuilder_ == null) { + jobLocation_ = null; + onChanged(); + } else { + jobLocation_ = null; + jobLocationBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Location used as the destination in the commute calculation.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location job_location = 1; + */ + public com.google.cloud.talent.v4beta1.Location.Builder getJobLocationBuilder() { + + onChanged(); + return getJobLocationFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Location used as the destination in the commute calculation.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location job_location = 1; + */ + public com.google.cloud.talent.v4beta1.LocationOrBuilder getJobLocationOrBuilder() { + if (jobLocationBuilder_ != null) { + return jobLocationBuilder_.getMessageOrBuilder(); + } else { + return jobLocation_ == null + ? com.google.cloud.talent.v4beta1.Location.getDefaultInstance() + : jobLocation_; + } + } + /** + * + * + *
+       * Location used as the destination in the commute calculation.
+       * 
+ * + * .google.cloud.talent.v4beta1.Location job_location = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Location, + com.google.cloud.talent.v4beta1.Location.Builder, + com.google.cloud.talent.v4beta1.LocationOrBuilder> + getJobLocationFieldBuilder() { + if (jobLocationBuilder_ == null) { + jobLocationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Location, + com.google.cloud.talent.v4beta1.Location.Builder, + com.google.cloud.talent.v4beta1.LocationOrBuilder>( + getJobLocation(), getParentForChildren(), isClean()); + jobLocation_ = null; + } + return jobLocationBuilder_; + } + + private com.google.protobuf.Duration travelDuration_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + travelDurationBuilder_; + /** + * + * + *
+       * The number of seconds required to travel to the job location from the
+       * query location. A duration of 0 seconds indicates that the job isn't
+       * reachable within the requested duration, but was returned as part of an
+       * expanded query.
+       * 
+ * + * .google.protobuf.Duration travel_duration = 2; + */ + public boolean hasTravelDuration() { + return travelDurationBuilder_ != null || travelDuration_ != null; + } + /** + * + * + *
+       * The number of seconds required to travel to the job location from the
+       * query location. A duration of 0 seconds indicates that the job isn't
+       * reachable within the requested duration, but was returned as part of an
+       * expanded query.
+       * 
+ * + * .google.protobuf.Duration travel_duration = 2; + */ + public com.google.protobuf.Duration getTravelDuration() { + if (travelDurationBuilder_ == null) { + return travelDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : travelDuration_; + } else { + return travelDurationBuilder_.getMessage(); + } + } + /** + * + * + *
+       * The number of seconds required to travel to the job location from the
+       * query location. A duration of 0 seconds indicates that the job isn't
+       * reachable within the requested duration, but was returned as part of an
+       * expanded query.
+       * 
+ * + * .google.protobuf.Duration travel_duration = 2; + */ + public Builder setTravelDuration(com.google.protobuf.Duration value) { + if (travelDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + travelDuration_ = value; + onChanged(); + } else { + travelDurationBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * The number of seconds required to travel to the job location from the
+       * query location. A duration of 0 seconds indicates that the job isn't
+       * reachable within the requested duration, but was returned as part of an
+       * expanded query.
+       * 
+ * + * .google.protobuf.Duration travel_duration = 2; + */ + public Builder setTravelDuration(com.google.protobuf.Duration.Builder builderForValue) { + if (travelDurationBuilder_ == null) { + travelDuration_ = builderForValue.build(); + onChanged(); + } else { + travelDurationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * The number of seconds required to travel to the job location from the
+       * query location. A duration of 0 seconds indicates that the job isn't
+       * reachable within the requested duration, but was returned as part of an
+       * expanded query.
+       * 
+ * + * .google.protobuf.Duration travel_duration = 2; + */ + public Builder mergeTravelDuration(com.google.protobuf.Duration value) { + if (travelDurationBuilder_ == null) { + if (travelDuration_ != null) { + travelDuration_ = + com.google.protobuf.Duration.newBuilder(travelDuration_) + .mergeFrom(value) + .buildPartial(); + } else { + travelDuration_ = value; + } + onChanged(); + } else { + travelDurationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * The number of seconds required to travel to the job location from the
+       * query location. A duration of 0 seconds indicates that the job isn't
+       * reachable within the requested duration, but was returned as part of an
+       * expanded query.
+       * 
+ * + * .google.protobuf.Duration travel_duration = 2; + */ + public Builder clearTravelDuration() { + if (travelDurationBuilder_ == null) { + travelDuration_ = null; + onChanged(); + } else { + travelDuration_ = null; + travelDurationBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * The number of seconds required to travel to the job location from the
+       * query location. A duration of 0 seconds indicates that the job isn't
+       * reachable within the requested duration, but was returned as part of an
+       * expanded query.
+       * 
+ * + * .google.protobuf.Duration travel_duration = 2; + */ + public com.google.protobuf.Duration.Builder getTravelDurationBuilder() { + + onChanged(); + return getTravelDurationFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * The number of seconds required to travel to the job location from the
+       * query location. A duration of 0 seconds indicates that the job isn't
+       * reachable within the requested duration, but was returned as part of an
+       * expanded query.
+       * 
+ * + * .google.protobuf.Duration travel_duration = 2; + */ + public com.google.protobuf.DurationOrBuilder getTravelDurationOrBuilder() { + if (travelDurationBuilder_ != null) { + return travelDurationBuilder_.getMessageOrBuilder(); + } else { + return travelDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : travelDuration_; + } + } + /** + * + * + *
+       * The number of seconds required to travel to the job location from the
+       * query location. A duration of 0 seconds indicates that the job isn't
+       * reachable within the requested duration, but was returned as part of an
+       * expanded query.
+       * 
+ * + * .google.protobuf.Duration travel_duration = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getTravelDurationFieldBuilder() { + if (travelDurationBuilder_ == null) { + travelDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getTravelDuration(), getParentForChildren(), isClean()); + travelDuration_ = null; + } + return travelDurationBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo) + private static final com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo(); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CommuteInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CommuteInfo(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int MATCHING_JOBS_FIELD_NUMBER = 1; + private java.util.List + matchingJobs_; + /** + * + * + *
+   * The Job entities that match the specified
+   * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public java.util.List + getMatchingJobsList() { + return matchingJobs_; + } + /** + * + * + *
+   * The Job entities that match the specified
+   * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJobOrBuilder> + getMatchingJobsOrBuilderList() { + return matchingJobs_; + } + /** + * + * + *
+   * The Job entities that match the specified
+   * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public int getMatchingJobsCount() { + return matchingJobs_.size(); + } + /** + * + * + *
+   * The Job entities that match the specified
+   * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob getMatchingJobs(int index) { + return matchingJobs_.get(index); + } + /** + * + * + *
+   * The Job entities that match the specified
+   * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJobOrBuilder + getMatchingJobsOrBuilder(int index) { + return matchingJobs_.get(index); + } + + public static final int HISTOGRAM_QUERY_RESULTS_FIELD_NUMBER = 2; + private java.util.List + histogramQueryResults_; + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public java.util.List + getHistogramQueryResultsList() { + return histogramQueryResults_; + } + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public java.util.List + getHistogramQueryResultsOrBuilderList() { + return histogramQueryResults_; + } + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public int getHistogramQueryResultsCount() { + return histogramQueryResults_.size(); + } + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public com.google.cloud.talent.v4beta1.HistogramQueryResult getHistogramQueryResults(int index) { + return histogramQueryResults_.get(index); + } + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public com.google.cloud.talent.v4beta1.HistogramQueryResultOrBuilder + getHistogramQueryResultsOrBuilder(int index) { + return histogramQueryResults_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * The token that specifies the starting position of the next page of results.
+   * This field is empty if there are no more results.
+   * 
+ * + * string next_page_token = 3; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * The token that specifies the starting position of the next page of results.
+   * This field is empty if there are no more results.
+   * 
+ * + * string next_page_token = 3; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCATION_FILTERS_FIELD_NUMBER = 4; + private java.util.List locationFilters_; + /** + * + * + *
+   * The location filters that the service applied to the specified query. If
+   * any filters are lat-lng based, the [JobLocation.location_type][] is
+   * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public java.util.List getLocationFiltersList() { + return locationFilters_; + } + /** + * + * + *
+   * The location filters that the service applied to the specified query. If
+   * any filters are lat-lng based, the [JobLocation.location_type][] is
+   * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public java.util.List + getLocationFiltersOrBuilderList() { + return locationFilters_; + } + /** + * + * + *
+   * The location filters that the service applied to the specified query. If
+   * any filters are lat-lng based, the [JobLocation.location_type][] is
+   * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public int getLocationFiltersCount() { + return locationFilters_.size(); + } + /** + * + * + *
+   * The location filters that the service applied to the specified query. If
+   * any filters are lat-lng based, the [JobLocation.location_type][] is
+   * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public com.google.cloud.talent.v4beta1.Location getLocationFilters(int index) { + return locationFilters_.get(index); + } + /** + * + * + *
+   * The location filters that the service applied to the specified query. If
+   * any filters are lat-lng based, the [JobLocation.location_type][] is
+   * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public com.google.cloud.talent.v4beta1.LocationOrBuilder getLocationFiltersOrBuilder(int index) { + return locationFilters_.get(index); + } + + public static final int ESTIMATED_TOTAL_SIZE_FIELD_NUMBER = 5; + private int estimatedTotalSize_; + /** + * + * + *
+   * An estimation of the number of jobs that match the specified query.
+   * This number isn't guaranteed to be accurate. For accurate results,
+   * see [enable_precise_result_size][].
+   * 
+ * + * int32 estimated_total_size = 5; + */ + public int getEstimatedTotalSize() { + return estimatedTotalSize_; + } + + public static final int TOTAL_SIZE_FIELD_NUMBER = 6; + private int totalSize_; + /** + * + * + *
+   * The precise result count, which is available only if the client set
+   * [enable_precise_result_size][] to `true`, or if the response
+   * is the last page of results. Otherwise, the value is `-1`.
+   * 
+ * + * int32 total_size = 6; + */ + public int getTotalSize() { + return totalSize_; + } + + public static final int METADATA_FIELD_NUMBER = 7; + private com.google.cloud.talent.v4beta1.ResponseMetadata metadata_; + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 7; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 7; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata() { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 7; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + public static final int BROADENED_QUERY_JOBS_COUNT_FIELD_NUMBER = 8; + private int broadenedQueryJobsCount_; + /** + * + * + *
+   * If query broadening is enabled, we may append additional results from the
+   * broadened query. This number indicates how many of the jobs returned in the
+   * jobs field are from the broadened query. These results are always at the
+   * end of the jobs list. In particular, a value of 0, or if the field isn't
+   * set, all the jobs in the jobs list are from the original
+   * (without broadening) query. If this field is non-zero, subsequent requests
+   * with offset after this result set should contain all broadened results.
+   * 
+ * + * int32 broadened_query_jobs_count = 8; + */ + public int getBroadenedQueryJobsCount() { + return broadenedQueryJobsCount_; + } + + public static final int SPELL_CORRECTION_FIELD_NUMBER = 9; + private com.google.cloud.talent.v4beta1.SpellingCorrection spellCorrection_; + /** + * + * + *
+   * The spell checking result, and correction.
+   * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 9; + */ + public boolean hasSpellCorrection() { + return spellCorrection_ != null; + } + /** + * + * + *
+   * The spell checking result, and correction.
+   * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 9; + */ + public com.google.cloud.talent.v4beta1.SpellingCorrection getSpellCorrection() { + return spellCorrection_ == null + ? com.google.cloud.talent.v4beta1.SpellingCorrection.getDefaultInstance() + : spellCorrection_; + } + /** + * + * + *
+   * The spell checking result, and correction.
+   * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 9; + */ + public com.google.cloud.talent.v4beta1.SpellingCorrectionOrBuilder getSpellCorrectionOrBuilder() { + return getSpellCorrection(); + } + + 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 { + for (int i = 0; i < matchingJobs_.size(); i++) { + output.writeMessage(1, matchingJobs_.get(i)); + } + for (int i = 0; i < histogramQueryResults_.size(); i++) { + output.writeMessage(2, histogramQueryResults_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, nextPageToken_); + } + for (int i = 0; i < locationFilters_.size(); i++) { + output.writeMessage(4, locationFilters_.get(i)); + } + if (estimatedTotalSize_ != 0) { + output.writeInt32(5, estimatedTotalSize_); + } + if (totalSize_ != 0) { + output.writeInt32(6, totalSize_); + } + if (metadata_ != null) { + output.writeMessage(7, getMetadata()); + } + if (broadenedQueryJobsCount_ != 0) { + output.writeInt32(8, broadenedQueryJobsCount_); + } + if (spellCorrection_ != null) { + output.writeMessage(9, getSpellCorrection()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < matchingJobs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, matchingJobs_.get(i)); + } + for (int i = 0; i < histogramQueryResults_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, histogramQueryResults_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); + } + for (int i = 0; i < locationFilters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, locationFilters_.get(i)); + } + if (estimatedTotalSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, estimatedTotalSize_); + } + if (totalSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, totalSize_); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getMetadata()); + } + if (broadenedQueryJobsCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, broadenedQueryJobsCount_); + } + if (spellCorrection_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getSpellCorrection()); + } + size += unknownFields.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.cloud.talent.v4beta1.SearchJobsResponse)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.SearchJobsResponse other = + (com.google.cloud.talent.v4beta1.SearchJobsResponse) obj; + + boolean result = true; + result = result && getMatchingJobsList().equals(other.getMatchingJobsList()); + result = result && getHistogramQueryResultsList().equals(other.getHistogramQueryResultsList()); + result = result && getNextPageToken().equals(other.getNextPageToken()); + result = result && getLocationFiltersList().equals(other.getLocationFiltersList()); + result = result && (getEstimatedTotalSize() == other.getEstimatedTotalSize()); + result = result && (getTotalSize() == other.getTotalSize()); + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata().equals(other.getMetadata()); + } + result = result && (getBroadenedQueryJobsCount() == other.getBroadenedQueryJobsCount()); + result = result && (hasSpellCorrection() == other.hasSpellCorrection()); + if (hasSpellCorrection()) { + result = result && getSpellCorrection().equals(other.getSpellCorrection()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getMatchingJobsCount() > 0) { + hash = (37 * hash) + MATCHING_JOBS_FIELD_NUMBER; + hash = (53 * hash) + getMatchingJobsList().hashCode(); + } + if (getHistogramQueryResultsCount() > 0) { + hash = (37 * hash) + HISTOGRAM_QUERY_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getHistogramQueryResultsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getLocationFiltersCount() > 0) { + hash = (37 * hash) + LOCATION_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getLocationFiltersList().hashCode(); + } + hash = (37 * hash) + ESTIMATED_TOTAL_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getEstimatedTotalSize(); + hash = (37 * hash) + TOTAL_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getTotalSize(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (37 * hash) + BROADENED_QUERY_JOBS_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getBroadenedQueryJobsCount(); + if (hasSpellCorrection()) { + hash = (37 * hash) + SPELL_CORRECTION_FIELD_NUMBER; + hash = (53 * hash) + getSpellCorrection().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse 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.cloud.talent.v4beta1.SearchJobsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse 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.cloud.talent.v4beta1.SearchJobsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse 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.cloud.talent.v4beta1.SearchJobsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse 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.cloud.talent.v4beta1.SearchJobsResponse 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; + } + /** + * + * + *
+   * Output only.
+   * Response for SearchJob method.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SearchJobsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.SearchJobsResponse) + com.google.cloud.talent.v4beta1.SearchJobsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SearchJobsResponse.class, + com.google.cloud.talent.v4beta1.SearchJobsResponse.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.SearchJobsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMatchingJobsFieldBuilder(); + getHistogramQueryResultsFieldBuilder(); + getLocationFiltersFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (matchingJobsBuilder_ == null) { + matchingJobs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + matchingJobsBuilder_.clear(); + } + if (histogramQueryResultsBuilder_ == null) { + histogramQueryResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + histogramQueryResultsBuilder_.clear(); + } + nextPageToken_ = ""; + + if (locationFiltersBuilder_ == null) { + locationFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + locationFiltersBuilder_.clear(); + } + estimatedTotalSize_ = 0; + + totalSize_ = 0; + + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + broadenedQueryJobsCount_ = 0; + + if (spellCorrectionBuilder_ == null) { + spellCorrection_ = null; + } else { + spellCorrection_ = null; + spellCorrectionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchJobsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsResponse getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.SearchJobsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsResponse build() { + com.google.cloud.talent.v4beta1.SearchJobsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsResponse buildPartial() { + com.google.cloud.talent.v4beta1.SearchJobsResponse result = + new com.google.cloud.talent.v4beta1.SearchJobsResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (matchingJobsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + matchingJobs_ = java.util.Collections.unmodifiableList(matchingJobs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.matchingJobs_ = matchingJobs_; + } else { + result.matchingJobs_ = matchingJobsBuilder_.build(); + } + if (histogramQueryResultsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + histogramQueryResults_ = java.util.Collections.unmodifiableList(histogramQueryResults_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.histogramQueryResults_ = histogramQueryResults_; + } else { + result.histogramQueryResults_ = histogramQueryResultsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + if (locationFiltersBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { + locationFilters_ = java.util.Collections.unmodifiableList(locationFilters_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.locationFilters_ = locationFilters_; + } else { + result.locationFilters_ = locationFiltersBuilder_.build(); + } + result.estimatedTotalSize_ = estimatedTotalSize_; + result.totalSize_ = totalSize_; + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + result.broadenedQueryJobsCount_ = broadenedQueryJobsCount_; + if (spellCorrectionBuilder_ == null) { + result.spellCorrection_ = spellCorrection_; + } else { + result.spellCorrection_ = spellCorrectionBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.SearchJobsResponse) { + return mergeFrom((com.google.cloud.talent.v4beta1.SearchJobsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.SearchJobsResponse other) { + if (other == com.google.cloud.talent.v4beta1.SearchJobsResponse.getDefaultInstance()) + return this; + if (matchingJobsBuilder_ == null) { + if (!other.matchingJobs_.isEmpty()) { + if (matchingJobs_.isEmpty()) { + matchingJobs_ = other.matchingJobs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMatchingJobsIsMutable(); + matchingJobs_.addAll(other.matchingJobs_); + } + onChanged(); + } + } else { + if (!other.matchingJobs_.isEmpty()) { + if (matchingJobsBuilder_.isEmpty()) { + matchingJobsBuilder_.dispose(); + matchingJobsBuilder_ = null; + matchingJobs_ = other.matchingJobs_; + bitField0_ = (bitField0_ & ~0x00000001); + matchingJobsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMatchingJobsFieldBuilder() + : null; + } else { + matchingJobsBuilder_.addAllMessages(other.matchingJobs_); + } + } + } + if (histogramQueryResultsBuilder_ == null) { + if (!other.histogramQueryResults_.isEmpty()) { + if (histogramQueryResults_.isEmpty()) { + histogramQueryResults_ = other.histogramQueryResults_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureHistogramQueryResultsIsMutable(); + histogramQueryResults_.addAll(other.histogramQueryResults_); + } + onChanged(); + } + } else { + if (!other.histogramQueryResults_.isEmpty()) { + if (histogramQueryResultsBuilder_.isEmpty()) { + histogramQueryResultsBuilder_.dispose(); + histogramQueryResultsBuilder_ = null; + histogramQueryResults_ = other.histogramQueryResults_; + bitField0_ = (bitField0_ & ~0x00000002); + histogramQueryResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getHistogramQueryResultsFieldBuilder() + : null; + } else { + histogramQueryResultsBuilder_.addAllMessages(other.histogramQueryResults_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + if (locationFiltersBuilder_ == null) { + if (!other.locationFilters_.isEmpty()) { + if (locationFilters_.isEmpty()) { + locationFilters_ = other.locationFilters_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureLocationFiltersIsMutable(); + locationFilters_.addAll(other.locationFilters_); + } + onChanged(); + } + } else { + if (!other.locationFilters_.isEmpty()) { + if (locationFiltersBuilder_.isEmpty()) { + locationFiltersBuilder_.dispose(); + locationFiltersBuilder_ = null; + locationFilters_ = other.locationFilters_; + bitField0_ = (bitField0_ & ~0x00000008); + locationFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLocationFiltersFieldBuilder() + : null; + } else { + locationFiltersBuilder_.addAllMessages(other.locationFilters_); + } + } + } + if (other.getEstimatedTotalSize() != 0) { + setEstimatedTotalSize(other.getEstimatedTotalSize()); + } + if (other.getTotalSize() != 0) { + setTotalSize(other.getTotalSize()); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (other.getBroadenedQueryJobsCount() != 0) { + setBroadenedQueryJobsCount(other.getBroadenedQueryJobsCount()); + } + if (other.hasSpellCorrection()) { + mergeSpellCorrection(other.getSpellCorrection()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.SearchJobsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.SearchJobsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List + matchingJobs_ = java.util.Collections.emptyList(); + + private void ensureMatchingJobsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + matchingJobs_ = + new java.util.ArrayList( + matchingJobs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob, + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.Builder, + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJobOrBuilder> + matchingJobsBuilder_; + + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public java.util.List + getMatchingJobsList() { + if (matchingJobsBuilder_ == null) { + return java.util.Collections.unmodifiableList(matchingJobs_); + } else { + return matchingJobsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public int getMatchingJobsCount() { + if (matchingJobsBuilder_ == null) { + return matchingJobs_.size(); + } else { + return matchingJobsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob getMatchingJobs( + int index) { + if (matchingJobsBuilder_ == null) { + return matchingJobs_.get(index); + } else { + return matchingJobsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public Builder setMatchingJobs( + int index, com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob value) { + if (matchingJobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMatchingJobsIsMutable(); + matchingJobs_.set(index, value); + onChanged(); + } else { + matchingJobsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public Builder setMatchingJobs( + int index, + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.Builder builderForValue) { + if (matchingJobsBuilder_ == null) { + ensureMatchingJobsIsMutable(); + matchingJobs_.set(index, builderForValue.build()); + onChanged(); + } else { + matchingJobsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public Builder addMatchingJobs( + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob value) { + if (matchingJobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMatchingJobsIsMutable(); + matchingJobs_.add(value); + onChanged(); + } else { + matchingJobsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public Builder addMatchingJobs( + int index, com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob value) { + if (matchingJobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMatchingJobsIsMutable(); + matchingJobs_.add(index, value); + onChanged(); + } else { + matchingJobsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public Builder addMatchingJobs( + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.Builder builderForValue) { + if (matchingJobsBuilder_ == null) { + ensureMatchingJobsIsMutable(); + matchingJobs_.add(builderForValue.build()); + onChanged(); + } else { + matchingJobsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public Builder addMatchingJobs( + int index, + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.Builder builderForValue) { + if (matchingJobsBuilder_ == null) { + ensureMatchingJobsIsMutable(); + matchingJobs_.add(index, builderForValue.build()); + onChanged(); + } else { + matchingJobsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public Builder addAllMatchingJobs( + java.lang.Iterable + values) { + if (matchingJobsBuilder_ == null) { + ensureMatchingJobsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, matchingJobs_); + onChanged(); + } else { + matchingJobsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public Builder clearMatchingJobs() { + if (matchingJobsBuilder_ == null) { + matchingJobs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + matchingJobsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public Builder removeMatchingJobs(int index) { + if (matchingJobsBuilder_ == null) { + ensureMatchingJobsIsMutable(); + matchingJobs_.remove(index); + onChanged(); + } else { + matchingJobsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.Builder + getMatchingJobsBuilder(int index) { + return getMatchingJobsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJobOrBuilder + getMatchingJobsOrBuilder(int index) { + if (matchingJobsBuilder_ == null) { + return matchingJobs_.get(index); + } else { + return matchingJobsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJobOrBuilder> + getMatchingJobsOrBuilderList() { + if (matchingJobsBuilder_ != null) { + return matchingJobsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(matchingJobs_); + } + } + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.Builder + addMatchingJobsBuilder() { + return getMatchingJobsFieldBuilder() + .addBuilder( + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.getDefaultInstance()); + } + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.Builder + addMatchingJobsBuilder(int index) { + return getMatchingJobsFieldBuilder() + .addBuilder( + index, + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.getDefaultInstance()); + } + /** + * + * + *
+     * The Job entities that match the specified
+     * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + public java.util.List + getMatchingJobsBuilderList() { + return getMatchingJobsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob, + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.Builder, + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJobOrBuilder> + getMatchingJobsFieldBuilder() { + if (matchingJobsBuilder_ == null) { + matchingJobsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob, + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.Builder, + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJobOrBuilder>( + matchingJobs_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + matchingJobs_ = null; + } + return matchingJobsBuilder_; + } + + private java.util.List + histogramQueryResults_ = java.util.Collections.emptyList(); + + private void ensureHistogramQueryResultsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + histogramQueryResults_ = + new java.util.ArrayList( + histogramQueryResults_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.HistogramQueryResult, + com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder, + com.google.cloud.talent.v4beta1.HistogramQueryResultOrBuilder> + histogramQueryResultsBuilder_; + + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public java.util.List + getHistogramQueryResultsList() { + if (histogramQueryResultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(histogramQueryResults_); + } else { + return histogramQueryResultsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public int getHistogramQueryResultsCount() { + if (histogramQueryResultsBuilder_ == null) { + return histogramQueryResults_.size(); + } else { + return histogramQueryResultsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public com.google.cloud.talent.v4beta1.HistogramQueryResult getHistogramQueryResults( + int index) { + if (histogramQueryResultsBuilder_ == null) { + return histogramQueryResults_.get(index); + } else { + return histogramQueryResultsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public Builder setHistogramQueryResults( + int index, com.google.cloud.talent.v4beta1.HistogramQueryResult value) { + if (histogramQueryResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHistogramQueryResultsIsMutable(); + histogramQueryResults_.set(index, value); + onChanged(); + } else { + histogramQueryResultsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public Builder setHistogramQueryResults( + int index, com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder builderForValue) { + if (histogramQueryResultsBuilder_ == null) { + ensureHistogramQueryResultsIsMutable(); + histogramQueryResults_.set(index, builderForValue.build()); + onChanged(); + } else { + histogramQueryResultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public Builder addHistogramQueryResults( + com.google.cloud.talent.v4beta1.HistogramQueryResult value) { + if (histogramQueryResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHistogramQueryResultsIsMutable(); + histogramQueryResults_.add(value); + onChanged(); + } else { + histogramQueryResultsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public Builder addHistogramQueryResults( + int index, com.google.cloud.talent.v4beta1.HistogramQueryResult value) { + if (histogramQueryResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHistogramQueryResultsIsMutable(); + histogramQueryResults_.add(index, value); + onChanged(); + } else { + histogramQueryResultsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public Builder addHistogramQueryResults( + com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder builderForValue) { + if (histogramQueryResultsBuilder_ == null) { + ensureHistogramQueryResultsIsMutable(); + histogramQueryResults_.add(builderForValue.build()); + onChanged(); + } else { + histogramQueryResultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public Builder addHistogramQueryResults( + int index, com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder builderForValue) { + if (histogramQueryResultsBuilder_ == null) { + ensureHistogramQueryResultsIsMutable(); + histogramQueryResults_.add(index, builderForValue.build()); + onChanged(); + } else { + histogramQueryResultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public Builder addAllHistogramQueryResults( + java.lang.Iterable values) { + if (histogramQueryResultsBuilder_ == null) { + ensureHistogramQueryResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, histogramQueryResults_); + onChanged(); + } else { + histogramQueryResultsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public Builder clearHistogramQueryResults() { + if (histogramQueryResultsBuilder_ == null) { + histogramQueryResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + histogramQueryResultsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public Builder removeHistogramQueryResults(int index) { + if (histogramQueryResultsBuilder_ == null) { + ensureHistogramQueryResultsIsMutable(); + histogramQueryResults_.remove(index); + onChanged(); + } else { + histogramQueryResultsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder + getHistogramQueryResultsBuilder(int index) { + return getHistogramQueryResultsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public com.google.cloud.talent.v4beta1.HistogramQueryResultOrBuilder + getHistogramQueryResultsOrBuilder(int index) { + if (histogramQueryResultsBuilder_ == null) { + return histogramQueryResults_.get(index); + } else { + return histogramQueryResultsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public java.util.List + getHistogramQueryResultsOrBuilderList() { + if (histogramQueryResultsBuilder_ != null) { + return histogramQueryResultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(histogramQueryResults_); + } + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder + addHistogramQueryResultsBuilder() { + return getHistogramQueryResultsFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.HistogramQueryResult.getDefaultInstance()); + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder + addHistogramQueryResultsBuilder(int index) { + return getHistogramQueryResultsFieldBuilder() + .addBuilder( + index, com.google.cloud.talent.v4beta1.HistogramQueryResult.getDefaultInstance()); + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + public java.util.List + getHistogramQueryResultsBuilderList() { + return getHistogramQueryResultsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.HistogramQueryResult, + com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder, + com.google.cloud.talent.v4beta1.HistogramQueryResultOrBuilder> + getHistogramQueryResultsFieldBuilder() { + if (histogramQueryResultsBuilder_ == null) { + histogramQueryResultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.HistogramQueryResult, + com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder, + com.google.cloud.talent.v4beta1.HistogramQueryResultOrBuilder>( + histogramQueryResults_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + histogramQueryResults_ = null; + } + return histogramQueryResultsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * The token that specifies the starting position of the next page of results.
+     * This field is empty if there are no more results.
+     * 
+ * + * string next_page_token = 3; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The token that specifies the starting position of the next page of results.
+     * This field is empty if there are no more results.
+     * 
+ * + * string next_page_token = 3; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The token that specifies the starting position of the next page of results.
+     * This field is empty if there are no more results.
+     * 
+ * + * string next_page_token = 3; + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The token that specifies the starting position of the next page of results.
+     * This field is empty if there are no more results.
+     * 
+ * + * string next_page_token = 3; + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * The token that specifies the starting position of the next page of results.
+     * This field is empty if there are no more results.
+     * 
+ * + * string next_page_token = 3; + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + private java.util.List locationFilters_ = + java.util.Collections.emptyList(); + + private void ensureLocationFiltersIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + locationFilters_ = + new java.util.ArrayList(locationFilters_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Location, + com.google.cloud.talent.v4beta1.Location.Builder, + com.google.cloud.talent.v4beta1.LocationOrBuilder> + locationFiltersBuilder_; + + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public java.util.List getLocationFiltersList() { + if (locationFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(locationFilters_); + } else { + return locationFiltersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public int getLocationFiltersCount() { + if (locationFiltersBuilder_ == null) { + return locationFilters_.size(); + } else { + return locationFiltersBuilder_.getCount(); + } + } + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public com.google.cloud.talent.v4beta1.Location getLocationFilters(int index) { + if (locationFiltersBuilder_ == null) { + return locationFilters_.get(index); + } else { + return locationFiltersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public Builder setLocationFilters(int index, com.google.cloud.talent.v4beta1.Location value) { + if (locationFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationFiltersIsMutable(); + locationFilters_.set(index, value); + onChanged(); + } else { + locationFiltersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public Builder setLocationFilters( + int index, com.google.cloud.talent.v4beta1.Location.Builder builderForValue) { + if (locationFiltersBuilder_ == null) { + ensureLocationFiltersIsMutable(); + locationFilters_.set(index, builderForValue.build()); + onChanged(); + } else { + locationFiltersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public Builder addLocationFilters(com.google.cloud.talent.v4beta1.Location value) { + if (locationFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationFiltersIsMutable(); + locationFilters_.add(value); + onChanged(); + } else { + locationFiltersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public Builder addLocationFilters(int index, com.google.cloud.talent.v4beta1.Location value) { + if (locationFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationFiltersIsMutable(); + locationFilters_.add(index, value); + onChanged(); + } else { + locationFiltersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public Builder addLocationFilters( + com.google.cloud.talent.v4beta1.Location.Builder builderForValue) { + if (locationFiltersBuilder_ == null) { + ensureLocationFiltersIsMutable(); + locationFilters_.add(builderForValue.build()); + onChanged(); + } else { + locationFiltersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public Builder addLocationFilters( + int index, com.google.cloud.talent.v4beta1.Location.Builder builderForValue) { + if (locationFiltersBuilder_ == null) { + ensureLocationFiltersIsMutable(); + locationFilters_.add(index, builderForValue.build()); + onChanged(); + } else { + locationFiltersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public Builder addAllLocationFilters( + java.lang.Iterable values) { + if (locationFiltersBuilder_ == null) { + ensureLocationFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locationFilters_); + onChanged(); + } else { + locationFiltersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public Builder clearLocationFilters() { + if (locationFiltersBuilder_ == null) { + locationFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + locationFiltersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public Builder removeLocationFilters(int index) { + if (locationFiltersBuilder_ == null) { + ensureLocationFiltersIsMutable(); + locationFilters_.remove(index); + onChanged(); + } else { + locationFiltersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public com.google.cloud.talent.v4beta1.Location.Builder getLocationFiltersBuilder(int index) { + return getLocationFiltersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public com.google.cloud.talent.v4beta1.LocationOrBuilder getLocationFiltersOrBuilder( + int index) { + if (locationFiltersBuilder_ == null) { + return locationFilters_.get(index); + } else { + return locationFiltersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public java.util.List + getLocationFiltersOrBuilderList() { + if (locationFiltersBuilder_ != null) { + return locationFiltersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(locationFilters_); + } + } + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public com.google.cloud.talent.v4beta1.Location.Builder addLocationFiltersBuilder() { + return getLocationFiltersFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.Location.getDefaultInstance()); + } + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public com.google.cloud.talent.v4beta1.Location.Builder addLocationFiltersBuilder(int index) { + return getLocationFiltersFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.Location.getDefaultInstance()); + } + /** + * + * + *
+     * The location filters that the service applied to the specified query. If
+     * any filters are lat-lng based, the [JobLocation.location_type][] is
+     * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + public java.util.List + getLocationFiltersBuilderList() { + return getLocationFiltersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Location, + com.google.cloud.talent.v4beta1.Location.Builder, + com.google.cloud.talent.v4beta1.LocationOrBuilder> + getLocationFiltersFieldBuilder() { + if (locationFiltersBuilder_ == null) { + locationFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Location, + com.google.cloud.talent.v4beta1.Location.Builder, + com.google.cloud.talent.v4beta1.LocationOrBuilder>( + locationFilters_, + ((bitField0_ & 0x00000008) == 0x00000008), + getParentForChildren(), + isClean()); + locationFilters_ = null; + } + return locationFiltersBuilder_; + } + + private int estimatedTotalSize_; + /** + * + * + *
+     * An estimation of the number of jobs that match the specified query.
+     * This number isn't guaranteed to be accurate. For accurate results,
+     * see [enable_precise_result_size][].
+     * 
+ * + * int32 estimated_total_size = 5; + */ + public int getEstimatedTotalSize() { + return estimatedTotalSize_; + } + /** + * + * + *
+     * An estimation of the number of jobs that match the specified query.
+     * This number isn't guaranteed to be accurate. For accurate results,
+     * see [enable_precise_result_size][].
+     * 
+ * + * int32 estimated_total_size = 5; + */ + public Builder setEstimatedTotalSize(int value) { + + estimatedTotalSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * An estimation of the number of jobs that match the specified query.
+     * This number isn't guaranteed to be accurate. For accurate results,
+     * see [enable_precise_result_size][].
+     * 
+ * + * int32 estimated_total_size = 5; + */ + public Builder clearEstimatedTotalSize() { + + estimatedTotalSize_ = 0; + onChanged(); + return this; + } + + private int totalSize_; + /** + * + * + *
+     * The precise result count, which is available only if the client set
+     * [enable_precise_result_size][] to `true`, or if the response
+     * is the last page of results. Otherwise, the value is `-1`.
+     * 
+ * + * int32 total_size = 6; + */ + public int getTotalSize() { + return totalSize_; + } + /** + * + * + *
+     * The precise result count, which is available only if the client set
+     * [enable_precise_result_size][] to `true`, or if the response
+     * is the last page of results. Otherwise, the value is `-1`.
+     * 
+ * + * int32 total_size = 6; + */ + public Builder setTotalSize(int value) { + + totalSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The precise result count, which is available only if the client set
+     * [enable_precise_result_size][] to `true`, or if the response
+     * is the last page of results. Otherwise, the value is `-1`.
+     * 
+ * + * int32 total_size = 6; + */ + public Builder clearTotalSize() { + + totalSize_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.ResponseMetadata metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder> + metadataBuilder_; + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 7; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 7; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 7; + */ + public Builder setMetadata(com.google.cloud.talent.v4beta1.ResponseMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 7; + */ + public Builder setMetadata( + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 7; + */ + public Builder mergeMetadata(com.google.cloud.talent.v4beta1.ResponseMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + com.google.cloud.talent.v4beta1.ResponseMetadata.newBuilder(metadata_) + .mergeFrom(value) + .buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 7; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 7; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 7; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private int broadenedQueryJobsCount_; + /** + * + * + *
+     * If query broadening is enabled, we may append additional results from the
+     * broadened query. This number indicates how many of the jobs returned in the
+     * jobs field are from the broadened query. These results are always at the
+     * end of the jobs list. In particular, a value of 0, or if the field isn't
+     * set, all the jobs in the jobs list are from the original
+     * (without broadening) query. If this field is non-zero, subsequent requests
+     * with offset after this result set should contain all broadened results.
+     * 
+ * + * int32 broadened_query_jobs_count = 8; + */ + public int getBroadenedQueryJobsCount() { + return broadenedQueryJobsCount_; + } + /** + * + * + *
+     * If query broadening is enabled, we may append additional results from the
+     * broadened query. This number indicates how many of the jobs returned in the
+     * jobs field are from the broadened query. These results are always at the
+     * end of the jobs list. In particular, a value of 0, or if the field isn't
+     * set, all the jobs in the jobs list are from the original
+     * (without broadening) query. If this field is non-zero, subsequent requests
+     * with offset after this result set should contain all broadened results.
+     * 
+ * + * int32 broadened_query_jobs_count = 8; + */ + public Builder setBroadenedQueryJobsCount(int value) { + + broadenedQueryJobsCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If query broadening is enabled, we may append additional results from the
+     * broadened query. This number indicates how many of the jobs returned in the
+     * jobs field are from the broadened query. These results are always at the
+     * end of the jobs list. In particular, a value of 0, or if the field isn't
+     * set, all the jobs in the jobs list are from the original
+     * (without broadening) query. If this field is non-zero, subsequent requests
+     * with offset after this result set should contain all broadened results.
+     * 
+ * + * int32 broadened_query_jobs_count = 8; + */ + public Builder clearBroadenedQueryJobsCount() { + + broadenedQueryJobsCount_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.SpellingCorrection spellCorrection_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.SpellingCorrection, + com.google.cloud.talent.v4beta1.SpellingCorrection.Builder, + com.google.cloud.talent.v4beta1.SpellingCorrectionOrBuilder> + spellCorrectionBuilder_; + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 9; + */ + public boolean hasSpellCorrection() { + return spellCorrectionBuilder_ != null || spellCorrection_ != null; + } + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 9; + */ + public com.google.cloud.talent.v4beta1.SpellingCorrection getSpellCorrection() { + if (spellCorrectionBuilder_ == null) { + return spellCorrection_ == null + ? com.google.cloud.talent.v4beta1.SpellingCorrection.getDefaultInstance() + : spellCorrection_; + } else { + return spellCorrectionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 9; + */ + public Builder setSpellCorrection(com.google.cloud.talent.v4beta1.SpellingCorrection value) { + if (spellCorrectionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spellCorrection_ = value; + onChanged(); + } else { + spellCorrectionBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 9; + */ + public Builder setSpellCorrection( + com.google.cloud.talent.v4beta1.SpellingCorrection.Builder builderForValue) { + if (spellCorrectionBuilder_ == null) { + spellCorrection_ = builderForValue.build(); + onChanged(); + } else { + spellCorrectionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 9; + */ + public Builder mergeSpellCorrection(com.google.cloud.talent.v4beta1.SpellingCorrection value) { + if (spellCorrectionBuilder_ == null) { + if (spellCorrection_ != null) { + spellCorrection_ = + com.google.cloud.talent.v4beta1.SpellingCorrection.newBuilder(spellCorrection_) + .mergeFrom(value) + .buildPartial(); + } else { + spellCorrection_ = value; + } + onChanged(); + } else { + spellCorrectionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 9; + */ + public Builder clearSpellCorrection() { + if (spellCorrectionBuilder_ == null) { + spellCorrection_ = null; + onChanged(); + } else { + spellCorrection_ = null; + spellCorrectionBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 9; + */ + public com.google.cloud.talent.v4beta1.SpellingCorrection.Builder getSpellCorrectionBuilder() { + + onChanged(); + return getSpellCorrectionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 9; + */ + public com.google.cloud.talent.v4beta1.SpellingCorrectionOrBuilder + getSpellCorrectionOrBuilder() { + if (spellCorrectionBuilder_ != null) { + return spellCorrectionBuilder_.getMessageOrBuilder(); + } else { + return spellCorrection_ == null + ? com.google.cloud.talent.v4beta1.SpellingCorrection.getDefaultInstance() + : spellCorrection_; + } + } + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.SpellingCorrection, + com.google.cloud.talent.v4beta1.SpellingCorrection.Builder, + com.google.cloud.talent.v4beta1.SpellingCorrectionOrBuilder> + getSpellCorrectionFieldBuilder() { + if (spellCorrectionBuilder_ == null) { + spellCorrectionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.SpellingCorrection, + com.google.cloud.talent.v4beta1.SpellingCorrection.Builder, + com.google.cloud.talent.v4beta1.SpellingCorrectionOrBuilder>( + getSpellCorrection(), getParentForChildren(), isClean()); + spellCorrection_ = null; + } + return spellCorrectionBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.SearchJobsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.SearchJobsResponse) + private static final com.google.cloud.talent.v4beta1.SearchJobsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.SearchJobsResponse(); + } + + public static com.google.cloud.talent.v4beta1.SearchJobsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchJobsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SearchJobsResponse(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.SearchJobsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsResponseOrBuilder.java new file mode 100644 index 000000000000..2265b8891c29 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsResponseOrBuilder.java @@ -0,0 +1,331 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface SearchJobsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.SearchJobsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The Job entities that match the specified
+   * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + java.util.List + getMatchingJobsList(); + /** + * + * + *
+   * The Job entities that match the specified
+   * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob getMatchingJobs(int index); + /** + * + * + *
+   * The Job entities that match the specified
+   * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + int getMatchingJobsCount(); + /** + * + * + *
+   * The Job entities that match the specified
+   * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + java.util.List + getMatchingJobsOrBuilderList(); + /** + * + * + *
+   * The Job entities that match the specified
+   * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob matching_jobs = 1; + * + */ + com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJobOrBuilder getMatchingJobsOrBuilder( + int index); + + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + java.util.List + getHistogramQueryResultsList(); + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + com.google.cloud.talent.v4beta1.HistogramQueryResult getHistogramQueryResults(int index); + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + int getHistogramQueryResultsCount(); + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + java.util.List + getHistogramQueryResultsOrBuilderList(); + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 2; + * + */ + com.google.cloud.talent.v4beta1.HistogramQueryResultOrBuilder getHistogramQueryResultsOrBuilder( + int index); + + /** + * + * + *
+   * The token that specifies the starting position of the next page of results.
+   * This field is empty if there are no more results.
+   * 
+ * + * string next_page_token = 3; + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * The token that specifies the starting position of the next page of results.
+   * This field is empty if there are no more results.
+   * 
+ * + * string next_page_token = 3; + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * The location filters that the service applied to the specified query. If
+   * any filters are lat-lng based, the [JobLocation.location_type][] is
+   * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + java.util.List getLocationFiltersList(); + /** + * + * + *
+   * The location filters that the service applied to the specified query. If
+   * any filters are lat-lng based, the [JobLocation.location_type][] is
+   * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + com.google.cloud.talent.v4beta1.Location getLocationFilters(int index); + /** + * + * + *
+   * The location filters that the service applied to the specified query. If
+   * any filters are lat-lng based, the [JobLocation.location_type][] is
+   * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + int getLocationFiltersCount(); + /** + * + * + *
+   * The location filters that the service applied to the specified query. If
+   * any filters are lat-lng based, the [JobLocation.location_type][] is
+   * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + java.util.List + getLocationFiltersOrBuilderList(); + /** + * + * + *
+   * The location filters that the service applied to the specified query. If
+   * any filters are lat-lng based, the [JobLocation.location_type][] is
+   * [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Location location_filters = 4; + */ + com.google.cloud.talent.v4beta1.LocationOrBuilder getLocationFiltersOrBuilder(int index); + + /** + * + * + *
+   * An estimation of the number of jobs that match the specified query.
+   * This number isn't guaranteed to be accurate. For accurate results,
+   * see [enable_precise_result_size][].
+   * 
+ * + * int32 estimated_total_size = 5; + */ + int getEstimatedTotalSize(); + + /** + * + * + *
+   * The precise result count, which is available only if the client set
+   * [enable_precise_result_size][] to `true`, or if the response
+   * is the last page of results. Otherwise, the value is `-1`.
+   * 
+ * + * int32 total_size = 6; + */ + int getTotalSize(); + + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 7; + */ + boolean hasMetadata(); + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 7; + */ + com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata(); + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 7; + */ + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder(); + + /** + * + * + *
+   * If query broadening is enabled, we may append additional results from the
+   * broadened query. This number indicates how many of the jobs returned in the
+   * jobs field are from the broadened query. These results are always at the
+   * end of the jobs list. In particular, a value of 0, or if the field isn't
+   * set, all the jobs in the jobs list are from the original
+   * (without broadening) query. If this field is non-zero, subsequent requests
+   * with offset after this result set should contain all broadened results.
+   * 
+ * + * int32 broadened_query_jobs_count = 8; + */ + int getBroadenedQueryJobsCount(); + + /** + * + * + *
+   * The spell checking result, and correction.
+   * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 9; + */ + boolean hasSpellCorrection(); + /** + * + * + *
+   * The spell checking result, and correction.
+   * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 9; + */ + com.google.cloud.talent.v4beta1.SpellingCorrection getSpellCorrection(); + /** + * + * + *
+   * The spell checking result, and correction.
+   * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 9; + */ + com.google.cloud.talent.v4beta1.SpellingCorrectionOrBuilder getSpellCorrectionOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesRequest.java new file mode 100644 index 000000000000..f61d28144193 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesRequest.java @@ -0,0 +1,4437 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * The request body of the `SearchProfiles` call.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SearchProfilesRequest} + */ +public final class SearchProfilesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.SearchProfilesRequest) + SearchProfilesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchProfilesRequest.newBuilder() to construct. + private SearchProfilesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchProfilesRequest() { + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + offset_ = 0; + disableSpellCheck_ = false; + orderBy_ = ""; + caseSensitiveSort_ = false; + histogramQueries_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SearchProfilesRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + com.google.cloud.talent.v4beta1.RequestMetadata.Builder subBuilder = null; + if (requestMetadata_ != null) { + subBuilder = requestMetadata_.toBuilder(); + } + requestMetadata_ = + input.readMessage( + com.google.cloud.talent.v4beta1.RequestMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(requestMetadata_); + requestMetadata_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + com.google.cloud.talent.v4beta1.ProfileQuery.Builder subBuilder = null; + if (profileQuery_ != null) { + subBuilder = profileQuery_.toBuilder(); + } + profileQuery_ = + input.readMessage( + com.google.cloud.talent.v4beta1.ProfileQuery.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(profileQuery_); + profileQuery_ = subBuilder.buildPartial(); + } + + break; + } + case 32: + { + pageSize_ = input.readInt32(); + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 48: + { + offset_ = input.readInt32(); + break; + } + case 56: + { + disableSpellCheck_ = input.readBool(); + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = s; + break; + } + case 72: + { + caseSensitiveSort_ = input.readBool(); + break; + } + case 82: + { + if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + histogramQueries_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000200; + } + histogramQueries_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.HistogramQuery.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + histogramQueries_ = java.util.Collections.unmodifiableList(histogramQueries_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchProfilesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchProfilesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SearchProfilesRequest.class, + com.google.cloud.talent.v4beta1.SearchProfilesRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required.
+   * The resource name of the tenant to search within.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The resource name of the tenant to search within.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_METADATA_FIELD_NUMBER = 2; + private com.google.cloud.talent.v4beta1.RequestMetadata requestMetadata_; + /** + * + * + *
+   * Required.
+   * The meta information collected about the profile search user. This is used
+   * to improve the search quality of the service. These values are provided by
+   * users, and must be precise and consistent.
+   * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2; + */ + public boolean hasRequestMetadata() { + return requestMetadata_ != null; + } + /** + * + * + *
+   * Required.
+   * The meta information collected about the profile search user. This is used
+   * to improve the search quality of the service. These values are provided by
+   * users, and must be precise and consistent.
+   * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2; + */ + public com.google.cloud.talent.v4beta1.RequestMetadata getRequestMetadata() { + return requestMetadata_ == null + ? com.google.cloud.talent.v4beta1.RequestMetadata.getDefaultInstance() + : requestMetadata_; + } + /** + * + * + *
+   * Required.
+   * The meta information collected about the profile search user. This is used
+   * to improve the search quality of the service. These values are provided by
+   * users, and must be precise and consistent.
+   * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2; + */ + public com.google.cloud.talent.v4beta1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() { + return getRequestMetadata(); + } + + public static final int PROFILE_QUERY_FIELD_NUMBER = 3; + private com.google.cloud.talent.v4beta1.ProfileQuery profileQuery_; + /** + * + * + *
+   * Optional.
+   * Search query to execute. See
+   * [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
+   * 
+ * + * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; + */ + public boolean hasProfileQuery() { + return profileQuery_ != null; + } + /** + * + * + *
+   * Optional.
+   * Search query to execute. See
+   * [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
+   * 
+ * + * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; + */ + public com.google.cloud.talent.v4beta1.ProfileQuery getProfileQuery() { + return profileQuery_ == null + ? com.google.cloud.talent.v4beta1.ProfileQuery.getDefaultInstance() + : profileQuery_; + } + /** + * + * + *
+   * Optional.
+   * Search query to execute. See
+   * [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
+   * 
+ * + * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; + */ + public com.google.cloud.talent.v4beta1.ProfileQueryOrBuilder getProfileQueryOrBuilder() { + return getProfileQuery(); + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 4; + private int pageSize_; + /** + * + * + *
+   * Optional.
+   * A limit on the number of profiles returned in the search results.
+   * A value above the default value 10 can increase search response time.
+   * The maximum value allowed is 100. Otherwise an error is thrown.
+   * 
+ * + * int32 page_size = 4; + */ + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 5; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * Optional.
+   * The pageToken, similar to offset enables users of the API to paginate
+   * through the search results. To retrieve the first page of results, set the
+   * pageToken to empty. The search response includes a
+   * [nextPageToken][google.cloud.talent.v4beta1.SearchProfilesResponse.next_page_token]
+   * field that can be used to populate the pageToken field for the next page of
+   * results. Using pageToken instead of offset increases the performance of the
+   * API, especially compared to larger offset values.
+   * 
+ * + * string page_token = 5; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The pageToken, similar to offset enables users of the API to paginate
+   * through the search results. To retrieve the first page of results, set the
+   * pageToken to empty. The search response includes a
+   * [nextPageToken][google.cloud.talent.v4beta1.SearchProfilesResponse.next_page_token]
+   * field that can be used to populate the pageToken field for the next page of
+   * results. Using pageToken instead of offset increases the performance of the
+   * API, especially compared to larger offset values.
+   * 
+ * + * string page_token = 5; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OFFSET_FIELD_NUMBER = 6; + private int offset_; + /** + * + * + *
+   * Optional.
+   * An integer that specifies the current offset (that is, starting result) in
+   * search results. This field is only considered if
+   * [page_token][google.cloud.talent.v4beta1.SearchProfilesRequest.page_token]
+   * is unset.
+   * The maximum allowed value is 5000. Otherwise an error is thrown.
+   * For example, 0 means to search from the first profile, and 10 means to
+   * search from the 11th profile. This can be used for pagination, for example
+   * pageSize = 10 and offset = 10 means to search from the second page.
+   * 
+ * + * int32 offset = 6; + */ + public int getOffset() { + return offset_; + } + + public static final int DISABLE_SPELL_CHECK_FIELD_NUMBER = 7; + private boolean disableSpellCheck_; + /** + * + * + *
+   * Optional.
+   * This flag controls the spell-check feature. If `false`, the
+   * service attempts to correct a misspelled query.
+   * For example, "enginee" is corrected to "engineer".
+   * 
+ * + * bool disable_spell_check = 7; + */ + public boolean getDisableSpellCheck() { + return disableSpellCheck_; + } + + public static final int ORDER_BY_FIELD_NUMBER = 8; + private volatile java.lang.Object orderBy_; + /** + * + * + *
+   * Optional.
+   * The criteria that determines how search results are sorted.
+   * Defaults is "relevance desc" if no value is specified.
+   * Supported options are:
+   * * "relevance desc": By descending relevance, as determined by the API
+   *    algorithms.
+   * * "update_date desc": Sort by [Profile.update_date][] in descending order
+   *   (recently updated profiles first).
+   * * "create_date desc": Sort by [Profile.create_date][] in descending order
+   *   (recently created profiles first).
+   * * "first_name": Sort by [PersonStrcuturedName.given_name][] in ascending
+   *   order.
+   * * "first_name desc": Sort by [PersonStrcuturedName.given_name][] in
+   *   descending order.
+   * * "last_name": Sort by [PersonStrcuturedName.family_name][] in ascending
+   *   order.
+   * * "last_name desc": Sort by [PersonStrcuturedName.family_name][] in
+   *   ascending order.
+   * 
+ * + * string order_by = 8; + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * The criteria that determines how search results are sorted.
+   * Defaults is "relevance desc" if no value is specified.
+   * Supported options are:
+   * * "relevance desc": By descending relevance, as determined by the API
+   *    algorithms.
+   * * "update_date desc": Sort by [Profile.update_date][] in descending order
+   *   (recently updated profiles first).
+   * * "create_date desc": Sort by [Profile.create_date][] in descending order
+   *   (recently created profiles first).
+   * * "first_name": Sort by [PersonStrcuturedName.given_name][] in ascending
+   *   order.
+   * * "first_name desc": Sort by [PersonStrcuturedName.given_name][] in
+   *   descending order.
+   * * "last_name": Sort by [PersonStrcuturedName.family_name][] in ascending
+   *   order.
+   * * "last_name desc": Sort by [PersonStrcuturedName.family_name][] in
+   *   ascending order.
+   * 
+ * + * string order_by = 8; + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CASE_SENSITIVE_SORT_FIELD_NUMBER = 9; + private boolean caseSensitiveSort_; + /** + * + * + *
+   * Optional.
+   * When sort by field is based on alphabetical order, sort values case
+   * sensitively (based on ASCII) when the value is set to true. Default value
+   * is case in-sensitive sort (false).
+   * 
+ * + * bool case_sensitive_sort = 9; + */ + public boolean getCaseSensitiveSort() { + return caseSensitiveSort_; + } + + public static final int HISTOGRAM_QUERIES_FIELD_NUMBER = 10; + private java.util.List histogramQueries_; + /** + * + * + *
+   * Optional.
+   * A list of expressions specifies histogram requests against matching
+   * profiles for
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * The expression syntax looks like a function definition with optional
+   * parameters.
+   * Function syntax: function_name(histogram_facet[, list of buckets])
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label])
+   * Bucket build-in function creates a bucket with range of [start, end). Note
+   * that the end is exclusive.
+   * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Histogram Facets:
+   * * admin1: Admin1 is a global placeholder for referring to state, province,
+   * or the particular term a country uses to define the geographic structure
+   * below the country level. Examples include states codes such as "CA", "IL",
+   * "NY", and provinces, such as "BC".
+   * * locality: Locality is a global placeholder for referring to city, town,
+   * or the particular term a country uses to define the geographic structure
+   * below the admin1 level. Examples include city names such as
+   * "Mountain View" and "New York".
+   * * extended_locality: Extended locality is concatenated version of admin1
+   * and locality with comma separator. For example, "Mountain View, CA" and
+   * "New York, NY".
+   * * postal_code: Postal code of profile which follows locale code.
+   * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+   *  JP, GB.
+   * * job_title: Normalized job titles specified in EmploymentHistory.
+   * * company_name: Normalized company name of profiles to match on.
+   * * institution: The school name. For example, "MIT",
+   * "University of California, Berkeley"
+   * * degree: Highest education degree in ISCED code. Each value in degree
+   * covers specific level of education, without any expansion to upper nor
+   * lower levels of education degree.
+   * * experience_in_months: experience in months. 0 means 0 month to 1 month
+   * (exclusive).
+   * * application_date: The application date specifies application start dates.
+   * See
+   * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+   * for more details.
+   * * application_outcome_reason: The application outcome reason specifies the
+   * outcome reasons of job application.
+   * See
+   * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+   * for more details.
+   * * application_last_stage: The application last stage specifies the last
+   * stage of job application.
+   * See
+   * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+   * for more details.
+   * * application_job_title: The application job title specifies the job
+   * applied for in the application.
+   * See
+   * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+   * for more details.
+   * * application_status: The application status specifies the status of job
+   * application.
+   * See
+   * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+   * for more details.
+   * * hirable_status: Hirable status specifies the profile's hirable status.
+   * * string_custom_attribute: String custom attributes. Values can be accessed
+   * via square bracket notation like string_custom_attribute["key1"].
+   * * numeric_custom_attribute: Numeric custom attributes. Values can be
+   * accessed via square bracket notation like numeric_custom_attribute["key1"].
+   * Example expressions:
+   * * count(admin1)
+   * * count(experience_in_months, [bucket(0, 12, "1 year"),
+   * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+   * * count(string_custom_attribute["assigned_recruiter"])
+   * * count(numeric_custom_attribute["favorite_number"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public java.util.List getHistogramQueriesList() { + return histogramQueries_; + } + /** + * + * + *
+   * Optional.
+   * A list of expressions specifies histogram requests against matching
+   * profiles for
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * The expression syntax looks like a function definition with optional
+   * parameters.
+   * Function syntax: function_name(histogram_facet[, list of buckets])
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label])
+   * Bucket build-in function creates a bucket with range of [start, end). Note
+   * that the end is exclusive.
+   * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Histogram Facets:
+   * * admin1: Admin1 is a global placeholder for referring to state, province,
+   * or the particular term a country uses to define the geographic structure
+   * below the country level. Examples include states codes such as "CA", "IL",
+   * "NY", and provinces, such as "BC".
+   * * locality: Locality is a global placeholder for referring to city, town,
+   * or the particular term a country uses to define the geographic structure
+   * below the admin1 level. Examples include city names such as
+   * "Mountain View" and "New York".
+   * * extended_locality: Extended locality is concatenated version of admin1
+   * and locality with comma separator. For example, "Mountain View, CA" and
+   * "New York, NY".
+   * * postal_code: Postal code of profile which follows locale code.
+   * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+   *  JP, GB.
+   * * job_title: Normalized job titles specified in EmploymentHistory.
+   * * company_name: Normalized company name of profiles to match on.
+   * * institution: The school name. For example, "MIT",
+   * "University of California, Berkeley"
+   * * degree: Highest education degree in ISCED code. Each value in degree
+   * covers specific level of education, without any expansion to upper nor
+   * lower levels of education degree.
+   * * experience_in_months: experience in months. 0 means 0 month to 1 month
+   * (exclusive).
+   * * application_date: The application date specifies application start dates.
+   * See
+   * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+   * for more details.
+   * * application_outcome_reason: The application outcome reason specifies the
+   * outcome reasons of job application.
+   * See
+   * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+   * for more details.
+   * * application_last_stage: The application last stage specifies the last
+   * stage of job application.
+   * See
+   * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+   * for more details.
+   * * application_job_title: The application job title specifies the job
+   * applied for in the application.
+   * See
+   * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+   * for more details.
+   * * application_status: The application status specifies the status of job
+   * application.
+   * See
+   * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+   * for more details.
+   * * hirable_status: Hirable status specifies the profile's hirable status.
+   * * string_custom_attribute: String custom attributes. Values can be accessed
+   * via square bracket notation like string_custom_attribute["key1"].
+   * * numeric_custom_attribute: Numeric custom attributes. Values can be
+   * accessed via square bracket notation like numeric_custom_attribute["key1"].
+   * Example expressions:
+   * * count(admin1)
+   * * count(experience_in_months, [bucket(0, 12, "1 year"),
+   * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+   * * count(string_custom_attribute["assigned_recruiter"])
+   * * count(numeric_custom_attribute["favorite_number"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public java.util.List + getHistogramQueriesOrBuilderList() { + return histogramQueries_; + } + /** + * + * + *
+   * Optional.
+   * A list of expressions specifies histogram requests against matching
+   * profiles for
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * The expression syntax looks like a function definition with optional
+   * parameters.
+   * Function syntax: function_name(histogram_facet[, list of buckets])
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label])
+   * Bucket build-in function creates a bucket with range of [start, end). Note
+   * that the end is exclusive.
+   * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Histogram Facets:
+   * * admin1: Admin1 is a global placeholder for referring to state, province,
+   * or the particular term a country uses to define the geographic structure
+   * below the country level. Examples include states codes such as "CA", "IL",
+   * "NY", and provinces, such as "BC".
+   * * locality: Locality is a global placeholder for referring to city, town,
+   * or the particular term a country uses to define the geographic structure
+   * below the admin1 level. Examples include city names such as
+   * "Mountain View" and "New York".
+   * * extended_locality: Extended locality is concatenated version of admin1
+   * and locality with comma separator. For example, "Mountain View, CA" and
+   * "New York, NY".
+   * * postal_code: Postal code of profile which follows locale code.
+   * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+   *  JP, GB.
+   * * job_title: Normalized job titles specified in EmploymentHistory.
+   * * company_name: Normalized company name of profiles to match on.
+   * * institution: The school name. For example, "MIT",
+   * "University of California, Berkeley"
+   * * degree: Highest education degree in ISCED code. Each value in degree
+   * covers specific level of education, without any expansion to upper nor
+   * lower levels of education degree.
+   * * experience_in_months: experience in months. 0 means 0 month to 1 month
+   * (exclusive).
+   * * application_date: The application date specifies application start dates.
+   * See
+   * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+   * for more details.
+   * * application_outcome_reason: The application outcome reason specifies the
+   * outcome reasons of job application.
+   * See
+   * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+   * for more details.
+   * * application_last_stage: The application last stage specifies the last
+   * stage of job application.
+   * See
+   * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+   * for more details.
+   * * application_job_title: The application job title specifies the job
+   * applied for in the application.
+   * See
+   * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+   * for more details.
+   * * application_status: The application status specifies the status of job
+   * application.
+   * See
+   * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+   * for more details.
+   * * hirable_status: Hirable status specifies the profile's hirable status.
+   * * string_custom_attribute: String custom attributes. Values can be accessed
+   * via square bracket notation like string_custom_attribute["key1"].
+   * * numeric_custom_attribute: Numeric custom attributes. Values can be
+   * accessed via square bracket notation like numeric_custom_attribute["key1"].
+   * Example expressions:
+   * * count(admin1)
+   * * count(experience_in_months, [bucket(0, 12, "1 year"),
+   * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+   * * count(string_custom_attribute["assigned_recruiter"])
+   * * count(numeric_custom_attribute["favorite_number"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public int getHistogramQueriesCount() { + return histogramQueries_.size(); + } + /** + * + * + *
+   * Optional.
+   * A list of expressions specifies histogram requests against matching
+   * profiles for
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * The expression syntax looks like a function definition with optional
+   * parameters.
+   * Function syntax: function_name(histogram_facet[, list of buckets])
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label])
+   * Bucket build-in function creates a bucket with range of [start, end). Note
+   * that the end is exclusive.
+   * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Histogram Facets:
+   * * admin1: Admin1 is a global placeholder for referring to state, province,
+   * or the particular term a country uses to define the geographic structure
+   * below the country level. Examples include states codes such as "CA", "IL",
+   * "NY", and provinces, such as "BC".
+   * * locality: Locality is a global placeholder for referring to city, town,
+   * or the particular term a country uses to define the geographic structure
+   * below the admin1 level. Examples include city names such as
+   * "Mountain View" and "New York".
+   * * extended_locality: Extended locality is concatenated version of admin1
+   * and locality with comma separator. For example, "Mountain View, CA" and
+   * "New York, NY".
+   * * postal_code: Postal code of profile which follows locale code.
+   * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+   *  JP, GB.
+   * * job_title: Normalized job titles specified in EmploymentHistory.
+   * * company_name: Normalized company name of profiles to match on.
+   * * institution: The school name. For example, "MIT",
+   * "University of California, Berkeley"
+   * * degree: Highest education degree in ISCED code. Each value in degree
+   * covers specific level of education, without any expansion to upper nor
+   * lower levels of education degree.
+   * * experience_in_months: experience in months. 0 means 0 month to 1 month
+   * (exclusive).
+   * * application_date: The application date specifies application start dates.
+   * See
+   * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+   * for more details.
+   * * application_outcome_reason: The application outcome reason specifies the
+   * outcome reasons of job application.
+   * See
+   * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+   * for more details.
+   * * application_last_stage: The application last stage specifies the last
+   * stage of job application.
+   * See
+   * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+   * for more details.
+   * * application_job_title: The application job title specifies the job
+   * applied for in the application.
+   * See
+   * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+   * for more details.
+   * * application_status: The application status specifies the status of job
+   * application.
+   * See
+   * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+   * for more details.
+   * * hirable_status: Hirable status specifies the profile's hirable status.
+   * * string_custom_attribute: String custom attributes. Values can be accessed
+   * via square bracket notation like string_custom_attribute["key1"].
+   * * numeric_custom_attribute: Numeric custom attributes. Values can be
+   * accessed via square bracket notation like numeric_custom_attribute["key1"].
+   * Example expressions:
+   * * count(admin1)
+   * * count(experience_in_months, [bucket(0, 12, "1 year"),
+   * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+   * * count(string_custom_attribute["assigned_recruiter"])
+   * * count(numeric_custom_attribute["favorite_number"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public com.google.cloud.talent.v4beta1.HistogramQuery getHistogramQueries(int index) { + return histogramQueries_.get(index); + } + /** + * + * + *
+   * Optional.
+   * A list of expressions specifies histogram requests against matching
+   * profiles for
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * The expression syntax looks like a function definition with optional
+   * parameters.
+   * Function syntax: function_name(histogram_facet[, list of buckets])
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label])
+   * Bucket build-in function creates a bucket with range of [start, end). Note
+   * that the end is exclusive.
+   * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Histogram Facets:
+   * * admin1: Admin1 is a global placeholder for referring to state, province,
+   * or the particular term a country uses to define the geographic structure
+   * below the country level. Examples include states codes such as "CA", "IL",
+   * "NY", and provinces, such as "BC".
+   * * locality: Locality is a global placeholder for referring to city, town,
+   * or the particular term a country uses to define the geographic structure
+   * below the admin1 level. Examples include city names such as
+   * "Mountain View" and "New York".
+   * * extended_locality: Extended locality is concatenated version of admin1
+   * and locality with comma separator. For example, "Mountain View, CA" and
+   * "New York, NY".
+   * * postal_code: Postal code of profile which follows locale code.
+   * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+   *  JP, GB.
+   * * job_title: Normalized job titles specified in EmploymentHistory.
+   * * company_name: Normalized company name of profiles to match on.
+   * * institution: The school name. For example, "MIT",
+   * "University of California, Berkeley"
+   * * degree: Highest education degree in ISCED code. Each value in degree
+   * covers specific level of education, without any expansion to upper nor
+   * lower levels of education degree.
+   * * experience_in_months: experience in months. 0 means 0 month to 1 month
+   * (exclusive).
+   * * application_date: The application date specifies application start dates.
+   * See
+   * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+   * for more details.
+   * * application_outcome_reason: The application outcome reason specifies the
+   * outcome reasons of job application.
+   * See
+   * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+   * for more details.
+   * * application_last_stage: The application last stage specifies the last
+   * stage of job application.
+   * See
+   * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+   * for more details.
+   * * application_job_title: The application job title specifies the job
+   * applied for in the application.
+   * See
+   * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+   * for more details.
+   * * application_status: The application status specifies the status of job
+   * application.
+   * See
+   * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+   * for more details.
+   * * hirable_status: Hirable status specifies the profile's hirable status.
+   * * string_custom_attribute: String custom attributes. Values can be accessed
+   * via square bracket notation like string_custom_attribute["key1"].
+   * * numeric_custom_attribute: Numeric custom attributes. Values can be
+   * accessed via square bracket notation like numeric_custom_attribute["key1"].
+   * Example expressions:
+   * * count(admin1)
+   * * count(experience_in_months, [bucket(0, 12, "1 year"),
+   * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+   * * count(string_custom_attribute["assigned_recruiter"])
+   * * count(numeric_custom_attribute["favorite_number"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder getHistogramQueriesOrBuilder( + int index) { + return histogramQueries_.get(index); + } + + 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 (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (requestMetadata_ != null) { + output.writeMessage(2, getRequestMetadata()); + } + if (profileQuery_ != null) { + output.writeMessage(3, getProfileQuery()); + } + if (pageSize_ != 0) { + output.writeInt32(4, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, pageToken_); + } + if (offset_ != 0) { + output.writeInt32(6, offset_); + } + if (disableSpellCheck_ != false) { + output.writeBool(7, disableSpellCheck_); + } + if (!getOrderByBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, orderBy_); + } + if (caseSensitiveSort_ != false) { + output.writeBool(9, caseSensitiveSort_); + } + for (int i = 0; i < histogramQueries_.size(); i++) { + output.writeMessage(10, histogramQueries_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (requestMetadata_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRequestMetadata()); + } + if (profileQuery_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getProfileQuery()); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, pageToken_); + } + if (offset_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, offset_); + } + if (disableSpellCheck_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, disableSpellCheck_); + } + if (!getOrderByBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, orderBy_); + } + if (caseSensitiveSort_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, caseSensitiveSort_); + } + for (int i = 0; i < histogramQueries_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(10, histogramQueries_.get(i)); + } + size += unknownFields.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.cloud.talent.v4beta1.SearchProfilesRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.SearchProfilesRequest other = + (com.google.cloud.talent.v4beta1.SearchProfilesRequest) obj; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && (hasRequestMetadata() == other.hasRequestMetadata()); + if (hasRequestMetadata()) { + result = result && getRequestMetadata().equals(other.getRequestMetadata()); + } + result = result && (hasProfileQuery() == other.hasProfileQuery()); + if (hasProfileQuery()) { + result = result && getProfileQuery().equals(other.getProfileQuery()); + } + result = result && (getPageSize() == other.getPageSize()); + result = result && getPageToken().equals(other.getPageToken()); + result = result && (getOffset() == other.getOffset()); + result = result && (getDisableSpellCheck() == other.getDisableSpellCheck()); + result = result && getOrderBy().equals(other.getOrderBy()); + result = result && (getCaseSensitiveSort() == other.getCaseSensitiveSort()); + result = result && getHistogramQueriesList().equals(other.getHistogramQueriesList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasRequestMetadata()) { + hash = (37 * hash) + REQUEST_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getRequestMetadata().hashCode(); + } + if (hasProfileQuery()) { + hash = (37 * hash) + PROFILE_QUERY_FIELD_NUMBER; + hash = (53 * hash) + getProfileQuery().hashCode(); + } + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + OFFSET_FIELD_NUMBER; + hash = (53 * hash) + getOffset(); + hash = (37 * hash) + DISABLE_SPELL_CHECK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableSpellCheck()); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + CASE_SENSITIVE_SORT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCaseSensitiveSort()); + if (getHistogramQueriesCount() > 0) { + hash = (37 * hash) + HISTOGRAM_QUERIES_FIELD_NUMBER; + hash = (53 * hash) + getHistogramQueriesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesRequest 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.cloud.talent.v4beta1.SearchProfilesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesRequest 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.cloud.talent.v4beta1.SearchProfilesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesRequest 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.cloud.talent.v4beta1.SearchProfilesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesRequest 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.cloud.talent.v4beta1.SearchProfilesRequest 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; + } + /** + * + * + *
+   * The request body of the `SearchProfiles` call.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SearchProfilesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.SearchProfilesRequest) + com.google.cloud.talent.v4beta1.SearchProfilesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchProfilesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchProfilesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SearchProfilesRequest.class, + com.google.cloud.talent.v4beta1.SearchProfilesRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.SearchProfilesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getHistogramQueriesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + if (requestMetadataBuilder_ == null) { + requestMetadata_ = null; + } else { + requestMetadata_ = null; + requestMetadataBuilder_ = null; + } + if (profileQueryBuilder_ == null) { + profileQuery_ = null; + } else { + profileQuery_ = null; + profileQueryBuilder_ = null; + } + pageSize_ = 0; + + pageToken_ = ""; + + offset_ = 0; + + disableSpellCheck_ = false; + + orderBy_ = ""; + + caseSensitiveSort_ = false; + + if (histogramQueriesBuilder_ == null) { + histogramQueries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + } else { + histogramQueriesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchProfilesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchProfilesRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.SearchProfilesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchProfilesRequest build() { + com.google.cloud.talent.v4beta1.SearchProfilesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchProfilesRequest buildPartial() { + com.google.cloud.talent.v4beta1.SearchProfilesRequest result = + new com.google.cloud.talent.v4beta1.SearchProfilesRequest(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.parent_ = parent_; + if (requestMetadataBuilder_ == null) { + result.requestMetadata_ = requestMetadata_; + } else { + result.requestMetadata_ = requestMetadataBuilder_.build(); + } + if (profileQueryBuilder_ == null) { + result.profileQuery_ = profileQuery_; + } else { + result.profileQuery_ = profileQueryBuilder_.build(); + } + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + result.offset_ = offset_; + result.disableSpellCheck_ = disableSpellCheck_; + result.orderBy_ = orderBy_; + result.caseSensitiveSort_ = caseSensitiveSort_; + if (histogramQueriesBuilder_ == null) { + if (((bitField0_ & 0x00000200) == 0x00000200)) { + histogramQueries_ = java.util.Collections.unmodifiableList(histogramQueries_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.histogramQueries_ = histogramQueries_; + } else { + result.histogramQueries_ = histogramQueriesBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.SearchProfilesRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.SearchProfilesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.SearchProfilesRequest other) { + if (other == com.google.cloud.talent.v4beta1.SearchProfilesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasRequestMetadata()) { + mergeRequestMetadata(other.getRequestMetadata()); + } + if (other.hasProfileQuery()) { + mergeProfileQuery(other.getProfileQuery()); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (other.getOffset() != 0) { + setOffset(other.getOffset()); + } + if (other.getDisableSpellCheck() != false) { + setDisableSpellCheck(other.getDisableSpellCheck()); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + onChanged(); + } + if (other.getCaseSensitiveSort() != false) { + setCaseSensitiveSort(other.getCaseSensitiveSort()); + } + if (histogramQueriesBuilder_ == null) { + if (!other.histogramQueries_.isEmpty()) { + if (histogramQueries_.isEmpty()) { + histogramQueries_ = other.histogramQueries_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureHistogramQueriesIsMutable(); + histogramQueries_.addAll(other.histogramQueries_); + } + onChanged(); + } + } else { + if (!other.histogramQueries_.isEmpty()) { + if (histogramQueriesBuilder_.isEmpty()) { + histogramQueriesBuilder_.dispose(); + histogramQueriesBuilder_ = null; + histogramQueries_ = other.histogramQueries_; + bitField0_ = (bitField0_ & ~0x00000200); + histogramQueriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getHistogramQueriesFieldBuilder() + : null; + } else { + histogramQueriesBuilder_.addAllMessages(other.histogramQueries_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.SearchProfilesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.SearchProfilesRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required.
+     * The resource name of the tenant to search within.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the tenant to search within.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The resource name of the tenant to search within.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the tenant to search within.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The resource name of the tenant to search within.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.RequestMetadata requestMetadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.RequestMetadata, + com.google.cloud.talent.v4beta1.RequestMetadata.Builder, + com.google.cloud.talent.v4beta1.RequestMetadataOrBuilder> + requestMetadataBuilder_; + /** + * + * + *
+     * Required.
+     * The meta information collected about the profile search user. This is used
+     * to improve the search quality of the service. These values are provided by
+     * users, and must be precise and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2; + */ + public boolean hasRequestMetadata() { + return requestMetadataBuilder_ != null || requestMetadata_ != null; + } + /** + * + * + *
+     * Required.
+     * The meta information collected about the profile search user. This is used
+     * to improve the search quality of the service. These values are provided by
+     * users, and must be precise and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2; + */ + public com.google.cloud.talent.v4beta1.RequestMetadata getRequestMetadata() { + if (requestMetadataBuilder_ == null) { + return requestMetadata_ == null + ? com.google.cloud.talent.v4beta1.RequestMetadata.getDefaultInstance() + : requestMetadata_; + } else { + return requestMetadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required.
+     * The meta information collected about the profile search user. This is used
+     * to improve the search quality of the service. These values are provided by
+     * users, and must be precise and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2; + */ + public Builder setRequestMetadata(com.google.cloud.talent.v4beta1.RequestMetadata value) { + if (requestMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + requestMetadata_ = value; + onChanged(); + } else { + requestMetadataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The meta information collected about the profile search user. This is used
+     * to improve the search quality of the service. These values are provided by
+     * users, and must be precise and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2; + */ + public Builder setRequestMetadata( + com.google.cloud.talent.v4beta1.RequestMetadata.Builder builderForValue) { + if (requestMetadataBuilder_ == null) { + requestMetadata_ = builderForValue.build(); + onChanged(); + } else { + requestMetadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The meta information collected about the profile search user. This is used
+     * to improve the search quality of the service. These values are provided by
+     * users, and must be precise and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2; + */ + public Builder mergeRequestMetadata(com.google.cloud.talent.v4beta1.RequestMetadata value) { + if (requestMetadataBuilder_ == null) { + if (requestMetadata_ != null) { + requestMetadata_ = + com.google.cloud.talent.v4beta1.RequestMetadata.newBuilder(requestMetadata_) + .mergeFrom(value) + .buildPartial(); + } else { + requestMetadata_ = value; + } + onChanged(); + } else { + requestMetadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The meta information collected about the profile search user. This is used
+     * to improve the search quality of the service. These values are provided by
+     * users, and must be precise and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2; + */ + public Builder clearRequestMetadata() { + if (requestMetadataBuilder_ == null) { + requestMetadata_ = null; + onChanged(); + } else { + requestMetadata_ = null; + requestMetadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The meta information collected about the profile search user. This is used
+     * to improve the search quality of the service. These values are provided by
+     * users, and must be precise and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2; + */ + public com.google.cloud.talent.v4beta1.RequestMetadata.Builder getRequestMetadataBuilder() { + + onChanged(); + return getRequestMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required.
+     * The meta information collected about the profile search user. This is used
+     * to improve the search quality of the service. These values are provided by
+     * users, and must be precise and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2; + */ + public com.google.cloud.talent.v4beta1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() { + if (requestMetadataBuilder_ != null) { + return requestMetadataBuilder_.getMessageOrBuilder(); + } else { + return requestMetadata_ == null + ? com.google.cloud.talent.v4beta1.RequestMetadata.getDefaultInstance() + : requestMetadata_; + } + } + /** + * + * + *
+     * Required.
+     * The meta information collected about the profile search user. This is used
+     * to improve the search quality of the service. These values are provided by
+     * users, and must be precise and consistent.
+     * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.RequestMetadata, + com.google.cloud.talent.v4beta1.RequestMetadata.Builder, + com.google.cloud.talent.v4beta1.RequestMetadataOrBuilder> + getRequestMetadataFieldBuilder() { + if (requestMetadataBuilder_ == null) { + requestMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.RequestMetadata, + com.google.cloud.talent.v4beta1.RequestMetadata.Builder, + com.google.cloud.talent.v4beta1.RequestMetadataOrBuilder>( + getRequestMetadata(), getParentForChildren(), isClean()); + requestMetadata_ = null; + } + return requestMetadataBuilder_; + } + + private com.google.cloud.talent.v4beta1.ProfileQuery profileQuery_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ProfileQuery, + com.google.cloud.talent.v4beta1.ProfileQuery.Builder, + com.google.cloud.talent.v4beta1.ProfileQueryOrBuilder> + profileQueryBuilder_; + /** + * + * + *
+     * Optional.
+     * Search query to execute. See
+     * [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; + */ + public boolean hasProfileQuery() { + return profileQueryBuilder_ != null || profileQuery_ != null; + } + /** + * + * + *
+     * Optional.
+     * Search query to execute. See
+     * [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; + */ + public com.google.cloud.talent.v4beta1.ProfileQuery getProfileQuery() { + if (profileQueryBuilder_ == null) { + return profileQuery_ == null + ? com.google.cloud.talent.v4beta1.ProfileQuery.getDefaultInstance() + : profileQuery_; + } else { + return profileQueryBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * Search query to execute. See
+     * [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; + */ + public Builder setProfileQuery(com.google.cloud.talent.v4beta1.ProfileQuery value) { + if (profileQueryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + profileQuery_ = value; + onChanged(); + } else { + profileQueryBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Search query to execute. See
+     * [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; + */ + public Builder setProfileQuery( + com.google.cloud.talent.v4beta1.ProfileQuery.Builder builderForValue) { + if (profileQueryBuilder_ == null) { + profileQuery_ = builderForValue.build(); + onChanged(); + } else { + profileQueryBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Search query to execute. See
+     * [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; + */ + public Builder mergeProfileQuery(com.google.cloud.talent.v4beta1.ProfileQuery value) { + if (profileQueryBuilder_ == null) { + if (profileQuery_ != null) { + profileQuery_ = + com.google.cloud.talent.v4beta1.ProfileQuery.newBuilder(profileQuery_) + .mergeFrom(value) + .buildPartial(); + } else { + profileQuery_ = value; + } + onChanged(); + } else { + profileQueryBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Search query to execute. See
+     * [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; + */ + public Builder clearProfileQuery() { + if (profileQueryBuilder_ == null) { + profileQuery_ = null; + onChanged(); + } else { + profileQuery_ = null; + profileQueryBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Search query to execute. See
+     * [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; + */ + public com.google.cloud.talent.v4beta1.ProfileQuery.Builder getProfileQueryBuilder() { + + onChanged(); + return getProfileQueryFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * Search query to execute. See
+     * [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; + */ + public com.google.cloud.talent.v4beta1.ProfileQueryOrBuilder getProfileQueryOrBuilder() { + if (profileQueryBuilder_ != null) { + return profileQueryBuilder_.getMessageOrBuilder(); + } else { + return profileQuery_ == null + ? com.google.cloud.talent.v4beta1.ProfileQuery.getDefaultInstance() + : profileQuery_; + } + } + /** + * + * + *
+     * Optional.
+     * Search query to execute. See
+     * [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
+     * 
+ * + * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ProfileQuery, + com.google.cloud.talent.v4beta1.ProfileQuery.Builder, + com.google.cloud.talent.v4beta1.ProfileQueryOrBuilder> + getProfileQueryFieldBuilder() { + if (profileQueryBuilder_ == null) { + profileQueryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ProfileQuery, + com.google.cloud.talent.v4beta1.ProfileQuery.Builder, + com.google.cloud.talent.v4beta1.ProfileQueryOrBuilder>( + getProfileQuery(), getParentForChildren(), isClean()); + profileQuery_ = null; + } + return profileQueryBuilder_; + } + + private int pageSize_; + /** + * + * + *
+     * Optional.
+     * A limit on the number of profiles returned in the search results.
+     * A value above the default value 10 can increase search response time.
+     * The maximum value allowed is 100. Otherwise an error is thrown.
+     * 
+ * + * int32 page_size = 4; + */ + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional.
+     * A limit on the number of profiles returned in the search results.
+     * A value above the default value 10 can increase search response time.
+     * The maximum value allowed is 100. Otherwise an error is thrown.
+     * 
+ * + * int32 page_size = 4; + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A limit on the number of profiles returned in the search results.
+     * A value above the default value 10 can increase search response time.
+     * The maximum value allowed is 100. Otherwise an error is thrown.
+     * 
+ * + * int32 page_size = 4; + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional.
+     * The pageToken, similar to offset enables users of the API to paginate
+     * through the search results. To retrieve the first page of results, set the
+     * pageToken to empty. The search response includes a
+     * [nextPageToken][google.cloud.talent.v4beta1.SearchProfilesResponse.next_page_token]
+     * field that can be used to populate the pageToken field for the next page of
+     * results. Using pageToken instead of offset increases the performance of the
+     * API, especially compared to larger offset values.
+     * 
+ * + * string page_token = 5; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The pageToken, similar to offset enables users of the API to paginate
+     * through the search results. To retrieve the first page of results, set the
+     * pageToken to empty. The search response includes a
+     * [nextPageToken][google.cloud.talent.v4beta1.SearchProfilesResponse.next_page_token]
+     * field that can be used to populate the pageToken field for the next page of
+     * results. Using pageToken instead of offset increases the performance of the
+     * API, especially compared to larger offset values.
+     * 
+ * + * string page_token = 5; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The pageToken, similar to offset enables users of the API to paginate
+     * through the search results. To retrieve the first page of results, set the
+     * pageToken to empty. The search response includes a
+     * [nextPageToken][google.cloud.talent.v4beta1.SearchProfilesResponse.next_page_token]
+     * field that can be used to populate the pageToken field for the next page of
+     * results. Using pageToken instead of offset increases the performance of the
+     * API, especially compared to larger offset values.
+     * 
+ * + * string page_token = 5; + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The pageToken, similar to offset enables users of the API to paginate
+     * through the search results. To retrieve the first page of results, set the
+     * pageToken to empty. The search response includes a
+     * [nextPageToken][google.cloud.talent.v4beta1.SearchProfilesResponse.next_page_token]
+     * field that can be used to populate the pageToken field for the next page of
+     * results. Using pageToken instead of offset increases the performance of the
+     * API, especially compared to larger offset values.
+     * 
+ * + * string page_token = 5; + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The pageToken, similar to offset enables users of the API to paginate
+     * through the search results. To retrieve the first page of results, set the
+     * pageToken to empty. The search response includes a
+     * [nextPageToken][google.cloud.talent.v4beta1.SearchProfilesResponse.next_page_token]
+     * field that can be used to populate the pageToken field for the next page of
+     * results. Using pageToken instead of offset increases the performance of the
+     * API, especially compared to larger offset values.
+     * 
+ * + * string page_token = 5; + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + private int offset_; + /** + * + * + *
+     * Optional.
+     * An integer that specifies the current offset (that is, starting result) in
+     * search results. This field is only considered if
+     * [page_token][google.cloud.talent.v4beta1.SearchProfilesRequest.page_token]
+     * is unset.
+     * The maximum allowed value is 5000. Otherwise an error is thrown.
+     * For example, 0 means to search from the first profile, and 10 means to
+     * search from the 11th profile. This can be used for pagination, for example
+     * pageSize = 10 and offset = 10 means to search from the second page.
+     * 
+ * + * int32 offset = 6; + */ + public int getOffset() { + return offset_; + } + /** + * + * + *
+     * Optional.
+     * An integer that specifies the current offset (that is, starting result) in
+     * search results. This field is only considered if
+     * [page_token][google.cloud.talent.v4beta1.SearchProfilesRequest.page_token]
+     * is unset.
+     * The maximum allowed value is 5000. Otherwise an error is thrown.
+     * For example, 0 means to search from the first profile, and 10 means to
+     * search from the 11th profile. This can be used for pagination, for example
+     * pageSize = 10 and offset = 10 means to search from the second page.
+     * 
+ * + * int32 offset = 6; + */ + public Builder setOffset(int value) { + + offset_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * An integer that specifies the current offset (that is, starting result) in
+     * search results. This field is only considered if
+     * [page_token][google.cloud.talent.v4beta1.SearchProfilesRequest.page_token]
+     * is unset.
+     * The maximum allowed value is 5000. Otherwise an error is thrown.
+     * For example, 0 means to search from the first profile, and 10 means to
+     * search from the 11th profile. This can be used for pagination, for example
+     * pageSize = 10 and offset = 10 means to search from the second page.
+     * 
+ * + * int32 offset = 6; + */ + public Builder clearOffset() { + + offset_ = 0; + onChanged(); + return this; + } + + private boolean disableSpellCheck_; + /** + * + * + *
+     * Optional.
+     * This flag controls the spell-check feature. If `false`, the
+     * service attempts to correct a misspelled query.
+     * For example, "enginee" is corrected to "engineer".
+     * 
+ * + * bool disable_spell_check = 7; + */ + public boolean getDisableSpellCheck() { + return disableSpellCheck_; + } + /** + * + * + *
+     * Optional.
+     * This flag controls the spell-check feature. If `false`, the
+     * service attempts to correct a misspelled query.
+     * For example, "enginee" is corrected to "engineer".
+     * 
+ * + * bool disable_spell_check = 7; + */ + public Builder setDisableSpellCheck(boolean value) { + + disableSpellCheck_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * This flag controls the spell-check feature. If `false`, the
+     * service attempts to correct a misspelled query.
+     * For example, "enginee" is corrected to "engineer".
+     * 
+ * + * bool disable_spell_check = 7; + */ + public Builder clearDisableSpellCheck() { + + disableSpellCheck_ = false; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + /** + * + * + *
+     * Optional.
+     * The criteria that determines how search results are sorted.
+     * Defaults is "relevance desc" if no value is specified.
+     * Supported options are:
+     * * "relevance desc": By descending relevance, as determined by the API
+     *    algorithms.
+     * * "update_date desc": Sort by [Profile.update_date][] in descending order
+     *   (recently updated profiles first).
+     * * "create_date desc": Sort by [Profile.create_date][] in descending order
+     *   (recently created profiles first).
+     * * "first_name": Sort by [PersonStrcuturedName.given_name][] in ascending
+     *   order.
+     * * "first_name desc": Sort by [PersonStrcuturedName.given_name][] in
+     *   descending order.
+     * * "last_name": Sort by [PersonStrcuturedName.family_name][] in ascending
+     *   order.
+     * * "last_name desc": Sort by [PersonStrcuturedName.family_name][] in
+     *   ascending order.
+     * 
+ * + * string order_by = 8; + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The criteria that determines how search results are sorted.
+     * Defaults is "relevance desc" if no value is specified.
+     * Supported options are:
+     * * "relevance desc": By descending relevance, as determined by the API
+     *    algorithms.
+     * * "update_date desc": Sort by [Profile.update_date][] in descending order
+     *   (recently updated profiles first).
+     * * "create_date desc": Sort by [Profile.create_date][] in descending order
+     *   (recently created profiles first).
+     * * "first_name": Sort by [PersonStrcuturedName.given_name][] in ascending
+     *   order.
+     * * "first_name desc": Sort by [PersonStrcuturedName.given_name][] in
+     *   descending order.
+     * * "last_name": Sort by [PersonStrcuturedName.family_name][] in ascending
+     *   order.
+     * * "last_name desc": Sort by [PersonStrcuturedName.family_name][] in
+     *   ascending order.
+     * 
+ * + * string order_by = 8; + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * The criteria that determines how search results are sorted.
+     * Defaults is "relevance desc" if no value is specified.
+     * Supported options are:
+     * * "relevance desc": By descending relevance, as determined by the API
+     *    algorithms.
+     * * "update_date desc": Sort by [Profile.update_date][] in descending order
+     *   (recently updated profiles first).
+     * * "create_date desc": Sort by [Profile.create_date][] in descending order
+     *   (recently created profiles first).
+     * * "first_name": Sort by [PersonStrcuturedName.given_name][] in ascending
+     *   order.
+     * * "first_name desc": Sort by [PersonStrcuturedName.given_name][] in
+     *   descending order.
+     * * "last_name": Sort by [PersonStrcuturedName.family_name][] in ascending
+     *   order.
+     * * "last_name desc": Sort by [PersonStrcuturedName.family_name][] in
+     *   ascending order.
+     * 
+ * + * string order_by = 8; + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + orderBy_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The criteria that determines how search results are sorted.
+     * Defaults is "relevance desc" if no value is specified.
+     * Supported options are:
+     * * "relevance desc": By descending relevance, as determined by the API
+     *    algorithms.
+     * * "update_date desc": Sort by [Profile.update_date][] in descending order
+     *   (recently updated profiles first).
+     * * "create_date desc": Sort by [Profile.create_date][] in descending order
+     *   (recently created profiles first).
+     * * "first_name": Sort by [PersonStrcuturedName.given_name][] in ascending
+     *   order.
+     * * "first_name desc": Sort by [PersonStrcuturedName.given_name][] in
+     *   descending order.
+     * * "last_name": Sort by [PersonStrcuturedName.family_name][] in ascending
+     *   order.
+     * * "last_name desc": Sort by [PersonStrcuturedName.family_name][] in
+     *   ascending order.
+     * 
+ * + * string order_by = 8; + */ + public Builder clearOrderBy() { + + orderBy_ = getDefaultInstance().getOrderBy(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The criteria that determines how search results are sorted.
+     * Defaults is "relevance desc" if no value is specified.
+     * Supported options are:
+     * * "relevance desc": By descending relevance, as determined by the API
+     *    algorithms.
+     * * "update_date desc": Sort by [Profile.update_date][] in descending order
+     *   (recently updated profiles first).
+     * * "create_date desc": Sort by [Profile.create_date][] in descending order
+     *   (recently created profiles first).
+     * * "first_name": Sort by [PersonStrcuturedName.given_name][] in ascending
+     *   order.
+     * * "first_name desc": Sort by [PersonStrcuturedName.given_name][] in
+     *   descending order.
+     * * "last_name": Sort by [PersonStrcuturedName.family_name][] in ascending
+     *   order.
+     * * "last_name desc": Sort by [PersonStrcuturedName.family_name][] in
+     *   ascending order.
+     * 
+ * + * string order_by = 8; + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + orderBy_ = value; + onChanged(); + return this; + } + + private boolean caseSensitiveSort_; + /** + * + * + *
+     * Optional.
+     * When sort by field is based on alphabetical order, sort values case
+     * sensitively (based on ASCII) when the value is set to true. Default value
+     * is case in-sensitive sort (false).
+     * 
+ * + * bool case_sensitive_sort = 9; + */ + public boolean getCaseSensitiveSort() { + return caseSensitiveSort_; + } + /** + * + * + *
+     * Optional.
+     * When sort by field is based on alphabetical order, sort values case
+     * sensitively (based on ASCII) when the value is set to true. Default value
+     * is case in-sensitive sort (false).
+     * 
+ * + * bool case_sensitive_sort = 9; + */ + public Builder setCaseSensitiveSort(boolean value) { + + caseSensitiveSort_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * When sort by field is based on alphabetical order, sort values case
+     * sensitively (based on ASCII) when the value is set to true. Default value
+     * is case in-sensitive sort (false).
+     * 
+ * + * bool case_sensitive_sort = 9; + */ + public Builder clearCaseSensitiveSort() { + + caseSensitiveSort_ = false; + onChanged(); + return this; + } + + private java.util.List histogramQueries_ = + java.util.Collections.emptyList(); + + private void ensureHistogramQueriesIsMutable() { + if (!((bitField0_ & 0x00000200) == 0x00000200)) { + histogramQueries_ = + new java.util.ArrayList( + histogramQueries_); + bitField0_ |= 0x00000200; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.HistogramQuery, + com.google.cloud.talent.v4beta1.HistogramQuery.Builder, + com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder> + histogramQueriesBuilder_; + + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public java.util.List + getHistogramQueriesList() { + if (histogramQueriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(histogramQueries_); + } else { + return histogramQueriesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public int getHistogramQueriesCount() { + if (histogramQueriesBuilder_ == null) { + return histogramQueries_.size(); + } else { + return histogramQueriesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public com.google.cloud.talent.v4beta1.HistogramQuery getHistogramQueries(int index) { + if (histogramQueriesBuilder_ == null) { + return histogramQueries_.get(index); + } else { + return histogramQueriesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public Builder setHistogramQueries( + int index, com.google.cloud.talent.v4beta1.HistogramQuery value) { + if (histogramQueriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHistogramQueriesIsMutable(); + histogramQueries_.set(index, value); + onChanged(); + } else { + histogramQueriesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public Builder setHistogramQueries( + int index, com.google.cloud.talent.v4beta1.HistogramQuery.Builder builderForValue) { + if (histogramQueriesBuilder_ == null) { + ensureHistogramQueriesIsMutable(); + histogramQueries_.set(index, builderForValue.build()); + onChanged(); + } else { + histogramQueriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public Builder addHistogramQueries(com.google.cloud.talent.v4beta1.HistogramQuery value) { + if (histogramQueriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHistogramQueriesIsMutable(); + histogramQueries_.add(value); + onChanged(); + } else { + histogramQueriesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public Builder addHistogramQueries( + int index, com.google.cloud.talent.v4beta1.HistogramQuery value) { + if (histogramQueriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHistogramQueriesIsMutable(); + histogramQueries_.add(index, value); + onChanged(); + } else { + histogramQueriesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public Builder addHistogramQueries( + com.google.cloud.talent.v4beta1.HistogramQuery.Builder builderForValue) { + if (histogramQueriesBuilder_ == null) { + ensureHistogramQueriesIsMutable(); + histogramQueries_.add(builderForValue.build()); + onChanged(); + } else { + histogramQueriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public Builder addHistogramQueries( + int index, com.google.cloud.talent.v4beta1.HistogramQuery.Builder builderForValue) { + if (histogramQueriesBuilder_ == null) { + ensureHistogramQueriesIsMutable(); + histogramQueries_.add(index, builderForValue.build()); + onChanged(); + } else { + histogramQueriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public Builder addAllHistogramQueries( + java.lang.Iterable values) { + if (histogramQueriesBuilder_ == null) { + ensureHistogramQueriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, histogramQueries_); + onChanged(); + } else { + histogramQueriesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public Builder clearHistogramQueries() { + if (histogramQueriesBuilder_ == null) { + histogramQueries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + histogramQueriesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public Builder removeHistogramQueries(int index) { + if (histogramQueriesBuilder_ == null) { + ensureHistogramQueriesIsMutable(); + histogramQueries_.remove(index); + onChanged(); + } else { + histogramQueriesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public com.google.cloud.talent.v4beta1.HistogramQuery.Builder getHistogramQueriesBuilder( + int index) { + return getHistogramQueriesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder getHistogramQueriesOrBuilder( + int index) { + if (histogramQueriesBuilder_ == null) { + return histogramQueries_.get(index); + } else { + return histogramQueriesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public java.util.List + getHistogramQueriesOrBuilderList() { + if (histogramQueriesBuilder_ != null) { + return histogramQueriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(histogramQueries_); + } + } + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public com.google.cloud.talent.v4beta1.HistogramQuery.Builder addHistogramQueriesBuilder() { + return getHistogramQueriesFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.HistogramQuery.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public com.google.cloud.talent.v4beta1.HistogramQuery.Builder addHistogramQueriesBuilder( + int index) { + return getHistogramQueriesFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.HistogramQuery.getDefaultInstance()); + } + /** + * + * + *
+     * Optional.
+     * A list of expressions specifies histogram requests against matching
+     * profiles for
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * The expression syntax looks like a function definition with optional
+     * parameters.
+     * Function syntax: function_name(histogram_facet[, list of buckets])
+     * Data types:
+     * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+     * * String: string like "any string with backslash escape for quote(\")."
+     * * Number: whole number and floating point number like 10, -1 and -0.01.
+     * * List: list of elements with comma(,) separator surrounded by square
+     * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+     * Built-in constants:
+     * * MIN (minimum number similar to java Double.MIN_VALUE)
+     * * MAX (maximum number similar to java Double.MAX_VALUE)
+     * Built-in functions:
+     * * bucket(start, end[, label])
+     * Bucket build-in function creates a bucket with range of [start, end). Note
+     * that the end is exclusive.
+     * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+     * Histogram Facets:
+     * * admin1: Admin1 is a global placeholder for referring to state, province,
+     * or the particular term a country uses to define the geographic structure
+     * below the country level. Examples include states codes such as "CA", "IL",
+     * "NY", and provinces, such as "BC".
+     * * locality: Locality is a global placeholder for referring to city, town,
+     * or the particular term a country uses to define the geographic structure
+     * below the admin1 level. Examples include city names such as
+     * "Mountain View" and "New York".
+     * * extended_locality: Extended locality is concatenated version of admin1
+     * and locality with comma separator. For example, "Mountain View, CA" and
+     * "New York, NY".
+     * * postal_code: Postal code of profile which follows locale code.
+     * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+     *  JP, GB.
+     * * job_title: Normalized job titles specified in EmploymentHistory.
+     * * company_name: Normalized company name of profiles to match on.
+     * * institution: The school name. For example, "MIT",
+     * "University of California, Berkeley"
+     * * degree: Highest education degree in ISCED code. Each value in degree
+     * covers specific level of education, without any expansion to upper nor
+     * lower levels of education degree.
+     * * experience_in_months: experience in months. 0 means 0 month to 1 month
+     * (exclusive).
+     * * application_date: The application date specifies application start dates.
+     * See
+     * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+     * for more details.
+     * * application_outcome_reason: The application outcome reason specifies the
+     * outcome reasons of job application.
+     * See
+     * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+     * for more details.
+     * * application_last_stage: The application last stage specifies the last
+     * stage of job application.
+     * See
+     * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+     * for more details.
+     * * application_job_title: The application job title specifies the job
+     * applied for in the application.
+     * See
+     * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+     * for more details.
+     * * application_status: The application status specifies the status of job
+     * application.
+     * See
+     * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+     * for more details.
+     * * hirable_status: Hirable status specifies the profile's hirable status.
+     * * string_custom_attribute: String custom attributes. Values can be accessed
+     * via square bracket notation like string_custom_attribute["key1"].
+     * * numeric_custom_attribute: Numeric custom attributes. Values can be
+     * accessed via square bracket notation like numeric_custom_attribute["key1"].
+     * Example expressions:
+     * * count(admin1)
+     * * count(experience_in_months, [bucket(0, 12, "1 year"),
+     * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+     * * count(string_custom_attribute["assigned_recruiter"])
+     * * count(numeric_custom_attribute["favorite_number"],
+     * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + public java.util.List + getHistogramQueriesBuilderList() { + return getHistogramQueriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.HistogramQuery, + com.google.cloud.talent.v4beta1.HistogramQuery.Builder, + com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder> + getHistogramQueriesFieldBuilder() { + if (histogramQueriesBuilder_ == null) { + histogramQueriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.HistogramQuery, + com.google.cloud.talent.v4beta1.HistogramQuery.Builder, + com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder>( + histogramQueries_, + ((bitField0_ & 0x00000200) == 0x00000200), + getParentForChildren(), + isClean()); + histogramQueries_ = null; + } + return histogramQueriesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.SearchProfilesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.SearchProfilesRequest) + private static final com.google.cloud.talent.v4beta1.SearchProfilesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.SearchProfilesRequest(); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchProfilesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SearchProfilesRequest(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.SearchProfilesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesRequestOrBuilder.java new file mode 100644 index 000000000000..4a6216e74b90 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesRequestOrBuilder.java @@ -0,0 +1,717 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface SearchProfilesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.SearchProfilesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The resource name of the tenant to search within.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required.
+   * The resource name of the tenant to search within.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required.
+   * The meta information collected about the profile search user. This is used
+   * to improve the search quality of the service. These values are provided by
+   * users, and must be precise and consistent.
+   * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2; + */ + boolean hasRequestMetadata(); + /** + * + * + *
+   * Required.
+   * The meta information collected about the profile search user. This is used
+   * to improve the search quality of the service. These values are provided by
+   * users, and must be precise and consistent.
+   * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2; + */ + com.google.cloud.talent.v4beta1.RequestMetadata getRequestMetadata(); + /** + * + * + *
+   * Required.
+   * The meta information collected about the profile search user. This is used
+   * to improve the search quality of the service. These values are provided by
+   * users, and must be precise and consistent.
+   * 
+ * + * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2; + */ + com.google.cloud.talent.v4beta1.RequestMetadataOrBuilder getRequestMetadataOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * Search query to execute. See
+   * [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
+   * 
+ * + * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; + */ + boolean hasProfileQuery(); + /** + * + * + *
+   * Optional.
+   * Search query to execute. See
+   * [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
+   * 
+ * + * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; + */ + com.google.cloud.talent.v4beta1.ProfileQuery getProfileQuery(); + /** + * + * + *
+   * Optional.
+   * Search query to execute. See
+   * [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
+   * 
+ * + * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; + */ + com.google.cloud.talent.v4beta1.ProfileQueryOrBuilder getProfileQueryOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * A limit on the number of profiles returned in the search results.
+   * A value above the default value 10 can increase search response time.
+   * The maximum value allowed is 100. Otherwise an error is thrown.
+   * 
+ * + * int32 page_size = 4; + */ + int getPageSize(); + + /** + * + * + *
+   * Optional.
+   * The pageToken, similar to offset enables users of the API to paginate
+   * through the search results. To retrieve the first page of results, set the
+   * pageToken to empty. The search response includes a
+   * [nextPageToken][google.cloud.talent.v4beta1.SearchProfilesResponse.next_page_token]
+   * field that can be used to populate the pageToken field for the next page of
+   * results. Using pageToken instead of offset increases the performance of the
+   * API, especially compared to larger offset values.
+   * 
+ * + * string page_token = 5; + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional.
+   * The pageToken, similar to offset enables users of the API to paginate
+   * through the search results. To retrieve the first page of results, set the
+   * pageToken to empty. The search response includes a
+   * [nextPageToken][google.cloud.talent.v4beta1.SearchProfilesResponse.next_page_token]
+   * field that can be used to populate the pageToken field for the next page of
+   * results. Using pageToken instead of offset increases the performance of the
+   * API, especially compared to larger offset values.
+   * 
+ * + * string page_token = 5; + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional.
+   * An integer that specifies the current offset (that is, starting result) in
+   * search results. This field is only considered if
+   * [page_token][google.cloud.talent.v4beta1.SearchProfilesRequest.page_token]
+   * is unset.
+   * The maximum allowed value is 5000. Otherwise an error is thrown.
+   * For example, 0 means to search from the first profile, and 10 means to
+   * search from the 11th profile. This can be used for pagination, for example
+   * pageSize = 10 and offset = 10 means to search from the second page.
+   * 
+ * + * int32 offset = 6; + */ + int getOffset(); + + /** + * + * + *
+   * Optional.
+   * This flag controls the spell-check feature. If `false`, the
+   * service attempts to correct a misspelled query.
+   * For example, "enginee" is corrected to "engineer".
+   * 
+ * + * bool disable_spell_check = 7; + */ + boolean getDisableSpellCheck(); + + /** + * + * + *
+   * Optional.
+   * The criteria that determines how search results are sorted.
+   * Defaults is "relevance desc" if no value is specified.
+   * Supported options are:
+   * * "relevance desc": By descending relevance, as determined by the API
+   *    algorithms.
+   * * "update_date desc": Sort by [Profile.update_date][] in descending order
+   *   (recently updated profiles first).
+   * * "create_date desc": Sort by [Profile.create_date][] in descending order
+   *   (recently created profiles first).
+   * * "first_name": Sort by [PersonStrcuturedName.given_name][] in ascending
+   *   order.
+   * * "first_name desc": Sort by [PersonStrcuturedName.given_name][] in
+   *   descending order.
+   * * "last_name": Sort by [PersonStrcuturedName.family_name][] in ascending
+   *   order.
+   * * "last_name desc": Sort by [PersonStrcuturedName.family_name][] in
+   *   ascending order.
+   * 
+ * + * string order_by = 8; + */ + java.lang.String getOrderBy(); + /** + * + * + *
+   * Optional.
+   * The criteria that determines how search results are sorted.
+   * Defaults is "relevance desc" if no value is specified.
+   * Supported options are:
+   * * "relevance desc": By descending relevance, as determined by the API
+   *    algorithms.
+   * * "update_date desc": Sort by [Profile.update_date][] in descending order
+   *   (recently updated profiles first).
+   * * "create_date desc": Sort by [Profile.create_date][] in descending order
+   *   (recently created profiles first).
+   * * "first_name": Sort by [PersonStrcuturedName.given_name][] in ascending
+   *   order.
+   * * "first_name desc": Sort by [PersonStrcuturedName.given_name][] in
+   *   descending order.
+   * * "last_name": Sort by [PersonStrcuturedName.family_name][] in ascending
+   *   order.
+   * * "last_name desc": Sort by [PersonStrcuturedName.family_name][] in
+   *   ascending order.
+   * 
+ * + * string order_by = 8; + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
+   * Optional.
+   * When sort by field is based on alphabetical order, sort values case
+   * sensitively (based on ASCII) when the value is set to true. Default value
+   * is case in-sensitive sort (false).
+   * 
+ * + * bool case_sensitive_sort = 9; + */ + boolean getCaseSensitiveSort(); + + /** + * + * + *
+   * Optional.
+   * A list of expressions specifies histogram requests against matching
+   * profiles for
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * The expression syntax looks like a function definition with optional
+   * parameters.
+   * Function syntax: function_name(histogram_facet[, list of buckets])
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label])
+   * Bucket build-in function creates a bucket with range of [start, end). Note
+   * that the end is exclusive.
+   * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Histogram Facets:
+   * * admin1: Admin1 is a global placeholder for referring to state, province,
+   * or the particular term a country uses to define the geographic structure
+   * below the country level. Examples include states codes such as "CA", "IL",
+   * "NY", and provinces, such as "BC".
+   * * locality: Locality is a global placeholder for referring to city, town,
+   * or the particular term a country uses to define the geographic structure
+   * below the admin1 level. Examples include city names such as
+   * "Mountain View" and "New York".
+   * * extended_locality: Extended locality is concatenated version of admin1
+   * and locality with comma separator. For example, "Mountain View, CA" and
+   * "New York, NY".
+   * * postal_code: Postal code of profile which follows locale code.
+   * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+   *  JP, GB.
+   * * job_title: Normalized job titles specified in EmploymentHistory.
+   * * company_name: Normalized company name of profiles to match on.
+   * * institution: The school name. For example, "MIT",
+   * "University of California, Berkeley"
+   * * degree: Highest education degree in ISCED code. Each value in degree
+   * covers specific level of education, without any expansion to upper nor
+   * lower levels of education degree.
+   * * experience_in_months: experience in months. 0 means 0 month to 1 month
+   * (exclusive).
+   * * application_date: The application date specifies application start dates.
+   * See
+   * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+   * for more details.
+   * * application_outcome_reason: The application outcome reason specifies the
+   * outcome reasons of job application.
+   * See
+   * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+   * for more details.
+   * * application_last_stage: The application last stage specifies the last
+   * stage of job application.
+   * See
+   * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+   * for more details.
+   * * application_job_title: The application job title specifies the job
+   * applied for in the application.
+   * See
+   * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+   * for more details.
+   * * application_status: The application status specifies the status of job
+   * application.
+   * See
+   * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+   * for more details.
+   * * hirable_status: Hirable status specifies the profile's hirable status.
+   * * string_custom_attribute: String custom attributes. Values can be accessed
+   * via square bracket notation like string_custom_attribute["key1"].
+   * * numeric_custom_attribute: Numeric custom attributes. Values can be
+   * accessed via square bracket notation like numeric_custom_attribute["key1"].
+   * Example expressions:
+   * * count(admin1)
+   * * count(experience_in_months, [bucket(0, 12, "1 year"),
+   * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+   * * count(string_custom_attribute["assigned_recruiter"])
+   * * count(numeric_custom_attribute["favorite_number"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + java.util.List getHistogramQueriesList(); + /** + * + * + *
+   * Optional.
+   * A list of expressions specifies histogram requests against matching
+   * profiles for
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * The expression syntax looks like a function definition with optional
+   * parameters.
+   * Function syntax: function_name(histogram_facet[, list of buckets])
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label])
+   * Bucket build-in function creates a bucket with range of [start, end). Note
+   * that the end is exclusive.
+   * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Histogram Facets:
+   * * admin1: Admin1 is a global placeholder for referring to state, province,
+   * or the particular term a country uses to define the geographic structure
+   * below the country level. Examples include states codes such as "CA", "IL",
+   * "NY", and provinces, such as "BC".
+   * * locality: Locality is a global placeholder for referring to city, town,
+   * or the particular term a country uses to define the geographic structure
+   * below the admin1 level. Examples include city names such as
+   * "Mountain View" and "New York".
+   * * extended_locality: Extended locality is concatenated version of admin1
+   * and locality with comma separator. For example, "Mountain View, CA" and
+   * "New York, NY".
+   * * postal_code: Postal code of profile which follows locale code.
+   * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+   *  JP, GB.
+   * * job_title: Normalized job titles specified in EmploymentHistory.
+   * * company_name: Normalized company name of profiles to match on.
+   * * institution: The school name. For example, "MIT",
+   * "University of California, Berkeley"
+   * * degree: Highest education degree in ISCED code. Each value in degree
+   * covers specific level of education, without any expansion to upper nor
+   * lower levels of education degree.
+   * * experience_in_months: experience in months. 0 means 0 month to 1 month
+   * (exclusive).
+   * * application_date: The application date specifies application start dates.
+   * See
+   * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+   * for more details.
+   * * application_outcome_reason: The application outcome reason specifies the
+   * outcome reasons of job application.
+   * See
+   * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+   * for more details.
+   * * application_last_stage: The application last stage specifies the last
+   * stage of job application.
+   * See
+   * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+   * for more details.
+   * * application_job_title: The application job title specifies the job
+   * applied for in the application.
+   * See
+   * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+   * for more details.
+   * * application_status: The application status specifies the status of job
+   * application.
+   * See
+   * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+   * for more details.
+   * * hirable_status: Hirable status specifies the profile's hirable status.
+   * * string_custom_attribute: String custom attributes. Values can be accessed
+   * via square bracket notation like string_custom_attribute["key1"].
+   * * numeric_custom_attribute: Numeric custom attributes. Values can be
+   * accessed via square bracket notation like numeric_custom_attribute["key1"].
+   * Example expressions:
+   * * count(admin1)
+   * * count(experience_in_months, [bucket(0, 12, "1 year"),
+   * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+   * * count(string_custom_attribute["assigned_recruiter"])
+   * * count(numeric_custom_attribute["favorite_number"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + com.google.cloud.talent.v4beta1.HistogramQuery getHistogramQueries(int index); + /** + * + * + *
+   * Optional.
+   * A list of expressions specifies histogram requests against matching
+   * profiles for
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * The expression syntax looks like a function definition with optional
+   * parameters.
+   * Function syntax: function_name(histogram_facet[, list of buckets])
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label])
+   * Bucket build-in function creates a bucket with range of [start, end). Note
+   * that the end is exclusive.
+   * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Histogram Facets:
+   * * admin1: Admin1 is a global placeholder for referring to state, province,
+   * or the particular term a country uses to define the geographic structure
+   * below the country level. Examples include states codes such as "CA", "IL",
+   * "NY", and provinces, such as "BC".
+   * * locality: Locality is a global placeholder for referring to city, town,
+   * or the particular term a country uses to define the geographic structure
+   * below the admin1 level. Examples include city names such as
+   * "Mountain View" and "New York".
+   * * extended_locality: Extended locality is concatenated version of admin1
+   * and locality with comma separator. For example, "Mountain View, CA" and
+   * "New York, NY".
+   * * postal_code: Postal code of profile which follows locale code.
+   * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+   *  JP, GB.
+   * * job_title: Normalized job titles specified in EmploymentHistory.
+   * * company_name: Normalized company name of profiles to match on.
+   * * institution: The school name. For example, "MIT",
+   * "University of California, Berkeley"
+   * * degree: Highest education degree in ISCED code. Each value in degree
+   * covers specific level of education, without any expansion to upper nor
+   * lower levels of education degree.
+   * * experience_in_months: experience in months. 0 means 0 month to 1 month
+   * (exclusive).
+   * * application_date: The application date specifies application start dates.
+   * See
+   * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+   * for more details.
+   * * application_outcome_reason: The application outcome reason specifies the
+   * outcome reasons of job application.
+   * See
+   * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+   * for more details.
+   * * application_last_stage: The application last stage specifies the last
+   * stage of job application.
+   * See
+   * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+   * for more details.
+   * * application_job_title: The application job title specifies the job
+   * applied for in the application.
+   * See
+   * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+   * for more details.
+   * * application_status: The application status specifies the status of job
+   * application.
+   * See
+   * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+   * for more details.
+   * * hirable_status: Hirable status specifies the profile's hirable status.
+   * * string_custom_attribute: String custom attributes. Values can be accessed
+   * via square bracket notation like string_custom_attribute["key1"].
+   * * numeric_custom_attribute: Numeric custom attributes. Values can be
+   * accessed via square bracket notation like numeric_custom_attribute["key1"].
+   * Example expressions:
+   * * count(admin1)
+   * * count(experience_in_months, [bucket(0, 12, "1 year"),
+   * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+   * * count(string_custom_attribute["assigned_recruiter"])
+   * * count(numeric_custom_attribute["favorite_number"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + int getHistogramQueriesCount(); + /** + * + * + *
+   * Optional.
+   * A list of expressions specifies histogram requests against matching
+   * profiles for
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * The expression syntax looks like a function definition with optional
+   * parameters.
+   * Function syntax: function_name(histogram_facet[, list of buckets])
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label])
+   * Bucket build-in function creates a bucket with range of [start, end). Note
+   * that the end is exclusive.
+   * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Histogram Facets:
+   * * admin1: Admin1 is a global placeholder for referring to state, province,
+   * or the particular term a country uses to define the geographic structure
+   * below the country level. Examples include states codes such as "CA", "IL",
+   * "NY", and provinces, such as "BC".
+   * * locality: Locality is a global placeholder for referring to city, town,
+   * or the particular term a country uses to define the geographic structure
+   * below the admin1 level. Examples include city names such as
+   * "Mountain View" and "New York".
+   * * extended_locality: Extended locality is concatenated version of admin1
+   * and locality with comma separator. For example, "Mountain View, CA" and
+   * "New York, NY".
+   * * postal_code: Postal code of profile which follows locale code.
+   * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+   *  JP, GB.
+   * * job_title: Normalized job titles specified in EmploymentHistory.
+   * * company_name: Normalized company name of profiles to match on.
+   * * institution: The school name. For example, "MIT",
+   * "University of California, Berkeley"
+   * * degree: Highest education degree in ISCED code. Each value in degree
+   * covers specific level of education, without any expansion to upper nor
+   * lower levels of education degree.
+   * * experience_in_months: experience in months. 0 means 0 month to 1 month
+   * (exclusive).
+   * * application_date: The application date specifies application start dates.
+   * See
+   * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+   * for more details.
+   * * application_outcome_reason: The application outcome reason specifies the
+   * outcome reasons of job application.
+   * See
+   * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+   * for more details.
+   * * application_last_stage: The application last stage specifies the last
+   * stage of job application.
+   * See
+   * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+   * for more details.
+   * * application_job_title: The application job title specifies the job
+   * applied for in the application.
+   * See
+   * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+   * for more details.
+   * * application_status: The application status specifies the status of job
+   * application.
+   * See
+   * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+   * for more details.
+   * * hirable_status: Hirable status specifies the profile's hirable status.
+   * * string_custom_attribute: String custom attributes. Values can be accessed
+   * via square bracket notation like string_custom_attribute["key1"].
+   * * numeric_custom_attribute: Numeric custom attributes. Values can be
+   * accessed via square bracket notation like numeric_custom_attribute["key1"].
+   * Example expressions:
+   * * count(admin1)
+   * * count(experience_in_months, [bucket(0, 12, "1 year"),
+   * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+   * * count(string_custom_attribute["assigned_recruiter"])
+   * * count(numeric_custom_attribute["favorite_number"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + java.util.List + getHistogramQueriesOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * A list of expressions specifies histogram requests against matching
+   * profiles for
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * The expression syntax looks like a function definition with optional
+   * parameters.
+   * Function syntax: function_name(histogram_facet[, list of buckets])
+   * Data types:
+   * * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
+   * * String: string like "any string with backslash escape for quote(\")."
+   * * Number: whole number and floating point number like 10, -1 and -0.01.
+   * * List: list of elements with comma(,) separator surrounded by square
+   * brackets. For example, [1, 2, 3] and ["one", "two", "three"].
+   * Built-in constants:
+   * * MIN (minimum number similar to java Double.MIN_VALUE)
+   * * MAX (maximum number similar to java Double.MAX_VALUE)
+   * Built-in functions:
+   * * bucket(start, end[, label])
+   * Bucket build-in function creates a bucket with range of [start, end). Note
+   * that the end is exclusive.
+   * For example, bucket(1, MAX, "positive number") or bucket(1, 10).
+   * Histogram Facets:
+   * * admin1: Admin1 is a global placeholder for referring to state, province,
+   * or the particular term a country uses to define the geographic structure
+   * below the country level. Examples include states codes such as "CA", "IL",
+   * "NY", and provinces, such as "BC".
+   * * locality: Locality is a global placeholder for referring to city, town,
+   * or the particular term a country uses to define the geographic structure
+   * below the admin1 level. Examples include city names such as
+   * "Mountain View" and "New York".
+   * * extended_locality: Extended locality is concatenated version of admin1
+   * and locality with comma separator. For example, "Mountain View, CA" and
+   * "New York, NY".
+   * * postal_code: Postal code of profile which follows locale code.
+   * * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US,
+   *  JP, GB.
+   * * job_title: Normalized job titles specified in EmploymentHistory.
+   * * company_name: Normalized company name of profiles to match on.
+   * * institution: The school name. For example, "MIT",
+   * "University of California, Berkeley"
+   * * degree: Highest education degree in ISCED code. Each value in degree
+   * covers specific level of education, without any expansion to upper nor
+   * lower levels of education degree.
+   * * experience_in_months: experience in months. 0 means 0 month to 1 month
+   * (exclusive).
+   * * application_date: The application date specifies application start dates.
+   * See
+   * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter]
+   * for more details.
+   * * application_outcome_reason: The application outcome reason specifies the
+   * outcome reasons of job application.
+   * See
+   * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter]
+   * for more details.
+   * * application_last_stage: The application last stage specifies the last
+   * stage of job application.
+   * See
+   * [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter]
+   * for more details.
+   * * application_job_title: The application job title specifies the job
+   * applied for in the application.
+   * See
+   * [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter]
+   * for more details.
+   * * application_status: The application status specifies the status of job
+   * application.
+   * See
+   * [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter]
+   * for more details.
+   * * hirable_status: Hirable status specifies the profile's hirable status.
+   * * string_custom_attribute: String custom attributes. Values can be accessed
+   * via square bracket notation like string_custom_attribute["key1"].
+   * * numeric_custom_attribute: Numeric custom attributes. Values can be
+   * accessed via square bracket notation like numeric_custom_attribute["key1"].
+   * Example expressions:
+   * * count(admin1)
+   * * count(experience_in_months, [bucket(0, 12, "1 year"),
+   * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")])
+   * * count(string_custom_attribute["assigned_recruiter"])
+   * * count(numeric_custom_attribute["favorite_number"],
+   * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; + */ + com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder getHistogramQueriesOrBuilder(int index); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesResponse.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesResponse.java new file mode 100644 index 000000000000..ccd7f336e1b5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesResponse.java @@ -0,0 +1,2321 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Response of SearchProfiles method.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SearchProfilesResponse} + */ +public final class SearchProfilesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.SearchProfilesResponse) + SearchProfilesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchProfilesResponse.newBuilder() to construct. + private SearchProfilesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchProfilesResponse() { + estimatedTotalSize_ = 0L; + nextPageToken_ = ""; + histogramQueryResults_ = java.util.Collections.emptyList(); + summarizedProfiles_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SearchProfilesResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + estimatedTotalSize_ = input.readInt64(); + break; + } + case 18: + { + com.google.cloud.talent.v4beta1.SpellingCorrection.Builder subBuilder = null; + if (spellCorrection_ != null) { + subBuilder = spellCorrection_.toBuilder(); + } + spellCorrection_ = + input.readMessage( + com.google.cloud.talent.v4beta1.SpellingCorrection.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spellCorrection_); + spellCorrection_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = + input.readMessage( + com.google.cloud.talent.v4beta1.ResponseMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + case 42: + { + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + histogramQueryResults_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + histogramQueryResults_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.HistogramQueryResult.parser(), + extensionRegistry)); + break; + } + case 50: + { + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + summarizedProfiles_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000020; + } + summarizedProfiles_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.SummarizedProfile.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + histogramQueryResults_ = java.util.Collections.unmodifiableList(histogramQueryResults_); + } + if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + summarizedProfiles_ = java.util.Collections.unmodifiableList(summarizedProfiles_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchProfilesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchProfilesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SearchProfilesResponse.class, + com.google.cloud.talent.v4beta1.SearchProfilesResponse.Builder.class); + } + + private int bitField0_; + public static final int ESTIMATED_TOTAL_SIZE_FIELD_NUMBER = 1; + private long estimatedTotalSize_; + /** + * + * + *
+   * An estimation of the number of profiles that match the specified query.
+   * This number isn't guaranteed to be accurate.
+   * 
+ * + * int64 estimated_total_size = 1; + */ + public long getEstimatedTotalSize() { + return estimatedTotalSize_; + } + + public static final int SPELL_CORRECTION_FIELD_NUMBER = 2; + private com.google.cloud.talent.v4beta1.SpellingCorrection spellCorrection_; + /** + * + * + *
+   * The spell checking result, and correction.
+   * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; + */ + public boolean hasSpellCorrection() { + return spellCorrection_ != null; + } + /** + * + * + *
+   * The spell checking result, and correction.
+   * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; + */ + public com.google.cloud.talent.v4beta1.SpellingCorrection getSpellCorrection() { + return spellCorrection_ == null + ? com.google.cloud.talent.v4beta1.SpellingCorrection.getDefaultInstance() + : spellCorrection_; + } + /** + * + * + *
+   * The spell checking result, and correction.
+   * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; + */ + public com.google.cloud.talent.v4beta1.SpellingCorrectionOrBuilder getSpellCorrectionOrBuilder() { + return getSpellCorrection(); + } + + public static final int METADATA_FIELD_NUMBER = 3; + private com.google.cloud.talent.v4beta1.ResponseMetadata metadata_; + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata() { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 4; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token to retrieve the next page of results. This is empty if there are no
+   * more results.
+   * 
+ * + * string next_page_token = 4; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token to retrieve the next page of results. This is empty if there are no
+   * more results.
+   * 
+ * + * string next_page_token = 4; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HISTOGRAM_QUERY_RESULTS_FIELD_NUMBER = 5; + private java.util.List + histogramQueryResults_; + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public java.util.List + getHistogramQueryResultsList() { + return histogramQueryResults_; + } + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public java.util.List + getHistogramQueryResultsOrBuilderList() { + return histogramQueryResults_; + } + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public int getHistogramQueryResultsCount() { + return histogramQueryResults_.size(); + } + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public com.google.cloud.talent.v4beta1.HistogramQueryResult getHistogramQueryResults(int index) { + return histogramQueryResults_.get(index); + } + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public com.google.cloud.talent.v4beta1.HistogramQueryResultOrBuilder + getHistogramQueryResultsOrBuilder(int index) { + return histogramQueryResults_.get(index); + } + + public static final int SUMMARIZED_PROFILES_FIELD_NUMBER = 6; + private java.util.List summarizedProfiles_; + /** + * + * + *
+   * The profile entities that match the specified
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public java.util.List + getSummarizedProfilesList() { + return summarizedProfiles_; + } + /** + * + * + *
+   * The profile entities that match the specified
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public java.util.List + getSummarizedProfilesOrBuilderList() { + return summarizedProfiles_; + } + /** + * + * + *
+   * The profile entities that match the specified
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public int getSummarizedProfilesCount() { + return summarizedProfiles_.size(); + } + /** + * + * + *
+   * The profile entities that match the specified
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public com.google.cloud.talent.v4beta1.SummarizedProfile getSummarizedProfiles(int index) { + return summarizedProfiles_.get(index); + } + /** + * + * + *
+   * The profile entities that match the specified
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public com.google.cloud.talent.v4beta1.SummarizedProfileOrBuilder getSummarizedProfilesOrBuilder( + int index) { + return summarizedProfiles_.get(index); + } + + 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 (estimatedTotalSize_ != 0L) { + output.writeInt64(1, estimatedTotalSize_); + } + if (spellCorrection_ != null) { + output.writeMessage(2, getSpellCorrection()); + } + if (metadata_ != null) { + output.writeMessage(3, getMetadata()); + } + if (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nextPageToken_); + } + for (int i = 0; i < histogramQueryResults_.size(); i++) { + output.writeMessage(5, histogramQueryResults_.get(i)); + } + for (int i = 0; i < summarizedProfiles_.size(); i++) { + output.writeMessage(6, summarizedProfiles_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (estimatedTotalSize_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, estimatedTotalSize_); + } + if (spellCorrection_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSpellCorrection()); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMetadata()); + } + if (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nextPageToken_); + } + for (int i = 0; i < histogramQueryResults_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, histogramQueryResults_.get(i)); + } + for (int i = 0; i < summarizedProfiles_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(6, summarizedProfiles_.get(i)); + } + size += unknownFields.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.cloud.talent.v4beta1.SearchProfilesResponse)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.SearchProfilesResponse other = + (com.google.cloud.talent.v4beta1.SearchProfilesResponse) obj; + + boolean result = true; + result = result && (getEstimatedTotalSize() == other.getEstimatedTotalSize()); + result = result && (hasSpellCorrection() == other.hasSpellCorrection()); + if (hasSpellCorrection()) { + result = result && getSpellCorrection().equals(other.getSpellCorrection()); + } + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata().equals(other.getMetadata()); + } + result = result && getNextPageToken().equals(other.getNextPageToken()); + result = result && getHistogramQueryResultsList().equals(other.getHistogramQueryResultsList()); + result = result && getSummarizedProfilesList().equals(other.getSummarizedProfilesList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ESTIMATED_TOTAL_SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEstimatedTotalSize()); + if (hasSpellCorrection()) { + hash = (37 * hash) + SPELL_CORRECTION_FIELD_NUMBER; + hash = (53 * hash) + getSpellCorrection().hashCode(); + } + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getHistogramQueryResultsCount() > 0) { + hash = (37 * hash) + HISTOGRAM_QUERY_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getHistogramQueryResultsList().hashCode(); + } + if (getSummarizedProfilesCount() > 0) { + hash = (37 * hash) + SUMMARIZED_PROFILES_FIELD_NUMBER; + hash = (53 * hash) + getSummarizedProfilesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesResponse 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.cloud.talent.v4beta1.SearchProfilesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesResponse 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.cloud.talent.v4beta1.SearchProfilesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesResponse 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.cloud.talent.v4beta1.SearchProfilesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesResponse 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.cloud.talent.v4beta1.SearchProfilesResponse 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; + } + /** + * + * + *
+   * Response of SearchProfiles method.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SearchProfilesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.SearchProfilesResponse) + com.google.cloud.talent.v4beta1.SearchProfilesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchProfilesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchProfilesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SearchProfilesResponse.class, + com.google.cloud.talent.v4beta1.SearchProfilesResponse.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.SearchProfilesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getHistogramQueryResultsFieldBuilder(); + getSummarizedProfilesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + estimatedTotalSize_ = 0L; + + if (spellCorrectionBuilder_ == null) { + spellCorrection_ = null; + } else { + spellCorrection_ = null; + spellCorrectionBuilder_ = null; + } + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + nextPageToken_ = ""; + + if (histogramQueryResultsBuilder_ == null) { + histogramQueryResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + } else { + histogramQueryResultsBuilder_.clear(); + } + if (summarizedProfilesBuilder_ == null) { + summarizedProfiles_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + } else { + summarizedProfilesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_SearchProfilesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchProfilesResponse getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.SearchProfilesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchProfilesResponse build() { + com.google.cloud.talent.v4beta1.SearchProfilesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchProfilesResponse buildPartial() { + com.google.cloud.talent.v4beta1.SearchProfilesResponse result = + new com.google.cloud.talent.v4beta1.SearchProfilesResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.estimatedTotalSize_ = estimatedTotalSize_; + if (spellCorrectionBuilder_ == null) { + result.spellCorrection_ = spellCorrection_; + } else { + result.spellCorrection_ = spellCorrectionBuilder_.build(); + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + if (histogramQueryResultsBuilder_ == null) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { + histogramQueryResults_ = java.util.Collections.unmodifiableList(histogramQueryResults_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.histogramQueryResults_ = histogramQueryResults_; + } else { + result.histogramQueryResults_ = histogramQueryResultsBuilder_.build(); + } + if (summarizedProfilesBuilder_ == null) { + if (((bitField0_ & 0x00000020) == 0x00000020)) { + summarizedProfiles_ = java.util.Collections.unmodifiableList(summarizedProfiles_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.summarizedProfiles_ = summarizedProfiles_; + } else { + result.summarizedProfiles_ = summarizedProfilesBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.SearchProfilesResponse) { + return mergeFrom((com.google.cloud.talent.v4beta1.SearchProfilesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.SearchProfilesResponse other) { + if (other == com.google.cloud.talent.v4beta1.SearchProfilesResponse.getDefaultInstance()) + return this; + if (other.getEstimatedTotalSize() != 0L) { + setEstimatedTotalSize(other.getEstimatedTotalSize()); + } + if (other.hasSpellCorrection()) { + mergeSpellCorrection(other.getSpellCorrection()); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + if (histogramQueryResultsBuilder_ == null) { + if (!other.histogramQueryResults_.isEmpty()) { + if (histogramQueryResults_.isEmpty()) { + histogramQueryResults_ = other.histogramQueryResults_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureHistogramQueryResultsIsMutable(); + histogramQueryResults_.addAll(other.histogramQueryResults_); + } + onChanged(); + } + } else { + if (!other.histogramQueryResults_.isEmpty()) { + if (histogramQueryResultsBuilder_.isEmpty()) { + histogramQueryResultsBuilder_.dispose(); + histogramQueryResultsBuilder_ = null; + histogramQueryResults_ = other.histogramQueryResults_; + bitField0_ = (bitField0_ & ~0x00000010); + histogramQueryResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getHistogramQueryResultsFieldBuilder() + : null; + } else { + histogramQueryResultsBuilder_.addAllMessages(other.histogramQueryResults_); + } + } + } + if (summarizedProfilesBuilder_ == null) { + if (!other.summarizedProfiles_.isEmpty()) { + if (summarizedProfiles_.isEmpty()) { + summarizedProfiles_ = other.summarizedProfiles_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureSummarizedProfilesIsMutable(); + summarizedProfiles_.addAll(other.summarizedProfiles_); + } + onChanged(); + } + } else { + if (!other.summarizedProfiles_.isEmpty()) { + if (summarizedProfilesBuilder_.isEmpty()) { + summarizedProfilesBuilder_.dispose(); + summarizedProfilesBuilder_ = null; + summarizedProfiles_ = other.summarizedProfiles_; + bitField0_ = (bitField0_ & ~0x00000020); + summarizedProfilesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSummarizedProfilesFieldBuilder() + : null; + } else { + summarizedProfilesBuilder_.addAllMessages(other.summarizedProfiles_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.SearchProfilesResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.SearchProfilesResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private long estimatedTotalSize_; + /** + * + * + *
+     * An estimation of the number of profiles that match the specified query.
+     * This number isn't guaranteed to be accurate.
+     * 
+ * + * int64 estimated_total_size = 1; + */ + public long getEstimatedTotalSize() { + return estimatedTotalSize_; + } + /** + * + * + *
+     * An estimation of the number of profiles that match the specified query.
+     * This number isn't guaranteed to be accurate.
+     * 
+ * + * int64 estimated_total_size = 1; + */ + public Builder setEstimatedTotalSize(long value) { + + estimatedTotalSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * An estimation of the number of profiles that match the specified query.
+     * This number isn't guaranteed to be accurate.
+     * 
+ * + * int64 estimated_total_size = 1; + */ + public Builder clearEstimatedTotalSize() { + + estimatedTotalSize_ = 0L; + onChanged(); + return this; + } + + private com.google.cloud.talent.v4beta1.SpellingCorrection spellCorrection_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.SpellingCorrection, + com.google.cloud.talent.v4beta1.SpellingCorrection.Builder, + com.google.cloud.talent.v4beta1.SpellingCorrectionOrBuilder> + spellCorrectionBuilder_; + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; + */ + public boolean hasSpellCorrection() { + return spellCorrectionBuilder_ != null || spellCorrection_ != null; + } + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; + */ + public com.google.cloud.talent.v4beta1.SpellingCorrection getSpellCorrection() { + if (spellCorrectionBuilder_ == null) { + return spellCorrection_ == null + ? com.google.cloud.talent.v4beta1.SpellingCorrection.getDefaultInstance() + : spellCorrection_; + } else { + return spellCorrectionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; + */ + public Builder setSpellCorrection(com.google.cloud.talent.v4beta1.SpellingCorrection value) { + if (spellCorrectionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spellCorrection_ = value; + onChanged(); + } else { + spellCorrectionBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; + */ + public Builder setSpellCorrection( + com.google.cloud.talent.v4beta1.SpellingCorrection.Builder builderForValue) { + if (spellCorrectionBuilder_ == null) { + spellCorrection_ = builderForValue.build(); + onChanged(); + } else { + spellCorrectionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; + */ + public Builder mergeSpellCorrection(com.google.cloud.talent.v4beta1.SpellingCorrection value) { + if (spellCorrectionBuilder_ == null) { + if (spellCorrection_ != null) { + spellCorrection_ = + com.google.cloud.talent.v4beta1.SpellingCorrection.newBuilder(spellCorrection_) + .mergeFrom(value) + .buildPartial(); + } else { + spellCorrection_ = value; + } + onChanged(); + } else { + spellCorrectionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; + */ + public Builder clearSpellCorrection() { + if (spellCorrectionBuilder_ == null) { + spellCorrection_ = null; + onChanged(); + } else { + spellCorrection_ = null; + spellCorrectionBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; + */ + public com.google.cloud.talent.v4beta1.SpellingCorrection.Builder getSpellCorrectionBuilder() { + + onChanged(); + return getSpellCorrectionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; + */ + public com.google.cloud.talent.v4beta1.SpellingCorrectionOrBuilder + getSpellCorrectionOrBuilder() { + if (spellCorrectionBuilder_ != null) { + return spellCorrectionBuilder_.getMessageOrBuilder(); + } else { + return spellCorrection_ == null + ? com.google.cloud.talent.v4beta1.SpellingCorrection.getDefaultInstance() + : spellCorrection_; + } + } + /** + * + * + *
+     * The spell checking result, and correction.
+     * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.SpellingCorrection, + com.google.cloud.talent.v4beta1.SpellingCorrection.Builder, + com.google.cloud.talent.v4beta1.SpellingCorrectionOrBuilder> + getSpellCorrectionFieldBuilder() { + if (spellCorrectionBuilder_ == null) { + spellCorrectionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.SpellingCorrection, + com.google.cloud.talent.v4beta1.SpellingCorrection.Builder, + com.google.cloud.talent.v4beta1.SpellingCorrectionOrBuilder>( + getSpellCorrection(), getParentForChildren(), isClean()); + spellCorrection_ = null; + } + return spellCorrectionBuilder_; + } + + private com.google.cloud.talent.v4beta1.ResponseMetadata metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder> + metadataBuilder_; + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public Builder setMetadata(com.google.cloud.talent.v4beta1.ResponseMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public Builder setMetadata( + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public Builder mergeMetadata(com.google.cloud.talent.v4beta1.ResponseMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + com.google.cloud.talent.v4beta1.ResponseMetadata.newBuilder(metadata_) + .mergeFrom(value) + .buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + public com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null + ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() + : metadata_; + } + } + /** + * + * + *
+     * Additional information for the API invocation, such as the request
+     * tracking id.
+     * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.ResponseMetadata, + com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token to retrieve the next page of results. This is empty if there are no
+     * more results.
+     * 
+ * + * string next_page_token = 4; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token to retrieve the next page of results. This is empty if there are no
+     * more results.
+     * 
+ * + * string next_page_token = 4; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token to retrieve the next page of results. This is empty if there are no
+     * more results.
+     * 
+ * + * string next_page_token = 4; + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A token to retrieve the next page of results. This is empty if there are no
+     * more results.
+     * 
+ * + * string next_page_token = 4; + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token to retrieve the next page of results. This is empty if there are no
+     * more results.
+     * 
+ * + * string next_page_token = 4; + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + private java.util.List + histogramQueryResults_ = java.util.Collections.emptyList(); + + private void ensureHistogramQueryResultsIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + histogramQueryResults_ = + new java.util.ArrayList( + histogramQueryResults_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.HistogramQueryResult, + com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder, + com.google.cloud.talent.v4beta1.HistogramQueryResultOrBuilder> + histogramQueryResultsBuilder_; + + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public java.util.List + getHistogramQueryResultsList() { + if (histogramQueryResultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(histogramQueryResults_); + } else { + return histogramQueryResultsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public int getHistogramQueryResultsCount() { + if (histogramQueryResultsBuilder_ == null) { + return histogramQueryResults_.size(); + } else { + return histogramQueryResultsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public com.google.cloud.talent.v4beta1.HistogramQueryResult getHistogramQueryResults( + int index) { + if (histogramQueryResultsBuilder_ == null) { + return histogramQueryResults_.get(index); + } else { + return histogramQueryResultsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public Builder setHistogramQueryResults( + int index, com.google.cloud.talent.v4beta1.HistogramQueryResult value) { + if (histogramQueryResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHistogramQueryResultsIsMutable(); + histogramQueryResults_.set(index, value); + onChanged(); + } else { + histogramQueryResultsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public Builder setHistogramQueryResults( + int index, com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder builderForValue) { + if (histogramQueryResultsBuilder_ == null) { + ensureHistogramQueryResultsIsMutable(); + histogramQueryResults_.set(index, builderForValue.build()); + onChanged(); + } else { + histogramQueryResultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public Builder addHistogramQueryResults( + com.google.cloud.talent.v4beta1.HistogramQueryResult value) { + if (histogramQueryResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHistogramQueryResultsIsMutable(); + histogramQueryResults_.add(value); + onChanged(); + } else { + histogramQueryResultsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public Builder addHistogramQueryResults( + int index, com.google.cloud.talent.v4beta1.HistogramQueryResult value) { + if (histogramQueryResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHistogramQueryResultsIsMutable(); + histogramQueryResults_.add(index, value); + onChanged(); + } else { + histogramQueryResultsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public Builder addHistogramQueryResults( + com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder builderForValue) { + if (histogramQueryResultsBuilder_ == null) { + ensureHistogramQueryResultsIsMutable(); + histogramQueryResults_.add(builderForValue.build()); + onChanged(); + } else { + histogramQueryResultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public Builder addHistogramQueryResults( + int index, com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder builderForValue) { + if (histogramQueryResultsBuilder_ == null) { + ensureHistogramQueryResultsIsMutable(); + histogramQueryResults_.add(index, builderForValue.build()); + onChanged(); + } else { + histogramQueryResultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public Builder addAllHistogramQueryResults( + java.lang.Iterable values) { + if (histogramQueryResultsBuilder_ == null) { + ensureHistogramQueryResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, histogramQueryResults_); + onChanged(); + } else { + histogramQueryResultsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public Builder clearHistogramQueryResults() { + if (histogramQueryResultsBuilder_ == null) { + histogramQueryResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + histogramQueryResultsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public Builder removeHistogramQueryResults(int index) { + if (histogramQueryResultsBuilder_ == null) { + ensureHistogramQueryResultsIsMutable(); + histogramQueryResults_.remove(index); + onChanged(); + } else { + histogramQueryResultsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder + getHistogramQueryResultsBuilder(int index) { + return getHistogramQueryResultsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public com.google.cloud.talent.v4beta1.HistogramQueryResultOrBuilder + getHistogramQueryResultsOrBuilder(int index) { + if (histogramQueryResultsBuilder_ == null) { + return histogramQueryResults_.get(index); + } else { + return histogramQueryResultsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public java.util.List + getHistogramQueryResultsOrBuilderList() { + if (histogramQueryResultsBuilder_ != null) { + return histogramQueryResultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(histogramQueryResults_); + } + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder + addHistogramQueryResultsBuilder() { + return getHistogramQueryResultsFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.HistogramQueryResult.getDefaultInstance()); + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder + addHistogramQueryResultsBuilder(int index) { + return getHistogramQueryResultsFieldBuilder() + .addBuilder( + index, com.google.cloud.talent.v4beta1.HistogramQueryResult.getDefaultInstance()); + } + /** + * + * + *
+     * The histogram results that match with specified
+     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + public java.util.List + getHistogramQueryResultsBuilderList() { + return getHistogramQueryResultsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.HistogramQueryResult, + com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder, + com.google.cloud.talent.v4beta1.HistogramQueryResultOrBuilder> + getHistogramQueryResultsFieldBuilder() { + if (histogramQueryResultsBuilder_ == null) { + histogramQueryResultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.HistogramQueryResult, + com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder, + com.google.cloud.talent.v4beta1.HistogramQueryResultOrBuilder>( + histogramQueryResults_, + ((bitField0_ & 0x00000010) == 0x00000010), + getParentForChildren(), + isClean()); + histogramQueryResults_ = null; + } + return histogramQueryResultsBuilder_; + } + + private java.util.List summarizedProfiles_ = + java.util.Collections.emptyList(); + + private void ensureSummarizedProfilesIsMutable() { + if (!((bitField0_ & 0x00000020) == 0x00000020)) { + summarizedProfiles_ = + new java.util.ArrayList( + summarizedProfiles_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.SummarizedProfile, + com.google.cloud.talent.v4beta1.SummarizedProfile.Builder, + com.google.cloud.talent.v4beta1.SummarizedProfileOrBuilder> + summarizedProfilesBuilder_; + + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public java.util.List + getSummarizedProfilesList() { + if (summarizedProfilesBuilder_ == null) { + return java.util.Collections.unmodifiableList(summarizedProfiles_); + } else { + return summarizedProfilesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public int getSummarizedProfilesCount() { + if (summarizedProfilesBuilder_ == null) { + return summarizedProfiles_.size(); + } else { + return summarizedProfilesBuilder_.getCount(); + } + } + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public com.google.cloud.talent.v4beta1.SummarizedProfile getSummarizedProfiles(int index) { + if (summarizedProfilesBuilder_ == null) { + return summarizedProfiles_.get(index); + } else { + return summarizedProfilesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public Builder setSummarizedProfiles( + int index, com.google.cloud.talent.v4beta1.SummarizedProfile value) { + if (summarizedProfilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSummarizedProfilesIsMutable(); + summarizedProfiles_.set(index, value); + onChanged(); + } else { + summarizedProfilesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public Builder setSummarizedProfiles( + int index, com.google.cloud.talent.v4beta1.SummarizedProfile.Builder builderForValue) { + if (summarizedProfilesBuilder_ == null) { + ensureSummarizedProfilesIsMutable(); + summarizedProfiles_.set(index, builderForValue.build()); + onChanged(); + } else { + summarizedProfilesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public Builder addSummarizedProfiles(com.google.cloud.talent.v4beta1.SummarizedProfile value) { + if (summarizedProfilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSummarizedProfilesIsMutable(); + summarizedProfiles_.add(value); + onChanged(); + } else { + summarizedProfilesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public Builder addSummarizedProfiles( + int index, com.google.cloud.talent.v4beta1.SummarizedProfile value) { + if (summarizedProfilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSummarizedProfilesIsMutable(); + summarizedProfiles_.add(index, value); + onChanged(); + } else { + summarizedProfilesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public Builder addSummarizedProfiles( + com.google.cloud.talent.v4beta1.SummarizedProfile.Builder builderForValue) { + if (summarizedProfilesBuilder_ == null) { + ensureSummarizedProfilesIsMutable(); + summarizedProfiles_.add(builderForValue.build()); + onChanged(); + } else { + summarizedProfilesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public Builder addSummarizedProfiles( + int index, com.google.cloud.talent.v4beta1.SummarizedProfile.Builder builderForValue) { + if (summarizedProfilesBuilder_ == null) { + ensureSummarizedProfilesIsMutable(); + summarizedProfiles_.add(index, builderForValue.build()); + onChanged(); + } else { + summarizedProfilesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public Builder addAllSummarizedProfiles( + java.lang.Iterable values) { + if (summarizedProfilesBuilder_ == null) { + ensureSummarizedProfilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, summarizedProfiles_); + onChanged(); + } else { + summarizedProfilesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public Builder clearSummarizedProfiles() { + if (summarizedProfilesBuilder_ == null) { + summarizedProfiles_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + summarizedProfilesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public Builder removeSummarizedProfiles(int index) { + if (summarizedProfilesBuilder_ == null) { + ensureSummarizedProfilesIsMutable(); + summarizedProfiles_.remove(index); + onChanged(); + } else { + summarizedProfilesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public com.google.cloud.talent.v4beta1.SummarizedProfile.Builder getSummarizedProfilesBuilder( + int index) { + return getSummarizedProfilesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public com.google.cloud.talent.v4beta1.SummarizedProfileOrBuilder + getSummarizedProfilesOrBuilder(int index) { + if (summarizedProfilesBuilder_ == null) { + return summarizedProfiles_.get(index); + } else { + return summarizedProfilesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public java.util.List + getSummarizedProfilesOrBuilderList() { + if (summarizedProfilesBuilder_ != null) { + return summarizedProfilesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(summarizedProfiles_); + } + } + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public com.google.cloud.talent.v4beta1.SummarizedProfile.Builder + addSummarizedProfilesBuilder() { + return getSummarizedProfilesFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.SummarizedProfile.getDefaultInstance()); + } + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public com.google.cloud.talent.v4beta1.SummarizedProfile.Builder addSummarizedProfilesBuilder( + int index) { + return getSummarizedProfilesFieldBuilder() + .addBuilder( + index, com.google.cloud.talent.v4beta1.SummarizedProfile.getDefaultInstance()); + } + /** + * + * + *
+     * The profile entities that match the specified
+     * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + public java.util.List + getSummarizedProfilesBuilderList() { + return getSummarizedProfilesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.SummarizedProfile, + com.google.cloud.talent.v4beta1.SummarizedProfile.Builder, + com.google.cloud.talent.v4beta1.SummarizedProfileOrBuilder> + getSummarizedProfilesFieldBuilder() { + if (summarizedProfilesBuilder_ == null) { + summarizedProfilesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.SummarizedProfile, + com.google.cloud.talent.v4beta1.SummarizedProfile.Builder, + com.google.cloud.talent.v4beta1.SummarizedProfileOrBuilder>( + summarizedProfiles_, + ((bitField0_ & 0x00000020) == 0x00000020), + getParentForChildren(), + isClean()); + summarizedProfiles_ = null; + } + return summarizedProfilesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.SearchProfilesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.SearchProfilesResponse) + private static final com.google.cloud.talent.v4beta1.SearchProfilesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.SearchProfilesResponse(); + } + + public static com.google.cloud.talent.v4beta1.SearchProfilesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchProfilesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SearchProfilesResponse(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.SearchProfilesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesResponseOrBuilder.java new file mode 100644 index 000000000000..1997cd946d11 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesResponseOrBuilder.java @@ -0,0 +1,232 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface SearchProfilesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.SearchProfilesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * An estimation of the number of profiles that match the specified query.
+   * This number isn't guaranteed to be accurate.
+   * 
+ * + * int64 estimated_total_size = 1; + */ + long getEstimatedTotalSize(); + + /** + * + * + *
+   * The spell checking result, and correction.
+   * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; + */ + boolean hasSpellCorrection(); + /** + * + * + *
+   * The spell checking result, and correction.
+   * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; + */ + com.google.cloud.talent.v4beta1.SpellingCorrection getSpellCorrection(); + /** + * + * + *
+   * The spell checking result, and correction.
+   * 
+ * + * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; + */ + com.google.cloud.talent.v4beta1.SpellingCorrectionOrBuilder getSpellCorrectionOrBuilder(); + + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + boolean hasMetadata(); + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata(); + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder(); + + /** + * + * + *
+   * A token to retrieve the next page of results. This is empty if there are no
+   * more results.
+   * 
+ * + * string next_page_token = 4; + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token to retrieve the next page of results. This is empty if there are no
+   * more results.
+   * 
+ * + * string next_page_token = 4; + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + java.util.List + getHistogramQueryResultsList(); + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + com.google.cloud.talent.v4beta1.HistogramQueryResult getHistogramQueryResults(int index); + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + int getHistogramQueryResultsCount(); + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + java.util.List + getHistogramQueryResultsOrBuilderList(); + /** + * + * + *
+   * The histogram results that match with specified
+   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; + * + */ + com.google.cloud.talent.v4beta1.HistogramQueryResultOrBuilder getHistogramQueryResultsOrBuilder( + int index); + + /** + * + * + *
+   * The profile entities that match the specified
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + java.util.List getSummarizedProfilesList(); + /** + * + * + *
+   * The profile entities that match the specified
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + com.google.cloud.talent.v4beta1.SummarizedProfile getSummarizedProfiles(int index); + /** + * + * + *
+   * The profile entities that match the specified
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + int getSummarizedProfilesCount(); + /** + * + * + *
+   * The profile entities that match the specified
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + java.util.List + getSummarizedProfilesOrBuilderList(); + /** + * + * + *
+   * The profile entities that match the specified
+   * [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; + */ + com.google.cloud.talent.v4beta1.SummarizedProfileOrBuilder getSummarizedProfilesOrBuilder( + int index); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Skill.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Skill.java new file mode 100644 index 000000000000..bd92391b43db --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Skill.java @@ -0,0 +1,1617 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Resource that represents a skill of a candidate.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Skill} + */ +public final class Skill extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Skill) + SkillOrBuilder { + private static final long serialVersionUID = 0L; + // Use Skill.newBuilder() to construct. + private Skill(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Skill() { + displayName_ = ""; + level_ = 0; + context_ = ""; + skillNameSnippet_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Skill( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + case 18: + { + com.google.type.Date.Builder subBuilder = null; + if (lastUsedDate_ != null) { + subBuilder = lastUsedDate_.toBuilder(); + } + lastUsedDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastUsedDate_); + lastUsedDate_ = subBuilder.buildPartial(); + } + + break; + } + case 24: + { + int rawValue = input.readEnum(); + + level_ = rawValue; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + context_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + skillNameSnippet_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Skill_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Skill_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Skill.class, + com.google.cloud.talent.v4beta1.Skill.Builder.class); + } + + /** + * + * + *
+   * Enum that represents the skill proficiency level.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel} + */ + public enum SkillProficiencyLevel implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value.
+     * 
+ * + * SKILL_PROFICIENCY_LEVEL_UNSPECIFIED = 0; + */ + SKILL_PROFICIENCY_LEVEL_UNSPECIFIED(0), + /** + * + * + *
+     * Have a common knowledge or an understanding of basic techniques and
+     * concepts.
+     * 
+ * + * FUNDAMENTAL_AWARENESS = 1; + */ + FUNDAMENTAL_AWARENESS(1), + /** + * + * + *
+     * Have the level of experience gained in a classroom and/or experimental
+     * scenarios or as a trainee on-the-job.
+     * 
+ * + * NOVICE = 2; + */ + NOVICE(2), + /** + * + * + *
+     * Be able to successfully complete tasks in this skill as requested. Help
+     * from an expert may be required from time to time, but can usually perform
+     * skill independently.
+     * 
+ * + * INTERMEDIATE = 3; + */ + INTERMEDIATE(3), + /** + * + * + *
+     * Can perform the actions associated with this skill without assistance.
+     * 
+ * + * ADVANCED = 4; + */ + ADVANCED(4), + /** + * + * + *
+     * Known as an expert in this area.
+     * 
+ * + * EXPERT = 5; + */ + EXPERT(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value.
+     * 
+ * + * SKILL_PROFICIENCY_LEVEL_UNSPECIFIED = 0; + */ + public static final int SKILL_PROFICIENCY_LEVEL_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Have a common knowledge or an understanding of basic techniques and
+     * concepts.
+     * 
+ * + * FUNDAMENTAL_AWARENESS = 1; + */ + public static final int FUNDAMENTAL_AWARENESS_VALUE = 1; + /** + * + * + *
+     * Have the level of experience gained in a classroom and/or experimental
+     * scenarios or as a trainee on-the-job.
+     * 
+ * + * NOVICE = 2; + */ + public static final int NOVICE_VALUE = 2; + /** + * + * + *
+     * Be able to successfully complete tasks in this skill as requested. Help
+     * from an expert may be required from time to time, but can usually perform
+     * skill independently.
+     * 
+ * + * INTERMEDIATE = 3; + */ + public static final int INTERMEDIATE_VALUE = 3; + /** + * + * + *
+     * Can perform the actions associated with this skill without assistance.
+     * 
+ * + * ADVANCED = 4; + */ + public static final int ADVANCED_VALUE = 4; + /** + * + * + *
+     * Known as an expert in this area.
+     * 
+ * + * EXPERT = 5; + */ + public static final int EXPERT_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static SkillProficiencyLevel valueOf(int value) { + return forNumber(value); + } + + public static SkillProficiencyLevel forNumber(int value) { + switch (value) { + case 0: + return SKILL_PROFICIENCY_LEVEL_UNSPECIFIED; + case 1: + return FUNDAMENTAL_AWARENESS; + case 2: + return NOVICE; + case 3: + return INTERMEDIATE; + case 4: + return ADVANCED; + case 5: + return EXPERT; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SkillProficiencyLevel findValueByNumber(int number) { + return SkillProficiencyLevel.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.Skill.getDescriptor().getEnumTypes().get(0); + } + + private static final SkillProficiencyLevel[] VALUES = values(); + + public static SkillProficiencyLevel 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()]; + } + + private final int value; + + private SkillProficiencyLevel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel) + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object displayName_; + /** + * + * + *
+   * Optional.
+   * Skill display name.
+   * For example, "Java", "Python".
+   * Number of characters allowed is 100.
+   * 
+ * + * string display_name = 1; + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * Skill display name.
+   * For example, "Java", "Python".
+   * Number of characters allowed is 100.
+   * 
+ * + * string display_name = 1; + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LAST_USED_DATE_FIELD_NUMBER = 2; + private com.google.type.Date lastUsedDate_; + /** + * + * + *
+   * Optional.
+   * The last time this skill was used.
+   * 
+ * + * .google.type.Date last_used_date = 2; + */ + public boolean hasLastUsedDate() { + return lastUsedDate_ != null; + } + /** + * + * + *
+   * Optional.
+   * The last time this skill was used.
+   * 
+ * + * .google.type.Date last_used_date = 2; + */ + public com.google.type.Date getLastUsedDate() { + return lastUsedDate_ == null ? com.google.type.Date.getDefaultInstance() : lastUsedDate_; + } + /** + * + * + *
+   * Optional.
+   * The last time this skill was used.
+   * 
+ * + * .google.type.Date last_used_date = 2; + */ + public com.google.type.DateOrBuilder getLastUsedDateOrBuilder() { + return getLastUsedDate(); + } + + public static final int LEVEL_FIELD_NUMBER = 3; + private int level_; + /** + * + * + *
+   * Optional.
+   * Skill proficiency level which indicates how proficient the candidate is at
+   * this skill.
+   * 
+ * + * .google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel level = 3; + */ + public int getLevelValue() { + return level_; + } + /** + * + * + *
+   * Optional.
+   * Skill proficiency level which indicates how proficient the candidate is at
+   * this skill.
+   * 
+ * + * .google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel level = 3; + */ + public com.google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel getLevel() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel result = + com.google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel.valueOf(level_); + return result == null + ? com.google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel.UNRECOGNIZED + : result; + } + + public static final int CONTEXT_FIELD_NUMBER = 4; + private volatile java.lang.Object context_; + /** + * + * + *
+   * Optional.
+   * A paragraph describes context of this skill.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string context = 4; + */ + public java.lang.String getContext() { + java.lang.Object ref = context_; + 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(); + context_ = s; + return s; + } + } + /** + * + * + *
+   * Optional.
+   * A paragraph describes context of this skill.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string context = 4; + */ + public com.google.protobuf.ByteString getContextBytes() { + java.lang.Object ref = context_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + context_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SKILL_NAME_SNIPPET_FIELD_NUMBER = 5; + private volatile java.lang.Object skillNameSnippet_; + /** + * + * + *
+   * Output only. Skill name snippet shows how the
+   * [display_name][google.cloud.talent.v4beta1.Skill.display_name] is related
+   * to a search query. It's empty if the
+   * [display_name][google.cloud.talent.v4beta1.Skill.display_name] isn't
+   * related to the search query.
+   * 
+ * + * string skill_name_snippet = 5; + */ + public java.lang.String getSkillNameSnippet() { + java.lang.Object ref = skillNameSnippet_; + 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(); + skillNameSnippet_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Skill name snippet shows how the
+   * [display_name][google.cloud.talent.v4beta1.Skill.display_name] is related
+   * to a search query. It's empty if the
+   * [display_name][google.cloud.talent.v4beta1.Skill.display_name] isn't
+   * related to the search query.
+   * 
+ * + * string skill_name_snippet = 5; + */ + public com.google.protobuf.ByteString getSkillNameSnippetBytes() { + java.lang.Object ref = skillNameSnippet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + skillNameSnippet_ = 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 (!getDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); + } + if (lastUsedDate_ != null) { + output.writeMessage(2, getLastUsedDate()); + } + if (level_ + != com.google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel + .SKILL_PROFICIENCY_LEVEL_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, level_); + } + if (!getContextBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, context_); + } + if (!getSkillNameSnippetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, skillNameSnippet_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); + } + if (lastUsedDate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getLastUsedDate()); + } + if (level_ + != com.google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel + .SKILL_PROFICIENCY_LEVEL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, level_); + } + if (!getContextBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, context_); + } + if (!getSkillNameSnippetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, skillNameSnippet_); + } + size += unknownFields.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.cloud.talent.v4beta1.Skill)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Skill other = (com.google.cloud.talent.v4beta1.Skill) obj; + + boolean result = true; + result = result && getDisplayName().equals(other.getDisplayName()); + result = result && (hasLastUsedDate() == other.hasLastUsedDate()); + if (hasLastUsedDate()) { + result = result && getLastUsedDate().equals(other.getLastUsedDate()); + } + result = result && level_ == other.level_; + result = result && getContext().equals(other.getContext()); + result = result && getSkillNameSnippet().equals(other.getSkillNameSnippet()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (hasLastUsedDate()) { + hash = (37 * hash) + LAST_USED_DATE_FIELD_NUMBER; + hash = (53 * hash) + getLastUsedDate().hashCode(); + } + hash = (37 * hash) + LEVEL_FIELD_NUMBER; + hash = (53 * hash) + level_; + hash = (37 * hash) + CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + getContext().hashCode(); + hash = (37 * hash) + SKILL_NAME_SNIPPET_FIELD_NUMBER; + hash = (53 * hash) + getSkillNameSnippet().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Skill parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Skill parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Skill parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Skill 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.cloud.talent.v4beta1.Skill parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Skill parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Skill parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Skill 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.cloud.talent.v4beta1.Skill parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Skill 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.cloud.talent.v4beta1.Skill parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Skill 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.cloud.talent.v4beta1.Skill 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; + } + /** + * + * + *
+   * Resource that represents a skill of a candidate.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Skill} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Skill) + com.google.cloud.talent.v4beta1.SkillOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Skill_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Skill_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Skill.class, + com.google.cloud.talent.v4beta1.Skill.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Skill.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + displayName_ = ""; + + if (lastUsedDateBuilder_ == null) { + lastUsedDate_ = null; + } else { + lastUsedDate_ = null; + lastUsedDateBuilder_ = null; + } + level_ = 0; + + context_ = ""; + + skillNameSnippet_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileResourceProto + .internal_static_google_cloud_talent_v4beta1_Skill_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Skill getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Skill.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Skill build() { + com.google.cloud.talent.v4beta1.Skill result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Skill buildPartial() { + com.google.cloud.talent.v4beta1.Skill result = + new com.google.cloud.talent.v4beta1.Skill(this); + result.displayName_ = displayName_; + if (lastUsedDateBuilder_ == null) { + result.lastUsedDate_ = lastUsedDate_; + } else { + result.lastUsedDate_ = lastUsedDateBuilder_.build(); + } + result.level_ = level_; + result.context_ = context_; + result.skillNameSnippet_ = skillNameSnippet_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Skill) { + return mergeFrom((com.google.cloud.talent.v4beta1.Skill) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Skill other) { + if (other == com.google.cloud.talent.v4beta1.Skill.getDefaultInstance()) return this; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (other.hasLastUsedDate()) { + mergeLastUsedDate(other.getLastUsedDate()); + } + if (other.level_ != 0) { + setLevelValue(other.getLevelValue()); + } + if (!other.getContext().isEmpty()) { + context_ = other.context_; + onChanged(); + } + if (!other.getSkillNameSnippet().isEmpty()) { + skillNameSnippet_ = other.skillNameSnippet_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.Skill parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.Skill) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Optional.
+     * Skill display name.
+     * For example, "Java", "Python".
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Skill display name.
+     * For example, "Java", "Python".
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * Skill display name.
+     * For example, "Java", "Python".
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Skill display name.
+     * For example, "Java", "Python".
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Skill display name.
+     * For example, "Java", "Python".
+     * Number of characters allowed is 100.
+     * 
+ * + * string display_name = 1; + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + private com.google.type.Date lastUsedDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + lastUsedDateBuilder_; + /** + * + * + *
+     * Optional.
+     * The last time this skill was used.
+     * 
+ * + * .google.type.Date last_used_date = 2; + */ + public boolean hasLastUsedDate() { + return lastUsedDateBuilder_ != null || lastUsedDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * The last time this skill was used.
+     * 
+ * + * .google.type.Date last_used_date = 2; + */ + public com.google.type.Date getLastUsedDate() { + if (lastUsedDateBuilder_ == null) { + return lastUsedDate_ == null ? com.google.type.Date.getDefaultInstance() : lastUsedDate_; + } else { + return lastUsedDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The last time this skill was used.
+     * 
+ * + * .google.type.Date last_used_date = 2; + */ + public Builder setLastUsedDate(com.google.type.Date value) { + if (lastUsedDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lastUsedDate_ = value; + onChanged(); + } else { + lastUsedDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The last time this skill was used.
+     * 
+ * + * .google.type.Date last_used_date = 2; + */ + public Builder setLastUsedDate(com.google.type.Date.Builder builderForValue) { + if (lastUsedDateBuilder_ == null) { + lastUsedDate_ = builderForValue.build(); + onChanged(); + } else { + lastUsedDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The last time this skill was used.
+     * 
+ * + * .google.type.Date last_used_date = 2; + */ + public Builder mergeLastUsedDate(com.google.type.Date value) { + if (lastUsedDateBuilder_ == null) { + if (lastUsedDate_ != null) { + lastUsedDate_ = + com.google.type.Date.newBuilder(lastUsedDate_).mergeFrom(value).buildPartial(); + } else { + lastUsedDate_ = value; + } + onChanged(); + } else { + lastUsedDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The last time this skill was used.
+     * 
+ * + * .google.type.Date last_used_date = 2; + */ + public Builder clearLastUsedDate() { + if (lastUsedDateBuilder_ == null) { + lastUsedDate_ = null; + onChanged(); + } else { + lastUsedDate_ = null; + lastUsedDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The last time this skill was used.
+     * 
+ * + * .google.type.Date last_used_date = 2; + */ + public com.google.type.Date.Builder getLastUsedDateBuilder() { + + onChanged(); + return getLastUsedDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The last time this skill was used.
+     * 
+ * + * .google.type.Date last_used_date = 2; + */ + public com.google.type.DateOrBuilder getLastUsedDateOrBuilder() { + if (lastUsedDateBuilder_ != null) { + return lastUsedDateBuilder_.getMessageOrBuilder(); + } else { + return lastUsedDate_ == null ? com.google.type.Date.getDefaultInstance() : lastUsedDate_; + } + } + /** + * + * + *
+     * Optional.
+     * The last time this skill was used.
+     * 
+ * + * .google.type.Date last_used_date = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getLastUsedDateFieldBuilder() { + if (lastUsedDateBuilder_ == null) { + lastUsedDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getLastUsedDate(), getParentForChildren(), isClean()); + lastUsedDate_ = null; + } + return lastUsedDateBuilder_; + } + + private int level_ = 0; + /** + * + * + *
+     * Optional.
+     * Skill proficiency level which indicates how proficient the candidate is at
+     * this skill.
+     * 
+ * + * .google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel level = 3; + */ + public int getLevelValue() { + return level_; + } + /** + * + * + *
+     * Optional.
+     * Skill proficiency level which indicates how proficient the candidate is at
+     * this skill.
+     * 
+ * + * .google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel level = 3; + */ + public Builder setLevelValue(int value) { + level_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Skill proficiency level which indicates how proficient the candidate is at
+     * this skill.
+     * 
+ * + * .google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel level = 3; + */ + public com.google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel getLevel() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel result = + com.google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel.valueOf(level_); + return result == null + ? com.google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional.
+     * Skill proficiency level which indicates how proficient the candidate is at
+     * this skill.
+     * 
+ * + * .google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel level = 3; + */ + public Builder setLevel(com.google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel value) { + if (value == null) { + throw new NullPointerException(); + } + + level_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Skill proficiency level which indicates how proficient the candidate is at
+     * this skill.
+     * 
+ * + * .google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel level = 3; + */ + public Builder clearLevel() { + + level_ = 0; + onChanged(); + return this; + } + + private java.lang.Object context_ = ""; + /** + * + * + *
+     * Optional.
+     * A paragraph describes context of this skill.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string context = 4; + */ + public java.lang.String getContext() { + java.lang.Object ref = context_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + context_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional.
+     * A paragraph describes context of this skill.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string context = 4; + */ + public com.google.protobuf.ByteString getContextBytes() { + java.lang.Object ref = context_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + context_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional.
+     * A paragraph describes context of this skill.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string context = 4; + */ + public Builder setContext(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + context_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A paragraph describes context of this skill.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string context = 4; + */ + public Builder clearContext() { + + context_ = getDefaultInstance().getContext(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * A paragraph describes context of this skill.
+     * Number of characters allowed is 100,000.
+     * 
+ * + * string context = 4; + */ + public Builder setContextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + context_ = value; + onChanged(); + return this; + } + + private java.lang.Object skillNameSnippet_ = ""; + /** + * + * + *
+     * Output only. Skill name snippet shows how the
+     * [display_name][google.cloud.talent.v4beta1.Skill.display_name] is related
+     * to a search query. It's empty if the
+     * [display_name][google.cloud.talent.v4beta1.Skill.display_name] isn't
+     * related to the search query.
+     * 
+ * + * string skill_name_snippet = 5; + */ + public java.lang.String getSkillNameSnippet() { + java.lang.Object ref = skillNameSnippet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + skillNameSnippet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Skill name snippet shows how the
+     * [display_name][google.cloud.talent.v4beta1.Skill.display_name] is related
+     * to a search query. It's empty if the
+     * [display_name][google.cloud.talent.v4beta1.Skill.display_name] isn't
+     * related to the search query.
+     * 
+ * + * string skill_name_snippet = 5; + */ + public com.google.protobuf.ByteString getSkillNameSnippetBytes() { + java.lang.Object ref = skillNameSnippet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + skillNameSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Skill name snippet shows how the
+     * [display_name][google.cloud.talent.v4beta1.Skill.display_name] is related
+     * to a search query. It's empty if the
+     * [display_name][google.cloud.talent.v4beta1.Skill.display_name] isn't
+     * related to the search query.
+     * 
+ * + * string skill_name_snippet = 5; + */ + public Builder setSkillNameSnippet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + skillNameSnippet_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Skill name snippet shows how the
+     * [display_name][google.cloud.talent.v4beta1.Skill.display_name] is related
+     * to a search query. It's empty if the
+     * [display_name][google.cloud.talent.v4beta1.Skill.display_name] isn't
+     * related to the search query.
+     * 
+ * + * string skill_name_snippet = 5; + */ + public Builder clearSkillNameSnippet() { + + skillNameSnippet_ = getDefaultInstance().getSkillNameSnippet(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Skill name snippet shows how the
+     * [display_name][google.cloud.talent.v4beta1.Skill.display_name] is related
+     * to a search query. It's empty if the
+     * [display_name][google.cloud.talent.v4beta1.Skill.display_name] isn't
+     * related to the search query.
+     * 
+ * + * string skill_name_snippet = 5; + */ + public Builder setSkillNameSnippetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + skillNameSnippet_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Skill) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Skill) + private static final com.google.cloud.talent.v4beta1.Skill DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Skill(); + } + + public static com.google.cloud.talent.v4beta1.Skill getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Skill parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Skill(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.Skill getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillFilter.java new file mode 100644 index 000000000000..0111c872372c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillFilter.java @@ -0,0 +1,694 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Skill filter of the search.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SkillFilter} + */ +public final class SkillFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.SkillFilter) + SkillFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use SkillFilter.newBuilder() to construct. + private SkillFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SkillFilter() { + skill_ = ""; + negated_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SkillFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + skill_ = s; + break; + } + case 16: + { + negated_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_SkillFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_SkillFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SkillFilter.class, + com.google.cloud.talent.v4beta1.SkillFilter.Builder.class); + } + + public static final int SKILL_FIELD_NUMBER = 1; + private volatile java.lang.Object skill_; + /** + * + * + *
+   * Required.
+   * The skill name. For example, "java", "j2ee", etc.
+   * 
+ * + * string skill = 1; + */ + public java.lang.String getSkill() { + java.lang.Object ref = skill_; + 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(); + skill_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The skill name. For example, "java", "j2ee", etc.
+   * 
+ * + * string skill = 1; + */ + public com.google.protobuf.ByteString getSkillBytes() { + java.lang.Object ref = skill_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + skill_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NEGATED_FIELD_NUMBER = 2; + private boolean negated_; + /** + * + * + *
+   * Optional.
+   * Whether to apply negation to the filter so profiles matching the filter
+   * are excluded.
+   * 
+ * + * bool negated = 2; + */ + public boolean getNegated() { + return negated_; + } + + 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 (!getSkillBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, skill_); + } + if (negated_ != false) { + output.writeBool(2, negated_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getSkillBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, skill_); + } + if (negated_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, negated_); + } + size += unknownFields.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.cloud.talent.v4beta1.SkillFilter)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.SkillFilter other = + (com.google.cloud.talent.v4beta1.SkillFilter) obj; + + boolean result = true; + result = result && getSkill().equals(other.getSkill()); + result = result && (getNegated() == other.getNegated()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SKILL_FIELD_NUMBER; + hash = (53 * hash) + getSkill().hashCode(); + hash = (37 * hash) + NEGATED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNegated()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.SkillFilter parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SkillFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SkillFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SkillFilter 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.cloud.talent.v4beta1.SkillFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SkillFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SkillFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SkillFilter 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.cloud.talent.v4beta1.SkillFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SkillFilter 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.cloud.talent.v4beta1.SkillFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SkillFilter 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.cloud.talent.v4beta1.SkillFilter 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; + } + /** + * + * + *
+   * Input only.
+   * Skill filter of the search.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SkillFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.SkillFilter) + com.google.cloud.talent.v4beta1.SkillFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_SkillFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_SkillFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SkillFilter.class, + com.google.cloud.talent.v4beta1.SkillFilter.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.SkillFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + skill_ = ""; + + negated_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_SkillFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SkillFilter getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.SkillFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SkillFilter build() { + com.google.cloud.talent.v4beta1.SkillFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SkillFilter buildPartial() { + com.google.cloud.talent.v4beta1.SkillFilter result = + new com.google.cloud.talent.v4beta1.SkillFilter(this); + result.skill_ = skill_; + result.negated_ = negated_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.SkillFilter) { + return mergeFrom((com.google.cloud.talent.v4beta1.SkillFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.SkillFilter other) { + if (other == com.google.cloud.talent.v4beta1.SkillFilter.getDefaultInstance()) return this; + if (!other.getSkill().isEmpty()) { + skill_ = other.skill_; + onChanged(); + } + if (other.getNegated() != false) { + setNegated(other.getNegated()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.SkillFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.SkillFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object skill_ = ""; + /** + * + * + *
+     * Required.
+     * The skill name. For example, "java", "j2ee", etc.
+     * 
+ * + * string skill = 1; + */ + public java.lang.String getSkill() { + java.lang.Object ref = skill_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + skill_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The skill name. For example, "java", "j2ee", etc.
+     * 
+ * + * string skill = 1; + */ + public com.google.protobuf.ByteString getSkillBytes() { + java.lang.Object ref = skill_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + skill_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The skill name. For example, "java", "j2ee", etc.
+     * 
+ * + * string skill = 1; + */ + public Builder setSkill(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + skill_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The skill name. For example, "java", "j2ee", etc.
+     * 
+ * + * string skill = 1; + */ + public Builder clearSkill() { + + skill_ = getDefaultInstance().getSkill(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The skill name. For example, "java", "j2ee", etc.
+     * 
+ * + * string skill = 1; + */ + public Builder setSkillBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + skill_ = value; + onChanged(); + return this; + } + + private boolean negated_; + /** + * + * + *
+     * Optional.
+     * Whether to apply negation to the filter so profiles matching the filter
+     * are excluded.
+     * 
+ * + * bool negated = 2; + */ + public boolean getNegated() { + return negated_; + } + /** + * + * + *
+     * Optional.
+     * Whether to apply negation to the filter so profiles matching the filter
+     * are excluded.
+     * 
+ * + * bool negated = 2; + */ + public Builder setNegated(boolean value) { + + negated_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Whether to apply negation to the filter so profiles matching the filter
+     * are excluded.
+     * 
+ * + * bool negated = 2; + */ + public Builder clearNegated() { + + negated_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.SkillFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.SkillFilter) + private static final com.google.cloud.talent.v4beta1.SkillFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.SkillFilter(); + } + + public static com.google.cloud.talent.v4beta1.SkillFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SkillFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SkillFilter(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.SkillFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillFilterOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillFilterOrBuilder.java new file mode 100644 index 000000000000..db64683417e9 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillFilterOrBuilder.java @@ -0,0 +1,46 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +public interface SkillFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.SkillFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The skill name. For example, "java", "j2ee", etc.
+   * 
+ * + * string skill = 1; + */ + java.lang.String getSkill(); + /** + * + * + *
+   * Required.
+   * The skill name. For example, "java", "j2ee", etc.
+   * 
+ * + * string skill = 1; + */ + com.google.protobuf.ByteString getSkillBytes(); + + /** + * + * + *
+   * Optional.
+   * Whether to apply negation to the filter so profiles matching the filter
+   * are excluded.
+   * 
+ * + * bool negated = 2; + */ + boolean getNegated(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillOrBuilder.java new file mode 100644 index 000000000000..c3be9c393e3c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillOrBuilder.java @@ -0,0 +1,150 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile.proto + +package com.google.cloud.talent.v4beta1; + +public interface SkillOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Skill) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * Skill display name.
+   * For example, "Java", "Python".
+   * Number of characters allowed is 100.
+   * 
+ * + * string display_name = 1; + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Optional.
+   * Skill display name.
+   * For example, "Java", "Python".
+   * Number of characters allowed is 100.
+   * 
+ * + * string display_name = 1; + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Optional.
+   * The last time this skill was used.
+   * 
+ * + * .google.type.Date last_used_date = 2; + */ + boolean hasLastUsedDate(); + /** + * + * + *
+   * Optional.
+   * The last time this skill was used.
+   * 
+ * + * .google.type.Date last_used_date = 2; + */ + com.google.type.Date getLastUsedDate(); + /** + * + * + *
+   * Optional.
+   * The last time this skill was used.
+   * 
+ * + * .google.type.Date last_used_date = 2; + */ + com.google.type.DateOrBuilder getLastUsedDateOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * Skill proficiency level which indicates how proficient the candidate is at
+   * this skill.
+   * 
+ * + * .google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel level = 3; + */ + int getLevelValue(); + /** + * + * + *
+   * Optional.
+   * Skill proficiency level which indicates how proficient the candidate is at
+   * this skill.
+   * 
+ * + * .google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel level = 3; + */ + com.google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel getLevel(); + + /** + * + * + *
+   * Optional.
+   * A paragraph describes context of this skill.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string context = 4; + */ + java.lang.String getContext(); + /** + * + * + *
+   * Optional.
+   * A paragraph describes context of this skill.
+   * Number of characters allowed is 100,000.
+   * 
+ * + * string context = 4; + */ + com.google.protobuf.ByteString getContextBytes(); + + /** + * + * + *
+   * Output only. Skill name snippet shows how the
+   * [display_name][google.cloud.talent.v4beta1.Skill.display_name] is related
+   * to a search query. It's empty if the
+   * [display_name][google.cloud.talent.v4beta1.Skill.display_name] isn't
+   * related to the search query.
+   * 
+ * + * string skill_name_snippet = 5; + */ + java.lang.String getSkillNameSnippet(); + /** + * + * + *
+   * Output only. Skill name snippet shows how the
+   * [display_name][google.cloud.talent.v4beta1.Skill.display_name] is related
+   * to a search query. It's empty if the
+   * [display_name][google.cloud.talent.v4beta1.Skill.display_name] isn't
+   * related to the search query.
+   * 
+ * + * string skill_name_snippet = 5; + */ + com.google.protobuf.ByteString getSkillNameSnippetBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SpellingCorrection.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SpellingCorrection.java new file mode 100644 index 000000000000..295174ff8603 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SpellingCorrection.java @@ -0,0 +1,877 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Output only.
+ * Spell check result.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SpellingCorrection} + */ +public final class SpellingCorrection extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.SpellingCorrection) + SpellingCorrectionOrBuilder { + private static final long serialVersionUID = 0L; + // Use SpellingCorrection.newBuilder() to construct. + private SpellingCorrection(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SpellingCorrection() { + corrected_ = false; + correctedText_ = ""; + correctedHtml_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SpellingCorrection( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + corrected_ = input.readBool(); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + correctedText_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + correctedHtml_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_SpellingCorrection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_SpellingCorrection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SpellingCorrection.class, + com.google.cloud.talent.v4beta1.SpellingCorrection.Builder.class); + } + + public static final int CORRECTED_FIELD_NUMBER = 1; + private boolean corrected_; + /** + * + * + *
+   * Indicates if the query was corrected by the spell checker.
+   * 
+ * + * bool corrected = 1; + */ + public boolean getCorrected() { + return corrected_; + } + + public static final int CORRECTED_TEXT_FIELD_NUMBER = 2; + private volatile java.lang.Object correctedText_; + /** + * + * + *
+   * Correction output consisting of the corrected keyword string.
+   * 
+ * + * string corrected_text = 2; + */ + public java.lang.String getCorrectedText() { + java.lang.Object ref = correctedText_; + 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(); + correctedText_ = s; + return s; + } + } + /** + * + * + *
+   * Correction output consisting of the corrected keyword string.
+   * 
+ * + * string corrected_text = 2; + */ + public com.google.protobuf.ByteString getCorrectedTextBytes() { + java.lang.Object ref = correctedText_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + correctedText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CORRECTED_HTML_FIELD_NUMBER = 3; + private volatile java.lang.Object correctedHtml_; + /** + * + * + *
+   * Corrected output with html tags to highlight the corrected words.
+   * Corrected words are called out with the "<b><i>...</i></b>" html tags.
+   * For example, the user input query is "software enginear", where the second
+   * word, "enginear," is incorrect. It should be "engineer". When spelling
+   * correction is enabled, this value is
+   * "software <b><i>engineer</i></b>".
+   * 
+ * + * string corrected_html = 3; + */ + public java.lang.String getCorrectedHtml() { + java.lang.Object ref = correctedHtml_; + 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(); + correctedHtml_ = s; + return s; + } + } + /** + * + * + *
+   * Corrected output with html tags to highlight the corrected words.
+   * Corrected words are called out with the "<b><i>...</i></b>" html tags.
+   * For example, the user input query is "software enginear", where the second
+   * word, "enginear," is incorrect. It should be "engineer". When spelling
+   * correction is enabled, this value is
+   * "software <b><i>engineer</i></b>".
+   * 
+ * + * string corrected_html = 3; + */ + public com.google.protobuf.ByteString getCorrectedHtmlBytes() { + java.lang.Object ref = correctedHtml_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + correctedHtml_ = 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 (corrected_ != false) { + output.writeBool(1, corrected_); + } + if (!getCorrectedTextBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, correctedText_); + } + if (!getCorrectedHtmlBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, correctedHtml_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (corrected_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, corrected_); + } + if (!getCorrectedTextBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, correctedText_); + } + if (!getCorrectedHtmlBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, correctedHtml_); + } + size += unknownFields.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.cloud.talent.v4beta1.SpellingCorrection)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.SpellingCorrection other = + (com.google.cloud.talent.v4beta1.SpellingCorrection) obj; + + boolean result = true; + result = result && (getCorrected() == other.getCorrected()); + result = result && getCorrectedText().equals(other.getCorrectedText()); + result = result && getCorrectedHtml().equals(other.getCorrectedHtml()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CORRECTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCorrected()); + hash = (37 * hash) + CORRECTED_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getCorrectedText().hashCode(); + hash = (37 * hash) + CORRECTED_HTML_FIELD_NUMBER; + hash = (53 * hash) + getCorrectedHtml().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.SpellingCorrection parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SpellingCorrection parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SpellingCorrection parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SpellingCorrection 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.cloud.talent.v4beta1.SpellingCorrection parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SpellingCorrection parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SpellingCorrection parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SpellingCorrection 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.cloud.talent.v4beta1.SpellingCorrection parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SpellingCorrection 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.cloud.talent.v4beta1.SpellingCorrection parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SpellingCorrection 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.cloud.talent.v4beta1.SpellingCorrection 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; + } + /** + * + * + *
+   * Output only.
+   * Spell check result.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SpellingCorrection} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.SpellingCorrection) + com.google.cloud.talent.v4beta1.SpellingCorrectionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_SpellingCorrection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_SpellingCorrection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SpellingCorrection.class, + com.google.cloud.talent.v4beta1.SpellingCorrection.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.SpellingCorrection.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + corrected_ = false; + + correctedText_ = ""; + + correctedHtml_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_SpellingCorrection_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SpellingCorrection getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.SpellingCorrection.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SpellingCorrection build() { + com.google.cloud.talent.v4beta1.SpellingCorrection result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SpellingCorrection buildPartial() { + com.google.cloud.talent.v4beta1.SpellingCorrection result = + new com.google.cloud.talent.v4beta1.SpellingCorrection(this); + result.corrected_ = corrected_; + result.correctedText_ = correctedText_; + result.correctedHtml_ = correctedHtml_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.SpellingCorrection) { + return mergeFrom((com.google.cloud.talent.v4beta1.SpellingCorrection) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.SpellingCorrection other) { + if (other == com.google.cloud.talent.v4beta1.SpellingCorrection.getDefaultInstance()) + return this; + if (other.getCorrected() != false) { + setCorrected(other.getCorrected()); + } + if (!other.getCorrectedText().isEmpty()) { + correctedText_ = other.correctedText_; + onChanged(); + } + if (!other.getCorrectedHtml().isEmpty()) { + correctedHtml_ = other.correctedHtml_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.SpellingCorrection parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.SpellingCorrection) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean corrected_; + /** + * + * + *
+     * Indicates if the query was corrected by the spell checker.
+     * 
+ * + * bool corrected = 1; + */ + public boolean getCorrected() { + return corrected_; + } + /** + * + * + *
+     * Indicates if the query was corrected by the spell checker.
+     * 
+ * + * bool corrected = 1; + */ + public Builder setCorrected(boolean value) { + + corrected_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Indicates if the query was corrected by the spell checker.
+     * 
+ * + * bool corrected = 1; + */ + public Builder clearCorrected() { + + corrected_ = false; + onChanged(); + return this; + } + + private java.lang.Object correctedText_ = ""; + /** + * + * + *
+     * Correction output consisting of the corrected keyword string.
+     * 
+ * + * string corrected_text = 2; + */ + public java.lang.String getCorrectedText() { + java.lang.Object ref = correctedText_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + correctedText_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Correction output consisting of the corrected keyword string.
+     * 
+ * + * string corrected_text = 2; + */ + public com.google.protobuf.ByteString getCorrectedTextBytes() { + java.lang.Object ref = correctedText_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + correctedText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Correction output consisting of the corrected keyword string.
+     * 
+ * + * string corrected_text = 2; + */ + public Builder setCorrectedText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + correctedText_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Correction output consisting of the corrected keyword string.
+     * 
+ * + * string corrected_text = 2; + */ + public Builder clearCorrectedText() { + + correctedText_ = getDefaultInstance().getCorrectedText(); + onChanged(); + return this; + } + /** + * + * + *
+     * Correction output consisting of the corrected keyword string.
+     * 
+ * + * string corrected_text = 2; + */ + public Builder setCorrectedTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + correctedText_ = value; + onChanged(); + return this; + } + + private java.lang.Object correctedHtml_ = ""; + /** + * + * + *
+     * Corrected output with html tags to highlight the corrected words.
+     * Corrected words are called out with the "<b><i>...</i></b>" html tags.
+     * For example, the user input query is "software enginear", where the second
+     * word, "enginear," is incorrect. It should be "engineer". When spelling
+     * correction is enabled, this value is
+     * "software <b><i>engineer</i></b>".
+     * 
+ * + * string corrected_html = 3; + */ + public java.lang.String getCorrectedHtml() { + java.lang.Object ref = correctedHtml_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + correctedHtml_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Corrected output with html tags to highlight the corrected words.
+     * Corrected words are called out with the "<b><i>...</i></b>" html tags.
+     * For example, the user input query is "software enginear", where the second
+     * word, "enginear," is incorrect. It should be "engineer". When spelling
+     * correction is enabled, this value is
+     * "software <b><i>engineer</i></b>".
+     * 
+ * + * string corrected_html = 3; + */ + public com.google.protobuf.ByteString getCorrectedHtmlBytes() { + java.lang.Object ref = correctedHtml_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + correctedHtml_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Corrected output with html tags to highlight the corrected words.
+     * Corrected words are called out with the "<b><i>...</i></b>" html tags.
+     * For example, the user input query is "software enginear", where the second
+     * word, "enginear," is incorrect. It should be "engineer". When spelling
+     * correction is enabled, this value is
+     * "software <b><i>engineer</i></b>".
+     * 
+ * + * string corrected_html = 3; + */ + public Builder setCorrectedHtml(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + correctedHtml_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Corrected output with html tags to highlight the corrected words.
+     * Corrected words are called out with the "<b><i>...</i></b>" html tags.
+     * For example, the user input query is "software enginear", where the second
+     * word, "enginear," is incorrect. It should be "engineer". When spelling
+     * correction is enabled, this value is
+     * "software <b><i>engineer</i></b>".
+     * 
+ * + * string corrected_html = 3; + */ + public Builder clearCorrectedHtml() { + + correctedHtml_ = getDefaultInstance().getCorrectedHtml(); + onChanged(); + return this; + } + /** + * + * + *
+     * Corrected output with html tags to highlight the corrected words.
+     * Corrected words are called out with the "<b><i>...</i></b>" html tags.
+     * For example, the user input query is "software enginear", where the second
+     * word, "enginear," is incorrect. It should be "engineer". When spelling
+     * correction is enabled, this value is
+     * "software <b><i>engineer</i></b>".
+     * 
+ * + * string corrected_html = 3; + */ + public Builder setCorrectedHtmlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + correctedHtml_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.SpellingCorrection) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.SpellingCorrection) + private static final com.google.cloud.talent.v4beta1.SpellingCorrection DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.SpellingCorrection(); + } + + public static com.google.cloud.talent.v4beta1.SpellingCorrection getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpellingCorrection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SpellingCorrection(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.SpellingCorrection getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SpellingCorrectionOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SpellingCorrectionOrBuilder.java new file mode 100644 index 000000000000..849748d13d06 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SpellingCorrectionOrBuilder.java @@ -0,0 +1,73 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +public interface SpellingCorrectionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.SpellingCorrection) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Indicates if the query was corrected by the spell checker.
+   * 
+ * + * bool corrected = 1; + */ + boolean getCorrected(); + + /** + * + * + *
+   * Correction output consisting of the corrected keyword string.
+   * 
+ * + * string corrected_text = 2; + */ + java.lang.String getCorrectedText(); + /** + * + * + *
+   * Correction output consisting of the corrected keyword string.
+   * 
+ * + * string corrected_text = 2; + */ + com.google.protobuf.ByteString getCorrectedTextBytes(); + + /** + * + * + *
+   * Corrected output with html tags to highlight the corrected words.
+   * Corrected words are called out with the "<b><i>...</i></b>" html tags.
+   * For example, the user input query is "software enginear", where the second
+   * word, "enginear," is incorrect. It should be "engineer". When spelling
+   * correction is enabled, this value is
+   * "software <b><i>engineer</i></b>".
+   * 
+ * + * string corrected_html = 3; + */ + java.lang.String getCorrectedHtml(); + /** + * + * + *
+   * Corrected output with html tags to highlight the corrected words.
+   * Corrected words are called out with the "<b><i>...</i></b>" html tags.
+   * For example, the user input query is "software enginear", where the second
+   * word, "enginear," is incorrect. It should be "engineer". When spelling
+   * correction is enabled, this value is
+   * "software <b><i>engineer</i></b>".
+   * 
+ * + * string corrected_html = 3; + */ + com.google.protobuf.ByteString getCorrectedHtmlBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SummarizedProfile.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SummarizedProfile.java new file mode 100644 index 000000000000..8b9abde10575 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SummarizedProfile.java @@ -0,0 +1,1320 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Output only.
+ * Profile entry with metadata inside
+ * [SearchProfilesResponse][google.cloud.talent.v4beta1.SearchProfilesResponse].
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SummarizedProfile} + */ +public final class SummarizedProfile extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.SummarizedProfile) + SummarizedProfileOrBuilder { + private static final long serialVersionUID = 0L; + // Use SummarizedProfile.newBuilder() to construct. + private SummarizedProfile(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SummarizedProfile() { + profiles_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SummarizedProfile( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + profiles_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + profiles_.add( + input.readMessage( + com.google.cloud.talent.v4beta1.Profile.parser(), extensionRegistry)); + break; + } + case 18: + { + com.google.cloud.talent.v4beta1.Profile.Builder subBuilder = null; + if (summary_ != null) { + subBuilder = summary_.toBuilder(); + } + summary_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Profile.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(summary_); + summary_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + profiles_ = java.util.Collections.unmodifiableList(profiles_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_SummarizedProfile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_SummarizedProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SummarizedProfile.class, + com.google.cloud.talent.v4beta1.SummarizedProfile.Builder.class); + } + + private int bitField0_; + public static final int PROFILES_FIELD_NUMBER = 1; + private java.util.List profiles_; + /** + * + * + *
+   * A list of profiles that are linked by [Profile.cluster_id][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public java.util.List getProfilesList() { + return profiles_; + } + /** + * + * + *
+   * A list of profiles that are linked by [Profile.cluster_id][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public java.util.List + getProfilesOrBuilderList() { + return profiles_; + } + /** + * + * + *
+   * A list of profiles that are linked by [Profile.cluster_id][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public int getProfilesCount() { + return profiles_.size(); + } + /** + * + * + *
+   * A list of profiles that are linked by [Profile.cluster_id][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public com.google.cloud.talent.v4beta1.Profile getProfiles(int index) { + return profiles_.get(index); + } + /** + * + * + *
+   * A list of profiles that are linked by [Profile.cluster_id][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfilesOrBuilder(int index) { + return profiles_.get(index); + } + + public static final int SUMMARY_FIELD_NUMBER = 2; + private com.google.cloud.talent.v4beta1.Profile summary_; + /** + * + * + *
+   * A profile summary shows the profile summary and how the profile matches the
+   * search query.
+   * In profile summary, the profiles with the same [Profile.cluster_id][] are
+   * merged together. Among profiles, same education/employment records may be
+   * slightly different but they are merged into one with best efforts.
+   * For example, in one profile the school name is "UC Berkeley" and the field
+   * study is "Computer Science" and in another one the school name is
+   * "University of California at Berkeley" and the field study is "CS". The API
+   * merges these two inputs into one and selects one value for each field. For
+   * example, the school name in summary is set to "University of California at
+   * Berkeley" and the field of study is set to "Computer Science".
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile summary = 2; + */ + public boolean hasSummary() { + return summary_ != null; + } + /** + * + * + *
+   * A profile summary shows the profile summary and how the profile matches the
+   * search query.
+   * In profile summary, the profiles with the same [Profile.cluster_id][] are
+   * merged together. Among profiles, same education/employment records may be
+   * slightly different but they are merged into one with best efforts.
+   * For example, in one profile the school name is "UC Berkeley" and the field
+   * study is "Computer Science" and in another one the school name is
+   * "University of California at Berkeley" and the field study is "CS". The API
+   * merges these two inputs into one and selects one value for each field. For
+   * example, the school name in summary is set to "University of California at
+   * Berkeley" and the field of study is set to "Computer Science".
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile summary = 2; + */ + public com.google.cloud.talent.v4beta1.Profile getSummary() { + return summary_ == null + ? com.google.cloud.talent.v4beta1.Profile.getDefaultInstance() + : summary_; + } + /** + * + * + *
+   * A profile summary shows the profile summary and how the profile matches the
+   * search query.
+   * In profile summary, the profiles with the same [Profile.cluster_id][] are
+   * merged together. Among profiles, same education/employment records may be
+   * slightly different but they are merged into one with best efforts.
+   * For example, in one profile the school name is "UC Berkeley" and the field
+   * study is "Computer Science" and in another one the school name is
+   * "University of California at Berkeley" and the field study is "CS". The API
+   * merges these two inputs into one and selects one value for each field. For
+   * example, the school name in summary is set to "University of California at
+   * Berkeley" and the field of study is set to "Computer Science".
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile summary = 2; + */ + public com.google.cloud.talent.v4beta1.ProfileOrBuilder getSummaryOrBuilder() { + return getSummary(); + } + + 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 { + for (int i = 0; i < profiles_.size(); i++) { + output.writeMessage(1, profiles_.get(i)); + } + if (summary_ != null) { + output.writeMessage(2, getSummary()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < profiles_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, profiles_.get(i)); + } + if (summary_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSummary()); + } + size += unknownFields.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.cloud.talent.v4beta1.SummarizedProfile)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.SummarizedProfile other = + (com.google.cloud.talent.v4beta1.SummarizedProfile) obj; + + boolean result = true; + result = result && getProfilesList().equals(other.getProfilesList()); + result = result && (hasSummary() == other.hasSummary()); + if (hasSummary()) { + result = result && getSummary().equals(other.getSummary()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getProfilesCount() > 0) { + hash = (37 * hash) + PROFILES_FIELD_NUMBER; + hash = (53 * hash) + getProfilesList().hashCode(); + } + if (hasSummary()) { + hash = (37 * hash) + SUMMARY_FIELD_NUMBER; + hash = (53 * hash) + getSummary().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.SummarizedProfile parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SummarizedProfile parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SummarizedProfile parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SummarizedProfile 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.cloud.talent.v4beta1.SummarizedProfile parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.SummarizedProfile parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.SummarizedProfile parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SummarizedProfile 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.cloud.talent.v4beta1.SummarizedProfile parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SummarizedProfile 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.cloud.talent.v4beta1.SummarizedProfile parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.SummarizedProfile 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.cloud.talent.v4beta1.SummarizedProfile 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; + } + /** + * + * + *
+   * Output only.
+   * Profile entry with metadata inside
+   * [SearchProfilesResponse][google.cloud.talent.v4beta1.SearchProfilesResponse].
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.SummarizedProfile} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.SummarizedProfile) + com.google.cloud.talent.v4beta1.SummarizedProfileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_SummarizedProfile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_SummarizedProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.SummarizedProfile.class, + com.google.cloud.talent.v4beta1.SummarizedProfile.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.SummarizedProfile.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getProfilesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (profilesBuilder_ == null) { + profiles_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + profilesBuilder_.clear(); + } + if (summaryBuilder_ == null) { + summary_ = null; + } else { + summary_ = null; + summaryBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_SummarizedProfile_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SummarizedProfile getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.SummarizedProfile.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SummarizedProfile build() { + com.google.cloud.talent.v4beta1.SummarizedProfile result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.SummarizedProfile buildPartial() { + com.google.cloud.talent.v4beta1.SummarizedProfile result = + new com.google.cloud.talent.v4beta1.SummarizedProfile(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (profilesBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + profiles_ = java.util.Collections.unmodifiableList(profiles_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.profiles_ = profiles_; + } else { + result.profiles_ = profilesBuilder_.build(); + } + if (summaryBuilder_ == null) { + result.summary_ = summary_; + } else { + result.summary_ = summaryBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.SummarizedProfile) { + return mergeFrom((com.google.cloud.talent.v4beta1.SummarizedProfile) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.SummarizedProfile other) { + if (other == com.google.cloud.talent.v4beta1.SummarizedProfile.getDefaultInstance()) + return this; + if (profilesBuilder_ == null) { + if (!other.profiles_.isEmpty()) { + if (profiles_.isEmpty()) { + profiles_ = other.profiles_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureProfilesIsMutable(); + profiles_.addAll(other.profiles_); + } + onChanged(); + } + } else { + if (!other.profiles_.isEmpty()) { + if (profilesBuilder_.isEmpty()) { + profilesBuilder_.dispose(); + profilesBuilder_ = null; + profiles_ = other.profiles_; + bitField0_ = (bitField0_ & ~0x00000001); + profilesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getProfilesFieldBuilder() + : null; + } else { + profilesBuilder_.addAllMessages(other.profiles_); + } + } + } + if (other.hasSummary()) { + mergeSummary(other.getSummary()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.SummarizedProfile parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.SummarizedProfile) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List profiles_ = + java.util.Collections.emptyList(); + + private void ensureProfilesIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + profiles_ = new java.util.ArrayList(profiles_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder> + profilesBuilder_; + + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public java.util.List getProfilesList() { + if (profilesBuilder_ == null) { + return java.util.Collections.unmodifiableList(profiles_); + } else { + return profilesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public int getProfilesCount() { + if (profilesBuilder_ == null) { + return profiles_.size(); + } else { + return profilesBuilder_.getCount(); + } + } + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public com.google.cloud.talent.v4beta1.Profile getProfiles(int index) { + if (profilesBuilder_ == null) { + return profiles_.get(index); + } else { + return profilesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder setProfiles(int index, com.google.cloud.talent.v4beta1.Profile value) { + if (profilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProfilesIsMutable(); + profiles_.set(index, value); + onChanged(); + } else { + profilesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder setProfiles( + int index, com.google.cloud.talent.v4beta1.Profile.Builder builderForValue) { + if (profilesBuilder_ == null) { + ensureProfilesIsMutable(); + profiles_.set(index, builderForValue.build()); + onChanged(); + } else { + profilesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder addProfiles(com.google.cloud.talent.v4beta1.Profile value) { + if (profilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProfilesIsMutable(); + profiles_.add(value); + onChanged(); + } else { + profilesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder addProfiles(int index, com.google.cloud.talent.v4beta1.Profile value) { + if (profilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProfilesIsMutable(); + profiles_.add(index, value); + onChanged(); + } else { + profilesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder addProfiles(com.google.cloud.talent.v4beta1.Profile.Builder builderForValue) { + if (profilesBuilder_ == null) { + ensureProfilesIsMutable(); + profiles_.add(builderForValue.build()); + onChanged(); + } else { + profilesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder addProfiles( + int index, com.google.cloud.talent.v4beta1.Profile.Builder builderForValue) { + if (profilesBuilder_ == null) { + ensureProfilesIsMutable(); + profiles_.add(index, builderForValue.build()); + onChanged(); + } else { + profilesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder addAllProfiles( + java.lang.Iterable values) { + if (profilesBuilder_ == null) { + ensureProfilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, profiles_); + onChanged(); + } else { + profilesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder clearProfiles() { + if (profilesBuilder_ == null) { + profiles_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + profilesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public Builder removeProfiles(int index) { + if (profilesBuilder_ == null) { + ensureProfilesIsMutable(); + profiles_.remove(index); + onChanged(); + } else { + profilesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public com.google.cloud.talent.v4beta1.Profile.Builder getProfilesBuilder(int index) { + return getProfilesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfilesOrBuilder(int index) { + if (profilesBuilder_ == null) { + return profiles_.get(index); + } else { + return profilesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public java.util.List + getProfilesOrBuilderList() { + if (profilesBuilder_ != null) { + return profilesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(profiles_); + } + } + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public com.google.cloud.talent.v4beta1.Profile.Builder addProfilesBuilder() { + return getProfilesFieldBuilder() + .addBuilder(com.google.cloud.talent.v4beta1.Profile.getDefaultInstance()); + } + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public com.google.cloud.talent.v4beta1.Profile.Builder addProfilesBuilder(int index) { + return getProfilesFieldBuilder() + .addBuilder(index, com.google.cloud.talent.v4beta1.Profile.getDefaultInstance()); + } + /** + * + * + *
+     * A list of profiles that are linked by [Profile.cluster_id][].
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + public java.util.List + getProfilesBuilderList() { + return getProfilesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder> + getProfilesFieldBuilder() { + if (profilesBuilder_ == null) { + profilesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder>( + profiles_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + profiles_ = null; + } + return profilesBuilder_; + } + + private com.google.cloud.talent.v4beta1.Profile summary_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder> + summaryBuilder_; + /** + * + * + *
+     * A profile summary shows the profile summary and how the profile matches the
+     * search query.
+     * In profile summary, the profiles with the same [Profile.cluster_id][] are
+     * merged together. Among profiles, same education/employment records may be
+     * slightly different but they are merged into one with best efforts.
+     * For example, in one profile the school name is "UC Berkeley" and the field
+     * study is "Computer Science" and in another one the school name is
+     * "University of California at Berkeley" and the field study is "CS". The API
+     * merges these two inputs into one and selects one value for each field. For
+     * example, the school name in summary is set to "University of California at
+     * Berkeley" and the field of study is set to "Computer Science".
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile summary = 2; + */ + public boolean hasSummary() { + return summaryBuilder_ != null || summary_ != null; + } + /** + * + * + *
+     * A profile summary shows the profile summary and how the profile matches the
+     * search query.
+     * In profile summary, the profiles with the same [Profile.cluster_id][] are
+     * merged together. Among profiles, same education/employment records may be
+     * slightly different but they are merged into one with best efforts.
+     * For example, in one profile the school name is "UC Berkeley" and the field
+     * study is "Computer Science" and in another one the school name is
+     * "University of California at Berkeley" and the field study is "CS". The API
+     * merges these two inputs into one and selects one value for each field. For
+     * example, the school name in summary is set to "University of California at
+     * Berkeley" and the field of study is set to "Computer Science".
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile summary = 2; + */ + public com.google.cloud.talent.v4beta1.Profile getSummary() { + if (summaryBuilder_ == null) { + return summary_ == null + ? com.google.cloud.talent.v4beta1.Profile.getDefaultInstance() + : summary_; + } else { + return summaryBuilder_.getMessage(); + } + } + /** + * + * + *
+     * A profile summary shows the profile summary and how the profile matches the
+     * search query.
+     * In profile summary, the profiles with the same [Profile.cluster_id][] are
+     * merged together. Among profiles, same education/employment records may be
+     * slightly different but they are merged into one with best efforts.
+     * For example, in one profile the school name is "UC Berkeley" and the field
+     * study is "Computer Science" and in another one the school name is
+     * "University of California at Berkeley" and the field study is "CS". The API
+     * merges these two inputs into one and selects one value for each field. For
+     * example, the school name in summary is set to "University of California at
+     * Berkeley" and the field of study is set to "Computer Science".
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile summary = 2; + */ + public Builder setSummary(com.google.cloud.talent.v4beta1.Profile value) { + if (summaryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + summary_ = value; + onChanged(); + } else { + summaryBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * A profile summary shows the profile summary and how the profile matches the
+     * search query.
+     * In profile summary, the profiles with the same [Profile.cluster_id][] are
+     * merged together. Among profiles, same education/employment records may be
+     * slightly different but they are merged into one with best efforts.
+     * For example, in one profile the school name is "UC Berkeley" and the field
+     * study is "Computer Science" and in another one the school name is
+     * "University of California at Berkeley" and the field study is "CS". The API
+     * merges these two inputs into one and selects one value for each field. For
+     * example, the school name in summary is set to "University of California at
+     * Berkeley" and the field of study is set to "Computer Science".
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile summary = 2; + */ + public Builder setSummary(com.google.cloud.talent.v4beta1.Profile.Builder builderForValue) { + if (summaryBuilder_ == null) { + summary_ = builderForValue.build(); + onChanged(); + } else { + summaryBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * A profile summary shows the profile summary and how the profile matches the
+     * search query.
+     * In profile summary, the profiles with the same [Profile.cluster_id][] are
+     * merged together. Among profiles, same education/employment records may be
+     * slightly different but they are merged into one with best efforts.
+     * For example, in one profile the school name is "UC Berkeley" and the field
+     * study is "Computer Science" and in another one the school name is
+     * "University of California at Berkeley" and the field study is "CS". The API
+     * merges these two inputs into one and selects one value for each field. For
+     * example, the school name in summary is set to "University of California at
+     * Berkeley" and the field of study is set to "Computer Science".
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile summary = 2; + */ + public Builder mergeSummary(com.google.cloud.talent.v4beta1.Profile value) { + if (summaryBuilder_ == null) { + if (summary_ != null) { + summary_ = + com.google.cloud.talent.v4beta1.Profile.newBuilder(summary_) + .mergeFrom(value) + .buildPartial(); + } else { + summary_ = value; + } + onChanged(); + } else { + summaryBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * A profile summary shows the profile summary and how the profile matches the
+     * search query.
+     * In profile summary, the profiles with the same [Profile.cluster_id][] are
+     * merged together. Among profiles, same education/employment records may be
+     * slightly different but they are merged into one with best efforts.
+     * For example, in one profile the school name is "UC Berkeley" and the field
+     * study is "Computer Science" and in another one the school name is
+     * "University of California at Berkeley" and the field study is "CS". The API
+     * merges these two inputs into one and selects one value for each field. For
+     * example, the school name in summary is set to "University of California at
+     * Berkeley" and the field of study is set to "Computer Science".
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile summary = 2; + */ + public Builder clearSummary() { + if (summaryBuilder_ == null) { + summary_ = null; + onChanged(); + } else { + summary_ = null; + summaryBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * A profile summary shows the profile summary and how the profile matches the
+     * search query.
+     * In profile summary, the profiles with the same [Profile.cluster_id][] are
+     * merged together. Among profiles, same education/employment records may be
+     * slightly different but they are merged into one with best efforts.
+     * For example, in one profile the school name is "UC Berkeley" and the field
+     * study is "Computer Science" and in another one the school name is
+     * "University of California at Berkeley" and the field study is "CS". The API
+     * merges these two inputs into one and selects one value for each field. For
+     * example, the school name in summary is set to "University of California at
+     * Berkeley" and the field of study is set to "Computer Science".
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile summary = 2; + */ + public com.google.cloud.talent.v4beta1.Profile.Builder getSummaryBuilder() { + + onChanged(); + return getSummaryFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A profile summary shows the profile summary and how the profile matches the
+     * search query.
+     * In profile summary, the profiles with the same [Profile.cluster_id][] are
+     * merged together. Among profiles, same education/employment records may be
+     * slightly different but they are merged into one with best efforts.
+     * For example, in one profile the school name is "UC Berkeley" and the field
+     * study is "Computer Science" and in another one the school name is
+     * "University of California at Berkeley" and the field study is "CS". The API
+     * merges these two inputs into one and selects one value for each field. For
+     * example, the school name in summary is set to "University of California at
+     * Berkeley" and the field of study is set to "Computer Science".
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile summary = 2; + */ + public com.google.cloud.talent.v4beta1.ProfileOrBuilder getSummaryOrBuilder() { + if (summaryBuilder_ != null) { + return summaryBuilder_.getMessageOrBuilder(); + } else { + return summary_ == null + ? com.google.cloud.talent.v4beta1.Profile.getDefaultInstance() + : summary_; + } + } + /** + * + * + *
+     * A profile summary shows the profile summary and how the profile matches the
+     * search query.
+     * In profile summary, the profiles with the same [Profile.cluster_id][] are
+     * merged together. Among profiles, same education/employment records may be
+     * slightly different but they are merged into one with best efforts.
+     * For example, in one profile the school name is "UC Berkeley" and the field
+     * study is "Computer Science" and in another one the school name is
+     * "University of California at Berkeley" and the field study is "CS". The API
+     * merges these two inputs into one and selects one value for each field. For
+     * example, the school name in summary is set to "University of California at
+     * Berkeley" and the field of study is set to "Computer Science".
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile summary = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder> + getSummaryFieldBuilder() { + if (summaryBuilder_ == null) { + summaryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder>( + getSummary(), getParentForChildren(), isClean()); + summary_ = null; + } + return summaryBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.SummarizedProfile) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.SummarizedProfile) + private static final com.google.cloud.talent.v4beta1.SummarizedProfile DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.SummarizedProfile(); + } + + public static com.google.cloud.talent.v4beta1.SummarizedProfile getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SummarizedProfile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SummarizedProfile(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.SummarizedProfile getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SummarizedProfileOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SummarizedProfileOrBuilder.java new file mode 100644 index 000000000000..9d32f0691e8b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SummarizedProfileOrBuilder.java @@ -0,0 +1,123 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface SummarizedProfileOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.SummarizedProfile) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of profiles that are linked by [Profile.cluster_id][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + java.util.List getProfilesList(); + /** + * + * + *
+   * A list of profiles that are linked by [Profile.cluster_id][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + com.google.cloud.talent.v4beta1.Profile getProfiles(int index); + /** + * + * + *
+   * A list of profiles that are linked by [Profile.cluster_id][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + int getProfilesCount(); + /** + * + * + *
+   * A list of profiles that are linked by [Profile.cluster_id][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + java.util.List + getProfilesOrBuilderList(); + /** + * + * + *
+   * A list of profiles that are linked by [Profile.cluster_id][].
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; + */ + com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfilesOrBuilder(int index); + + /** + * + * + *
+   * A profile summary shows the profile summary and how the profile matches the
+   * search query.
+   * In profile summary, the profiles with the same [Profile.cluster_id][] are
+   * merged together. Among profiles, same education/employment records may be
+   * slightly different but they are merged into one with best efforts.
+   * For example, in one profile the school name is "UC Berkeley" and the field
+   * study is "Computer Science" and in another one the school name is
+   * "University of California at Berkeley" and the field study is "CS". The API
+   * merges these two inputs into one and selects one value for each field. For
+   * example, the school name in summary is set to "University of California at
+   * Berkeley" and the field of study is set to "Computer Science".
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile summary = 2; + */ + boolean hasSummary(); + /** + * + * + *
+   * A profile summary shows the profile summary and how the profile matches the
+   * search query.
+   * In profile summary, the profiles with the same [Profile.cluster_id][] are
+   * merged together. Among profiles, same education/employment records may be
+   * slightly different but they are merged into one with best efforts.
+   * For example, in one profile the school name is "UC Berkeley" and the field
+   * study is "Computer Science" and in another one the school name is
+   * "University of California at Berkeley" and the field study is "CS". The API
+   * merges these two inputs into one and selects one value for each field. For
+   * example, the school name in summary is set to "University of California at
+   * Berkeley" and the field of study is set to "Computer Science".
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile summary = 2; + */ + com.google.cloud.talent.v4beta1.Profile getSummary(); + /** + * + * + *
+   * A profile summary shows the profile summary and how the profile matches the
+   * search query.
+   * In profile summary, the profiles with the same [Profile.cluster_id][] are
+   * merged together. Among profiles, same education/employment records may be
+   * slightly different but they are merged into one with best efforts.
+   * For example, in one profile the school name is "UC Berkeley" and the field
+   * study is "Computer Science" and in another one the school name is
+   * "University of California at Berkeley" and the field study is "CS". The API
+   * merges these two inputs into one and selects one value for each field. For
+   * example, the school name in summary is set to "University of California at
+   * Berkeley" and the field of study is set to "Computer Science".
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile summary = 2; + */ + com.google.cloud.talent.v4beta1.ProfileOrBuilder getSummaryOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Tenant.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Tenant.java new file mode 100644 index 000000000000..6d0cb89c1256 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Tenant.java @@ -0,0 +1,1126 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/tenant.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * A Tenant resource represents a tenant in the service. A tenant is a group or
+ * entity that shares common access with specific privileges for resources like
+ * profiles. Customer may create multiple tenants to provide data isolation for
+ * different groups.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Tenant} + */ +public final class Tenant extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Tenant) + TenantOrBuilder { + private static final long serialVersionUID = 0L; + // Use Tenant.newBuilder() to construct. + private Tenant(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Tenant() { + name_ = ""; + externalId_ = ""; + usageType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Tenant( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + externalId_ = s; + break; + } + case 24: + { + int rawValue = input.readEnum(); + + usageType_ = rawValue; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.TenantResourceProto + .internal_static_google_cloud_talent_v4beta1_Tenant_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.TenantResourceProto + .internal_static_google_cloud_talent_v4beta1_Tenant_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Tenant.class, + com.google.cloud.talent.v4beta1.Tenant.Builder.class); + } + + /** + * + * + *
+   * Enum that represents how user data owned by the tenant is used.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.Tenant.DataUsageType} + */ + public enum DataUsageType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value.
+     * 
+ * + * DATA_USAGE_TYPE_UNSPECIFIED = 0; + */ + DATA_USAGE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Data owned by this tenant is used to improve search/recommendation
+     * quality across tenants.
+     * 
+ * + * AGGREGATED = 1; + */ + AGGREGATED(1), + /** + * + * + *
+     * Data owned by this tenant is used to improve search/recommendation
+     * quality for this tenant only.
+     * 
+ * + * ISOLATED = 2; + */ + ISOLATED(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value.
+     * 
+ * + * DATA_USAGE_TYPE_UNSPECIFIED = 0; + */ + public static final int DATA_USAGE_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Data owned by this tenant is used to improve search/recommendation
+     * quality across tenants.
+     * 
+ * + * AGGREGATED = 1; + */ + public static final int AGGREGATED_VALUE = 1; + /** + * + * + *
+     * Data owned by this tenant is used to improve search/recommendation
+     * quality for this tenant only.
+     * 
+ * + * ISOLATED = 2; + */ + public static final int ISOLATED_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static DataUsageType valueOf(int value) { + return forNumber(value); + } + + public static DataUsageType forNumber(int value) { + switch (value) { + case 0: + return DATA_USAGE_TYPE_UNSPECIFIED; + case 1: + return AGGREGATED; + case 2: + return ISOLATED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DataUsageType findValueByNumber(int number) { + return DataUsageType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.Tenant.getDescriptor().getEnumTypes().get(0); + } + + private static final DataUsageType[] VALUES = values(); + + public static DataUsageType 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()]; + } + + private final int value; + + private DataUsageType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.Tenant.DataUsageType) + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required during tenant update.
+   * The resource name for a tenant. This is generated by the service when a
+   * tenant is created.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required during tenant update.
+   * The resource name for a tenant. This is generated by the service when a
+   * tenant is created.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXTERNAL_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object externalId_; + /** + * + * + *
+   * Required.
+   * Client side tenant identifier, used to uniquely identify the tenant.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string external_id = 2; + */ + public java.lang.String getExternalId() { + java.lang.Object ref = externalId_; + 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(); + externalId_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * Client side tenant identifier, used to uniquely identify the tenant.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string external_id = 2; + */ + public com.google.protobuf.ByteString getExternalIdBytes() { + java.lang.Object ref = externalId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + externalId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USAGE_TYPE_FIELD_NUMBER = 3; + private int usageType_; + /** + * + * + *
+   * Optional.
+   * Indicates whether data owned by this tenant may be used to provide product
+   * improvements across other tenants.
+   * Defaults behavior is
+   * [DataUsageType.ISOLATED][google.cloud.talent.v4beta1.Tenant.DataUsageType.ISOLATED]
+   * if it's unset.
+   * 
+ * + * .google.cloud.talent.v4beta1.Tenant.DataUsageType usage_type = 3; + */ + public int getUsageTypeValue() { + return usageType_; + } + /** + * + * + *
+   * Optional.
+   * Indicates whether data owned by this tenant may be used to provide product
+   * improvements across other tenants.
+   * Defaults behavior is
+   * [DataUsageType.ISOLATED][google.cloud.talent.v4beta1.Tenant.DataUsageType.ISOLATED]
+   * if it's unset.
+   * 
+ * + * .google.cloud.talent.v4beta1.Tenant.DataUsageType usage_type = 3; + */ + public com.google.cloud.talent.v4beta1.Tenant.DataUsageType getUsageType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.Tenant.DataUsageType result = + com.google.cloud.talent.v4beta1.Tenant.DataUsageType.valueOf(usageType_); + return result == null + ? com.google.cloud.talent.v4beta1.Tenant.DataUsageType.UNRECOGNIZED + : result; + } + + 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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getExternalIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, externalId_); + } + if (usageType_ + != com.google.cloud.talent.v4beta1.Tenant.DataUsageType.DATA_USAGE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, usageType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getExternalIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, externalId_); + } + if (usageType_ + != com.google.cloud.talent.v4beta1.Tenant.DataUsageType.DATA_USAGE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, usageType_); + } + size += unknownFields.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.cloud.talent.v4beta1.Tenant)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.Tenant other = (com.google.cloud.talent.v4beta1.Tenant) obj; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && getExternalId().equals(other.getExternalId()); + result = result && usageType_ == other.usageType_; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + EXTERNAL_ID_FIELD_NUMBER; + hash = (53 * hash) + getExternalId().hashCode(); + hash = (37 * hash) + USAGE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + usageType_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.Tenant parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Tenant parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Tenant parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Tenant 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.cloud.talent.v4beta1.Tenant parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.Tenant parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.Tenant parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Tenant 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.cloud.talent.v4beta1.Tenant parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Tenant 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.cloud.talent.v4beta1.Tenant parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.Tenant 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.cloud.talent.v4beta1.Tenant 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 Tenant resource represents a tenant in the service. A tenant is a group or
+   * entity that shares common access with specific privileges for resources like
+   * profiles. Customer may create multiple tenants to provide data isolation for
+   * different groups.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.Tenant} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Tenant) + com.google.cloud.talent.v4beta1.TenantOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.TenantResourceProto + .internal_static_google_cloud_talent_v4beta1_Tenant_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.TenantResourceProto + .internal_static_google_cloud_talent_v4beta1_Tenant_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.Tenant.class, + com.google.cloud.talent.v4beta1.Tenant.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.Tenant.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + externalId_ = ""; + + usageType_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.TenantResourceProto + .internal_static_google_cloud_talent_v4beta1_Tenant_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Tenant getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.Tenant.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Tenant build() { + com.google.cloud.talent.v4beta1.Tenant result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.Tenant buildPartial() { + com.google.cloud.talent.v4beta1.Tenant result = + new com.google.cloud.talent.v4beta1.Tenant(this); + result.name_ = name_; + result.externalId_ = externalId_; + result.usageType_ = usageType_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.Tenant) { + return mergeFrom((com.google.cloud.talent.v4beta1.Tenant) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.Tenant other) { + if (other == com.google.cloud.talent.v4beta1.Tenant.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getExternalId().isEmpty()) { + externalId_ = other.externalId_; + onChanged(); + } + if (other.usageType_ != 0) { + setUsageTypeValue(other.getUsageTypeValue()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.Tenant parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.Tenant) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required during tenant update.
+     * The resource name for a tenant. This is generated by the service when a
+     * tenant is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required during tenant update.
+     * The resource name for a tenant. This is generated by the service when a
+     * tenant is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required during tenant update.
+     * The resource name for a tenant. This is generated by the service when a
+     * tenant is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required during tenant update.
+     * The resource name for a tenant. This is generated by the service when a
+     * tenant is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required during tenant update.
+     * The resource name for a tenant. This is generated by the service when a
+     * tenant is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenants/foo".
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object externalId_ = ""; + /** + * + * + *
+     * Required.
+     * Client side tenant identifier, used to uniquely identify the tenant.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string external_id = 2; + */ + public java.lang.String getExternalId() { + java.lang.Object ref = externalId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + externalId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * Client side tenant identifier, used to uniquely identify the tenant.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string external_id = 2; + */ + public com.google.protobuf.ByteString getExternalIdBytes() { + java.lang.Object ref = externalId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + externalId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * Client side tenant identifier, used to uniquely identify the tenant.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string external_id = 2; + */ + public Builder setExternalId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + externalId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Client side tenant identifier, used to uniquely identify the tenant.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string external_id = 2; + */ + public Builder clearExternalId() { + + externalId_ = getDefaultInstance().getExternalId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Client side tenant identifier, used to uniquely identify the tenant.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string external_id = 2; + */ + public Builder setExternalIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + externalId_ = value; + onChanged(); + return this; + } + + private int usageType_ = 0; + /** + * + * + *
+     * Optional.
+     * Indicates whether data owned by this tenant may be used to provide product
+     * improvements across other tenants.
+     * Defaults behavior is
+     * [DataUsageType.ISOLATED][google.cloud.talent.v4beta1.Tenant.DataUsageType.ISOLATED]
+     * if it's unset.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant.DataUsageType usage_type = 3; + */ + public int getUsageTypeValue() { + return usageType_; + } + /** + * + * + *
+     * Optional.
+     * Indicates whether data owned by this tenant may be used to provide product
+     * improvements across other tenants.
+     * Defaults behavior is
+     * [DataUsageType.ISOLATED][google.cloud.talent.v4beta1.Tenant.DataUsageType.ISOLATED]
+     * if it's unset.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant.DataUsageType usage_type = 3; + */ + public Builder setUsageTypeValue(int value) { + usageType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Indicates whether data owned by this tenant may be used to provide product
+     * improvements across other tenants.
+     * Defaults behavior is
+     * [DataUsageType.ISOLATED][google.cloud.talent.v4beta1.Tenant.DataUsageType.ISOLATED]
+     * if it's unset.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant.DataUsageType usage_type = 3; + */ + public com.google.cloud.talent.v4beta1.Tenant.DataUsageType getUsageType() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.Tenant.DataUsageType result = + com.google.cloud.talent.v4beta1.Tenant.DataUsageType.valueOf(usageType_); + return result == null + ? com.google.cloud.talent.v4beta1.Tenant.DataUsageType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional.
+     * Indicates whether data owned by this tenant may be used to provide product
+     * improvements across other tenants.
+     * Defaults behavior is
+     * [DataUsageType.ISOLATED][google.cloud.talent.v4beta1.Tenant.DataUsageType.ISOLATED]
+     * if it's unset.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant.DataUsageType usage_type = 3; + */ + public Builder setUsageType(com.google.cloud.talent.v4beta1.Tenant.DataUsageType value) { + if (value == null) { + throw new NullPointerException(); + } + + usageType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Indicates whether data owned by this tenant may be used to provide product
+     * improvements across other tenants.
+     * Defaults behavior is
+     * [DataUsageType.ISOLATED][google.cloud.talent.v4beta1.Tenant.DataUsageType.ISOLATED]
+     * if it's unset.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant.DataUsageType usage_type = 3; + */ + public Builder clearUsageType() { + + usageType_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Tenant) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Tenant) + private static final com.google.cloud.talent.v4beta1.Tenant DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Tenant(); + } + + public static com.google.cloud.talent.v4beta1.Tenant getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Tenant parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Tenant(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.Tenant getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantName.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantName.java new file mode 100644 index 000000000000..30e378a8e100 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantName.java @@ -0,0 +1,180 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.cloud.talent.v4beta1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class TenantName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}/tenants/{tenant}"); + + private volatile Map fieldValuesMap; + + private final String project; + private final String tenant; + + public String getProject() { + return project; + } + + public String getTenant() { + return tenant; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private TenantName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + tenant = Preconditions.checkNotNull(builder.getTenant()); + } + + public static TenantName of(String project, String tenant) { + return newBuilder().setProject(project).setTenant(tenant).build(); + } + + public static String format(String project, String tenant) { + return newBuilder().setProject(project).setTenant(tenant).build().toString(); + } + + public static TenantName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "TenantName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("tenant")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (TenantName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldMapBuilder.put("tenant", tenant); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project", project, "tenant", tenant); + } + + /** Builder for TenantName. */ + public static class Builder { + + private String project; + private String tenant; + + public String getProject() { + return project; + } + + public String getTenant() { + return tenant; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setTenant(String tenant) { + this.tenant = tenant; + return this; + } + + private Builder() {} + + private Builder(TenantName tenantName) { + project = tenantName.project; + tenant = tenantName.tenant; + } + + public TenantName build() { + return new TenantName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof TenantName) { + TenantName that = (TenantName) o; + return (this.project.equals(that.project)) && (this.tenant.equals(that.tenant)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + h *= 1000003; + h ^= tenant.hashCode(); + return h; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantOrBuilder.java new file mode 100644 index 000000000000..1ae4690636c4 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantOrBuilder.java @@ -0,0 +1,95 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/tenant.proto + +package com.google.cloud.talent.v4beta1; + +public interface TenantOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Tenant) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required during tenant update.
+   * The resource name for a tenant. This is generated by the service when a
+   * tenant is created.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Required during tenant update.
+   * The resource name for a tenant. This is generated by the service when a
+   * tenant is created.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenants/foo".
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required.
+   * Client side tenant identifier, used to uniquely identify the tenant.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string external_id = 2; + */ + java.lang.String getExternalId(); + /** + * + * + *
+   * Required.
+   * Client side tenant identifier, used to uniquely identify the tenant.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string external_id = 2; + */ + com.google.protobuf.ByteString getExternalIdBytes(); + + /** + * + * + *
+   * Optional.
+   * Indicates whether data owned by this tenant may be used to provide product
+   * improvements across other tenants.
+   * Defaults behavior is
+   * [DataUsageType.ISOLATED][google.cloud.talent.v4beta1.Tenant.DataUsageType.ISOLATED]
+   * if it's unset.
+   * 
+ * + * .google.cloud.talent.v4beta1.Tenant.DataUsageType usage_type = 3; + */ + int getUsageTypeValue(); + /** + * + * + *
+   * Optional.
+   * Indicates whether data owned by this tenant may be used to provide product
+   * improvements across other tenants.
+   * Defaults behavior is
+   * [DataUsageType.ISOLATED][google.cloud.talent.v4beta1.Tenant.DataUsageType.ISOLATED]
+   * if it's unset.
+   * 
+ * + * .google.cloud.talent.v4beta1.Tenant.DataUsageType usage_type = 3; + */ + com.google.cloud.talent.v4beta1.Tenant.DataUsageType getUsageType(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantResourceProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantResourceProto.java new file mode 100644 index 000000000000..6bc1236511a0 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantResourceProto.java @@ -0,0 +1,69 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/tenant.proto + +package com.google.cloud.talent.v4beta1; + +public final class TenantResourceProto { + private TenantResourceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_Tenant_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_Tenant_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n(google/cloud/talent/v4beta1/tenant.pro" + + "to\022\033google.cloud.talent.v4beta1\032\034google/" + + "api/annotations.proto\032(google/cloud/tale" + + "nt/v4beta1/common.proto\"\302\001\n\006Tenant\022\014\n\004na" + + "me\030\001 \001(\t\022\023\n\013external_id\030\002 \001(\t\022E\n\nusage_t" + + "ype\030\003 \001(\01621.google.cloud.talent.v4beta1." + + "Tenant.DataUsageType\"N\n\rDataUsageType\022\037\n" + + "\033DATA_USAGE_TYPE_UNSPECIFIED\020\000\022\016\n\nAGGREG" + + "ATED\020\001\022\014\n\010ISOLATED\020\002B\201\001\n\037com.google.clou" + + "d.talent.v4beta1B\023TenantResourceProtoP\001Z" + + "Agoogle.golang.org/genproto/googleapis/c" + + "loud/talent/v4beta1;talent\242\002\003CTSb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_talent_v4beta1_Tenant_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_talent_v4beta1_Tenant_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_Tenant_descriptor, + new java.lang.String[] { + "Name", "ExternalId", "UsageType", + }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceProto.java new file mode 100644 index 000000000000..d35e7cddcd15 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceProto.java @@ -0,0 +1,171 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/tenant_service.proto + +package com.google.cloud.talent.v4beta1; + +public final class TenantServiceProto { + private TenantServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_CreateTenantRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_CreateTenantRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_GetTenantRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_GetTenantRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_UpdateTenantRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_UpdateTenantRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_DeleteTenantRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_DeleteTenantRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ListTenantsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ListTenantsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_talent_v4beta1_ListTenantsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_talent_v4beta1_ListTenantsResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/talent/v4beta1/tenant_ser" + + "vice.proto\022\033google.cloud.talent.v4beta1\032" + + "\034google/api/annotations.proto\032(google/cl" + + "oud/talent/v4beta1/common.proto\032(google/" + + "cloud/talent/v4beta1/tenant.proto\032\033googl" + + "e/protobuf/empty.proto\032 google/protobuf/" + + "field_mask.proto\"Z\n\023CreateTenantRequest\022" + + "\016\n\006parent\030\001 \001(\t\0223\n\006tenant\030\002 \001(\0132#.google" + + ".cloud.talent.v4beta1.Tenant\" \n\020GetTenan" + + "tRequest\022\014\n\004name\030\001 \001(\t\"{\n\023UpdateTenantRe" + + "quest\0223\n\006tenant\030\001 \001(\0132#.google.cloud.tal" + + "ent.v4beta1.Tenant\022/\n\013update_mask\030\002 \001(\0132" + + "\032.google.protobuf.FieldMask\"#\n\023DeleteTen" + + "antRequest\022\014\n\004name\030\001 \001(\t\"K\n\022ListTenantsR" + + "equest\022\016\n\006parent\030\001 \001(\t\022\022\n\npage_token\030\002 \001" + + "(\t\022\021\n\tpage_size\030\003 \001(\005\"\245\001\n\023ListTenantsRes" + + "ponse\0224\n\007tenants\030\001 \003(\0132#.google.cloud.ta" + + "lent.v4beta1.Tenant\022\027\n\017next_page_token\030\002" + + " \001(\t\022?\n\010metadata\030\003 \001(\0132-.google.cloud.ta" + + "lent.v4beta1.ResponseMetadata2\202\006\n\rTenant" + + "Service\022\226\001\n\014CreateTenant\0220.google.cloud." + + "talent.v4beta1.CreateTenantRequest\032#.goo" + + "gle.cloud.talent.v4beta1.Tenant\"/\202\323\344\223\002)\"" + + "$/v4beta1/{parent=projects/*}/tenants:\001*" + + "\022\215\001\n\tGetTenant\022-.google.cloud.talent.v4b" + + "eta1.GetTenantRequest\032#.google.cloud.tal" + + "ent.v4beta1.Tenant\",\202\323\344\223\002&\022$/v4beta1/{na" + + "me=projects/*/tenants/*}\022\235\001\n\014UpdateTenan" + + "t\0220.google.cloud.talent.v4beta1.UpdateTe" + + "nantRequest\032#.google.cloud.talent.v4beta" + + "1.Tenant\"6\202\323\344\223\00202+/v4beta1/{tenant.name=" + + "projects/*/tenants/*}:\001*\022\206\001\n\014DeleteTenan" + + "t\0220.google.cloud.talent.v4beta1.DeleteTe" + + "nantRequest\032\026.google.protobuf.Empty\",\202\323\344" + + "\223\002&*$/v4beta1/{name=projects/*/tenants/*" + + "}\022\236\001\n\013ListTenants\022/.google.cloud.talent." + + "v4beta1.ListTenantsRequest\0320.google.clou" + + "d.talent.v4beta1.ListTenantsResponse\",\202\323" + + "\344\223\002&\022$/v4beta1/{parent=projects/*}/tenan" + + "tsB\200\001\n\037com.google.cloud.talent.v4beta1B\022" + + "TenantServiceProtoP\001ZAgoogle.golang.org/" + + "genproto/googleapis/cloud/talent/v4beta1" + + ";talent\242\002\003CTSb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(), + com.google.cloud.talent.v4beta1.TenantResourceProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_talent_v4beta1_CreateTenantRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_talent_v4beta1_CreateTenantRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_CreateTenantRequest_descriptor, + new java.lang.String[] { + "Parent", "Tenant", + }); + internal_static_google_cloud_talent_v4beta1_GetTenantRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_talent_v4beta1_GetTenantRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_GetTenantRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_talent_v4beta1_UpdateTenantRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_talent_v4beta1_UpdateTenantRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_UpdateTenantRequest_descriptor, + new java.lang.String[] { + "Tenant", "UpdateMask", + }); + internal_static_google_cloud_talent_v4beta1_DeleteTenantRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_talent_v4beta1_DeleteTenantRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_DeleteTenantRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_talent_v4beta1_ListTenantsRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_talent_v4beta1_ListTenantsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ListTenantsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageToken", "PageSize", + }); + internal_static_google_cloud_talent_v4beta1_ListTenantsResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_talent_v4beta1_ListTenantsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_talent_v4beta1_ListTenantsResponse_descriptor, + new java.lang.String[] { + "Tenants", "NextPageToken", "Metadata", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.AnnotationsProto.http); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(); + com.google.cloud.talent.v4beta1.TenantResourceProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimeFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimeFilter.java new file mode 100644 index 000000000000..c71c81eb9b2e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimeFilter.java @@ -0,0 +1,1327 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Filter on create timestamp or update timestamp of profiles.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.TimeFilter} + */ +public final class TimeFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.TimeFilter) + TimeFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use TimeFilter.newBuilder() to construct. + private TimeFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TimeFilter() { + timeField_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TimeFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); + } + startTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; + } + case 24: + { + int rawValue = input.readEnum(); + + timeField_ = rawValue; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_TimeFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_TimeFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.TimeFilter.class, + com.google.cloud.talent.v4beta1.TimeFilter.Builder.class); + } + + /** + * + * + *
+   * Time fields can be used in TimeFilter.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.TimeFilter.TimeField} + */ + public enum TimeField implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value.
+     * 
+ * + * TIME_FIELD_UNSPECIFIED = 0; + */ + TIME_FIELD_UNSPECIFIED(0), + /** + * + * + *
+     * Earliest profile create time.
+     * 
+ * + * CREATE_TIME = 1; + */ + CREATE_TIME(1), + /** + * + * + *
+     * Latest profile update time.
+     * 
+ * + * UPDATE_TIME = 2; + */ + UPDATE_TIME(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value.
+     * 
+ * + * TIME_FIELD_UNSPECIFIED = 0; + */ + public static final int TIME_FIELD_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Earliest profile create time.
+     * 
+ * + * CREATE_TIME = 1; + */ + public static final int CREATE_TIME_VALUE = 1; + /** + * + * + *
+     * Latest profile update time.
+     * 
+ * + * UPDATE_TIME = 2; + */ + public static final int UPDATE_TIME_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static TimeField valueOf(int value) { + return forNumber(value); + } + + public static TimeField forNumber(int value) { + switch (value) { + case 0: + return TIME_FIELD_UNSPECIFIED; + case 1: + return CREATE_TIME; + case 2: + return UPDATE_TIME; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TimeField findValueByNumber(int number) { + return TimeField.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.TimeFilter.getDescriptor().getEnumTypes().get(0); + } + + private static final TimeField[] VALUES = values(); + + public static TimeField 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()]; + } + + private final int value; + + private TimeField(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.TimeFilter.TimeField) + } + + public static final int START_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
+   * Optional.
+   * Start timestamp, matching profiles with the start time. If this field
+   * missing, The API matches profiles with create / update timestamp before the
+   * end timestamp.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public boolean hasStartTime() { + return startTime_ != null; + } + /** + * + * + *
+   * Optional.
+   * Start timestamp, matching profiles with the start time. If this field
+   * missing, The API matches profiles with create / update timestamp before the
+   * end timestamp.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + * + * + *
+   * Optional.
+   * Start timestamp, matching profiles with the start time. If this field
+   * missing, The API matches profiles with create / update timestamp before the
+   * end timestamp.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return getStartTime(); + } + + public static final int END_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp endTime_; + /** + * + * + *
+   * Optional.
+   * End timestamp, matching profiles with the end time. If this field
+   * missing, The API matches profiles with create / update timestamp after the
+   * start timestamp.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public boolean hasEndTime() { + return endTime_ != null; + } + /** + * + * + *
+   * Optional.
+   * End timestamp, matching profiles with the end time. If this field
+   * missing, The API matches profiles with create / update timestamp after the
+   * start timestamp.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + * + * + *
+   * Optional.
+   * End timestamp, matching profiles with the end time. If this field
+   * missing, The API matches profiles with create / update timestamp after the
+   * start timestamp.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return getEndTime(); + } + + public static final int TIME_FIELD_FIELD_NUMBER = 3; + private int timeField_; + /** + * + * + *
+   * Optional.
+   * Specifies which time field to filter profiles.
+   * Defaults to
+   * [TimeField.CREATE_TIME][google.cloud.talent.v4beta1.TimeFilter.TimeField.CREATE_TIME].
+   * 
+ * + * .google.cloud.talent.v4beta1.TimeFilter.TimeField time_field = 3; + */ + public int getTimeFieldValue() { + return timeField_; + } + /** + * + * + *
+   * Optional.
+   * Specifies which time field to filter profiles.
+   * Defaults to
+   * [TimeField.CREATE_TIME][google.cloud.talent.v4beta1.TimeFilter.TimeField.CREATE_TIME].
+   * 
+ * + * .google.cloud.talent.v4beta1.TimeFilter.TimeField time_field = 3; + */ + public com.google.cloud.talent.v4beta1.TimeFilter.TimeField getTimeField() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.TimeFilter.TimeField result = + com.google.cloud.talent.v4beta1.TimeFilter.TimeField.valueOf(timeField_); + return result == null + ? com.google.cloud.talent.v4beta1.TimeFilter.TimeField.UNRECOGNIZED + : result; + } + + 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 (startTime_ != null) { + output.writeMessage(1, getStartTime()); + } + if (endTime_ != null) { + output.writeMessage(2, getEndTime()); + } + if (timeField_ + != com.google.cloud.talent.v4beta1.TimeFilter.TimeField.TIME_FIELD_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, timeField_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (startTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); + } + if (endTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + } + if (timeField_ + != com.google.cloud.talent.v4beta1.TimeFilter.TimeField.TIME_FIELD_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, timeField_); + } + size += unknownFields.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.cloud.talent.v4beta1.TimeFilter)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.TimeFilter other = + (com.google.cloud.talent.v4beta1.TimeFilter) obj; + + boolean result = true; + result = result && (hasStartTime() == other.hasStartTime()); + if (hasStartTime()) { + result = result && getStartTime().equals(other.getStartTime()); + } + result = result && (hasEndTime() == other.hasEndTime()); + if (hasEndTime()) { + result = result && getEndTime().equals(other.getEndTime()); + } + result = result && timeField_ == other.timeField_; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (37 * hash) + TIME_FIELD_FIELD_NUMBER; + hash = (53 * hash) + timeField_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.TimeFilter parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.TimeFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.TimeFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.TimeFilter 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.cloud.talent.v4beta1.TimeFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.TimeFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.TimeFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.TimeFilter 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.cloud.talent.v4beta1.TimeFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.TimeFilter 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.cloud.talent.v4beta1.TimeFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.TimeFilter 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.cloud.talent.v4beta1.TimeFilter 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; + } + /** + * + * + *
+   * Input only.
+   * Filter on create timestamp or update timestamp of profiles.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.TimeFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.TimeFilter) + com.google.cloud.talent.v4beta1.TimeFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_TimeFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_TimeFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.TimeFilter.class, + com.google.cloud.talent.v4beta1.TimeFilter.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.TimeFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (startTimeBuilder_ == null) { + startTime_ = null; + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + if (endTimeBuilder_ == null) { + endTime_ = null; + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + timeField_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_TimeFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.TimeFilter getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.TimeFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.TimeFilter build() { + com.google.cloud.talent.v4beta1.TimeFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.TimeFilter buildPartial() { + com.google.cloud.talent.v4beta1.TimeFilter result = + new com.google.cloud.talent.v4beta1.TimeFilter(this); + if (startTimeBuilder_ == null) { + result.startTime_ = startTime_; + } else { + result.startTime_ = startTimeBuilder_.build(); + } + if (endTimeBuilder_ == null) { + result.endTime_ = endTime_; + } else { + result.endTime_ = endTimeBuilder_.build(); + } + result.timeField_ = timeField_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.TimeFilter) { + return mergeFrom((com.google.cloud.talent.v4beta1.TimeFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.TimeFilter other) { + if (other == com.google.cloud.talent.v4beta1.TimeFilter.getDefaultInstance()) return this; + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (other.timeField_ != 0) { + setTimeFieldValue(other.getTimeFieldValue()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.TimeFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.TimeFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.Timestamp startTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + /** + * + * + *
+     * Optional.
+     * Start timestamp, matching profiles with the start time. If this field
+     * missing, The API matches profiles with create / update timestamp before the
+     * end timestamp.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public boolean hasStartTime() { + return startTimeBuilder_ != null || startTime_ != null; + } + /** + * + * + *
+     * Optional.
+     * Start timestamp, matching profiles with the start time. If this field
+     * missing, The API matches profiles with create / update timestamp before the
+     * end timestamp.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * Start timestamp, matching profiles with the start time. If this field
+     * missing, The API matches profiles with create / update timestamp before the
+     * end timestamp.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + onChanged(); + } else { + startTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Start timestamp, matching profiles with the start time. If this field
+     * missing, The API matches profiles with create / update timestamp before the
+     * end timestamp.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + onChanged(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Start timestamp, matching profiles with the start time. If this field
+     * missing, The API matches profiles with create / update timestamp before the
+     * end timestamp.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (startTime_ != null) { + startTime_ = + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + } else { + startTime_ = value; + } + onChanged(); + } else { + startTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Start timestamp, matching profiles with the start time. If this field
+     * missing, The API matches profiles with create / update timestamp before the
+     * end timestamp.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder clearStartTime() { + if (startTimeBuilder_ == null) { + startTime_ = null; + onChanged(); + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * Start timestamp, matching profiles with the start time. If this field
+     * missing, The API matches profiles with create / update timestamp before the
+     * end timestamp.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * Start timestamp, matching profiles with the start time. If this field
+     * missing, The API matches profiles with create / update timestamp before the
+     * end timestamp.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + * + * + *
+     * Optional.
+     * Start timestamp, matching profiles with the start time. If this field
+     * missing, The API matches profiles with create / update timestamp before the
+     * end timestamp.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + /** + * + * + *
+     * Optional.
+     * End timestamp, matching profiles with the end time. If this field
+     * missing, The API matches profiles with create / update timestamp after the
+     * start timestamp.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public boolean hasEndTime() { + return endTimeBuilder_ != null || endTime_ != null; + } + /** + * + * + *
+     * Optional.
+     * End timestamp, matching profiles with the end time. If this field
+     * missing, The API matches profiles with create / update timestamp after the
+     * start timestamp.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * End timestamp, matching profiles with the end time. If this field
+     * missing, The API matches profiles with create / update timestamp after the
+     * start timestamp.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + onChanged(); + } else { + endTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * End timestamp, matching profiles with the end time. If this field
+     * missing, The API matches profiles with create / update timestamp after the
+     * start timestamp.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + onChanged(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * End timestamp, matching profiles with the end time. If this field
+     * missing, The API matches profiles with create / update timestamp after the
+     * start timestamp.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (endTime_ != null) { + endTime_ = + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + } else { + endTime_ = value; + } + onChanged(); + } else { + endTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * End timestamp, matching profiles with the end time. If this field
+     * missing, The API matches profiles with create / update timestamp after the
+     * start timestamp.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder clearEndTime() { + if (endTimeBuilder_ == null) { + endTime_ = null; + onChanged(); + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * End timestamp, matching profiles with the end time. If this field
+     * missing, The API matches profiles with create / update timestamp after the
+     * start timestamp.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * End timestamp, matching profiles with the end time. If this field
+     * missing, The API matches profiles with create / update timestamp after the
+     * start timestamp.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * + * + *
+     * Optional.
+     * End timestamp, matching profiles with the end time. If this field
+     * missing, The API matches profiles with create / update timestamp after the
+     * start timestamp.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + private int timeField_ = 0; + /** + * + * + *
+     * Optional.
+     * Specifies which time field to filter profiles.
+     * Defaults to
+     * [TimeField.CREATE_TIME][google.cloud.talent.v4beta1.TimeFilter.TimeField.CREATE_TIME].
+     * 
+ * + * .google.cloud.talent.v4beta1.TimeFilter.TimeField time_field = 3; + */ + public int getTimeFieldValue() { + return timeField_; + } + /** + * + * + *
+     * Optional.
+     * Specifies which time field to filter profiles.
+     * Defaults to
+     * [TimeField.CREATE_TIME][google.cloud.talent.v4beta1.TimeFilter.TimeField.CREATE_TIME].
+     * 
+ * + * .google.cloud.talent.v4beta1.TimeFilter.TimeField time_field = 3; + */ + public Builder setTimeFieldValue(int value) { + timeField_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Specifies which time field to filter profiles.
+     * Defaults to
+     * [TimeField.CREATE_TIME][google.cloud.talent.v4beta1.TimeFilter.TimeField.CREATE_TIME].
+     * 
+ * + * .google.cloud.talent.v4beta1.TimeFilter.TimeField time_field = 3; + */ + public com.google.cloud.talent.v4beta1.TimeFilter.TimeField getTimeField() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.TimeFilter.TimeField result = + com.google.cloud.talent.v4beta1.TimeFilter.TimeField.valueOf(timeField_); + return result == null + ? com.google.cloud.talent.v4beta1.TimeFilter.TimeField.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional.
+     * Specifies which time field to filter profiles.
+     * Defaults to
+     * [TimeField.CREATE_TIME][google.cloud.talent.v4beta1.TimeFilter.TimeField.CREATE_TIME].
+     * 
+ * + * .google.cloud.talent.v4beta1.TimeFilter.TimeField time_field = 3; + */ + public Builder setTimeField(com.google.cloud.talent.v4beta1.TimeFilter.TimeField value) { + if (value == null) { + throw new NullPointerException(); + } + + timeField_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Specifies which time field to filter profiles.
+     * Defaults to
+     * [TimeField.CREATE_TIME][google.cloud.talent.v4beta1.TimeFilter.TimeField.CREATE_TIME].
+     * 
+ * + * .google.cloud.talent.v4beta1.TimeFilter.TimeField time_field = 3; + */ + public Builder clearTimeField() { + + timeField_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.TimeFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.TimeFilter) + private static final com.google.cloud.talent.v4beta1.TimeFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.TimeFilter(); + } + + public static com.google.cloud.talent.v4beta1.TimeFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TimeFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TimeFilter(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.TimeFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimeFilterOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimeFilterOrBuilder.java new file mode 100644 index 000000000000..676b7e48763c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimeFilterOrBuilder.java @@ -0,0 +1,117 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +public interface TimeFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.TimeFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * Start timestamp, matching profiles with the start time. If this field
+   * missing, The API matches profiles with create / update timestamp before the
+   * end timestamp.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + boolean hasStartTime(); + /** + * + * + *
+   * Optional.
+   * Start timestamp, matching profiles with the start time. If this field
+   * missing, The API matches profiles with create / update timestamp before the
+   * end timestamp.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * + * + *
+   * Optional.
+   * Start timestamp, matching profiles with the start time. If this field
+   * missing, The API matches profiles with create / update timestamp before the
+   * end timestamp.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * End timestamp, matching profiles with the end time. If this field
+   * missing, The API matches profiles with create / update timestamp after the
+   * start timestamp.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + boolean hasEndTime(); + /** + * + * + *
+   * Optional.
+   * End timestamp, matching profiles with the end time. If this field
+   * missing, The API matches profiles with create / update timestamp after the
+   * start timestamp.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * + * + *
+   * Optional.
+   * End timestamp, matching profiles with the end time. If this field
+   * missing, The API matches profiles with create / update timestamp after the
+   * start timestamp.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * Specifies which time field to filter profiles.
+   * Defaults to
+   * [TimeField.CREATE_TIME][google.cloud.talent.v4beta1.TimeFilter.TimeField.CREATE_TIME].
+   * 
+ * + * .google.cloud.talent.v4beta1.TimeFilter.TimeField time_field = 3; + */ + int getTimeFieldValue(); + /** + * + * + *
+   * Optional.
+   * Specifies which time field to filter profiles.
+   * Defaults to
+   * [TimeField.CREATE_TIME][google.cloud.talent.v4beta1.TimeFilter.TimeField.CREATE_TIME].
+   * 
+ * + * .google.cloud.talent.v4beta1.TimeFilter.TimeField time_field = 3; + */ + com.google.cloud.talent.v4beta1.TimeFilter.TimeField getTimeField(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimestampRange.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimestampRange.java new file mode 100644 index 000000000000..b6eccef24ff6 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimestampRange.java @@ -0,0 +1,949 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Message representing a period of time between two timestamps.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.TimestampRange} + */ +public final class TimestampRange extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.TimestampRange) + TimestampRangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use TimestampRange.newBuilder() to construct. + private TimestampRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TimestampRange() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TimestampRange( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); + } + startTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_TimestampRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_TimestampRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.TimestampRange.class, + com.google.cloud.talent.v4beta1.TimestampRange.Builder.class); + } + + public static final int START_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
+   * Begin of the period.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public boolean hasStartTime() { + return startTime_ != null; + } + /** + * + * + *
+   * Begin of the period.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + * + * + *
+   * Begin of the period.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return getStartTime(); + } + + public static final int END_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp endTime_; + /** + * + * + *
+   * End of the period.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public boolean hasEndTime() { + return endTime_ != null; + } + /** + * + * + *
+   * End of the period.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + * + * + *
+   * End of the period.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return getEndTime(); + } + + 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 (startTime_ != null) { + output.writeMessage(1, getStartTime()); + } + if (endTime_ != null) { + output.writeMessage(2, getEndTime()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (startTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); + } + if (endTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + } + size += unknownFields.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.cloud.talent.v4beta1.TimestampRange)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.TimestampRange other = + (com.google.cloud.talent.v4beta1.TimestampRange) obj; + + boolean result = true; + result = result && (hasStartTime() == other.hasStartTime()); + if (hasStartTime()) { + result = result && getStartTime().equals(other.getStartTime()); + } + result = result && (hasEndTime() == other.hasEndTime()); + if (hasEndTime()) { + result = result && getEndTime().equals(other.getEndTime()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.TimestampRange parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.TimestampRange parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.TimestampRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.TimestampRange 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.cloud.talent.v4beta1.TimestampRange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.TimestampRange parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.TimestampRange parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.TimestampRange 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.cloud.talent.v4beta1.TimestampRange parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.TimestampRange 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.cloud.talent.v4beta1.TimestampRange parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.TimestampRange 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.cloud.talent.v4beta1.TimestampRange 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; + } + /** + * + * + *
+   * Message representing a period of time between two timestamps.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.TimestampRange} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.TimestampRange) + com.google.cloud.talent.v4beta1.TimestampRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_TimestampRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_TimestampRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.TimestampRange.class, + com.google.cloud.talent.v4beta1.TimestampRange.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.TimestampRange.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (startTimeBuilder_ == null) { + startTime_ = null; + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + if (endTimeBuilder_ == null) { + endTime_ = null; + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CommonProto + .internal_static_google_cloud_talent_v4beta1_TimestampRange_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.TimestampRange getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.TimestampRange.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.TimestampRange build() { + com.google.cloud.talent.v4beta1.TimestampRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.TimestampRange buildPartial() { + com.google.cloud.talent.v4beta1.TimestampRange result = + new com.google.cloud.talent.v4beta1.TimestampRange(this); + if (startTimeBuilder_ == null) { + result.startTime_ = startTime_; + } else { + result.startTime_ = startTimeBuilder_.build(); + } + if (endTimeBuilder_ == null) { + result.endTime_ = endTime_; + } else { + result.endTime_ = endTimeBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.TimestampRange) { + return mergeFrom((com.google.cloud.talent.v4beta1.TimestampRange) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.TimestampRange other) { + if (other == com.google.cloud.talent.v4beta1.TimestampRange.getDefaultInstance()) return this; + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.TimestampRange parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.TimestampRange) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.Timestamp startTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + /** + * + * + *
+     * Begin of the period.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public boolean hasStartTime() { + return startTimeBuilder_ != null || startTime_ != null; + } + /** + * + * + *
+     * Begin of the period.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Begin of the period.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + onChanged(); + } else { + startTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Begin of the period.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + onChanged(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Begin of the period.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (startTime_ != null) { + startTime_ = + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + } else { + startTime_ = value; + } + onChanged(); + } else { + startTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Begin of the period.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder clearStartTime() { + if (startTimeBuilder_ == null) { + startTime_ = null; + onChanged(); + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Begin of the period.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Begin of the period.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + * + * + *
+     * Begin of the period.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + /** + * + * + *
+     * End of the period.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public boolean hasEndTime() { + return endTimeBuilder_ != null || endTime_ != null; + } + /** + * + * + *
+     * End of the period.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * End of the period.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + onChanged(); + } else { + endTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * End of the period.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + onChanged(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * End of the period.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (endTime_ != null) { + endTime_ = + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + } else { + endTime_ = value; + } + onChanged(); + } else { + endTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * End of the period.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder clearEndTime() { + if (endTimeBuilder_ == null) { + endTime_ = null; + onChanged(); + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * End of the period.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * End of the period.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * + * + *
+     * End of the period.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.TimestampRange) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.TimestampRange) + private static final com.google.cloud.talent.v4beta1.TimestampRange DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.TimestampRange(); + } + + public static com.google.cloud.talent.v4beta1.TimestampRange getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TimestampRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TimestampRange(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.TimestampRange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimestampRangeOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimestampRangeOrBuilder.java new file mode 100644 index 000000000000..cbce38979c1d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimestampRangeOrBuilder.java @@ -0,0 +1,72 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +public interface TimestampRangeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.TimestampRange) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Begin of the period.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + boolean hasStartTime(); + /** + * + * + *
+   * Begin of the period.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * + * + *
+   * Begin of the period.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
+   * End of the period.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + boolean hasEndTime(); + /** + * + * + *
+   * End of the period.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * + * + *
+   * End of the period.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateCompanyRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateCompanyRequest.java new file mode 100644 index 000000000000..7e3f8239c7cc --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateCompanyRequest.java @@ -0,0 +1,1084 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/company_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Request for updating a specified company.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.UpdateCompanyRequest} + */ +public final class UpdateCompanyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.UpdateCompanyRequest) + UpdateCompanyRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateCompanyRequest.newBuilder() to construct. + private UpdateCompanyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateCompanyRequest() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateCompanyRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.talent.v4beta1.Company.Builder subBuilder = null; + if (company_ != null) { + subBuilder = company_.toBuilder(); + } + company_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Company.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(company_); + company_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateCompanyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateCompanyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.UpdateCompanyRequest.class, + com.google.cloud.talent.v4beta1.UpdateCompanyRequest.Builder.class); + } + + public static final int COMPANY_FIELD_NUMBER = 1; + private com.google.cloud.talent.v4beta1.Company company_; + /** + * + * + *
+   * Required.
+   * The company resource to replace the current resource in the system.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company company = 1; + */ + public boolean hasCompany() { + return company_ != null; + } + /** + * + * + *
+   * Required.
+   * The company resource to replace the current resource in the system.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company company = 1; + */ + public com.google.cloud.talent.v4beta1.Company getCompany() { + return company_ == null + ? com.google.cloud.talent.v4beta1.Company.getDefaultInstance() + : company_; + } + /** + * + * + *
+   * Required.
+   * The company resource to replace the current resource in the system.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company company = 1; + */ + public com.google.cloud.talent.v4beta1.CompanyOrBuilder getCompanyOrBuilder() { + return getCompany(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * If
+   * [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask]
+   * is provided, only the specified fields in
+   * [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are
+   * updated. Otherwise all the fields are updated.
+   * A field mask to specify the company fields to be updated. Only
+   * top level fields of [Company][google.cloud.talent.v4beta1.Company] are
+   * supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * If
+   * [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask]
+   * is provided, only the specified fields in
+   * [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are
+   * updated. Otherwise all the fields are updated.
+   * A field mask to specify the company fields to be updated. Only
+   * top level fields of [Company][google.cloud.talent.v4beta1.Company] are
+   * supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * If
+   * [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask]
+   * is provided, only the specified fields in
+   * [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are
+   * updated. Otherwise all the fields are updated.
+   * A field mask to specify the company fields to be updated. Only
+   * top level fields of [Company][google.cloud.talent.v4beta1.Company] are
+   * supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + 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 (company_ != null) { + output.writeMessage(1, getCompany()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (company_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCompany()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += unknownFields.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.cloud.talent.v4beta1.UpdateCompanyRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.UpdateCompanyRequest other = + (com.google.cloud.talent.v4beta1.UpdateCompanyRequest) obj; + + boolean result = true; + result = result && (hasCompany() == other.hasCompany()); + if (hasCompany()) { + result = result && getCompany().equals(other.getCompany()); + } + result = result && (hasUpdateMask() == other.hasUpdateMask()); + if (hasUpdateMask()) { + result = result && getUpdateMask().equals(other.getUpdateMask()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCompany()) { + hash = (37 * hash) + COMPANY_FIELD_NUMBER; + hash = (53 * hash) + getCompany().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.UpdateCompanyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.UpdateCompanyRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.UpdateCompanyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.UpdateCompanyRequest 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.cloud.talent.v4beta1.UpdateCompanyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.UpdateCompanyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.UpdateCompanyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.UpdateCompanyRequest 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.cloud.talent.v4beta1.UpdateCompanyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.UpdateCompanyRequest 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.cloud.talent.v4beta1.UpdateCompanyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.UpdateCompanyRequest 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.cloud.talent.v4beta1.UpdateCompanyRequest 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; + } + /** + * + * + *
+   * Request for updating a specified company.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.UpdateCompanyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.UpdateCompanyRequest) + com.google.cloud.talent.v4beta1.UpdateCompanyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateCompanyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateCompanyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.UpdateCompanyRequest.class, + com.google.cloud.talent.v4beta1.UpdateCompanyRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.UpdateCompanyRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (companyBuilder_ == null) { + company_ = null; + } else { + company_ = null; + companyBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.CompanyServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateCompanyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.UpdateCompanyRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.UpdateCompanyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.UpdateCompanyRequest build() { + com.google.cloud.talent.v4beta1.UpdateCompanyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.UpdateCompanyRequest buildPartial() { + com.google.cloud.talent.v4beta1.UpdateCompanyRequest result = + new com.google.cloud.talent.v4beta1.UpdateCompanyRequest(this); + if (companyBuilder_ == null) { + result.company_ = company_; + } else { + result.company_ = companyBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.UpdateCompanyRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.UpdateCompanyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.UpdateCompanyRequest other) { + if (other == com.google.cloud.talent.v4beta1.UpdateCompanyRequest.getDefaultInstance()) + return this; + if (other.hasCompany()) { + mergeCompany(other.getCompany()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.UpdateCompanyRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.UpdateCompanyRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.talent.v4beta1.Company company_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Company, + com.google.cloud.talent.v4beta1.Company.Builder, + com.google.cloud.talent.v4beta1.CompanyOrBuilder> + companyBuilder_; + /** + * + * + *
+     * Required.
+     * The company resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 1; + */ + public boolean hasCompany() { + return companyBuilder_ != null || company_ != null; + } + /** + * + * + *
+     * Required.
+     * The company resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 1; + */ + public com.google.cloud.talent.v4beta1.Company getCompany() { + if (companyBuilder_ == null) { + return company_ == null + ? com.google.cloud.talent.v4beta1.Company.getDefaultInstance() + : company_; + } else { + return companyBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required.
+     * The company resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 1; + */ + public Builder setCompany(com.google.cloud.talent.v4beta1.Company value) { + if (companyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + company_ = value; + onChanged(); + } else { + companyBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The company resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 1; + */ + public Builder setCompany(com.google.cloud.talent.v4beta1.Company.Builder builderForValue) { + if (companyBuilder_ == null) { + company_ = builderForValue.build(); + onChanged(); + } else { + companyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The company resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 1; + */ + public Builder mergeCompany(com.google.cloud.talent.v4beta1.Company value) { + if (companyBuilder_ == null) { + if (company_ != null) { + company_ = + com.google.cloud.talent.v4beta1.Company.newBuilder(company_) + .mergeFrom(value) + .buildPartial(); + } else { + company_ = value; + } + onChanged(); + } else { + companyBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The company resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 1; + */ + public Builder clearCompany() { + if (companyBuilder_ == null) { + company_ = null; + onChanged(); + } else { + company_ = null; + companyBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The company resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 1; + */ + public com.google.cloud.talent.v4beta1.Company.Builder getCompanyBuilder() { + + onChanged(); + return getCompanyFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required.
+     * The company resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 1; + */ + public com.google.cloud.talent.v4beta1.CompanyOrBuilder getCompanyOrBuilder() { + if (companyBuilder_ != null) { + return companyBuilder_.getMessageOrBuilder(); + } else { + return company_ == null + ? com.google.cloud.talent.v4beta1.Company.getDefaultInstance() + : company_; + } + } + /** + * + * + *
+     * Required.
+     * The company resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Company company = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Company, + com.google.cloud.talent.v4beta1.Company.Builder, + com.google.cloud.talent.v4beta1.CompanyOrBuilder> + getCompanyFieldBuilder() { + if (companyBuilder_ == null) { + companyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Company, + com.google.cloud.talent.v4beta1.Company.Builder, + com.google.cloud.talent.v4beta1.CompanyOrBuilder>( + getCompany(), getParentForChildren(), isClean()); + company_ = null; + } + return companyBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask]
+     * is provided, only the specified fields in
+     * [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the company fields to be updated. Only
+     * top level fields of [Company][google.cloud.talent.v4beta1.Company] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask]
+     * is provided, only the specified fields in
+     * [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the company fields to be updated. Only
+     * top level fields of [Company][google.cloud.talent.v4beta1.Company] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask]
+     * is provided, only the specified fields in
+     * [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the company fields to be updated. Only
+     * top level fields of [Company][google.cloud.talent.v4beta1.Company] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask]
+     * is provided, only the specified fields in
+     * [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the company fields to be updated. Only
+     * top level fields of [Company][google.cloud.talent.v4beta1.Company] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask]
+     * is provided, only the specified fields in
+     * [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the company fields to be updated. Only
+     * top level fields of [Company][google.cloud.talent.v4beta1.Company] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask]
+     * is provided, only the specified fields in
+     * [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the company fields to be updated. Only
+     * top level fields of [Company][google.cloud.talent.v4beta1.Company] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask]
+     * is provided, only the specified fields in
+     * [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the company fields to be updated. Only
+     * top level fields of [Company][google.cloud.talent.v4beta1.Company] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask]
+     * is provided, only the specified fields in
+     * [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the company fields to be updated. Only
+     * top level fields of [Company][google.cloud.talent.v4beta1.Company] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask]
+     * is provided, only the specified fields in
+     * [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the company fields to be updated. Only
+     * top level fields of [Company][google.cloud.talent.v4beta1.Company] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.UpdateCompanyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.UpdateCompanyRequest) + private static final com.google.cloud.talent.v4beta1.UpdateCompanyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.UpdateCompanyRequest(); + } + + public static com.google.cloud.talent.v4beta1.UpdateCompanyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCompanyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateCompanyRequest(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.UpdateCompanyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateCompanyRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateCompanyRequestOrBuilder.java new file mode 100644 index 000000000000..21a3fcaa1dc0 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateCompanyRequestOrBuilder.java @@ -0,0 +1,102 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/company_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface UpdateCompanyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.UpdateCompanyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The company resource to replace the current resource in the system.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company company = 1; + */ + boolean hasCompany(); + /** + * + * + *
+   * Required.
+   * The company resource to replace the current resource in the system.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company company = 1; + */ + com.google.cloud.talent.v4beta1.Company getCompany(); + /** + * + * + *
+   * Required.
+   * The company resource to replace the current resource in the system.
+   * 
+ * + * .google.cloud.talent.v4beta1.Company company = 1; + */ + com.google.cloud.talent.v4beta1.CompanyOrBuilder getCompanyOrBuilder(); + + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * If
+   * [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask]
+   * is provided, only the specified fields in
+   * [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are
+   * updated. Otherwise all the fields are updated.
+   * A field mask to specify the company fields to be updated. Only
+   * top level fields of [Company][google.cloud.talent.v4beta1.Company] are
+   * supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * If
+   * [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask]
+   * is provided, only the specified fields in
+   * [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are
+   * updated. Otherwise all the fields are updated.
+   * A field mask to specify the company fields to be updated. Only
+   * top level fields of [Company][google.cloud.talent.v4beta1.Company] are
+   * supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * If
+   * [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask]
+   * is provided, only the specified fields in
+   * [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are
+   * updated. Otherwise all the fields are updated.
+   * A field mask to specify the company fields to be updated. Only
+   * top level fields of [Company][google.cloud.talent.v4beta1.Company] are
+   * supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateJobRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateJobRequest.java new file mode 100644 index 000000000000..d86eb75536e7 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateJobRequest.java @@ -0,0 +1,1053 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Update job request.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.UpdateJobRequest} + */ +public final class UpdateJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.UpdateJobRequest) + UpdateJobRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateJobRequest.newBuilder() to construct. + private UpdateJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateJobRequest() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateJobRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.talent.v4beta1.Job.Builder subBuilder = null; + if (job_ != null) { + subBuilder = job_.toBuilder(); + } + job_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Job.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(job_); + job_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.UpdateJobRequest.class, + com.google.cloud.talent.v4beta1.UpdateJobRequest.Builder.class); + } + + public static final int JOB_FIELD_NUMBER = 1; + private com.google.cloud.talent.v4beta1.Job job_; + /** + * + * + *
+   * Required.
+   * The Job to be updated.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public boolean hasJob() { + return job_ != null; + } + /** + * + * + *
+   * Required.
+   * The Job to be updated.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public com.google.cloud.talent.v4beta1.Job getJob() { + return job_ == null ? com.google.cloud.talent.v4beta1.Job.getDefaultInstance() : job_; + } + /** + * + * + *
+   * Required.
+   * The Job to be updated.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public com.google.cloud.talent.v4beta1.JobOrBuilder getJobOrBuilder() { + return getJob(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Optional but strongly recommended to be provided for the best service
+   * experience.
+   * If [update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask]
+   * is provided, only the specified fields in
+   * [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated.
+   * Otherwise all the fields are updated.
+   * A field mask to restrict the fields that are updated. Only
+   * top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Optional but strongly recommended to be provided for the best service
+   * experience.
+   * If [update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask]
+   * is provided, only the specified fields in
+   * [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated.
+   * Otherwise all the fields are updated.
+   * A field mask to restrict the fields that are updated. Only
+   * top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Optional but strongly recommended to be provided for the best service
+   * experience.
+   * If [update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask]
+   * is provided, only the specified fields in
+   * [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated.
+   * Otherwise all the fields are updated.
+   * A field mask to restrict the fields that are updated. Only
+   * top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + 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 (job_ != null) { + output.writeMessage(1, getJob()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (job_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getJob()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += unknownFields.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.cloud.talent.v4beta1.UpdateJobRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.UpdateJobRequest other = + (com.google.cloud.talent.v4beta1.UpdateJobRequest) obj; + + boolean result = true; + result = result && (hasJob() == other.hasJob()); + if (hasJob()) { + result = result && getJob().equals(other.getJob()); + } + result = result && (hasUpdateMask() == other.hasUpdateMask()); + if (hasUpdateMask()) { + result = result && getUpdateMask().equals(other.getUpdateMask()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasJob()) { + hash = (37 * hash) + JOB_FIELD_NUMBER; + hash = (53 * hash) + getJob().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.UpdateJobRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.UpdateJobRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.UpdateJobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.UpdateJobRequest 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.cloud.talent.v4beta1.UpdateJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.UpdateJobRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.UpdateJobRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.UpdateJobRequest 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.cloud.talent.v4beta1.UpdateJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.UpdateJobRequest 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.cloud.talent.v4beta1.UpdateJobRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.UpdateJobRequest 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.cloud.talent.v4beta1.UpdateJobRequest 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; + } + /** + * + * + *
+   * Input only.
+   * Update job request.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.UpdateJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.UpdateJobRequest) + com.google.cloud.talent.v4beta1.UpdateJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.UpdateJobRequest.class, + com.google.cloud.talent.v4beta1.UpdateJobRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.UpdateJobRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (jobBuilder_ == null) { + job_ = null; + } else { + job_ = null; + jobBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.JobServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.UpdateJobRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.UpdateJobRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.UpdateJobRequest build() { + com.google.cloud.talent.v4beta1.UpdateJobRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.UpdateJobRequest buildPartial() { + com.google.cloud.talent.v4beta1.UpdateJobRequest result = + new com.google.cloud.talent.v4beta1.UpdateJobRequest(this); + if (jobBuilder_ == null) { + result.job_ = job_; + } else { + result.job_ = jobBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.UpdateJobRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.UpdateJobRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.UpdateJobRequest other) { + if (other == com.google.cloud.talent.v4beta1.UpdateJobRequest.getDefaultInstance()) + return this; + if (other.hasJob()) { + mergeJob(other.getJob()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.UpdateJobRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.talent.v4beta1.UpdateJobRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.talent.v4beta1.Job job_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job, + com.google.cloud.talent.v4beta1.Job.Builder, + com.google.cloud.talent.v4beta1.JobOrBuilder> + jobBuilder_; + /** + * + * + *
+     * Required.
+     * The Job to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public boolean hasJob() { + return jobBuilder_ != null || job_ != null; + } + /** + * + * + *
+     * Required.
+     * The Job to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public com.google.cloud.talent.v4beta1.Job getJob() { + if (jobBuilder_ == null) { + return job_ == null ? com.google.cloud.talent.v4beta1.Job.getDefaultInstance() : job_; + } else { + return jobBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required.
+     * The Job to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public Builder setJob(com.google.cloud.talent.v4beta1.Job value) { + if (jobBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + job_ = value; + onChanged(); + } else { + jobBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The Job to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public Builder setJob(com.google.cloud.talent.v4beta1.Job.Builder builderForValue) { + if (jobBuilder_ == null) { + job_ = builderForValue.build(); + onChanged(); + } else { + jobBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The Job to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public Builder mergeJob(com.google.cloud.talent.v4beta1.Job value) { + if (jobBuilder_ == null) { + if (job_ != null) { + job_ = + com.google.cloud.talent.v4beta1.Job.newBuilder(job_).mergeFrom(value).buildPartial(); + } else { + job_ = value; + } + onChanged(); + } else { + jobBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The Job to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public Builder clearJob() { + if (jobBuilder_ == null) { + job_ = null; + onChanged(); + } else { + job_ = null; + jobBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The Job to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public com.google.cloud.talent.v4beta1.Job.Builder getJobBuilder() { + + onChanged(); + return getJobFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required.
+     * The Job to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + public com.google.cloud.talent.v4beta1.JobOrBuilder getJobOrBuilder() { + if (jobBuilder_ != null) { + return jobBuilder_.getMessageOrBuilder(); + } else { + return job_ == null ? com.google.cloud.talent.v4beta1.Job.getDefaultInstance() : job_; + } + } + /** + * + * + *
+     * Required.
+     * The Job to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job, + com.google.cloud.talent.v4beta1.Job.Builder, + com.google.cloud.talent.v4beta1.JobOrBuilder> + getJobFieldBuilder() { + if (jobBuilder_ == null) { + jobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Job, + com.google.cloud.talent.v4beta1.Job.Builder, + com.google.cloud.talent.v4beta1.JobOrBuilder>( + getJob(), getParentForChildren(), isClean()); + job_ = null; + } + return jobBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Optional but strongly recommended to be provided for the best service
+     * experience.
+     * If [update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask]
+     * is provided, only the specified fields in
+     * [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated.
+     * Otherwise all the fields are updated.
+     * A field mask to restrict the fields that are updated. Only
+     * top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * Optional but strongly recommended to be provided for the best service
+     * experience.
+     * If [update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask]
+     * is provided, only the specified fields in
+     * [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated.
+     * Otherwise all the fields are updated.
+     * A field mask to restrict the fields that are updated. Only
+     * top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional but strongly recommended to be provided for the best service
+     * experience.
+     * If [update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask]
+     * is provided, only the specified fields in
+     * [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated.
+     * Otherwise all the fields are updated.
+     * A field mask to restrict the fields that are updated. Only
+     * top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional but strongly recommended to be provided for the best service
+     * experience.
+     * If [update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask]
+     * is provided, only the specified fields in
+     * [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated.
+     * Otherwise all the fields are updated.
+     * A field mask to restrict the fields that are updated. Only
+     * top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional but strongly recommended to be provided for the best service
+     * experience.
+     * If [update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask]
+     * is provided, only the specified fields in
+     * [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated.
+     * Otherwise all the fields are updated.
+     * A field mask to restrict the fields that are updated. Only
+     * top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional but strongly recommended to be provided for the best service
+     * experience.
+     * If [update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask]
+     * is provided, only the specified fields in
+     * [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated.
+     * Otherwise all the fields are updated.
+     * A field mask to restrict the fields that are updated. Only
+     * top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional but strongly recommended to be provided for the best service
+     * experience.
+     * If [update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask]
+     * is provided, only the specified fields in
+     * [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated.
+     * Otherwise all the fields are updated.
+     * A field mask to restrict the fields that are updated. Only
+     * top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional but strongly recommended to be provided for the best service
+     * experience.
+     * If [update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask]
+     * is provided, only the specified fields in
+     * [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated.
+     * Otherwise all the fields are updated.
+     * A field mask to restrict the fields that are updated. Only
+     * top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Optional but strongly recommended to be provided for the best service
+     * experience.
+     * If [update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask]
+     * is provided, only the specified fields in
+     * [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated.
+     * Otherwise all the fields are updated.
+     * A field mask to restrict the fields that are updated. Only
+     * top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.UpdateJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.UpdateJobRequest) + private static final com.google.cloud.talent.v4beta1.UpdateJobRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.UpdateJobRequest(); + } + + public static com.google.cloud.talent.v4beta1.UpdateJobRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateJobRequest(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.UpdateJobRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateJobRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateJobRequestOrBuilder.java new file mode 100644 index 000000000000..dc28ba2a0d01 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateJobRequestOrBuilder.java @@ -0,0 +1,96 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/job_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface UpdateJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.UpdateJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The Job to be updated.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + boolean hasJob(); + /** + * + * + *
+   * Required.
+   * The Job to be updated.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + com.google.cloud.talent.v4beta1.Job getJob(); + /** + * + * + *
+   * Required.
+   * The Job to be updated.
+   * 
+ * + * .google.cloud.talent.v4beta1.Job job = 1; + */ + com.google.cloud.talent.v4beta1.JobOrBuilder getJobOrBuilder(); + + /** + * + * + *
+   * Optional but strongly recommended to be provided for the best service
+   * experience.
+   * If [update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask]
+   * is provided, only the specified fields in
+   * [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated.
+   * Otherwise all the fields are updated.
+   * A field mask to restrict the fields that are updated. Only
+   * top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Optional but strongly recommended to be provided for the best service
+   * experience.
+   * If [update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask]
+   * is provided, only the specified fields in
+   * [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated.
+   * Otherwise all the fields are updated.
+   * A field mask to restrict the fields that are updated. Only
+   * top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Optional but strongly recommended to be provided for the best service
+   * experience.
+   * If [update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask]
+   * is provided, only the specified fields in
+   * [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated.
+   * Otherwise all the fields are updated.
+   * A field mask to restrict the fields that are updated. Only
+   * top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateProfileRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateProfileRequest.java new file mode 100644 index 000000000000..7275224ce203 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateProfileRequest.java @@ -0,0 +1,1288 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Update profile request
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.UpdateProfileRequest} + */ +public final class UpdateProfileRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.UpdateProfileRequest) + UpdateProfileRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateProfileRequest.newBuilder() to construct. + private UpdateProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateProfileRequest() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateProfileRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.talent.v4beta1.Profile.Builder subBuilder = null; + if (profile_ != null) { + subBuilder = profile_.toBuilder(); + } + profile_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Profile.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(profile_); + profile_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateProfileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateProfileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.UpdateProfileRequest.class, + com.google.cloud.talent.v4beta1.UpdateProfileRequest.Builder.class); + } + + public static final int PROFILE_FIELD_NUMBER = 1; + private com.google.cloud.talent.v4beta1.Profile profile_; + /** + * + * + *
+   * Required.
+   * Profile to be updated.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public boolean hasProfile() { + return profile_ != null; + } + /** + * + * + *
+   * Required.
+   * Profile to be updated.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public com.google.cloud.talent.v4beta1.Profile getProfile() { + return profile_ == null + ? com.google.cloud.talent.v4beta1.Profile.getDefaultInstance() + : profile_; + } + /** + * + * + *
+   * Required.
+   * Profile to be updated.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfileOrBuilder() { + return getProfile(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Optional.
+   * A field mask to specify the profile fields to update.
+   * A full update is performed if it is unset.
+   * Valid values are:
+   * * externalId
+   * * source
+   * * uri
+   * * isHirable
+   * * createTime
+   * * updateTime
+   * * resumeHrxml
+   * * personNames
+   * * addresses
+   * * emailAddresses
+   * * phoneNumbers
+   * * personalUris
+   * * additionalContactInfo
+   * * employmentRecords
+   * * educationRecords
+   * * skills
+   * * projects
+   * * publications
+   * * patents
+   * * certifications
+   * * jobApplications
+   * * recruitingNotes
+   * * customAttributes
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Optional.
+   * A field mask to specify the profile fields to update.
+   * A full update is performed if it is unset.
+   * Valid values are:
+   * * externalId
+   * * source
+   * * uri
+   * * isHirable
+   * * createTime
+   * * updateTime
+   * * resumeHrxml
+   * * personNames
+   * * addresses
+   * * emailAddresses
+   * * phoneNumbers
+   * * personalUris
+   * * additionalContactInfo
+   * * employmentRecords
+   * * educationRecords
+   * * skills
+   * * projects
+   * * publications
+   * * patents
+   * * certifications
+   * * jobApplications
+   * * recruitingNotes
+   * * customAttributes
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Optional.
+   * A field mask to specify the profile fields to update.
+   * A full update is performed if it is unset.
+   * Valid values are:
+   * * externalId
+   * * source
+   * * uri
+   * * isHirable
+   * * createTime
+   * * updateTime
+   * * resumeHrxml
+   * * personNames
+   * * addresses
+   * * emailAddresses
+   * * phoneNumbers
+   * * personalUris
+   * * additionalContactInfo
+   * * employmentRecords
+   * * educationRecords
+   * * skills
+   * * projects
+   * * publications
+   * * patents
+   * * certifications
+   * * jobApplications
+   * * recruitingNotes
+   * * customAttributes
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + 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 (profile_ != null) { + output.writeMessage(1, getProfile()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (profile_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProfile()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += unknownFields.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.cloud.talent.v4beta1.UpdateProfileRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.UpdateProfileRequest other = + (com.google.cloud.talent.v4beta1.UpdateProfileRequest) obj; + + boolean result = true; + result = result && (hasProfile() == other.hasProfile()); + if (hasProfile()) { + result = result && getProfile().equals(other.getProfile()); + } + result = result && (hasUpdateMask() == other.hasUpdateMask()); + if (hasUpdateMask()) { + result = result && getUpdateMask().equals(other.getUpdateMask()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasProfile()) { + hash = (37 * hash) + PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getProfile().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.UpdateProfileRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.UpdateProfileRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.UpdateProfileRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.UpdateProfileRequest 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.cloud.talent.v4beta1.UpdateProfileRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.UpdateProfileRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.UpdateProfileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.UpdateProfileRequest 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.cloud.talent.v4beta1.UpdateProfileRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.UpdateProfileRequest 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.cloud.talent.v4beta1.UpdateProfileRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.UpdateProfileRequest 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.cloud.talent.v4beta1.UpdateProfileRequest 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; + } + /** + * + * + *
+   * Update profile request
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.UpdateProfileRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.UpdateProfileRequest) + com.google.cloud.talent.v4beta1.UpdateProfileRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateProfileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateProfileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.UpdateProfileRequest.class, + com.google.cloud.talent.v4beta1.UpdateProfileRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.UpdateProfileRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (profileBuilder_ == null) { + profile_ = null; + } else { + profile_ = null; + profileBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.ProfileServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateProfileRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.UpdateProfileRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.UpdateProfileRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.UpdateProfileRequest build() { + com.google.cloud.talent.v4beta1.UpdateProfileRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.UpdateProfileRequest buildPartial() { + com.google.cloud.talent.v4beta1.UpdateProfileRequest result = + new com.google.cloud.talent.v4beta1.UpdateProfileRequest(this); + if (profileBuilder_ == null) { + result.profile_ = profile_; + } else { + result.profile_ = profileBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.UpdateProfileRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.UpdateProfileRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.UpdateProfileRequest other) { + if (other == com.google.cloud.talent.v4beta1.UpdateProfileRequest.getDefaultInstance()) + return this; + if (other.hasProfile()) { + mergeProfile(other.getProfile()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.UpdateProfileRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.UpdateProfileRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.talent.v4beta1.Profile profile_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder> + profileBuilder_; + /** + * + * + *
+     * Required.
+     * Profile to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public boolean hasProfile() { + return profileBuilder_ != null || profile_ != null; + } + /** + * + * + *
+     * Required.
+     * Profile to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public com.google.cloud.talent.v4beta1.Profile getProfile() { + if (profileBuilder_ == null) { + return profile_ == null + ? com.google.cloud.talent.v4beta1.Profile.getDefaultInstance() + : profile_; + } else { + return profileBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required.
+     * Profile to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public Builder setProfile(com.google.cloud.talent.v4beta1.Profile value) { + if (profileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + profile_ = value; + onChanged(); + } else { + profileBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * Profile to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public Builder setProfile(com.google.cloud.talent.v4beta1.Profile.Builder builderForValue) { + if (profileBuilder_ == null) { + profile_ = builderForValue.build(); + onChanged(); + } else { + profileBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * Profile to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public Builder mergeProfile(com.google.cloud.talent.v4beta1.Profile value) { + if (profileBuilder_ == null) { + if (profile_ != null) { + profile_ = + com.google.cloud.talent.v4beta1.Profile.newBuilder(profile_) + .mergeFrom(value) + .buildPartial(); + } else { + profile_ = value; + } + onChanged(); + } else { + profileBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * Profile to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public Builder clearProfile() { + if (profileBuilder_ == null) { + profile_ = null; + onChanged(); + } else { + profile_ = null; + profileBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required.
+     * Profile to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public com.google.cloud.talent.v4beta1.Profile.Builder getProfileBuilder() { + + onChanged(); + return getProfileFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required.
+     * Profile to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + public com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfileOrBuilder() { + if (profileBuilder_ != null) { + return profileBuilder_.getMessageOrBuilder(); + } else { + return profile_ == null + ? com.google.cloud.talent.v4beta1.Profile.getDefaultInstance() + : profile_; + } + } + /** + * + * + *
+     * Required.
+     * Profile to be updated.
+     * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder> + getProfileFieldBuilder() { + if (profileBuilder_ == null) { + profileBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Profile, + com.google.cloud.talent.v4beta1.Profile.Builder, + com.google.cloud.talent.v4beta1.ProfileOrBuilder>( + getProfile(), getParentForChildren(), isClean()); + profile_ = null; + } + return profileBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to update.
+     * A full update is performed if it is unset.
+     * Valid values are:
+     * * externalId
+     * * source
+     * * uri
+     * * isHirable
+     * * createTime
+     * * updateTime
+     * * resumeHrxml
+     * * personNames
+     * * addresses
+     * * emailAddresses
+     * * phoneNumbers
+     * * personalUris
+     * * additionalContactInfo
+     * * employmentRecords
+     * * educationRecords
+     * * skills
+     * * projects
+     * * publications
+     * * patents
+     * * certifications
+     * * jobApplications
+     * * recruitingNotes
+     * * customAttributes
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to update.
+     * A full update is performed if it is unset.
+     * Valid values are:
+     * * externalId
+     * * source
+     * * uri
+     * * isHirable
+     * * createTime
+     * * updateTime
+     * * resumeHrxml
+     * * personNames
+     * * addresses
+     * * emailAddresses
+     * * phoneNumbers
+     * * personalUris
+     * * additionalContactInfo
+     * * employmentRecords
+     * * educationRecords
+     * * skills
+     * * projects
+     * * publications
+     * * patents
+     * * certifications
+     * * jobApplications
+     * * recruitingNotes
+     * * customAttributes
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to update.
+     * A full update is performed if it is unset.
+     * Valid values are:
+     * * externalId
+     * * source
+     * * uri
+     * * isHirable
+     * * createTime
+     * * updateTime
+     * * resumeHrxml
+     * * personNames
+     * * addresses
+     * * emailAddresses
+     * * phoneNumbers
+     * * personalUris
+     * * additionalContactInfo
+     * * employmentRecords
+     * * educationRecords
+     * * skills
+     * * projects
+     * * publications
+     * * patents
+     * * certifications
+     * * jobApplications
+     * * recruitingNotes
+     * * customAttributes
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to update.
+     * A full update is performed if it is unset.
+     * Valid values are:
+     * * externalId
+     * * source
+     * * uri
+     * * isHirable
+     * * createTime
+     * * updateTime
+     * * resumeHrxml
+     * * personNames
+     * * addresses
+     * * emailAddresses
+     * * phoneNumbers
+     * * personalUris
+     * * additionalContactInfo
+     * * employmentRecords
+     * * educationRecords
+     * * skills
+     * * projects
+     * * publications
+     * * patents
+     * * certifications
+     * * jobApplications
+     * * recruitingNotes
+     * * customAttributes
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to update.
+     * A full update is performed if it is unset.
+     * Valid values are:
+     * * externalId
+     * * source
+     * * uri
+     * * isHirable
+     * * createTime
+     * * updateTime
+     * * resumeHrxml
+     * * personNames
+     * * addresses
+     * * emailAddresses
+     * * phoneNumbers
+     * * personalUris
+     * * additionalContactInfo
+     * * employmentRecords
+     * * educationRecords
+     * * skills
+     * * projects
+     * * publications
+     * * patents
+     * * certifications
+     * * jobApplications
+     * * recruitingNotes
+     * * customAttributes
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to update.
+     * A full update is performed if it is unset.
+     * Valid values are:
+     * * externalId
+     * * source
+     * * uri
+     * * isHirable
+     * * createTime
+     * * updateTime
+     * * resumeHrxml
+     * * personNames
+     * * addresses
+     * * emailAddresses
+     * * phoneNumbers
+     * * personalUris
+     * * additionalContactInfo
+     * * employmentRecords
+     * * educationRecords
+     * * skills
+     * * projects
+     * * publications
+     * * patents
+     * * certifications
+     * * jobApplications
+     * * recruitingNotes
+     * * customAttributes
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to update.
+     * A full update is performed if it is unset.
+     * Valid values are:
+     * * externalId
+     * * source
+     * * uri
+     * * isHirable
+     * * createTime
+     * * updateTime
+     * * resumeHrxml
+     * * personNames
+     * * addresses
+     * * emailAddresses
+     * * phoneNumbers
+     * * personalUris
+     * * additionalContactInfo
+     * * employmentRecords
+     * * educationRecords
+     * * skills
+     * * projects
+     * * publications
+     * * patents
+     * * certifications
+     * * jobApplications
+     * * recruitingNotes
+     * * customAttributes
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to update.
+     * A full update is performed if it is unset.
+     * Valid values are:
+     * * externalId
+     * * source
+     * * uri
+     * * isHirable
+     * * createTime
+     * * updateTime
+     * * resumeHrxml
+     * * personNames
+     * * addresses
+     * * emailAddresses
+     * * phoneNumbers
+     * * personalUris
+     * * additionalContactInfo
+     * * employmentRecords
+     * * educationRecords
+     * * skills
+     * * projects
+     * * publications
+     * * patents
+     * * certifications
+     * * jobApplications
+     * * recruitingNotes
+     * * customAttributes
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Optional.
+     * A field mask to specify the profile fields to update.
+     * A full update is performed if it is unset.
+     * Valid values are:
+     * * externalId
+     * * source
+     * * uri
+     * * isHirable
+     * * createTime
+     * * updateTime
+     * * resumeHrxml
+     * * personNames
+     * * addresses
+     * * emailAddresses
+     * * phoneNumbers
+     * * personalUris
+     * * additionalContactInfo
+     * * employmentRecords
+     * * educationRecords
+     * * skills
+     * * projects
+     * * publications
+     * * patents
+     * * certifications
+     * * jobApplications
+     * * recruitingNotes
+     * * customAttributes
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.UpdateProfileRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.UpdateProfileRequest) + private static final com.google.cloud.talent.v4beta1.UpdateProfileRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.UpdateProfileRequest(); + } + + public static com.google.cloud.talent.v4beta1.UpdateProfileRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateProfileRequest(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.UpdateProfileRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateProfileRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateProfileRequestOrBuilder.java new file mode 100644 index 000000000000..90c17d7b42f1 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateProfileRequestOrBuilder.java @@ -0,0 +1,153 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/profile_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface UpdateProfileRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.UpdateProfileRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * Profile to be updated.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + boolean hasProfile(); + /** + * + * + *
+   * Required.
+   * Profile to be updated.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + com.google.cloud.talent.v4beta1.Profile getProfile(); + /** + * + * + *
+   * Required.
+   * Profile to be updated.
+   * 
+ * + * .google.cloud.talent.v4beta1.Profile profile = 1; + */ + com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfileOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * A field mask to specify the profile fields to update.
+   * A full update is performed if it is unset.
+   * Valid values are:
+   * * externalId
+   * * source
+   * * uri
+   * * isHirable
+   * * createTime
+   * * updateTime
+   * * resumeHrxml
+   * * personNames
+   * * addresses
+   * * emailAddresses
+   * * phoneNumbers
+   * * personalUris
+   * * additionalContactInfo
+   * * employmentRecords
+   * * educationRecords
+   * * skills
+   * * projects
+   * * publications
+   * * patents
+   * * certifications
+   * * jobApplications
+   * * recruitingNotes
+   * * customAttributes
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Optional.
+   * A field mask to specify the profile fields to update.
+   * A full update is performed if it is unset.
+   * Valid values are:
+   * * externalId
+   * * source
+   * * uri
+   * * isHirable
+   * * createTime
+   * * updateTime
+   * * resumeHrxml
+   * * personNames
+   * * addresses
+   * * emailAddresses
+   * * phoneNumbers
+   * * personalUris
+   * * additionalContactInfo
+   * * employmentRecords
+   * * educationRecords
+   * * skills
+   * * projects
+   * * publications
+   * * patents
+   * * certifications
+   * * jobApplications
+   * * recruitingNotes
+   * * customAttributes
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Optional.
+   * A field mask to specify the profile fields to update.
+   * A full update is performed if it is unset.
+   * Valid values are:
+   * * externalId
+   * * source
+   * * uri
+   * * isHirable
+   * * createTime
+   * * updateTime
+   * * resumeHrxml
+   * * personNames
+   * * addresses
+   * * emailAddresses
+   * * phoneNumbers
+   * * personalUris
+   * * additionalContactInfo
+   * * employmentRecords
+   * * educationRecords
+   * * skills
+   * * projects
+   * * publications
+   * * patents
+   * * certifications
+   * * jobApplications
+   * * recruitingNotes
+   * * customAttributes
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateTenantRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateTenantRequest.java new file mode 100644 index 000000000000..ddfe537a588a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateTenantRequest.java @@ -0,0 +1,1082 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/tenant_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Request for updating a specified tenant.
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.UpdateTenantRequest} + */ +public final class UpdateTenantRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.UpdateTenantRequest) + UpdateTenantRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateTenantRequest.newBuilder() to construct. + private UpdateTenantRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateTenantRequest() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateTenantRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.talent.v4beta1.Tenant.Builder subBuilder = null; + if (tenant_ != null) { + subBuilder = tenant_.toBuilder(); + } + tenant_ = + input.readMessage( + com.google.cloud.talent.v4beta1.Tenant.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(tenant_); + tenant_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateTenantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateTenantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.UpdateTenantRequest.class, + com.google.cloud.talent.v4beta1.UpdateTenantRequest.Builder.class); + } + + public static final int TENANT_FIELD_NUMBER = 1; + private com.google.cloud.talent.v4beta1.Tenant tenant_; + /** + * + * + *
+   * Required.
+   * The tenant resource to replace the current resource in the system.
+   * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 1; + */ + public boolean hasTenant() { + return tenant_ != null; + } + /** + * + * + *
+   * Required.
+   * The tenant resource to replace the current resource in the system.
+   * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 1; + */ + public com.google.cloud.talent.v4beta1.Tenant getTenant() { + return tenant_ == null ? com.google.cloud.talent.v4beta1.Tenant.getDefaultInstance() : tenant_; + } + /** + * + * + *
+   * Required.
+   * The tenant resource to replace the current resource in the system.
+   * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 1; + */ + public com.google.cloud.talent.v4beta1.TenantOrBuilder getTenantOrBuilder() { + return getTenant(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * If
+   * [update_mask][google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask]
+   * is provided, only the specified fields in
+   * [tenant][google.cloud.talent.v4beta1.UpdateTenantRequest.tenant] are
+   * updated. Otherwise all the fields are updated.
+   * A field mask to specify the tenant fields to be updated. Only
+   * top level fields of [Tenant][google.cloud.talent.v4beta1.Tenant] are
+   * supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * If
+   * [update_mask][google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask]
+   * is provided, only the specified fields in
+   * [tenant][google.cloud.talent.v4beta1.UpdateTenantRequest.tenant] are
+   * updated. Otherwise all the fields are updated.
+   * A field mask to specify the tenant fields to be updated. Only
+   * top level fields of [Tenant][google.cloud.talent.v4beta1.Tenant] are
+   * supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * If
+   * [update_mask][google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask]
+   * is provided, only the specified fields in
+   * [tenant][google.cloud.talent.v4beta1.UpdateTenantRequest.tenant] are
+   * updated. Otherwise all the fields are updated.
+   * A field mask to specify the tenant fields to be updated. Only
+   * top level fields of [Tenant][google.cloud.talent.v4beta1.Tenant] are
+   * supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + 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 (tenant_ != null) { + output.writeMessage(1, getTenant()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (tenant_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTenant()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += unknownFields.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.cloud.talent.v4beta1.UpdateTenantRequest)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.UpdateTenantRequest other = + (com.google.cloud.talent.v4beta1.UpdateTenantRequest) obj; + + boolean result = true; + result = result && (hasTenant() == other.hasTenant()); + if (hasTenant()) { + result = result && getTenant().equals(other.getTenant()); + } + result = result && (hasUpdateMask() == other.hasUpdateMask()); + if (hasUpdateMask()) { + result = result && getUpdateMask().equals(other.getUpdateMask()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTenant()) { + hash = (37 * hash) + TENANT_FIELD_NUMBER; + hash = (53 * hash) + getTenant().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.UpdateTenantRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.UpdateTenantRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.UpdateTenantRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.UpdateTenantRequest 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.cloud.talent.v4beta1.UpdateTenantRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.UpdateTenantRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.UpdateTenantRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.UpdateTenantRequest 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.cloud.talent.v4beta1.UpdateTenantRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.UpdateTenantRequest 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.cloud.talent.v4beta1.UpdateTenantRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.UpdateTenantRequest 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.cloud.talent.v4beta1.UpdateTenantRequest 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; + } + /** + * + * + *
+   * Request for updating a specified tenant.
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.UpdateTenantRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.UpdateTenantRequest) + com.google.cloud.talent.v4beta1.UpdateTenantRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateTenantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateTenantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.UpdateTenantRequest.class, + com.google.cloud.talent.v4beta1.UpdateTenantRequest.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.UpdateTenantRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (tenantBuilder_ == null) { + tenant_ = null; + } else { + tenant_ = null; + tenantBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.TenantServiceProto + .internal_static_google_cloud_talent_v4beta1_UpdateTenantRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.UpdateTenantRequest getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.UpdateTenantRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.UpdateTenantRequest build() { + com.google.cloud.talent.v4beta1.UpdateTenantRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.UpdateTenantRequest buildPartial() { + com.google.cloud.talent.v4beta1.UpdateTenantRequest result = + new com.google.cloud.talent.v4beta1.UpdateTenantRequest(this); + if (tenantBuilder_ == null) { + result.tenant_ = tenant_; + } else { + result.tenant_ = tenantBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.UpdateTenantRequest) { + return mergeFrom((com.google.cloud.talent.v4beta1.UpdateTenantRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.UpdateTenantRequest other) { + if (other == com.google.cloud.talent.v4beta1.UpdateTenantRequest.getDefaultInstance()) + return this; + if (other.hasTenant()) { + mergeTenant(other.getTenant()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.UpdateTenantRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.UpdateTenantRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.talent.v4beta1.Tenant tenant_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Tenant, + com.google.cloud.talent.v4beta1.Tenant.Builder, + com.google.cloud.talent.v4beta1.TenantOrBuilder> + tenantBuilder_; + /** + * + * + *
+     * Required.
+     * The tenant resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 1; + */ + public boolean hasTenant() { + return tenantBuilder_ != null || tenant_ != null; + } + /** + * + * + *
+     * Required.
+     * The tenant resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 1; + */ + public com.google.cloud.talent.v4beta1.Tenant getTenant() { + if (tenantBuilder_ == null) { + return tenant_ == null + ? com.google.cloud.talent.v4beta1.Tenant.getDefaultInstance() + : tenant_; + } else { + return tenantBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required.
+     * The tenant resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 1; + */ + public Builder setTenant(com.google.cloud.talent.v4beta1.Tenant value) { + if (tenantBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tenant_ = value; + onChanged(); + } else { + tenantBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The tenant resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 1; + */ + public Builder setTenant(com.google.cloud.talent.v4beta1.Tenant.Builder builderForValue) { + if (tenantBuilder_ == null) { + tenant_ = builderForValue.build(); + onChanged(); + } else { + tenantBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The tenant resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 1; + */ + public Builder mergeTenant(com.google.cloud.talent.v4beta1.Tenant value) { + if (tenantBuilder_ == null) { + if (tenant_ != null) { + tenant_ = + com.google.cloud.talent.v4beta1.Tenant.newBuilder(tenant_) + .mergeFrom(value) + .buildPartial(); + } else { + tenant_ = value; + } + onChanged(); + } else { + tenantBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The tenant resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 1; + */ + public Builder clearTenant() { + if (tenantBuilder_ == null) { + tenant_ = null; + onChanged(); + } else { + tenant_ = null; + tenantBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required.
+     * The tenant resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 1; + */ + public com.google.cloud.talent.v4beta1.Tenant.Builder getTenantBuilder() { + + onChanged(); + return getTenantFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required.
+     * The tenant resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 1; + */ + public com.google.cloud.talent.v4beta1.TenantOrBuilder getTenantOrBuilder() { + if (tenantBuilder_ != null) { + return tenantBuilder_.getMessageOrBuilder(); + } else { + return tenant_ == null + ? com.google.cloud.talent.v4beta1.Tenant.getDefaultInstance() + : tenant_; + } + } + /** + * + * + *
+     * Required.
+     * The tenant resource to replace the current resource in the system.
+     * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Tenant, + com.google.cloud.talent.v4beta1.Tenant.Builder, + com.google.cloud.talent.v4beta1.TenantOrBuilder> + getTenantFieldBuilder() { + if (tenantBuilder_ == null) { + tenantBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.talent.v4beta1.Tenant, + com.google.cloud.talent.v4beta1.Tenant.Builder, + com.google.cloud.talent.v4beta1.TenantOrBuilder>( + getTenant(), getParentForChildren(), isClean()); + tenant_ = null; + } + return tenantBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask]
+     * is provided, only the specified fields in
+     * [tenant][google.cloud.talent.v4beta1.UpdateTenantRequest.tenant] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the tenant fields to be updated. Only
+     * top level fields of [Tenant][google.cloud.talent.v4beta1.Tenant] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask]
+     * is provided, only the specified fields in
+     * [tenant][google.cloud.talent.v4beta1.UpdateTenantRequest.tenant] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the tenant fields to be updated. Only
+     * top level fields of [Tenant][google.cloud.talent.v4beta1.Tenant] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask]
+     * is provided, only the specified fields in
+     * [tenant][google.cloud.talent.v4beta1.UpdateTenantRequest.tenant] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the tenant fields to be updated. Only
+     * top level fields of [Tenant][google.cloud.talent.v4beta1.Tenant] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask]
+     * is provided, only the specified fields in
+     * [tenant][google.cloud.talent.v4beta1.UpdateTenantRequest.tenant] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the tenant fields to be updated. Only
+     * top level fields of [Tenant][google.cloud.talent.v4beta1.Tenant] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask]
+     * is provided, only the specified fields in
+     * [tenant][google.cloud.talent.v4beta1.UpdateTenantRequest.tenant] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the tenant fields to be updated. Only
+     * top level fields of [Tenant][google.cloud.talent.v4beta1.Tenant] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask]
+     * is provided, only the specified fields in
+     * [tenant][google.cloud.talent.v4beta1.UpdateTenantRequest.tenant] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the tenant fields to be updated. Only
+     * top level fields of [Tenant][google.cloud.talent.v4beta1.Tenant] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask]
+     * is provided, only the specified fields in
+     * [tenant][google.cloud.talent.v4beta1.UpdateTenantRequest.tenant] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the tenant fields to be updated. Only
+     * top level fields of [Tenant][google.cloud.talent.v4beta1.Tenant] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask]
+     * is provided, only the specified fields in
+     * [tenant][google.cloud.talent.v4beta1.UpdateTenantRequest.tenant] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the tenant fields to be updated. Only
+     * top level fields of [Tenant][google.cloud.talent.v4beta1.Tenant] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Optional but strongly recommended for the best service
+     * experience.
+     * If
+     * [update_mask][google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask]
+     * is provided, only the specified fields in
+     * [tenant][google.cloud.talent.v4beta1.UpdateTenantRequest.tenant] are
+     * updated. Otherwise all the fields are updated.
+     * A field mask to specify the tenant fields to be updated. Only
+     * top level fields of [Tenant][google.cloud.talent.v4beta1.Tenant] are
+     * supported.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.UpdateTenantRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.UpdateTenantRequest) + private static final com.google.cloud.talent.v4beta1.UpdateTenantRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.UpdateTenantRequest(); + } + + public static com.google.cloud.talent.v4beta1.UpdateTenantRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateTenantRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateTenantRequest(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.UpdateTenantRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateTenantRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateTenantRequestOrBuilder.java new file mode 100644 index 000000000000..c3abcbb7b37d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateTenantRequestOrBuilder.java @@ -0,0 +1,102 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/tenant_service.proto + +package com.google.cloud.talent.v4beta1; + +public interface UpdateTenantRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.UpdateTenantRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * The tenant resource to replace the current resource in the system.
+   * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 1; + */ + boolean hasTenant(); + /** + * + * + *
+   * Required.
+   * The tenant resource to replace the current resource in the system.
+   * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 1; + */ + com.google.cloud.talent.v4beta1.Tenant getTenant(); + /** + * + * + *
+   * Required.
+   * The tenant resource to replace the current resource in the system.
+   * 
+ * + * .google.cloud.talent.v4beta1.Tenant tenant = 1; + */ + com.google.cloud.talent.v4beta1.TenantOrBuilder getTenantOrBuilder(); + + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * If
+   * [update_mask][google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask]
+   * is provided, only the specified fields in
+   * [tenant][google.cloud.talent.v4beta1.UpdateTenantRequest.tenant] are
+   * updated. Otherwise all the fields are updated.
+   * A field mask to specify the tenant fields to be updated. Only
+   * top level fields of [Tenant][google.cloud.talent.v4beta1.Tenant] are
+   * supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * If
+   * [update_mask][google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask]
+   * is provided, only the specified fields in
+   * [tenant][google.cloud.talent.v4beta1.UpdateTenantRequest.tenant] are
+   * updated. Otherwise all the fields are updated.
+   * A field mask to specify the tenant fields to be updated. Only
+   * top level fields of [Tenant][google.cloud.talent.v4beta1.Tenant] are
+   * supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Optional but strongly recommended for the best service
+   * experience.
+   * If
+   * [update_mask][google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask]
+   * is provided, only the specified fields in
+   * [tenant][google.cloud.talent.v4beta1.UpdateTenantRequest.tenant] are
+   * updated. Otherwise all the fields are updated.
+   * A field mask to specify the tenant fields to be updated. Only
+   * top level fields of [Tenant][google.cloud.talent.v4beta1.Tenant] are
+   * supported.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Visibility.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Visibility.java new file mode 100644 index 000000000000..b33820b92094 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Visibility.java @@ -0,0 +1,175 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/common.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * An enum that represents who has view access to the resource.
+ * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.Visibility} + */ +public enum Visibility implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Default value.
+   * 
+ * + * VISIBILITY_UNSPECIFIED = 0; + */ + VISIBILITY_UNSPECIFIED(0), + /** + * + * + *
+   * The resource is only visible to the GCP account who owns it.
+   * 
+ * + * ACCOUNT_ONLY = 1; + */ + ACCOUNT_ONLY(1), + /** + * + * + *
+   * The resource is visible to the owner and may be visible to other
+   * applications and processes at Google.
+   * 
+ * + * SHARED_WITH_GOOGLE = 2; + */ + SHARED_WITH_GOOGLE(2), + /** + * + * + *
+   * The resource is visible to the owner and may be visible to all other API
+   * clients.
+   * 
+ * + * SHARED_WITH_PUBLIC = 3; + */ + SHARED_WITH_PUBLIC(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Default value.
+   * 
+ * + * VISIBILITY_UNSPECIFIED = 0; + */ + public static final int VISIBILITY_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * The resource is only visible to the GCP account who owns it.
+   * 
+ * + * ACCOUNT_ONLY = 1; + */ + public static final int ACCOUNT_ONLY_VALUE = 1; + /** + * + * + *
+   * The resource is visible to the owner and may be visible to other
+   * applications and processes at Google.
+   * 
+ * + * SHARED_WITH_GOOGLE = 2; + */ + public static final int SHARED_WITH_GOOGLE_VALUE = 2; + /** + * + * + *
+   * The resource is visible to the owner and may be visible to all other API
+   * clients.
+   * 
+ * + * SHARED_WITH_PUBLIC = 3; + */ + public static final int SHARED_WITH_PUBLIC_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static Visibility valueOf(int value) { + return forNumber(value); + } + + public static Visibility forNumber(int value) { + switch (value) { + case 0: + return VISIBILITY_UNSPECIFIED; + case 1: + return ACCOUNT_ONLY; + case 2: + return SHARED_WITH_GOOGLE; + case 3: + return SHARED_WITH_PUBLIC; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Visibility findValueByNumber(int number) { + return Visibility.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.CommonProto.getDescriptor().getEnumTypes().get(7); + } + + private static final Visibility[] VALUES = values(); + + public static Visibility 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()]; + } + + private final int value; + + private Visibility(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.Visibility) +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/WorkExperienceFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/WorkExperienceFilter.java new file mode 100644 index 000000000000..cf77e43fbb6b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/WorkExperienceFilter.java @@ -0,0 +1,1003 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Input only.
+ * Work experience filter.
+ * This filter is used to search for profiles with working experience length
+ * between
+ * [min_experience][google.cloud.talent.v4beta1.WorkExperienceFilter.min_experience]
+ * and
+ * [max_experience][google.cloud.talent.v4beta1.WorkExperienceFilter.max_experience].
+ * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.WorkExperienceFilter} + */ +public final class WorkExperienceFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.WorkExperienceFilter) + WorkExperienceFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkExperienceFilter.newBuilder() to construct. + private WorkExperienceFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private WorkExperienceFilter() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private WorkExperienceFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (minExperience_ != null) { + subBuilder = minExperience_.toBuilder(); + } + minExperience_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(minExperience_); + minExperience_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (maxExperience_ != null) { + subBuilder = maxExperience_.toBuilder(); + } + maxExperience_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(maxExperience_); + maxExperience_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_WorkExperienceFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_WorkExperienceFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.WorkExperienceFilter.class, + com.google.cloud.talent.v4beta1.WorkExperienceFilter.Builder.class); + } + + public static final int MIN_EXPERIENCE_FIELD_NUMBER = 1; + private com.google.protobuf.Duration minExperience_; + /** + * + * + *
+   * Optional.
+   * The minimum duration of the work experience (inclusive).
+   * 
+ * + * .google.protobuf.Duration min_experience = 1; + */ + public boolean hasMinExperience() { + return minExperience_ != null; + } + /** + * + * + *
+   * Optional.
+   * The minimum duration of the work experience (inclusive).
+   * 
+ * + * .google.protobuf.Duration min_experience = 1; + */ + public com.google.protobuf.Duration getMinExperience() { + return minExperience_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minExperience_; + } + /** + * + * + *
+   * Optional.
+   * The minimum duration of the work experience (inclusive).
+   * 
+ * + * .google.protobuf.Duration min_experience = 1; + */ + public com.google.protobuf.DurationOrBuilder getMinExperienceOrBuilder() { + return getMinExperience(); + } + + public static final int MAX_EXPERIENCE_FIELD_NUMBER = 2; + private com.google.protobuf.Duration maxExperience_; + /** + * + * + *
+   * Optional.
+   * The maximum duration of the work experience (exclusive).
+   * 
+ * + * .google.protobuf.Duration max_experience = 2; + */ + public boolean hasMaxExperience() { + return maxExperience_ != null; + } + /** + * + * + *
+   * Optional.
+   * The maximum duration of the work experience (exclusive).
+   * 
+ * + * .google.protobuf.Duration max_experience = 2; + */ + public com.google.protobuf.Duration getMaxExperience() { + return maxExperience_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maxExperience_; + } + /** + * + * + *
+   * Optional.
+   * The maximum duration of the work experience (exclusive).
+   * 
+ * + * .google.protobuf.Duration max_experience = 2; + */ + public com.google.protobuf.DurationOrBuilder getMaxExperienceOrBuilder() { + return getMaxExperience(); + } + + 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 (minExperience_ != null) { + output.writeMessage(1, getMinExperience()); + } + if (maxExperience_ != null) { + output.writeMessage(2, getMaxExperience()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (minExperience_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMinExperience()); + } + if (maxExperience_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMaxExperience()); + } + size += unknownFields.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.cloud.talent.v4beta1.WorkExperienceFilter)) { + return super.equals(obj); + } + com.google.cloud.talent.v4beta1.WorkExperienceFilter other = + (com.google.cloud.talent.v4beta1.WorkExperienceFilter) obj; + + boolean result = true; + result = result && (hasMinExperience() == other.hasMinExperience()); + if (hasMinExperience()) { + result = result && getMinExperience().equals(other.getMinExperience()); + } + result = result && (hasMaxExperience() == other.hasMaxExperience()); + if (hasMaxExperience()) { + result = result && getMaxExperience().equals(other.getMaxExperience()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMinExperience()) { + hash = (37 * hash) + MIN_EXPERIENCE_FIELD_NUMBER; + hash = (53 * hash) + getMinExperience().hashCode(); + } + if (hasMaxExperience()) { + hash = (37 * hash) + MAX_EXPERIENCE_FIELD_NUMBER; + hash = (53 * hash) + getMaxExperience().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.talent.v4beta1.WorkExperienceFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.WorkExperienceFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.WorkExperienceFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.WorkExperienceFilter 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.cloud.talent.v4beta1.WorkExperienceFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.talent.v4beta1.WorkExperienceFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.talent.v4beta1.WorkExperienceFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.WorkExperienceFilter 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.cloud.talent.v4beta1.WorkExperienceFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.WorkExperienceFilter 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.cloud.talent.v4beta1.WorkExperienceFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.talent.v4beta1.WorkExperienceFilter 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.cloud.talent.v4beta1.WorkExperienceFilter 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; + } + /** + * + * + *
+   * Input only.
+   * Work experience filter.
+   * This filter is used to search for profiles with working experience length
+   * between
+   * [min_experience][google.cloud.talent.v4beta1.WorkExperienceFilter.min_experience]
+   * and
+   * [max_experience][google.cloud.talent.v4beta1.WorkExperienceFilter.max_experience].
+   * 
+ * + * Protobuf type {@code google.cloud.talent.v4beta1.WorkExperienceFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.WorkExperienceFilter) + com.google.cloud.talent.v4beta1.WorkExperienceFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_WorkExperienceFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_WorkExperienceFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.talent.v4beta1.WorkExperienceFilter.class, + com.google.cloud.talent.v4beta1.WorkExperienceFilter.Builder.class); + } + + // Construct using com.google.cloud.talent.v4beta1.WorkExperienceFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (minExperienceBuilder_ == null) { + minExperience_ = null; + } else { + minExperience_ = null; + minExperienceBuilder_ = null; + } + if (maxExperienceBuilder_ == null) { + maxExperience_ = null; + } else { + maxExperience_ = null; + maxExperienceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.talent.v4beta1.FiltersProto + .internal_static_google_cloud_talent_v4beta1_WorkExperienceFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.WorkExperienceFilter getDefaultInstanceForType() { + return com.google.cloud.talent.v4beta1.WorkExperienceFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.WorkExperienceFilter build() { + com.google.cloud.talent.v4beta1.WorkExperienceFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.talent.v4beta1.WorkExperienceFilter buildPartial() { + com.google.cloud.talent.v4beta1.WorkExperienceFilter result = + new com.google.cloud.talent.v4beta1.WorkExperienceFilter(this); + if (minExperienceBuilder_ == null) { + result.minExperience_ = minExperience_; + } else { + result.minExperience_ = minExperienceBuilder_.build(); + } + if (maxExperienceBuilder_ == null) { + result.maxExperience_ = maxExperience_; + } else { + result.maxExperience_ = maxExperienceBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.talent.v4beta1.WorkExperienceFilter) { + return mergeFrom((com.google.cloud.talent.v4beta1.WorkExperienceFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.talent.v4beta1.WorkExperienceFilter other) { + if (other == com.google.cloud.talent.v4beta1.WorkExperienceFilter.getDefaultInstance()) + return this; + if (other.hasMinExperience()) { + mergeMinExperience(other.getMinExperience()); + } + if (other.hasMaxExperience()) { + mergeMaxExperience(other.getMaxExperience()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.talent.v4beta1.WorkExperienceFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.talent.v4beta1.WorkExperienceFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.Duration minExperience_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + minExperienceBuilder_; + /** + * + * + *
+     * Optional.
+     * The minimum duration of the work experience (inclusive).
+     * 
+ * + * .google.protobuf.Duration min_experience = 1; + */ + public boolean hasMinExperience() { + return minExperienceBuilder_ != null || minExperience_ != null; + } + /** + * + * + *
+     * Optional.
+     * The minimum duration of the work experience (inclusive).
+     * 
+ * + * .google.protobuf.Duration min_experience = 1; + */ + public com.google.protobuf.Duration getMinExperience() { + if (minExperienceBuilder_ == null) { + return minExperience_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minExperience_; + } else { + return minExperienceBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The minimum duration of the work experience (inclusive).
+     * 
+ * + * .google.protobuf.Duration min_experience = 1; + */ + public Builder setMinExperience(com.google.protobuf.Duration value) { + if (minExperienceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + minExperience_ = value; + onChanged(); + } else { + minExperienceBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The minimum duration of the work experience (inclusive).
+     * 
+ * + * .google.protobuf.Duration min_experience = 1; + */ + public Builder setMinExperience(com.google.protobuf.Duration.Builder builderForValue) { + if (minExperienceBuilder_ == null) { + minExperience_ = builderForValue.build(); + onChanged(); + } else { + minExperienceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The minimum duration of the work experience (inclusive).
+     * 
+ * + * .google.protobuf.Duration min_experience = 1; + */ + public Builder mergeMinExperience(com.google.protobuf.Duration value) { + if (minExperienceBuilder_ == null) { + if (minExperience_ != null) { + minExperience_ = + com.google.protobuf.Duration.newBuilder(minExperience_) + .mergeFrom(value) + .buildPartial(); + } else { + minExperience_ = value; + } + onChanged(); + } else { + minExperienceBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The minimum duration of the work experience (inclusive).
+     * 
+ * + * .google.protobuf.Duration min_experience = 1; + */ + public Builder clearMinExperience() { + if (minExperienceBuilder_ == null) { + minExperience_ = null; + onChanged(); + } else { + minExperience_ = null; + minExperienceBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The minimum duration of the work experience (inclusive).
+     * 
+ * + * .google.protobuf.Duration min_experience = 1; + */ + public com.google.protobuf.Duration.Builder getMinExperienceBuilder() { + + onChanged(); + return getMinExperienceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The minimum duration of the work experience (inclusive).
+     * 
+ * + * .google.protobuf.Duration min_experience = 1; + */ + public com.google.protobuf.DurationOrBuilder getMinExperienceOrBuilder() { + if (minExperienceBuilder_ != null) { + return minExperienceBuilder_.getMessageOrBuilder(); + } else { + return minExperience_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minExperience_; + } + } + /** + * + * + *
+     * Optional.
+     * The minimum duration of the work experience (inclusive).
+     * 
+ * + * .google.protobuf.Duration min_experience = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getMinExperienceFieldBuilder() { + if (minExperienceBuilder_ == null) { + minExperienceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getMinExperience(), getParentForChildren(), isClean()); + minExperience_ = null; + } + return minExperienceBuilder_; + } + + private com.google.protobuf.Duration maxExperience_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + maxExperienceBuilder_; + /** + * + * + *
+     * Optional.
+     * The maximum duration of the work experience (exclusive).
+     * 
+ * + * .google.protobuf.Duration max_experience = 2; + */ + public boolean hasMaxExperience() { + return maxExperienceBuilder_ != null || maxExperience_ != null; + } + /** + * + * + *
+     * Optional.
+     * The maximum duration of the work experience (exclusive).
+     * 
+ * + * .google.protobuf.Duration max_experience = 2; + */ + public com.google.protobuf.Duration getMaxExperience() { + if (maxExperienceBuilder_ == null) { + return maxExperience_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maxExperience_; + } else { + return maxExperienceBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * The maximum duration of the work experience (exclusive).
+     * 
+ * + * .google.protobuf.Duration max_experience = 2; + */ + public Builder setMaxExperience(com.google.protobuf.Duration value) { + if (maxExperienceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + maxExperience_ = value; + onChanged(); + } else { + maxExperienceBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The maximum duration of the work experience (exclusive).
+     * 
+ * + * .google.protobuf.Duration max_experience = 2; + */ + public Builder setMaxExperience(com.google.protobuf.Duration.Builder builderForValue) { + if (maxExperienceBuilder_ == null) { + maxExperience_ = builderForValue.build(); + onChanged(); + } else { + maxExperienceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The maximum duration of the work experience (exclusive).
+     * 
+ * + * .google.protobuf.Duration max_experience = 2; + */ + public Builder mergeMaxExperience(com.google.protobuf.Duration value) { + if (maxExperienceBuilder_ == null) { + if (maxExperience_ != null) { + maxExperience_ = + com.google.protobuf.Duration.newBuilder(maxExperience_) + .mergeFrom(value) + .buildPartial(); + } else { + maxExperience_ = value; + } + onChanged(); + } else { + maxExperienceBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The maximum duration of the work experience (exclusive).
+     * 
+ * + * .google.protobuf.Duration max_experience = 2; + */ + public Builder clearMaxExperience() { + if (maxExperienceBuilder_ == null) { + maxExperience_ = null; + onChanged(); + } else { + maxExperience_ = null; + maxExperienceBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional.
+     * The maximum duration of the work experience (exclusive).
+     * 
+ * + * .google.protobuf.Duration max_experience = 2; + */ + public com.google.protobuf.Duration.Builder getMaxExperienceBuilder() { + + onChanged(); + return getMaxExperienceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * The maximum duration of the work experience (exclusive).
+     * 
+ * + * .google.protobuf.Duration max_experience = 2; + */ + public com.google.protobuf.DurationOrBuilder getMaxExperienceOrBuilder() { + if (maxExperienceBuilder_ != null) { + return maxExperienceBuilder_.getMessageOrBuilder(); + } else { + return maxExperience_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maxExperience_; + } + } + /** + * + * + *
+     * Optional.
+     * The maximum duration of the work experience (exclusive).
+     * 
+ * + * .google.protobuf.Duration max_experience = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getMaxExperienceFieldBuilder() { + if (maxExperienceBuilder_ == null) { + maxExperienceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getMaxExperience(), getParentForChildren(), isClean()); + maxExperience_ = null; + } + return maxExperienceBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.WorkExperienceFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.WorkExperienceFilter) + private static final com.google.cloud.talent.v4beta1.WorkExperienceFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.WorkExperienceFilter(); + } + + public static com.google.cloud.talent.v4beta1.WorkExperienceFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkExperienceFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkExperienceFilter(input, extensionRegistry); + } + }; + + 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.cloud.talent.v4beta1.WorkExperienceFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/WorkExperienceFilterOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/WorkExperienceFilterOrBuilder.java new file mode 100644 index 000000000000..7efd450e342b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/WorkExperienceFilterOrBuilder.java @@ -0,0 +1,78 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/filters.proto + +package com.google.cloud.talent.v4beta1; + +public interface WorkExperienceFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.WorkExperienceFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional.
+   * The minimum duration of the work experience (inclusive).
+   * 
+ * + * .google.protobuf.Duration min_experience = 1; + */ + boolean hasMinExperience(); + /** + * + * + *
+   * Optional.
+   * The minimum duration of the work experience (inclusive).
+   * 
+ * + * .google.protobuf.Duration min_experience = 1; + */ + com.google.protobuf.Duration getMinExperience(); + /** + * + * + *
+   * Optional.
+   * The minimum duration of the work experience (inclusive).
+   * 
+ * + * .google.protobuf.Duration min_experience = 1; + */ + com.google.protobuf.DurationOrBuilder getMinExperienceOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The maximum duration of the work experience (exclusive).
+   * 
+ * + * .google.protobuf.Duration max_experience = 2; + */ + boolean hasMaxExperience(); + /** + * + * + *
+   * Optional.
+   * The maximum duration of the work experience (exclusive).
+   * 
+ * + * .google.protobuf.Duration max_experience = 2; + */ + com.google.protobuf.Duration getMaxExperience(); + /** + * + * + *
+   * Optional.
+   * The maximum duration of the work experience (exclusive).
+   * 
+ * + * .google.protobuf.Duration max_experience = 2; + */ + com.google.protobuf.DurationOrBuilder getMaxExperienceOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/batch.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/batch.proto new file mode 100644 index 000000000000..fcfe2bed0e45 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/batch.proto @@ -0,0 +1,29 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.talent.v4beta1; + +import "google/api/annotations.proto"; +import "google/cloud/talent/v4beta1/job.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option java_multiple_files = true; +option java_outer_classname = "BatchProto"; +option java_package = "com.google.cloud.talent.v4beta1"; +option objc_class_prefix = "CTS"; diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/common.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/common.proto new file mode 100644 index 000000000000..acba0e76d1fa --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/common.proto @@ -0,0 +1,904 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.talent.v4beta1; + +import "google/api/annotations.proto"; +import "google/protobuf/timestamp.proto"; +import "google/protobuf/wrappers.proto"; +import "google/type/latlng.proto"; +import "google/type/money.proto"; +import "google/type/postal_address.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option java_multiple_files = true; +option java_outer_classname = "CommonProto"; +option java_package = "com.google.cloud.talent.v4beta1"; +option objc_class_prefix = "CTS"; + +// Message representing a period of time between two timestamps. +message TimestampRange { + // Begin of the period. + google.protobuf.Timestamp start_time = 1; + + // End of the period. + google.protobuf.Timestamp end_time = 2; +} + +// An enum that represents the size of the company. +enum CompanySize { + // Default value if the size isn't specified. + COMPANY_SIZE_UNSPECIFIED = 0; + + // The company has less than 50 employees. + MINI = 1; + + // The company has between 50 and 99 employees. + SMALL = 2; + + // The company has between 100 and 499 employees. + SMEDIUM = 3; + + // The company has between 500 and 999 employees. + MEDIUM = 4; + + // The company has between 1,000 and 4,999 employees. + BIG = 5; + + // The company has between 5,000 and 9,999 employees. + BIGGER = 6; + + // The company has 10,000 or more employees. + GIANT = 7; +} + +// An enum that represents employee benefits included with the job. +enum JobBenefit { + // Default value if the type isn't specified. + JOB_BENEFIT_UNSPECIFIED = 0; + + // The job includes access to programs that support child care, such + // as daycare. + CHILD_CARE = 1; + + // The job includes dental services covered by a dental + // insurance plan. + DENTAL = 2; + + // The job offers specific benefits to domestic partners. + DOMESTIC_PARTNER = 3; + + // The job allows for a flexible work schedule. + FLEXIBLE_HOURS = 4; + + // The job includes health services covered by a medical insurance plan. + MEDICAL = 5; + + // The job includes a life insurance plan provided by the employer or + // available for purchase by the employee. + LIFE_INSURANCE = 6; + + // The job allows for a leave of absence to a parent to care for a newborn + // child. + PARENTAL_LEAVE = 7; + + // The job includes a workplace retirement plan provided by the + // employer or available for purchase by the employee. + RETIREMENT_PLAN = 8; + + // The job allows for paid time off due to illness. + SICK_DAYS = 9; + + // The job includes paid time off for vacation. + VACATION = 10; + + // The job includes vision services covered by a vision + // insurance plan. + VISION = 11; +} + +// Educational degree level defined in International Standard Classification +// of Education (ISCED). +enum DegreeType { + // Default value. Represents no degree, or early childhood education. + // Maps to ISCED code 0. + // Ex) Kindergarten + DEGREE_TYPE_UNSPECIFIED = 0; + + // Primary education which is typically the first stage of compulsory + // education. ISCED code 1. + // Ex) Elementary school + PRIMARY_EDUCATION = 1; + + // Lower secondary education; First stage of secondary education building on + // primary education, typically with a more subject-oriented curriculum. + // ISCED code 2. + // Ex) Middle school + LOWER_SECONDARY_EDUCATION = 2; + + // Middle education; Second/final stage of secondary education preparing for + // tertiary education and/or providing skills relevant to employment. + // Usually with an increased range of subject options and streams. ISCED + // code 3. + // Ex) High school + UPPER_SECONDARY_EDUCATION = 3; + + // Adult Remedial Education; Programmes providing learning experiences that + // build on secondary education and prepare for labour market entry and/or + // tertiary education. The content is broader than secondary but not as + // complex as tertiary education. ISCED code 4. + ADULT_REMEDIAL_EDUCATION = 4; + + // Associate's or equivalent; Short first tertiary programmes that are + // typically practically-based, occupationally-specific and prepare for + // labour market entry. These programmes may also provide a pathway to other + // tertiary programmes. ISCED code 5. + ASSOCIATES_OR_EQUIVALENT = 5; + + // Bachelor's or equivalent; Programmes designed to provide intermediate + // academic and/or professional knowledge, skills and competencies leading + // to a first tertiary degree or equivalent qualification. ISCED code 6. + BACHELORS_OR_EQUIVALENT = 6; + + // Master's or equivalent; Programmes designed to provide advanced academic + // and/or professional knowledge, skills and competencies leading to a + // second tertiary degree or equivalent qualification. ISCED code 7. + MASTERS_OR_EQUIVALENT = 7; + + // Doctoral or equivalent; Programmes designed primarily to lead to an + // advanced research qualification, usually concluding with the submission + // and defense of a substantive dissertation of publishable quality based on + // original research. ISCED code 8. + DOCTORAL_OR_EQUIVALENT = 8; +} + +// An enum that represents the employment type of a job. +enum EmploymentType { + // The default value if the employment type isn't specified. + EMPLOYMENT_TYPE_UNSPECIFIED = 0; + + // The job requires working a number of hours that constitute full + // time employment, typically 40 or more hours per week. + FULL_TIME = 1; + + // The job entails working fewer hours than a full time job, + // typically less than 40 hours a week. + PART_TIME = 2; + + // The job is offered as a contracted, as opposed to a salaried employee, + // position. + CONTRACTOR = 3; + + // The job is offered as a contracted position with the understanding + // that it's converted into a full-time position at the end of the + // contract. Jobs of this type are also returned by a search for + // [EmploymentType.CONTRACTOR][google.cloud.talent.v4beta1.EmploymentType.CONTRACTOR] + // jobs. + CONTRACT_TO_HIRE = 4; + + // The job is offered as a temporary employment opportunity, usually + // a short-term engagement. + TEMPORARY = 5; + + // The job is a fixed-term opportunity for students or entry-level job + // seekers to obtain on-the-job training, typically offered as a summer + // position. + INTERN = 6; + + // The is an opportunity for an individual to volunteer, where there's no + // expectation of compensation for the provided services. + VOLUNTEER = 7; + + // The job requires an employee to work on an as-needed basis with a + // flexible schedule. + PER_DIEM = 8; + + // The job involves employing people in remote areas and flying them + // temporarily to the work site instead of relocating employees and their + // families permanently. + FLY_IN_FLY_OUT = 9; + + // The job does not fit any of the other listed types. + OTHER_EMPLOYMENT_TYPE = 10; +} + +// An enum that represents the required experience level required for the job. +enum JobLevel { + // The default value if the level isn't specified. + JOB_LEVEL_UNSPECIFIED = 0; + + // Entry-level individual contributors, typically with less than 2 years of + // experience in a similar role. Includes interns. + ENTRY_LEVEL = 1; + + // Experienced individual contributors, typically with 2+ years of + // experience in a similar role. + EXPERIENCED = 2; + + // Entry- to mid-level managers responsible for managing a team of people. + MANAGER = 3; + + // Senior-level managers responsible for managing teams of managers. + DIRECTOR = 4; + + // Executive-level managers and above, including C-level positions. + EXECUTIVE = 5; +} + +// An enum that represents the categorization or primary focus of specific +// role. This value is different than the "industry" associated with a role, +// which is related to the categorization of the company listing the job. +enum JobCategory { + // The default value if the category isn't specified. + JOB_CATEGORY_UNSPECIFIED = 0; + + // An accounting and finance job, such as an Accountant. + ACCOUNTING_AND_FINANCE = 1; + + // An administrative and office job, such as an Administrative Assistant. + ADMINISTRATIVE_AND_OFFICE = 2; + + // An advertising and marketing job, such as Marketing Manager. + ADVERTISING_AND_MARKETING = 3; + + // An animal care job, such as Veterinarian. + ANIMAL_CARE = 4; + + // An art, fashion, or design job, such as Designer. + ART_FASHION_AND_DESIGN = 5; + + // A business operations job, such as Business Operations Manager. + BUSINESS_OPERATIONS = 6; + + // A cleaning and facilities job, such as Custodial Staff. + CLEANING_AND_FACILITIES = 7; + + // A computer and IT job, such as Systems Administrator. + COMPUTER_AND_IT = 8; + + // A construction job, such as General Laborer. + CONSTRUCTION = 9; + + // A customer service job, such s Cashier. + CUSTOMER_SERVICE = 10; + + // An education job, such as School Teacher. + EDUCATION = 11; + + // An entertainment and travel job, such as Flight Attendant. + ENTERTAINMENT_AND_TRAVEL = 12; + + // A farming or outdoor job, such as Park Ranger. + FARMING_AND_OUTDOORS = 13; + + // A healthcare job, such as Registered Nurse. + HEALTHCARE = 14; + + // A human resources job, such as Human Resources Director. + HUMAN_RESOURCES = 15; + + // An installation, maintenance, or repair job, such as Electrician. + INSTALLATION_MAINTENANCE_AND_REPAIR = 16; + + // A legal job, such as Law Clerk. + LEGAL = 17; + + // A management job, often used in conjunction with another category, + // such as Store Manager. + MANAGEMENT = 18; + + // A manufacturing or warehouse job, such as Assembly Technician. + MANUFACTURING_AND_WAREHOUSE = 19; + + // A media, communications, or writing job, such as Media Relations. + MEDIA_COMMUNICATIONS_AND_WRITING = 20; + + // An oil, gas or mining job, such as Offshore Driller. + OIL_GAS_AND_MINING = 21; + + // A personal care and services job, such as Hair Stylist. + PERSONAL_CARE_AND_SERVICES = 22; + + // A protective services job, such as Security Guard. + PROTECTIVE_SERVICES = 23; + + // A real estate job, such as Buyer's Agent. + REAL_ESTATE = 24; + + // A restaurant and hospitality job, such as Restaurant Server. + RESTAURANT_AND_HOSPITALITY = 25; + + // A sales and/or retail job, such Sales Associate. + SALES_AND_RETAIL = 26; + + // A science and engineering job, such as Lab Technician. + SCIENCE_AND_ENGINEERING = 27; + + // A social services or non-profit job, such as Case Worker. + SOCIAL_SERVICES_AND_NON_PROFIT = 28; + + // A sports, fitness, or recreation job, such as Personal Trainer. + SPORTS_FITNESS_AND_RECREATION = 29; + + // A transportation or logistics job, such as Truck Driver. + TRANSPORTATION_AND_LOGISTICS = 30; +} + +// An enum that represents the job posting region. In most cases, job postings +// don't need to specify a region. If a region is given, jobs are +// eligible for searches in the specified region. +enum PostingRegion { + // If the region is unspecified, the job is only returned if it + // matches the [LocationFilter][google.cloud.talent.v4beta1.LocationFilter]. + POSTING_REGION_UNSPECIFIED = 0; + + // In addition to exact location matching, job posting is returned when the + // [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in the search + // query is in the same administrative area as the returned job posting. For + // example, if a `ADMINISTRATIVE_AREA` job is posted in "CA, USA", it's + // returned if [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] + // has "Mountain View". + // + // Administrative area refers to top-level administrative subdivision of this + // country. For example, US state, IT region, UK constituent nation and + // JP prefecture. + ADMINISTRATIVE_AREA = 1; + + // In addition to exact location matching, job is returned when + // [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in search + // query is in the same country as this job. For example, if a `NATION_WIDE` + // job is posted in "USA", it's returned if + // [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] has 'Mountain + // View'. + NATION = 2; + + // Job allows employees to work remotely (telecommute). + // If [locations][] are provided with this value, the job is + // considered as having a location, but telecommuting is allowed. + TELECOMMUTE = 3; +} + +// An enum that represents who has view access to the resource. +enum Visibility { + // Default value. + VISIBILITY_UNSPECIFIED = 0; + + // The resource is only visible to the GCP account who owns it. + ACCOUNT_ONLY = 1; + + // The resource is visible to the owner and may be visible to other + // applications and processes at Google. + SHARED_WITH_GOOGLE = 2; + + // The resource is visible to the owner and may be visible to all other API + // clients. + SHARED_WITH_PUBLIC = 3; +} + +// Enum that represents the usage of the contact information. +enum ContactInfoUsage { + // Default value. + CONTACT_INFO_USAGE_UNSPECIFIED = 0; + + // Personal use. + PERSONAL = 1; + + // Work use. + WORK = 2; + + // School use. + SCHOOL = 3; +} + +// Input only. +// +// Option for HTML content sanitization on user input fields, for example, job +// description. By setting this option, user can determine whether and how +// sanitization is performed on these fields. +enum HtmlSanitization { + // Default value. + HTML_SANITIZATION_UNSPECIFIED = 0; + + // Disables sanitization on HTML input. + HTML_SANITIZATION_DISABLED = 1; + + // Sanitizes HTML input, only accepts bold, italic, ordered list, and + // unordered list markup tags. + SIMPLE_FORMATTING_ONLY = 2; +} + +// Method for commute. +enum CommuteMethod { + // Commute method isn't specified. + COMMUTE_METHOD_UNSPECIFIED = 0; + + // Commute time is calculated based on driving time. + DRIVING = 1; + + // Commute time is calculated based on public transit including bus, metro, + // subway, etc. + TRANSIT = 2; + + // Commute time is calculated based on walking time. + WALKING = 3; + + // Commute time is calculated based on biking time. + CYCLING = 4; + + // Commute time is calculated based on public transit that is wheelchair + // accessible. + TRANSIT_ACCESSIBLE = 5; +} + +// Output only. +// +// A resource that represents a location with full geographic information. +message Location { + // An enum which represents the type of a location. + enum LocationType { + // Default value if the type isn't specified. + LOCATION_TYPE_UNSPECIFIED = 0; + + // A country level location. + COUNTRY = 1; + + // A state or equivalent level location. + ADMINISTRATIVE_AREA = 2; + + // A county or equivalent level location. + SUB_ADMINISTRATIVE_AREA = 3; + + // A city or equivalent level location. + LOCALITY = 4; + + // A postal code level location. + POSTAL_CODE = 5; + + // A sublocality is a subdivision of a locality, for example a city borough, + // ward, or arrondissement. Sublocalities are usually recognized by a local + // political authority. For example, Manhattan and Brooklyn are recognized + // as boroughs by the City of New York, and are therefore modeled as + // sublocalities. + SUB_LOCALITY = 6; + + // A district or equivalent level location. + SUB_LOCALITY_1 = 7; + + // A smaller district or equivalent level display. + SUB_LOCALITY_2 = 8; + + // A neighborhood level location. + NEIGHBORHOOD = 9; + + // A street address level location. + STREET_ADDRESS = 10; + } + + // The type of a location, which corresponds to the address lines field of + // [PostalAddress][]. For example, "Downtown, Atlanta, GA, USA" has a type of + // [LocationType#NEIGHBORHOOD][], and "Kansas City, KS, USA" has a type of + // [LocationType#LOCALITY][]. + LocationType location_type = 1; + + // Postal address of the location that includes human readable information, + // such as postal delivery and payments addresses. Given a postal address, + // a postal service can deliver items to a premises, P.O. Box, or other + // delivery location. + google.type.PostalAddress postal_address = 2; + + // An object representing a latitude/longitude pair. + google.type.LatLng lat_lng = 3; + + // Radius in miles of the job location. This value is derived from the + // location bounding box in which a circle with the specified radius + // centered from [LatLng][] covers the area associated with the job location. + // For example, currently, "Mountain View, CA, USA" has a radius of + // 6.17 miles. + double radius_miles = 4; +} + +// Input only. +// +// Meta information related to the job searcher or entity +// conducting the job search. This information is used to improve the +// performance of the service. +message RequestMetadata { + // Required if + // [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids] + // is unset or `false`. + // + // The client-defined scope or source of the service call, which typically + // is the domain on + // which the service has been implemented and is currently being run. + // + // For example, if the service is being run by client Foo, Inc., on + // job board www.foo.com and career site www.bar.com, then this field is + // set to "foo.com" for use on the job board, and "bar.com" for use on the + // career site. + // + // Note that any improvements to the model for a particular tenant site rely + // on this field being set correctly to a unique domain. + // + // The maximum number of allowed characters is 255. + string domain = 1; + + // Required if + // [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids] + // is unset or `false`. + // + // A unique session identification string. A session is defined as the + // duration of an end user's interaction with the service over a certain + // period. + // Obfuscate this field for privacy concerns before + // providing it to the service. + // + // Note that any improvements to the model for a particular tenant site rely + // on this field being set correctly to a unique session ID. + // + // The maximum number of allowed characters is 255. + string session_id = 2; + + // Required if + // [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids] + // is unset or `false`. + // + // A unique user identification string, as determined by the client. + // To have the strongest positive impact on search quality + // make sure the client-level is unique. + // Obfuscate this field for privacy concerns before + // providing it to the service. + // + // Note that any improvements to the model for a particular tenant site rely + // on this field being set correctly to a unique user ID. + // + // The maximum number of allowed characters is 255. + string user_id = 3; + + // Optional. + // + // If set to `true`, + // [domain][google.cloud.talent.v4beta1.RequestMetadata.domain], + // [session_id][google.cloud.talent.v4beta1.RequestMetadata.session_id] and + // [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] are + // optional. Only set when any of these fields isn't available for some + // reason. It is highly recommended not to set this field and provide accurate + // [domain][google.cloud.talent.v4beta1.RequestMetadata.domain], + // [session_id][google.cloud.talent.v4beta1.RequestMetadata.session_id] and + // [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] for the best + // service experience. + bool allow_missing_ids = 4; + + // Optional. + // + // The type of device used by the job seeker at the time of the call to the + // service. + DeviceInfo device_info = 5; +} + +// Output only. +// +// Additional information returned to client, such as debugging information. +message ResponseMetadata { + // A unique id associated with this call. + // This id is logged for tracking purposes. + string request_id = 1; +} + +// Device information collected from the job seeker, candidate, or +// other entity conducting the job search. Providing this information improves +// the quality of the search results across devices. +message DeviceInfo { + // An enumeration describing an API access portal and exposure mechanism. + enum DeviceType { + // The device type isn't specified. + DEVICE_TYPE_UNSPECIFIED = 0; + + // A desktop web browser, such as, Chrome, Firefox, Safari, or Internet + // Explorer) + WEB = 1; + + // A mobile device web browser, such as a phone or tablet with a Chrome + // browser. + MOBILE_WEB = 2; + + // An Android device native application. + ANDROID = 3; + + // An iOS device native application. + IOS = 4; + + // A bot, as opposed to a device operated by human beings, such as a web + // crawler. + BOT = 5; + + // Other devices types. + OTHER = 6; + } + + // Optional. + // + // Type of the device. + DeviceType device_type = 1; + + // Optional. + // + // A device-specific ID. The ID must be a unique identifier that + // distinguishes the device from other devices. + string id = 2; +} + +// Custom attribute values that are either filterable or non-filterable. +message CustomAttribute { + // Optional but exactly one of + // [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values] + // or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] + // must be specified. + // + // This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or + // `CASE_INSENSITIVE_MATCH`) search. + // For filterable `string_value`s, a maximum total number of 200 values + // is allowed, with each `string_value` has a byte size of no more than + // 255B. For unfilterable `string_values`, the maximum total byte size of + // unfilterable `string_values` is 50KB. + // + // Empty string isn't allowed. + repeated string string_values = 1; + + // Optional but exactly one of + // [string_values][google.cloud.talent.v4beta1.CustomAttribute.string_values] + // or [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] + // must be specified. + // + // This field is used to perform number range search. + // (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`. + // + // Currently at most 1 + // [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] is + // supported. + repeated int64 long_values = 2; + + // Optional. + // + // If the `filterable` flag is true, custom field values are searchable. + // If false, values are not searchable. + // + // Default is false. + bool filterable = 3; +} + +// Output only. +// +// Spell check result. +message SpellingCorrection { + // Indicates if the query was corrected by the spell checker. + bool corrected = 1; + + // Correction output consisting of the corrected keyword string. + string corrected_text = 2; + + // Corrected output with html tags to highlight the corrected words. + // Corrected words are called out with the "..." html tags. + // + // For example, the user input query is "software enginear", where the second + // word, "enginear," is incorrect. It should be "engineer". When spelling + // correction is enabled, this value is + // "software engineer". + string corrected_html = 3; +} + +// Job compensation details. +message CompensationInfo { + // A compensation entry that represents one component of compensation, such + // as base pay, bonus, or other compensation type. + // + // Annualization: One compensation entry can be annualized if + // - it contains valid + // [amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount] + // or + // [range][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.range]. + // - and its + // [expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year] + // is set or can be derived. Its annualized range is determined as + // ([amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount] + // or + // [range][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.range]) + // times + // [expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year]. + message CompensationEntry { + // Optional. + // + // Compensation type. + // + // Default is [CompensationUnit.OTHER_COMPENSATION_TYPE][]. + CompensationType type = 1; + + // Optional. + // + // Frequency of the specified amount. + // + // Default is + // [CompensationUnit.OTHER_COMPENSATION_UNIT][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.OTHER_COMPENSATION_UNIT]. + CompensationUnit unit = 2; + + // Optional. + // + // Compensation amount. It could be a fixed amount or a floating range. + oneof compensation_amount { + // Optional. + // + // Compensation amount. + google.type.Money amount = 3; + + // Optional. + // + // Compensation range. + CompensationRange range = 4; + } + + // Optional. + // + // Compensation description. For example, could + // indicate equity terms or provide additional context to an estimated + // bonus. + string description = 5; + + // Optional. + // + // Expected number of units paid each year. If not specified, when + // [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types] + // is FULLTIME, a default value is inferred based on + // [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit]. + // Default values: + // - HOURLY: 2080 + // - DAILY: 260 + // - WEEKLY: 52 + // - MONTHLY: 12 + // - ANNUAL: 1 + google.protobuf.DoubleValue expected_units_per_year = 6; + } + + // Compensation range. + message CompensationRange { + // Optional. + // + // The maximum amount of compensation. If left empty, the value is set + // to a maximal compensation value and the currency code is set to + // match the [currency code][google.type.Money.currency_code] of + // min_compensation. + google.type.Money max_compensation = 2; + + // Optional. + // + // The minimum amount of compensation. If left empty, the value is set + // to zero and the currency code is set to match the + // [currency code][google.type.Money.currency_code] of max_compensation. + google.type.Money min_compensation = 1; + } + + // The type of compensation. + // + // For compensation amounts specified in non-monetary amounts, + // describe the compensation scheme in the + // [CompensationEntry.description][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.description]. + // + // For example, tipping format is described in + // [CompensationEntry.description][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.description] + // (for example, "expect 15-20% tips based on customer bill.") and an estimate + // of the tips provided in + // [CompensationEntry.amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount] + // or + // [CompensationEntry.range][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.range] + // ($10 per hour). + // + // For example, equity is described in + // [CompensationEntry.description][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.description] + // (for example, "1% - 2% equity vesting over 4 years, 1 year cliff") and + // value estimated in + // [CompensationEntry.amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount] + // or + // [CompensationEntry.range][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.range]. + // If no value estimate is possible, units are + // [CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED] + // and then further clarified in + // [CompensationEntry.description][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.description] + // field. + enum CompensationType { + // Default value. + COMPENSATION_TYPE_UNSPECIFIED = 0; + + // Base compensation: Refers to the fixed amount of money paid to an + // employee by an employer in return for work performed. Base compensation + // does not include benefits, bonuses or any other potential compensation + // from an employer. + BASE = 1; + + // Bonus. + BONUS = 2; + + // Signing bonus. + SIGNING_BONUS = 3; + + // Equity. + EQUITY = 4; + + // Profit sharing. + PROFIT_SHARING = 5; + + // Commission. + COMMISSIONS = 6; + + // Tips. + TIPS = 7; + + // Other compensation type. + OTHER_COMPENSATION_TYPE = 8; + } + + // Pay frequency. + enum CompensationUnit { + // Default value. + COMPENSATION_UNIT_UNSPECIFIED = 0; + + // Hourly. + HOURLY = 1; + + // Daily. + DAILY = 2; + + // Weekly + WEEKLY = 3; + + // Monthly. + MONTHLY = 4; + + // Yearly. + YEARLY = 5; + + // One time. + ONE_TIME = 6; + + // Other compensation units. + OTHER_COMPENSATION_UNIT = 7; + } + + // Optional. + // + // Job compensation information. + // + // At most one entry can be of type + // [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE], + // which is referred as ** base compensation entry ** for the job. + repeated CompensationEntry entries = 1; + + // Output only. Annualized base compensation range. Computed as + // base compensation entry's [CompensationEntry.compensation][] times + // [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year]. + // + // See + // [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry] + // for explanation on compensation annualization. + CompensationRange annualized_base_compensation_range = 2; + + // Output only. Annualized total compensation range. Computed as + // all compensation entries' [CompensationEntry.compensation][] times + // [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year]. + // + // See + // [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry] + // for explanation on compensation annualization. + CompensationRange annualized_total_compensation_range = 3; +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/company.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/company.proto new file mode 100644 index 000000000000..e6773b08f216 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/company.proto @@ -0,0 +1,130 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.talent.v4beta1; + +import "google/api/annotations.proto"; +import "google/cloud/talent/v4beta1/common.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option java_multiple_files = true; +option java_outer_classname = "CompanyResourceProto"; +option java_package = "com.google.cloud.talent.v4beta1"; +option objc_class_prefix = "CTS"; + +// A Company resource represents a company in the service. A company is the +// entity that owns job postings, that is, the hiring entity responsible for +// employing applicants for the job position. +message Company { + // Derived details about the company. + message DerivedInfo { + // A structured headquarters location of the company, resolved from + // [Company.hq_location][] if provided. + Location headquarters_location = 1; + } + + // Required during company update. + // + // The resource name for a company. This is generated by the service when a + // company is created. + // + // The format is "projects/{project_id}/companies/{company_id}", for example, + // "projects/api-test-project/companies/foo". + string name = 1; + + // Required. + // + // The display name of the company, for example, "Google, LLC". + string display_name = 2; + + // Required. + // + // Client side company identifier, used to uniquely identify the + // company. + // + // The maximum number of allowed characters is 255. + string external_id = 3; + + // Optional. + // + // The employer's company size. + CompanySize size = 4; + + // Optional. + // + // The street address of the company's main headquarters, which may be + // different from the job location. The service attempts + // to geolocate the provided address, and populates a more specific + // location wherever possible in + // [DerivedInfo.headquarters_location][google.cloud.talent.v4beta1.Company.DerivedInfo.headquarters_location]. + string headquarters_address = 5; + + // Optional. + // + // Set to true if it is the hiring agency that post jobs for other + // employers. + // + // Defaults to false if not provided. + bool hiring_agency = 6; + + // Optional. + // + // Equal Employment Opportunity legal disclaimer text to be + // associated with all jobs, and typically to be displayed in all + // roles. + // + // The maximum number of allowed characters is 500. + string eeo_text = 7; + + // Optional. + // + // The URI representing the company's primary web site or home page, + // for example, "https://www.google.com". + // + // The maximum number of allowed characters is 255. + string website_uri = 8; + + // Optional. + // + // The URI to employer's career site or careers page on the employer's web + // site, for example, "https://careers.google.com". + string career_site_uri = 9; + + // Optional. + // + // A URI that hosts the employer's company logo. + string image_uri = 10; + + // Optional. + // + // A list of keys of filterable + // [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes], + // whose corresponding `string_values` are used in keyword search. Jobs with + // `string_values` under these specified field keys are returned if any + // of the values matches the search keyword. Custom field values with + // parenthesis, brackets and special symbols won't be properly searchable, + // and those keyword queries need to be surrounded by quotes. + repeated string keyword_searchable_job_custom_attributes = 11; + + // Output only. Derived details about the company. + DerivedInfo derived_info = 12; + + // Output only. Indicates whether a company is flagged to be suspended from + // public availability by the service when job content appears suspicious, + // abusive, or spammy. + bool suspended = 13; +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/company_service.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/company_service.proto new file mode 100644 index 000000000000..74a01847b14c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/company_service.proto @@ -0,0 +1,179 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.talent.v4beta1; + +import "google/api/annotations.proto"; +import "google/cloud/talent/v4beta1/common.proto"; +import "google/cloud/talent/v4beta1/company.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option java_multiple_files = true; +option java_outer_classname = "CompanyServiceProto"; +option java_package = "com.google.cloud.talent.v4beta1"; +option objc_class_prefix = "CTS"; + +// A service that handles company management, including CRUD and enumeration. +service CompanyService { + // Creates a new company entity. + rpc CreateCompany(CreateCompanyRequest) returns (Company) { + option (google.api.http) = { + post: "/v4beta1/{parent=projects/*}/companies" + body: "*" + }; + } + + // Retrieves specified company. + rpc GetCompany(GetCompanyRequest) returns (Company) { + option (google.api.http) = { + get: "/v4beta1/{name=projects/*/companies/*}" + }; + } + + // Updates specified company. + rpc UpdateCompany(UpdateCompanyRequest) returns (Company) { + option (google.api.http) = { + patch: "/v4beta1/{company.name=projects/*/companies/*}" + body: "*" + }; + } + + // Deletes specified company. + // Prerequisite: The company has no jobs associated with it. + rpc DeleteCompany(DeleteCompanyRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v4beta1/{name=projects/*/companies/*}" + }; + } + + // Lists all companies associated with the project. + rpc ListCompanies(ListCompaniesRequest) returns (ListCompaniesResponse) { + option (google.api.http) = { + get: "/v4beta1/{parent=projects/*}/companies" + }; + } +} + +// The Request of the CreateCompany method. +message CreateCompanyRequest { + // Required. + // + // Resource name of the project under which the company is created. + // + // The format is "projects/{project_id}", for example, + // "projects/api-test-project". + string parent = 1; + + // Required. + // + // The company to be created. + Company company = 2; +} + +// Request for getting a company by name. +message GetCompanyRequest { + // Required. + // + // The resource name of the company to be retrieved. + // + // The format is "projects/{project_id}/companies/{company_id}", for example, + // "projects/api-test-project/companies/foo". + string name = 1; +} + +// Request for updating a specified company. +message UpdateCompanyRequest { + // Required. + // + // The company resource to replace the current resource in the system. + Company company = 1; + + // Optional but strongly recommended for the best service + // experience. + // + // If + // [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask] + // is provided, only the specified fields in + // [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are + // updated. Otherwise all the fields are updated. + // + // A field mask to specify the company fields to be updated. Only + // top level fields of [Company][google.cloud.talent.v4beta1.Company] are + // supported. + google.protobuf.FieldMask update_mask = 2; +} + +// Request to delete a company. +message DeleteCompanyRequest { + // Required. + // + // The resource name of the company to be deleted. + // + // The format is "projects/{project_id}/companies/{company_id}", for example, + // "projects/api-test-project/companies/foo". + string name = 1; +} + +// List companies for which the client has ACL visibility. +message ListCompaniesRequest { + // Required. + // + // Resource name of the project under which the company is created. + // + // The format is "projects/{project_id}", for example, + // "projects/api-test-project". + string parent = 1; + + // Optional. + // + // The starting indicator from which to return results. + string page_token = 2; + + // Optional. + // + // The maximum number of companies to be returned, at most 100. + // Default is 100 if a non-positive number is provided. + int32 page_size = 3; + + // Optional. + // + // Set to true if the companies requested must have open jobs. + // + // Defaults to false. + // + // If true, at most + // [page_size][google.cloud.talent.v4beta1.ListCompaniesRequest.page_size] of + // companies are fetched, among which only those with open jobs are returned. + bool require_open_jobs = 4; +} + +// Output only. +// +// The List companies response object. +message ListCompaniesResponse { + // Companies for the current client. + repeated Company companies = 1; + + // A token to retrieve the next page of results. + string next_page_token = 2; + + // Additional information for the API invocation, such as the request + // tracking id. + ResponseMetadata metadata = 3; +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/completion_service.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/completion_service.proto new file mode 100644 index 000000000000..d151f8f4bcf9 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/completion_service.proto @@ -0,0 +1,169 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.talent.v4beta1; + +import "google/api/annotations.proto"; +import "google/cloud/talent/v4beta1/common.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option java_multiple_files = true; +option java_outer_classname = "CompletionServiceProto"; +option java_package = "com.google.cloud.talent.v4beta1"; +option objc_class_prefix = "CTS"; + +// A service handles auto completion. +service Completion { + // Completes the specified prefix with keyword suggestions. + // Intended for use by a job search auto-complete search box. + rpc CompleteQuery(CompleteQueryRequest) returns (CompleteQueryResponse) { + option (google.api.http) = { + get: "/v4beta1/{name=projects/*}:complete" + }; + } +} + +// Input only. +// +// Auto-complete parameters. +message CompleteQueryRequest { + // Enum to specify the scope of completion. + enum CompletionScope { + // Default value. + COMPLETION_SCOPE_UNSPECIFIED = 0; + + // Suggestions are based only on the data provided by the client. + TENANT = 1; + + // Suggestions are based on all jobs data in the system that's visible to + // the client + PUBLIC = 2; + } + + // Enum to specify auto-completion topics. + enum CompletionType { + // Default value. + COMPLETION_TYPE_UNSPECIFIED = 0; + + // Only suggest job titles. + JOB_TITLE = 1; + + // Only suggest company names. + COMPANY_NAME = 2; + + // Suggest both job titles and company names. + COMBINED = 3; + } + + // Required. + // + // Resource name of project the completion is performed within. + // + // The format is "projects/{project_id}", for example, + // "projects/api-test-project". + string name = 1; + + // Required. + // + // The query used to generate suggestions. + // + // The maximum number of allowed characters is 255. + string query = 2; + + // Optional. + // + // The list of languages of the query. This is + // the BCP-47 language code, such as "en-US" or "sr-Latn". + // For more information, see + // [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47). + // + // For + // [CompletionType.JOB_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.JOB_TITLE] + // type, only open jobs with the same + // [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes] + // are returned. + // + // For + // [CompletionType.COMPANY_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME] + // type, only companies having open jobs with the same + // [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes] + // are returned. + // + // For + // [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED] + // type, only open jobs with the same + // [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes] + // or companies having open jobs with the same + // [language_codes][google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes] + // are returned. + // + // The maximum number of allowed characters is 255. + repeated string language_codes = 3; + + // Required. + // + // Completion result count. + // + // The maximum allowed page size is 10. + int32 page_size = 4; + + // Optional. + // + // If provided, restricts completion to specified company. + // + // The format is "projects/{project_id}/companies/{company_id}", for example, + // "projects/api-test-project/companies/foo". + string company_name = 5; + + // Optional. + // + // The scope of the completion. The defaults is + // [CompletionScope.PUBLIC][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope.PUBLIC]. + CompletionScope scope = 6; + + // Optional. + // + // The completion topic. The default is + // [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]. + CompletionType type = 7; +} + +// Output only. +// +// Response of auto-complete query. +message CompleteQueryResponse { + // Output only. + // + // Resource that represents completion results. + message CompletionResult { + // The suggestion for the query. + string suggestion = 1; + + // The completion topic. + CompleteQueryRequest.CompletionType type = 2; + + // The URI of the company image for [CompletionType.COMPANY_NAME][]. + string image_uri = 3; + } + + // Results of the matching job/company candidates. + repeated CompletionResult completion_results = 1; + + // Additional information for the API invocation, such as the request + // tracking id. + ResponseMetadata metadata = 2; +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/event.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/event.proto new file mode 100644 index 000000000000..3287d378b33a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/event.proto @@ -0,0 +1,262 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.talent.v4beta1; + +import "google/api/annotations.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option java_multiple_files = true; +option java_outer_classname = "EventProto"; +option java_package = "com.google.cloud.talent.v4beta1"; +option objc_class_prefix = "CTS"; + +// An event issued when an end user interacts with the application that +// implements Cloud Talent Solution. Providing this information improves the +// quality of search and recommendation for the API clients, enabling the +// service to perform optimally. The number of events sent must be consistent +// with other calls, such as job searches, issued to the service by the client. +message ClientEvent { + // Required. + // + // A unique ID generated in the API responses. It can be found in + // [ResponseMetadata.request_id][google.cloud.talent.v4beta1.ResponseMetadata.request_id]. + string request_id = 1; + + // Required. + // + // A unique identifier, generated by the client application. + string event_id = 2; + + // Required. + // + // The timestamp of the event. + google.protobuf.Timestamp create_time = 4; + + // Required. + // + // The detail information of a specific event type. + oneof event { + // An event issued when a job seeker interacts with the application that + // implements Cloud Talent Solution. + JobEvent job_event = 5; + + // An event issued when a profile searcher interacts with the application + // that implements Cloud Talent Solution. + ProfileEvent profile_event = 6; + } + + // Optional. + // + // Extra information about this event. Used for storing information with no + // matching field in [event][google.cloud.talent.v4beta1.event] payload, for + // example, user application specific context or details. + // + // At most 20 keys are supported. The maximum total size of all keys and + // values is 2 KB. + map extra_info = 7; +} + +// An event issued when a job seeker interacts with the application that +// implements Cloud Talent Solution. +message JobEvent { + // An enumeration of an event attributed to the behavior of the end user, + // such as a job seeker. + enum JobEventType { + // The event is unspecified by other provided values. + JOB_EVENT_TYPE_UNSPECIFIED = 0; + + // The job seeker or other entity interacting with the service has + // had a job rendered in their view, such as in a list of search results in + // a compressed or clipped format. This event is typically associated with + // the viewing of a jobs list on a single page by a job seeker. + IMPRESSION = 1; + + // The job seeker, or other entity interacting with the service, has + // viewed the details of a job, including the full description. This + // event doesn't apply to the viewing a snippet of a job appearing as a + // part of the job search results. Viewing a snippet is associated with an + // [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]). + VIEW = 2; + + // The job seeker or other entity interacting with the service + // performed an action to view a job and was redirected to a different + // website for job. + VIEW_REDIRECT = 3; + + // The job seeker or other entity interacting with the service + // began the process or demonstrated the intention of applying for a job. + APPLICATION_START = 4; + + // The job seeker or other entity interacting with the service + // submitted an application for a job. + APPLICATION_FINISH = 5; + + // The job seeker or other entity interacting with the service + // submitted an application for a job with a single click without + // entering information. If a job seeker performs this action, send only + // this event to the service. Do not also send + // [JobEventType.APPLICATION_START][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_START] + // or + // [JobEventType.APPLICATION_FINISH][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_FINISH] + // events. + APPLICATION_QUICK_SUBMISSION = 6; + + // The job seeker or other entity interacting with the service + // performed an action to apply to a job and was redirected to a different + // website to complete the application. + APPLICATION_REDIRECT = 7; + + // The job seeker or other entity interacting with the service began the + // process or demonstrated the intention of applying for a job from the + // search results page without viewing the details of the job posting. + // If sending this event, JobEventType.VIEW event shouldn't be sent. + APPLICATION_START_FROM_SEARCH = 8; + + // The job seeker, or other entity interacting with the service, performs an + // action with a single click from the search results page to apply to a job + // (without viewing the details of the job posting), and is redirected + // to a different website to complete the application. If a candidate + // performs this action, send only this event to the service. Do not also + // send + // [JobEventType.APPLICATION_START][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_START], + // [JobEventType.APPLICATION_FINISH][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_FINISH] + // or + // [JobEventType.VIEW][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] + // events. + APPLICATION_REDIRECT_FROM_SEARCH = 9; + + // This event should be used when a company submits an application + // on behalf of a job seeker. This event is intended for use by staffing + // agencies attempting to place candidates. + APPLICATION_COMPANY_SUBMIT = 10; + + // The job seeker or other entity interacting with the service demonstrated + // an interest in a job by bookmarking or saving it. + BOOKMARK = 11; + + // The job seeker or other entity interacting with the service was + // sent a notification, such as an email alert or device notification, + // containing one or more jobs listings generated by the service. + NOTIFICATION = 12; + + // The job seeker or other entity interacting with the service was + // employed by the hiring entity (employer). Send this event + // only if the job seeker was hired through an application that was + // initiated by a search conducted through the Cloud Talent Solution + // service. + HIRED = 13; + + // A recruiter or staffing agency submitted an application on behalf of the + // candidate after interacting with the service to identify a suitable job + // posting. + SENT_CV = 14; + + // The entity interacting with the service (for example, the job seeker), + // was granted an initial interview by the hiring entity (employer). This + // event should only be sent if the job seeker was granted an interview as + // part of an application that was initiated by a search conducted through / + // recommendation provided by the Cloud Talent Solution service. + INTERVIEW_GRANTED = 15; + + // The job seeker or other entity interacting with the service showed + // no interest in the job. + NOT_INTERESTED = 16; + } + + // Required. + // + // The type of the event (see + // [JobEventType][google.cloud.talent.v4beta1.JobEvent.JobEventType]). + JobEventType type = 1; + + // Required. + // + // The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with + // this event. For example, if this is an + // [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION] + // event, this field contains the identifiers of all jobs shown to the job + // seeker. If this was a + // [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this + // field contains the identifier of the viewed job. + repeated string jobs = 2; +} + +// An event issued when a profile searcher interacts with the application +// that implements Cloud Talent Solution. +message ProfileEvent { + // The enum represents types of client events for a candidate profile. + enum ProfileEventType { + // Default value. + PROFILE_EVENT_TYPE_UNSPECIFIED = 0; + + // The profile is displayed. + IMPRESSION = 1; + + // The profile is viewed. + VIEW = 2; + + // The profile is bookmarked. + BOOKMARK = 3; + + // Comment added to the profile. + COMMENT_ADDED = 4; + + // Email sent regarding the profile. + EMAIL_SENT = 5; + + // The resume of the profile is viewed. + RESUME_VIEWED = 6; + + // The profile is added to a job. + ADD_TO_JOB = 7; + + // The recruiter explicitly highlights that a given profile is interesting + // enough for later review or is a good result for the search. + POSITIVE_REACTION_TO_PROFILE = 8; + + // The recruiter explicitly highlights that a given profile is not + // interesting enough for later review or is not a good result for the + // search. + NEGATIVE_REACTION_TO_PROFILE = 9; + + // The candidate is interesting enough to set up an initial screen with the + // recruiter. This step may be skipped based on the interview process. + SCREEN = 10; + } + + // Required. + // + // Type of event. + ProfileEventType type = 1; + + // Required. + // + // The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated + // with this client event. + repeated string profiles = 2; + + // Optional. + // + // The job ID associated with this client event if there is one. Leave it + // empty if the event isn't associated with a job. + // + // The job ID should be consistent with the + // [JobApplication.job.requisition_id][] in the profile. + string job_id = 3; +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/event_service.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/event_service.proto new file mode 100644 index 000000000000..fe1606c3a96d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/event_service.proto @@ -0,0 +1,56 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.talent.v4beta1; + +import "google/api/annotations.proto"; +import "google/cloud/talent/v4beta1/event.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option java_multiple_files = true; +option java_outer_classname = "EventServiceProto"; +option java_package = "com.google.cloud.talent.v4beta1"; +option objc_class_prefix = "CTS"; + +// A service handles client event report. +service EventService { + // Report events issued when end user interacts with customer's application + // that uses Cloud Talent Solution. You may inspect the created events in + // [self service + // tools](https://console.cloud.google.com/talent-solution/overview). + // [Learn + // more](https://cloud.google.com/talent-solution/docs/management-tools) + // about self service tools. + rpc CreateClientEvent(CreateClientEventRequest) returns (ClientEvent) { + option (google.api.http) = { + post: "/v4beta1/{parent=projects/*}/clientEvents" + body: "*" + }; + } +} + +// The report event request. +message CreateClientEventRequest { + // Parent project name. + string parent = 1; + + // Required. + // + // Events issued when end user interacts with customer's application that + // uses Cloud Talent Solution. + ClientEvent client_event = 2; +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/filters.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/filters.proto new file mode 100644 index 000000000000..9d87c51addff --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/filters.proto @@ -0,0 +1,872 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.talent.v4beta1; + +import "google/api/annotations.proto"; +import "google/cloud/talent/v4beta1/common.proto"; +import "google/cloud/talent/v4beta1/job.proto"; +import "google/cloud/talent/v4beta1/profile.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/timestamp.proto"; +import "google/protobuf/wrappers.proto"; +import "google/type/date.proto"; +import "google/type/latlng.proto"; +import "google/type/timeofday.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option java_multiple_files = true; +option java_outer_classname = "FiltersProto"; +option java_package = "com.google.cloud.talent.v4beta1"; +option objc_class_prefix = "CTS"; + +// Input only. +// +// The query required to perform a search query. +message JobQuery { + // Optional. + // + // The query string that matches against the job title, description, and + // location fields. + // + // The maximum number of allowed characters is 255. + string query = 1; + + // Optional. + // + // This filter specifies the company entities to search against. + // + // If a value isn't specified, jobs are searched for against all + // companies. + // + // If multiple values are specified, jobs are searched against the + // companies specified. + // + // The format is "projects/{project_id}/companies/{company_id}", for example, + // "projects/api-test-project/companies/foo". + // + // At most 20 company filters are allowed. + repeated string company_names = 2; + + // Optional. + // + // The location filter specifies geo-regions containing the jobs to + // search against. See + // [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] for more + // information. + // + // If a location value isn't specified, jobs fitting the other search + // criteria are retrieved regardless of where they're located. + // + // If multiple values are specified, jobs are retrieved from any of the + // specified locations. If different values are specified for the + // [LocationFilter.distance_in_miles][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles] + // parameter, the maximum provided distance is used for all locations. + // + // At most 5 location filters are allowed. + repeated LocationFilter location_filters = 3; + + // Optional. + // + // The category filter specifies the categories of jobs to search against. + // See [Category][] for more information. + // + // If a value isn't specified, jobs from any category are searched against. + // + // If multiple values are specified, jobs from any of the specified + // categories are searched against. + repeated JobCategory job_categories = 4; + + // Optional. + // + // Allows filtering jobs by commute time with different travel methods (for + // example, driving or public transit). Note: This only works with [COMMUTE + // MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is + // ignored. + // + // Currently we don't support sorting by commute time. + CommuteFilter commute_filter = 5; + + // Optional. + // + // This filter specifies the exact [company display + // name][Company.display_name] of the jobs to search against. + // + // If a value isn't specified, jobs within the search results are + // associated with any company. + // + // If multiple values are specified, jobs within the search results may be + // associated with any of the specified companies. + // + // At most 20 company display name filters are allowed. + repeated string company_display_names = 6; + + // Optional. + // + // This search filter is applied only to + // [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info]. + // For example, if the filter is specified as "Hourly job with per-hour + // compensation > $15", only jobs meeting these criteria are searched. If a + // filter isn't defined, all open jobs are searched. + CompensationFilter compensation_filter = 7; + + // Optional. + // + // This filter specifies a structured syntax to match against the + // [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes] + // marked as `filterable`. + // + // The syntax for this expression is a subset of SQL syntax. + // + // Supported operators are: `=`, `!=`, `<`, `<=`, `>`, and `>=` where the + // left of the operator is a custom field key and the right of the operator + // is a number or a quoted string. You must escape backslash (\\) and + // quote (\") characters. + // + // Supported functions are `LOWER([field_name])` to + // perform a case insensitive match and `EMPTY([field_name])` to filter on the + // existence of a key. + // + // Boolean expressions (AND/OR/NOT) are supported up to 3 levels of + // nesting (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum of 100 + // comparisons or functions are allowed in the expression. The expression + // must be < 3000 bytes in length. + // + // Sample Query: + // `(LOWER(driving_license)="class \"a\"" OR EMPTY(driving_license)) AND + // driving_years > 10` + string custom_attribute_filter = 8; + + // Optional. + // + // This flag controls the spell-check feature. If false, the + // service attempts to correct a misspelled query, + // for example, "enginee" is corrected to "engineer". + // + // Defaults to false: a spell check is performed. + bool disable_spell_check = 9; + + // Optional. + // + // The employment type filter specifies the employment type of jobs to + // search against, such as + // [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME]. + // + // If a value isn't specified, jobs in the search results includes any + // employment type. + // + // If multiple values are specified, jobs in the search results include + // any of the specified employment types. + repeated EmploymentType employment_types = 10; + + // Optional. + // + // This filter specifies the locale of jobs to search against, + // for example, "en-US". + // + // If a value isn't specified, the search results can contain jobs in any + // locale. + // + // + // Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn". + // For more information, see + // [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47). + // + // At most 10 language code filters are allowed. + repeated string language_codes = 11; + + // Optional. + // + // Jobs published within a range specified by this filter are searched + // against. + TimestampRange publish_time_range = 12; + + // Optional. + // + // This filter specifies a list of job names to be excluded during search. + // + // At most 200 excluded job names are allowed. + repeated string excluded_jobs = 13; +} + +// Filters to apply when performing the search query. +message ProfileQuery { + // Optional. + // + // Keywords to match any text fields of profiles. + // + // For example, "software engineer in Palo Alto". + string query = 1; + + // Optional. + // + // The location filter specifies geo-regions containing the profiles to + // search against. + // + // If a location filter isn't specified, profiles fitting the other search + // criteria are retrieved regardless of where they're located. + // + // If + // [LocationFilter.negated][google.cloud.talent.v4beta1.LocationFilter.negated] + // is specified, the result doesn't contain profiles from that location. + // + // For example, search for profiles with addresses in "New York City". + repeated LocationFilter location_filters = 2; + + // Optional. + // + // Job title filter specifies job titles of profiles to match on. + // + // If a job title isn't specified, profiles with any titles are retrieved. + // + // If multiple values are specified, profiles are retrieved with any of the + // specified job titles. + // + // If + // [JobTitleFilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.negated] + // is specified, the result won't contain profiles with the job titles. + // + // For example, search for profiles with a job title "Product Manager". + repeated JobTitleFilter job_title_filters = 3; + + // Optional. + // + // Employer filter specifies employers of profiles to match on. + // + // If an employer filter isn't specified, profiles with any employers are + // retrieved. + // + // If multiple employer filters are specified, profiles with any matching + // employers are retrieved. + // + // If + // [EmployerFilter.negated][google.cloud.talent.v4beta1.EmployerFilter.negated] + // is specified, the result won't contain profiles that match the employers. + // + // For example, search for profiles that have working experience at "Google + // LLC". + repeated EmployerFilter employer_filters = 4; + + // Optional. + // + // Education filter specifies education of profiles to match on. + // + // If an education filter isn't specified, profiles with any education are + // retrieved. + // + // If multiple education filters are specified, profiles that match any + // education filters are retrieved. + // + // If + // [EducationFilter.negated][google.cloud.talent.v4beta1.EducationFilter.negated] + // is specified, the result won't contain profiles that match the educations. + // + // For example, search for profiles with a master degree. + repeated EducationFilter education_filters = 5; + + // Optional. + // + // Skill filter specifies skill of profiles to match on. + // + // If a skill filter isn't specified, profiles with any skills are retrieved. + // + // If multiple skill filters are specified, profiles that match any skill + // filters are retrieved. + // + // If [SkillFilter.negated][google.cloud.talent.v4beta1.SkillFilter.negated] + // is specified, the result won't contain profiles that match the skills. + // + // For example, search for profiles that have "Java" and "Python" in skill + // list. + repeated SkillFilter skill_filters = 6; + + // Optional. + // + // Work experience filter specifies the total working experience of profiles + // to match on. + // + // If a work experience filter isn't specified, profiles with any + // professional experience are retrieved. + // + // If multiple work experience filters are specified, profiles that match any + // work experience filters are retrieved. + // + // For example, search for profiles with 10 years of work experience. + repeated WorkExperienceFilter work_experience_filter = 7; + + // Optional. + // + // Time filter specifies the create/update timestamp of the profiles to match + // on. + // + // For example, search for profiles created since "2018-1-1". + repeated TimeFilter time_filters = 8; + + // Optional. + // + // The hirable filter specifies the profile's hirable status to match on. + google.protobuf.BoolValue hirable_filter = 9; + + // Optional. + // + // The application date filters specify application date ranges to match on. + repeated ApplicationDateFilter application_date_filters = 10; + + // Optional. + // + // The application outcome reason filters specify the reasons for outcome of + // the job application. + repeated ApplicationOutcomeReasonFilter application_outcome_reason_filters = + 11; + + // Optional. + // + // The application last stage filters specify the last stage of job + // application. + repeated ApplicationLastStageFilter application_last_stage_filters = 12; + + // Optional. + // + // The application job filters specify the job applied for in the application. + repeated ApplicationJobFilter application_job_filters = 13; + + // Optional. + // + // The application status filters specify the status of job application. + repeated ApplicationStatusFilter application_status_filters = 14; + + // Optional. + // + // This filter specifies a structured syntax to match against the + // [Profile.custom_attributes][google.cloud.talent.v4beta1.Profile.custom_attributes] + // that are marked as `filterable`. + // + // The syntax for this expression is a subset of Google SQL syntax. + // + // Supported operators are: =, != where the left of the operator is a custom + // field key and the right of the operator is a string (surrounded by quotes) + // value. + // + // Supported functions are LOWER() to + // perform case insensitive match and EMPTY() to filter on the + // existence of a key. + // + // Boolean expressions (AND/OR/NOT) are supported up to 3 levels of + // nesting (for example "((A AND B AND C) OR NOT D) AND E"), and there can be + // a maximum of 50 comparisons/functions in the expression. The expression + // must be < 2000 characters in length. + // + // Sample Query: + // (key1 = "TEST" OR LOWER(key1)="test" OR NOT EMPTY(key1)) + string custom_field_filter = 15; +} + +// Input only. +// +// Geographic region of the search. +message LocationFilter { + // Specify whether including telecommute jobs. + enum TelecommutePreference { + // Default value if the telecommute preference isn't specified. + TELECOMMUTE_PREFERENCE_UNSPECIFIED = 0; + + // Exclude telecommute jobs. + TELECOMMUTE_EXCLUDED = 1; + + // Allow telecommute jobs. + TELECOMMUTE_ALLOWED = 2; + } + + // Optional. + // + // The address name, such as "Mountain View" or "Bay Area". + string address = 1; + + // Optional. + // + // CLDR region code of the country/region of the address. This is used + // to address ambiguity of the user-input location, for example, "Liverpool" + // against "Liverpool, NY, US" or "Liverpool, UK". + // + // Set this field if all the jobs to search against are from a same region, + // or jobs are world-wide, but the job seeker is from a specific region. + // + // See http://cldr.unicode.org/ and + // http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html + // for details. Example: "CH" for Switzerland. + string region_code = 2; + + // Optional. + // + // The latitude and longitude of the geographic center from which to + // search. This field's ignored if `address` is provided. + google.type.LatLng lat_lng = 3; + + // Optional. + // + // + // The distance_in_miles is applied when the location being searched for is + // identified as a city or smaller. When the location being searched for is a + // state or larger, this field is ignored. + double distance_in_miles = 4; + + // Optional. + // + // Allows the client to return jobs without a + // set location, specifically, telecommuting jobs (telecomuting is considered + // by the service as a special location. + // [Job.posting_region][google.cloud.talent.v4beta1.Job.posting_region] + // indicates if a job permits telecommuting. If this field is set to + // [TelecommutePreference.TELECOMMUTE_ALLOWED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_ALLOWED], + // telecommuting jobs are searched, and + // [address][google.cloud.talent.v4beta1.LocationFilter.address] and + // [lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng] are ignored. + // If not set or set to + // [TelecommutePreference.TELECOMMUTE_EXCLUDED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_EXCLUDED], + // telecommute job are not searched. + // + // This filter can be used by itself to search exclusively for telecommuting + // jobs, or it can be combined with another location + // filter to search for a combination of job locations, + // such as "Mountain View" or "telecommuting" jobs. However, when used in + // combination with other location filters, telecommuting jobs can be + // treated as less relevant than other jobs in the search response. + TelecommutePreference telecommute_preference = 5; + + // Optional. + // + // Whether to apply negation to the filter so profiles matching the filter + // are excluded. + // + // Currently only supported in profile search. + bool negated = 6; +} + +// Input only. +// +// Filter on job compensation type and amount. +message CompensationFilter { + // Specify the type of filtering. + enum FilterType { + // Filter type unspecified. Position holder, INVALID, should never be used. + FILTER_TYPE_UNSPECIFIED = 0; + + // Filter by `base compensation entry's` unit. A job is a match if and + // only if the job contains a base CompensationEntry and the base + // CompensationEntry's unit matches provided + // [units][google.cloud.talent.v4beta1.CompensationFilter.units]. Populate + // one or more + // [units][google.cloud.talent.v4beta1.CompensationFilter.units]. + // + // See + // [CompensationInfo.CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry] + // for definition of base compensation entry. + UNIT_ONLY = 1; + + // Filter by `base compensation entry's` unit and amount / range. A job + // is a match if and only if the job contains a base CompensationEntry, and + // the base entry's unit matches provided [compensation_units][] and amount + // or range overlaps with provided [compensation_range][]. + // + // See + // [CompensationInfo.CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry] + // for definition of base compensation entry. + // + // Set exactly one + // [units][google.cloud.talent.v4beta1.CompensationFilter.units] and + // populate [range][google.cloud.talent.v4beta1.CompensationFilter.range]. + UNIT_AND_AMOUNT = 2; + + // Filter by annualized base compensation amount and `base compensation + // entry's` unit. Populate + // [range][google.cloud.talent.v4beta1.CompensationFilter.range] and zero or + // more [units][google.cloud.talent.v4beta1.CompensationFilter.units]. + ANNUALIZED_BASE_AMOUNT = 3; + + // Filter by annualized total compensation amount and `base compensation + // entry's` unit . Populate + // [range][google.cloud.talent.v4beta1.CompensationFilter.range] and zero or + // more [units][google.cloud.talent.v4beta1.CompensationFilter.units]. + ANNUALIZED_TOTAL_AMOUNT = 4; + } + + // Required. + // + // Type of filter. + FilterType type = 1; + + // Required. + // + // Specify desired `base compensation entry's` + // [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit]. + repeated CompensationInfo.CompensationUnit units = 2; + + // Optional. + // + // Compensation range. + CompensationInfo.CompensationRange range = 3; + + // Optional. + // + // Whether to include jobs whose compensation range is unspecified. + bool include_jobs_with_unspecified_compensation_range = 4; +} + +// Input only. +// +// Parameters needed for commute search. +message CommuteFilter { + // The traffic density to use when calculating commute time. + enum RoadTraffic { + // Road traffic situation isn't specified. + ROAD_TRAFFIC_UNSPECIFIED = 0; + + // Optimal commute time without considering any traffic impact. + TRAFFIC_FREE = 1; + + // Commute time calculation takes in account the peak traffic impact. + BUSY_HOUR = 2; + } + + // Required. + // + // The method of transportation for which to calculate the commute time. + CommuteMethod commute_method = 1; + + // Required. + // + // The latitude and longitude of the location from which to calculate the + // commute time. + google.type.LatLng start_coordinates = 2; + + // Required. + // + // The maximum travel time in seconds. The maximum allowed value is `3600s` + // (one hour). Format is `123s`. + google.protobuf.Duration travel_duration = 3; + + // Optional. + // If `true`, jobs without street level addresses may also be returned. + // For city level addresses, the city center is used. For state and coarser + // level addresses, text matching is used. + // If this field is set to `false` or isn't specified, only jobs that include + // street level addresses will be returned by commute search. + bool allow_imprecise_addresses = 4; + + // Optional. + // + // Traffic factor to take into account while searching by commute. + oneof traffic_option { + // Optional. + // + // Specifies the traffic density to use when calculating commute time. + RoadTraffic road_traffic = 5; + + // Optional. + // + // The departure time used to calculate traffic impact, represented as + // [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone. + // + // Currently traffic model is restricted to hour level resolution. + google.type.TimeOfDay departure_time = 6; + } +} + +// Input only. +// +// Job title of the search. +message JobTitleFilter { + // Required. + // + // The job title, for example, "Software engineer", or "Product manager". + string job_title = 1; + + // Optional. + // + // Whether to apply negation to the filter so profiles matching the filter + // are excluded. + bool negated = 2; +} + +// Input only. +// +// Skill filter of the search. +message SkillFilter { + // Required. + // + // The skill name. For example, "java", "j2ee", etc. + string skill = 1; + + // Optional. + // + // Whether to apply negation to the filter so profiles matching the filter + // are excluded. + bool negated = 2; +} + +// Input only. +// +// Employer filter of the search. +message EmployerFilter { + // Enum indicating which set of + // [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records] + // to search against. + enum EmployerFilterMode { + // Default value. + EMPLOYER_FILTER_MODE_UNSPECIFIED = 0; + + // Apply to all employers in + // [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records]. + ALL_EMPLOYMENT_RECORDS = 1; + + // Apply only to current employer in + // [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records]. + CURRENT_EMPLOYMENT_RECORDS_ONLY = 2; + + // Apply only to past (not current) employers in + // [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records]. + PAST_EMPLOYMENT_RECORDS_ONLY = 3; + } + + // Required. + // + // The name of the employer, for example "Google", "Alphabet". + string employer = 1; + + // Optional. + // + // Define set of + // [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord]s to search + // against. + // + // Defaults to + // [EmployerFilterMode.ALL_EMPLOYMENT_RECORDS][google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.ALL_EMPLOYMENT_RECORDS]. + EmployerFilterMode mode = 2; + + // Optional. + // + // Whether to apply negation to the filter so profiles matching the filter + // is excluded. + bool negated = 3; +} + +// Input only. +// +// Education filter of the search. +message EducationFilter { + // Optional. + // + // The school name. For example "MIT", "University of California, Berkeley". + string school = 1; + + // Optional. + // + // The field of study. This is to search against value provided in + // [Degree.fields_of_study][google.cloud.talent.v4beta1.Degree.fields_of_study]. + // For example "Computer Science", "Mathematics". + string field_of_study = 2; + + // Optional. + // + // Education degree in ISCED code. Each value in degree covers a specific + // level of education, without any expansion to upper nor lower levels of + // education degree. + DegreeType degree_type = 3; + + // Optional. + // + // Whether to apply negation to the filter so profiles matching the filter + // is excluded. + bool negated = 6; +} + +// Input only. +// +// Work experience filter. +// +// This filter is used to search for profiles with working experience length +// between +// [min_experience][google.cloud.talent.v4beta1.WorkExperienceFilter.min_experience] +// and +// [max_experience][google.cloud.talent.v4beta1.WorkExperienceFilter.max_experience]. +message WorkExperienceFilter { + // Optional. + // + // The minimum duration of the work experience (inclusive). + google.protobuf.Duration min_experience = 1; + + // Optional. + // + // The maximum duration of the work experience (exclusive). + google.protobuf.Duration max_experience = 2; +} + +// Input only. +// +// Application Date Range Filter. +// +// The API matches profiles with +// [JobApplication.application_date][google.cloud.talent.v4beta1.JobApplication.application_date] +// between start date and end date (both boundaries are inclusive). The filter +// is ignored if both +// [start_date][google.cloud.talent.v4beta1.ApplicationDateFilter.start_date] +// and [end_date][google.cloud.talent.v4beta1.ApplicationDateFilter.end_date] +// are missing. +message ApplicationDateFilter { + // Optional. + // + // Start date. If it's missing, The API matches profiles with application date + // not after the end date. + google.type.Date start_date = 1; + + // Optional. + // + // End date. If it's missing, The API matches profiles with application date + // not before the start date. + google.type.Date end_date = 2; +} + +// Input only. +// +// Outcome Reason Filter. +message ApplicationOutcomeReasonFilter { + // Required. + // + // User entered or selected outcome reason. The API does an exact match on the + // [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason] + // in profiles. + string outcome_reason = 1; + + // Optional. + // + // If true, The API excludes all candidates with any + // [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason] + // matching the outcome reason specified in the filter. + bool negated = 2; +} + +// Input only. +// +// Filter on Last Stage of Application. +message ApplicationLastStageFilter { + // Required. + // + // User entered or selected last stage the candidate reached in the + // application. The API does an exact match on the + // [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage] + // in profiles. + string last_stage = 1; + + // Optional. + // If true, The API excludes all candidates with any + // [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage] + // matching the last stage specified in the filter. + bool negated = 2; +} + +// Input only. +// +// Filter on the job information of Application. +message ApplicationJobFilter { + // Optional. + // + // The job resource name in the application. The API does an exact match on + // the [Job.name][google.cloud.talent.v4beta1.Job.name] of + // [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in + // profiles. + string job_name = 1; + + // Optional. + // + // The job requisition id in the application. The API does an exact match on + // the [Job.requisistion_id][] of + // [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in + // profiles. + string job_requisition_id = 2; + + // Optional. + // + // The job title in the application. The API does an exact match on the + // [Job.title][google.cloud.talent.v4beta1.Job.title] of + // [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in + // profiles. + string job_title = 3; + + // Optional. + // + // If true, the API excludes all profiles with any + // [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] + // matching the filters. + bool negated = 4; +} + +// Input only. +// +// Filter on status of Application. +message ApplicationStatusFilter { + // Required. + // + // User entered or selected application status. The API does an exact match + // between the application status specified in this filter and the + // [JobApplication.status][] in profiles. + JobApplication.ApplicationStatus application_status = 1; + + // Optional. + // + // If true, The API excludes all candidates with any [JobApplication.status][] + // matching the status specified in the filter. + bool negated = 2; +} + +// Input only. +// +// Filter on create timestamp or update timestamp of profiles. +message TimeFilter { + // Time fields can be used in TimeFilter. + enum TimeField { + // Default value. + TIME_FIELD_UNSPECIFIED = 0; + + // Earliest profile create time. + CREATE_TIME = 1; + + // Latest profile update time. + UPDATE_TIME = 2; + } + + // Optional. + // + // Start timestamp, matching profiles with the start time. If this field + // missing, The API matches profiles with create / update timestamp before the + // end timestamp. + google.protobuf.Timestamp start_time = 1; + + // Optional. + // + // End timestamp, matching profiles with the end time. If this field + // missing, The API matches profiles with create / update timestamp after the + // start timestamp. + google.protobuf.Timestamp end_time = 2; + + // Optional. + // + // Specifies which time field to filter profiles. + // + // Defaults to + // [TimeField.CREATE_TIME][google.cloud.talent.v4beta1.TimeFilter.TimeField.CREATE_TIME]. + TimeField time_field = 3; +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/histogram.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/histogram.proto new file mode 100644 index 000000000000..22c4f82df8de --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/histogram.proto @@ -0,0 +1,61 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.talent.v4beta1; + +import "google/api/annotations.proto"; +import "google/protobuf/wrappers.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option java_multiple_files = true; +option java_outer_classname = "HistogramProto"; +option java_package = "com.google.cloud.talent.v4beta1"; +option objc_class_prefix = "CTS"; + +// Input Only. +// +// The histogram request. +message HistogramQuery { + // An expression specifies a histogram request against matching resources + // (for example, jobs, profiles) for searches. + // + // See + // [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries] + // and + // [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries] + // for details about syntax. + string histogram_query = 1; +} + +// Output only. +// +// Histogram result that matches [HistogramSpec][] specified in searches. +message HistogramQueryResult { + // Requested histogram expression. + string histogram_query = 1; + + // A map from the values of the facet associated with distinct values to the + // number of matching entries with corresponding value. + // + // The key format is: + // * (for string histogram) string values stored in the field. + // * (for named numeric bucket) name specified in `bucket()` function, like + // for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`. + // * (for anonymous numeric bucket) range formatted as `-`, for + // example, `0-1000`, `MIN-0`, and `0-MAX`. + map histogram = 2; +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/job.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/job.proto new file mode 100644 index 000000000000..1cf276d2484f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/job.proto @@ -0,0 +1,415 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.talent.v4beta1; + +import "google/api/annotations.proto"; +import "google/cloud/talent/v4beta1/common.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option java_multiple_files = true; +option java_outer_classname = "JobResourceProto"; +option java_package = "com.google.cloud.talent.v4beta1"; +option objc_class_prefix = "CTS"; + +// A Job resource represents a job posting (also referred to as a "job listing" +// or "job requisition"). A job belongs to a +// [Company][google.cloud.talent.v4beta1.Company], which is the hiring entity +// responsible for the job. +message Job { + // Application related details of a job posting. + message ApplicationInfo { + // Optional but at least one of + // [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris], + // [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or + // [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction] + // must be specified. + // + // Use this field to specify email address(es) to which resumes or + // applications can be sent. + // + // The maximum number of allowed characters for each entry is 255. + repeated string emails = 1; + + // Optional but at least one of + // [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris], + // [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or + // [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction] + // must be specified. + // + // Use this field to provide instructions, such as "Mail your application + // to ...", that a candidate can follow to apply for the job. + // + // This field accepts and sanitizes HTML input, and also accepts + // bold, italic, ordered list, and unordered list markup tags. + // + // The maximum number of allowed characters is 3,000. + string instruction = 2; + + // Optional but at least one of + // [uris][google.cloud.talent.v4beta1.Job.ApplicationInfo.uris], + // [emails][google.cloud.talent.v4beta1.Job.ApplicationInfo.emails] or + // [instruction][google.cloud.talent.v4beta1.Job.ApplicationInfo.instruction] + // must be specified. + // + // Use this URI field to direct an applicant to a website, for example to + // link to an online application form. + // + // The maximum number of allowed characters for each entry is 2,000. + repeated string uris = 3; + } + + // Output only. + // + // Derived details about the job posting. + message DerivedInfo { + // Structured locations of the job, resolved from + // [Job.addresses][google.cloud.talent.v4beta1.Job.addresses]. + // + // [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are + // exactly matched to + // [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same + // order. + repeated Location locations = 1; + + // Job categories derived from + // [Job.title][google.cloud.talent.v4beta1.Job.title] and + // [Job.description][google.cloud.talent.v4beta1.Job.description]. + repeated JobCategory job_categories = 3; + } + + // Input only. + // + // Options for job processing. + message ProcessingOptions { + // Optional. + // + // If set to `true`, the service does not attempt to resolve a + // more precise address for the job. + bool disable_street_address_resolution = 1; + + // Optional. + // + // Option for job HTML content sanitization. Applied fields are: + // + // * description + // * applicationInfo.instruction + // * incentives + // * qualifications + // * responsibilities + // + // HTML tags in these fields may be stripped if sanitiazation isn't + // disabled. + // + // Defaults to + // [HtmlSanitization.SIMPLE_FORMATTING_ONLY][google.cloud.talent.v4beta1.HtmlSanitization.SIMPLE_FORMATTING_ONLY]. + HtmlSanitization html_sanitization = 2; + } + + // Required during job update. + // + // The resource name for the job. This is generated by the service when a + // job is created. + // + // The format is "projects/{project_id}/jobs/{job_id}", + // for example, "projects/api-test-project/jobs/1234". + // + // Use of this field in job queries and API calls is preferred over the use of + // [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] since this + // value is unique. + string name = 1; + + // Required. + // + // The resource name of the company listing the job, such as + // "projects/api-test-project/companies/foo". + string company_name = 2; + + // Required. + // + // The requisition ID, also referred to as the posting ID, is assigned by the + // client to identify a job. This field is intended to be used by clients + // for client identification and tracking of postings. A job isn't allowed + // to be created if there is another job with the same + // [company][google.cloud.talent.v4beta1.Job.name], + // [language_code][google.cloud.talent.v4beta1.Job.language_code] and + // [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]. + // + // The maximum number of allowed characters is 255. + string requisition_id = 3; + + // Required. + // + // The title of the job, such as "Software Engineer" + // + // The maximum number of allowed characters is 500. + string title = 4; + + // Required. + // + // The description of the job, which typically includes a multi-paragraph + // description of the company and related information. Separate fields are + // provided on the job object for + // [responsibilities][google.cloud.talent.v4beta1.Job.responsibilities], + // [qualifications][google.cloud.talent.v4beta1.Job.qualifications], and other + // job characteristics. Use of these separate job fields is recommended. + // + // This field accepts and sanitizes HTML input, and also accepts + // bold, italic, ordered list, and unordered list markup tags. + // + // The maximum number of allowed characters is 100,000. + string description = 5; + + // Optional but strongly recommended for the best service experience. + // + // Location(s) where the employer is looking to hire for this job posting. + // + // Specifying the full street address(es) of the hiring location enables + // better API results, especially job searches by commute time. + // + // At most 50 locations are allowed for best search performance. If a job has + // more locations, it is suggested to split it into multiple jobs with unique + // [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g. + // 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same + // [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and + // [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not + // allowed. If the original + // [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must be + // preserved, a custom field should be used for storage. It is also suggested + // to group the locations that close to each other in the same job for better + // search experience. + // + // The maximum number of allowed characters is 500. + repeated string addresses = 6; + + // Required. At least one field within + // [ApplicationInfo][google.cloud.talent.v4beta1.Job.ApplicationInfo] must be + // specified. + // + // Job application information. + ApplicationInfo application_info = 7; + + // Optional. + // + // The benefits included with the job. + repeated JobBenefit job_benefits = 8; + + // Optional. + // + // Job compensation information. + CompensationInfo compensation_info = 9; + + // Optional. + // + // A map of fields to hold both filterable and non-filterable custom job + // attributes that are not covered by the provided structured fields. + // + // The keys of the map are strings up to 64 bytes and must match the + // pattern: [a-zA-Z][a-zA-Z0-9_]*. For example, key0LikeThis or + // KEY_1_LIKE_THIS. + // + // At most 100 filterable and at most 100 unfilterable keys are supported. + // For filterable `string_values`, across all keys at most 200 values are + // allowed, with each string no more than 255 characters. For unfilterable + // `string_values`, the maximum total size of `string_values` across all keys + // is 50KB. + map custom_attributes = 10; + + // Optional. + // + // The desired education degrees for the job, such as Bachelors, Masters. + repeated DegreeType degree_types = 11; + + // Optional. + // + // The department or functional area within the company with the open + // position. + // + // The maximum number of allowed characters is 255. + string department = 12; + + // Optional. + // + // The employment type(s) of a job, for example, + // [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or + // [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME]. + repeated EmploymentType employment_types = 13; + + // Optional. + // + // A description of bonus, commission, and other compensation + // incentives associated with the job not including salary or pay. + // + // The maximum number of allowed characters is 10,000. + string incentives = 14; + + // Optional. + // + // The language of the posting. This field is distinct from + // any requirements for fluency that are associated with the job. + // + // Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn". + // For more information, see + // [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){: + // class="external" target="_blank" }. + // + // If this field is unspecified and + // [Job.description][google.cloud.talent.v4beta1.Job.description] is present, + // detected language code based on + // [Job.description][google.cloud.talent.v4beta1.Job.description] is assigned, + // otherwise defaults to 'en_US'. + string language_code = 15; + + // Optional. + // + // The experience level associated with the job, such as "Entry Level". + JobLevel job_level = 16; + + // Optional. + // + // A promotion value of the job, as determined by the client. + // The value determines the sort order of the jobs returned when searching for + // jobs using the featured jobs search call, with higher promotional values + // being returned first and ties being resolved by relevance sort. Only the + // jobs with a promotionValue >0 are returned in a FEATURED_JOB_SEARCH. + // + // Default value is 0, and negative values are treated as 0. + int32 promotion_value = 17; + + // Optional. + // + // A description of the qualifications required to perform the + // job. The use of this field is recommended + // as an alternative to using the more general + // [description][google.cloud.talent.v4beta1.Job.description] field. + // + // This field accepts and sanitizes HTML input, and also accepts + // bold, italic, ordered list, and unordered list markup tags. + // + // The maximum number of allowed characters is 10,000. + string qualifications = 18; + + // Optional. + // + // A description of job responsibilities. The use of this field is + // recommended as an alternative to using the more general + // [description][google.cloud.talent.v4beta1.Job.description] field. + // + // This field accepts and sanitizes HTML input, and also accepts + // bold, italic, ordered list, and unordered list markup tags. + // + // The maximum number of allowed characters is 10,000. + string responsibilities = 19; + + // Optional. + // + // The job [PostingRegion][google.cloud.talent.v4beta1.PostingRegion] (for + // example, state, country) throughout which the job is available. If this + // field is set, a + // [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in a search + // query within the job region finds this job posting if an exact location + // match isn't specified. If this field is set to + // [PostingRegion.NATION][google.cloud.talent.v4beta1.PostingRegion.NATION] or + // [PostingRegion.ADMINISTRATIVE_AREA][google.cloud.talent.v4beta1.PostingRegion.ADMINISTRATIVE_AREA], + // setting job [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] to + // the same location level as this field is strongly recommended. + PostingRegion posting_region = 20; + + // Optional. + // + // The visibility of the job. + // + // Defaults to + // [Visibility.ACCOUNT_ONLY][google.cloud.talent.v4beta1.Visibility.ACCOUNT_ONLY] + // if not specified. + Visibility visibility = 21; + + // Optional. + // + // The start timestamp of the job in UTC time zone. Typically this field + // is used for contracting engagements. Invalid timestamps are ignored. + google.protobuf.Timestamp job_start_time = 22; + + // Optional. + // + // The end timestamp of the job. Typically this field is used for contracting + // engagements. Invalid timestamps are ignored. + google.protobuf.Timestamp job_end_time = 23; + + // Optional. + // + // The timestamp this job posting was most recently published. The default + // value is the time the request arrives at the server. Invalid timestamps are + // ignored. + google.protobuf.Timestamp posting_publish_time = 24; + + // Optional but strongly recommended for the best service + // experience. + // + // The expiration timestamp of the job. After this timestamp, the + // job is marked as expired, and it no longer appears in search results. The + // expired job can't be deleted or listed by the [DeleteJob][] and + // [ListJobs][] APIs, but it can be retrieved with the [GetJob][] API or + // updated with the [UpdateJob][] API. An expired job can be updated and + // opened again by using a future expiration timestamp. Updating an expired + // job fails if there is another existing open job with same + // [company][google.cloud.talent.v4beta1.Job.name][], + // [language_code][google.cloud.talent.v4beta1.Job.language_code] and + // [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]. + // + // The expired jobs are retained in our system for 90 days. However, the + // overall expired job count cannot exceed 3 times the maximum of open jobs + // count over the past week, otherwise jobs with earlier expire time are + // cleaned first. Expired jobs are no longer accessible after they are cleaned + // out. + // + // Invalid timestamps are ignored, and treated as expire time not provided. + // + // Timestamp before the instant request is made is considered valid, the job + // will be treated as expired immediately. + // + // If this value isn't provided at the time of job creation or is invalid, + // the job posting expires after 30 days from the job's creation time. For + // example, if the job was created on 2017/01/01 13:00AM UTC with an + // unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC. + // + // If this value isn't provided on job update, it depends on the field masks + // set by + // [UpdateJobRequest.update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask]. + // If the field masks include [expiry_time][], or the masks are empty meaning + // that every field is updated, the job posting expires after 30 days from the + // job's last update time. Otherwise the expiration date isn't updated. + google.protobuf.Timestamp posting_expire_time = 25; + + // Output only. The timestamp when this job posting was created. + google.protobuf.Timestamp posting_create_time = 26; + + // Output only. The timestamp when this job posting was last updated. + google.protobuf.Timestamp posting_update_time = 27; + + // Output only. Display name of the company listing the job. + string company_display_name = 28; + + // Output only. Derived details about the job posting. + DerivedInfo derived_info = 29; + + // Optional. + // + // Options for job processing. + ProcessingOptions processing_options = 30; +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/job_service.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/job_service.proto new file mode 100644 index 000000000000..6a8b691f267d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/job_service.proto @@ -0,0 +1,836 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.talent.v4beta1; + +import "google/api/annotations.proto"; +import "google/cloud/talent/v4beta1/batch.proto"; +import "google/cloud/talent/v4beta1/common.proto"; +import "google/cloud/talent/v4beta1/filters.proto"; +import "google/cloud/talent/v4beta1/histogram.proto"; +import "google/cloud/talent/v4beta1/job.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option java_multiple_files = true; +option java_outer_classname = "JobServiceProto"; +option java_package = "com.google.cloud.talent.v4beta1"; +option objc_class_prefix = "CTS"; + +// A service handles job management, including job CRUD, enumeration and search. +service JobService { + // Creates a new job. + // + // Typically, the job becomes searchable within 10 seconds, but it may take + // up to 5 minutes. + rpc CreateJob(CreateJobRequest) returns (Job) { + option (google.api.http) = { + post: "/v4beta1/{parent=projects/*}/jobs" + body: "*" + }; + } + + // Retrieves the specified job, whose status is OPEN or recently EXPIRED + // within the last 90 days. + rpc GetJob(GetJobRequest) returns (Job) { + option (google.api.http) = { + get: "/v4beta1/{name=projects/*/jobs/*}" + }; + } + + // Updates specified job. + // + // Typically, updated contents become visible in search results within 10 + // seconds, but it may take up to 5 minutes. + rpc UpdateJob(UpdateJobRequest) returns (Job) { + option (google.api.http) = { + patch: "/v4beta1/{job.name=projects/*/jobs/*}" + body: "*" + }; + } + + // Deletes the specified job. + // + // Typically, the job becomes unsearchable within 10 seconds, but it may take + // up to 5 minutes. + rpc DeleteJob(DeleteJobRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v4beta1/{name=projects/*/jobs/*}" + }; + } + + // Lists jobs by filter. + rpc ListJobs(ListJobsRequest) returns (ListJobsResponse) { + option (google.api.http) = { + get: "/v4beta1/{parent=projects/*}/jobs" + }; + } + + // Deletes a list of [Job][google.cloud.talent.v4beta1.Job]s by filter. + rpc BatchDeleteJobs(BatchDeleteJobsRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v4beta1/{parent=projects/*}/jobs:batchDelete" + body: "*" + }; + } + + // Searches for jobs using the provided + // [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest]. + // + // This call constrains the + // [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs present in + // the database, and only returns jobs that the caller has permission to + // search against. + rpc SearchJobs(SearchJobsRequest) returns (SearchJobsResponse) { + option (google.api.http) = { + post: "/v4beta1/{parent=projects/*}/jobs:search" + body: "*" + }; + } + + // Searches for jobs using the provided + // [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest]. + // + // This API call is intended for the use case of targeting passive job + // seekers (for example, job seekers who have signed up to receive email + // alerts about potential job opportunities), and has different algorithmic + // adjustments that are targeted to passive job seekers. + // + // This call constrains the + // [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs present in + // the database, and only returns jobs the caller has permission to search + // against. + rpc SearchJobsForAlert(SearchJobsRequest) returns (SearchJobsResponse) { + option (google.api.http) = { + post: "/v4beta1/{parent=projects/*}/jobs:searchForAlert" + body: "*" + }; + } +} + +// Input only. +// +// Create job request. +message CreateJobRequest { + // Required. + // + // The resource name of the project under which the job is created. + // + // The format is "projects/{project_id}", for example, + // "projects/api-test-project". + string parent = 1; + + // Required. + // + // The Job to be created. + Job job = 2; +} + +// Input only. +// +// Get job request. +message GetJobRequest { + // Required. + // + // The resource name of the job to retrieve. + // + // The format is "projects/{project_id}/jobs/{job_id}", + // for example, "projects/api-test-project/jobs/1234". + string name = 1; +} + +// Input only. +// +// Update job request. +message UpdateJobRequest { + // Required. + // + // The Job to be updated. + Job job = 1; + + // Optional but strongly recommended to be provided for the best service + // experience. + // + // If [update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask] + // is provided, only the specified fields in + // [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated. + // Otherwise all the fields are updated. + // + // A field mask to restrict the fields that are updated. Only + // top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported. + google.protobuf.FieldMask update_mask = 2; +} + +// Input only. +// +// Delete job request. +message DeleteJobRequest { + // Required. + // + // The resource name of the job to be deleted. + // + // The format is "projects/{project_id}/jobs/{job_id}", + // for example, "projects/api-test-project/jobs/1234". + string name = 1; +} + +// Input only. +// +// Batch delete jobs request. +message BatchDeleteJobsRequest { + // Required. + // + // The resource name of the project under which the job is created. + // + // The format is "projects/{project_id}", for example, + // "projects/api-test-project". + string parent = 1; + + // Required. + // + // The filter string specifies the jobs to be deleted. + // + // Supported operator: =, AND + // + // The fields eligible for filtering are: + // + // * `companyName` (Required) + // * `requisitionId` (Required) + // + // Sample Query: companyName = "projects/api-test-project/companies/123" AND + // requisitionId = "req-1" + string filter = 2; +} + +// Input only. +// +// List jobs request. +message ListJobsRequest { + // Required. + // + // The resource name of the project under which the job is created. + // + // The format is "projects/{project_id}", for example, + // "projects/api-test-project". + string parent = 1; + + // Required. + // + // The filter string specifies the jobs to be enumerated. + // + // Supported operator: =, AND + // + // The fields eligible for filtering are: + // + // * `companyName` (Required) + // * `requisitionId` (Optional) + // * `status` (Optional) Available values: OPEN, EXPIRED, ALL. Defaults to + // OPEN if no value is specified. + // + // Sample Query: + // + // * companyName = "projects/api-test-project/companies/123" + // * companyName = "projects/api-test-project/companies/123" AND requisitionId + // = "req-1" + // * companyName = "projects/api-test-project/companies/123" AND status = + // "EXPIRED" + string filter = 2; + + // Optional. + // + // The starting point of a query result. + string page_token = 3; + + // Optional. + // + // The maximum number of jobs to be returned per page of results. + // + // If [job_view][google.cloud.talent.v4beta1.ListJobsRequest.job_view] is set + // to + // [JobView.JOB_VIEW_ID_ONLY][google.cloud.talent.v4beta1.JobView.JOB_VIEW_ID_ONLY], + // the maximum allowed page size is 1000. Otherwise, the maximum allowed page + // size is 100. + // + // Default is 100 if empty or a number < 1 is specified. + int32 page_size = 4; + + // Optional. + // + // The desired job attributes returned for jobs in the + // search response. Defaults to + // [JobView.JOB_VIEW_FULL][google.cloud.talent.v4beta1.JobView.JOB_VIEW_FULL] + // if no value is specified. + JobView job_view = 5; +} + +// An enum that specifies the job attributes that are returned in the +// [MatchingJob.Job][] in +// [SearchJobsResponse][google.cloud.talent.v4beta1.SearchJobsResponse] or +// [Job][google.cloud.talent.v4beta1.Job] objects in +// [ListJobsResponse][google.cloud.talent.v4beta1.ListJobsResponse]. +enum JobView { + // Default value. + JOB_VIEW_UNSPECIFIED = 0; + + // A ID only view of job, with following attributes: + // [Job.name][google.cloud.talent.v4beta1.Job.name], + // [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id], + // [Job.language_code][google.cloud.talent.v4beta1.Job.language_code]. + JOB_VIEW_ID_ONLY = 1; + + // A minimal view of the job, with the following attributes: + // [Job.name][google.cloud.talent.v4beta1.Job.name], + // [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id], + // [Job.job_title][], + // [Job.company_name][google.cloud.talent.v4beta1.Job.company_name], + // [Job.DerivedInfo.locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations], + // [Job.language_code][google.cloud.talent.v4beta1.Job.language_code]. + JOB_VIEW_MINIMAL = 2; + + // A small view of the job, with the following attributes in the search + // results: [Job.name][google.cloud.talent.v4beta1.Job.name], + // [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id], + // [Job.job_title][], + // [Job.company_name][google.cloud.talent.v4beta1.Job.company_name], + // [Job.DerivedInfo.locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations], + // [Job.visibility][google.cloud.talent.v4beta1.Job.visibility], + // [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], + // [Job.description][google.cloud.talent.v4beta1.Job.description]. + JOB_VIEW_SMALL = 3; + + // All available attributes are included in the search results. + JOB_VIEW_FULL = 4; +} + +// Output only. +// +// List jobs response. +message ListJobsResponse { + // The Jobs for a given company. + // + // The maximum number of items returned is based on the limit field + // provided in the request. + repeated Job jobs = 1; + + // A token to retrieve the next page of results. + string next_page_token = 2; + + // Additional information for the API invocation, such as the request + // tracking id. + ResponseMetadata metadata = 3; +} + +// Input only. +// +// The Request body of the `SearchJobs` call. +message SearchJobsRequest { + // Input only. + // + // Custom ranking information for + // [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest]. + message CustomRankingInfo { + // The importance level for + // [CustomRankingInfo.ranking_expression][google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ranking_expression]. + enum ImportanceLevel { + // Default value if the importance level isn't specified. + IMPORTANCE_LEVEL_UNSPECIFIED = 0; + + // The given ranking expression is of None importance, existing relevance + // score (determined by API algorithm) dominates job's final ranking + // position. + NONE = 1; + + // The given ranking expression is of Low importance in terms of job's + // final ranking position compared to existing relevance + // score (determined by API algorithm). + LOW = 2; + + // The given ranking expression is of Mild importance in terms of job's + // final ranking position compared to existing relevance + // score (determined by API algorithm). + MILD = 3; + + // The given ranking expression is of Medium importance in terms of job's + // final ranking position compared to existing relevance + // score (determined by API algorithm). + MEDIUM = 4; + + // The given ranking expression is of High importance in terms of job's + // final ranking position compared to existing relevance + // score (determined by API algorithm). + HIGH = 5; + + // The given ranking expression is of Extreme importance, and dominates + // job's final ranking position with existing relevance + // score (determined by API algorithm) ignored. + EXTREME = 6; + } + + // Required. + // + // Controls over how important the score of + // [CustomRankingInfo.ranking_expression][google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ranking_expression] + // gets applied to job's final ranking position. + // + // An error is thrown if not specified. + ImportanceLevel importance_level = 1; + + // Required. + // + // Controls over how job documents get ranked on top of existing relevance + // score (determined by API algorithm). The product of ranking expression + // and relevance score is used to determine job's final ranking position. + // + // The syntax for this expression is a subset of Google SQL syntax. + // + // Supported operators are: +, -, *, /, where the left and right side of + // the operator is either a numeric + // [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes] + // key, integer/double value or an expression that can be evaluated to a + // number. + // + // Parenthesis are supported to adjust calculation precedence. The + // expression must be < 100 characters in length. + // + // Sample ranking expression + // (year + 25) * 0.25 - (freshness / 0.5) + string ranking_expression = 2; + } + + // A string-represented enumeration of the job search mode. The service + // operate differently for different modes of service. + enum SearchMode { + // The mode of the search method isn't specified. + SEARCH_MODE_UNSPECIFIED = 0; + + // The job search matches against all jobs, and featured jobs + // (jobs with promotionValue > 0) are not specially handled. + JOB_SEARCH = 1; + + // The job search matches only against featured jobs (jobs with a + // promotionValue > 0). This method doesn't return any jobs having a + // promotionValue <= 0. The search results order is determined by the + // promotionValue (jobs with a higher promotionValue are returned higher up + // in the search results), with relevance being used as a tiebreaker. + FEATURED_JOB_SEARCH = 2; + } + + // Controls whether highly similar jobs are returned next to each other in + // the search results. Jobs are identified as highly similar based on + // their titles, job categories, and locations. Highly similar results are + // clustered so that only one representative job of the cluster is + // displayed to the job seeker higher up in the results, with the other jobs + // being displayed lower down in the results. + enum DiversificationLevel { + // The diversification level isn't specified. + DIVERSIFICATION_LEVEL_UNSPECIFIED = 0; + + // Disables diversification. Jobs that would normally be pushed to the last + // page would not have their positions altered. This may result in highly + // similar jobs appearing in sequence in the search results. + DISABLED = 1; + + // Default diversifying behavior. The result list is ordered so that + // highly similar results are pushed to the end of the last page of search + // results. + SIMPLE = 2; + } + + // Required. + // + // The resource name of the project to search within. + // + // The format is "projects/{project_id}", for example, + // "projects/api-test-project". + string parent = 1; + + // Optional. + // + // Mode of a search. + // + // Defaults to + // [SearchMode.JOB_SEARCH][google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.JOB_SEARCH]. + SearchMode search_mode = 2; + + // Required. + // + // The meta information collected about the job searcher, used to improve the + // search quality of the service.. The identifiers, (such as `user_id`) are + // provided by users, and must be unique and consistent. + RequestMetadata request_metadata = 3; + + // Optional. + // + // Query used to search against jobs, such as keyword, location filters, etc. + JobQuery job_query = 4; + + // Optional. + // + // Controls whether to broaden the search when it produces sparse results. + // Broadened queries append results to the end of the matching results + // list. + // + // Defaults to false. + bool enable_broadening = 5; + + // Optional. + // + // Controls if the search job request requires the return of a precise + // count of the first 300 results. Setting this to `true` ensures + // consistency in the number of results per page. Best practice is to set this + // value to true if a client allows users to jump directly to a + // non-sequential search results page. + // + // Enabling this flag may adversely impact performance. + // + // Defaults to false. + bool require_precise_result_size = 6; + + // Optional. + // + // An expression specifies a histogram request against matching jobs. + // + // Expression syntax is an aggregation function call with histogram facets and + // other options. + // + // Available aggregation function calls are: + // * `count(string_histogram_facet)`: Count the number of matching entities, + // for each distinct attribute value. + // * `count(numeric_histogram_facet, list of buckets)`: Count the number of + // matching entities within each bucket. + // + // Data types: + // + // * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+. + // * String: string like "any string with backslash escape for quote(\")." + // * Number: whole number and floating point number like 10, -1 and -0.01. + // * List: list of elements with comma(,) separator surrounded by square + // brackets, for example, [1, 2, 3] and ["one", "two", "three"]. + // + // Built-in constants: + // + // * MIN (minimum number similar to java Double.MIN_VALUE) + // * MAX (maximum number similar to java Double.MAX_VALUE) + // + // Built-in functions: + // + // * bucket(start, end[, label]): bucket built-in function creates a bucket + // with range of [start, end). Note that the end is exclusive, for example, + // bucket(1, MAX, "positive number") or bucket(1, 10). + // + // Job histogram facets: + // + // * company_id: histogram by [Job.distributor_company_id][]. + // * company_display_name: histogram by + // [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name]. + // * employment_type: histogram by + // [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types], + // for example, "FULL_TIME", "PART_TIME". + // * company_size: histogram by + // [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example, + // "SMALL", "MEDIUM", "BIG". + // * publish_time_in_month: histogram by the [Job.publish_time][] in months. + // Must specify list of numeric buckets in spec. + // * publish_time_in_year: histogram by the [Job.publish_time][] in years. + // Must specify list of numeric buckets in spec. + // * degree_type: histogram by the [Job.degree_type][], for example, + // "Bachelors", "Masters". + // * job_level: histogram by the + // [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example, + // "Entry Level". + // * country: histogram by the country code of jobs, for example, "US", "FR". + // * admin1: histogram by the admin1 code of jobs, which is a global + // placeholder referring to the state, province, or the particular term a + // country uses to define the geographic structure below the country level, + // for example, "CA", "IL". + // * city: histogram by a combination of the "city name, admin1 code". For + // example, "Mountain View, CA", "New York, NY". + // * admin1_country: histogram by a combination of the "admin1 code, country", + // for example, "CA, US", "IL, US". + // * city_coordinate: histogram by the city center's GPS coordinates (latitude + // and longitude), for example, 37.4038522,-122.0987765. Since the coordinates + // of a city center can change, customers may need to refresh them + // periodically. + // * locale: histogram by the + // [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for + // example, "en-US", "fr-FR". + // * language: histogram by the language subtag of the + // [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for + // example, "en", "fr". + // * category: histogram by the + // [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example, + // "COMPUTER_AND_IT", "HEALTHCARE". + // * base_compensation_unit: histogram by the [CompensationUnit][] of base + // salary, for example, "WEEKLY", "MONTHLY". + // * base_compensation: histogram by the base salary. Must specify list of + // numeric buckets to group results by. + // * annualized_base_compensation: histogram by the base annualized salary. + // Must specify list of numeric buckets to group results by. + // * annualized_total_compensation: histogram by the total annualized salary. + // Must specify list of numeric buckets to group results by. + // * string_custom_attribute: histogram by string + // [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]. + // Values can be accessed via square bracket notations like + // string_custom_attribute["key1"]. + // * numeric_custom_attribute: histogram by numeric + // [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]. + // Values can be accessed via square bracket notations like + // numeric_custom_attribute["key1"]. Must specify list of numeric buckets to + // group results by. + // + // Example expressions: + // * count(admin1) + // * count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000), + // bucket(100000, MAX)]) + // * count(string_custom_attribute["some-string-custom-attribute"]) + // * count(numeric_custom_attribute["some-numeric-custom-attribute"], + // [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"]) + repeated HistogramQuery histogram_queries = 7; + + // Optional. + // + // The desired job attributes returned for jobs in the + // search response. Defaults to [JobView.SMALL][] if no value is specified. + JobView job_view = 8; + + // Optional. + // + // An integer that specifies the current offset (that is, starting result + // location, amongst the jobs deemed by the API as relevant) in search + // results. This field is only considered if + // [page_token][google.cloud.talent.v4beta1.SearchJobsRequest.page_token] is + // unset. + // + // For example, 0 means to return results starting from the first matching + // job, and 10 means to return from the 11th job. This can be used for + // pagination, (for example, pageSize = 10 and offset = 10 means to return + // from the second page). + int32 offset = 9; + + // Optional. + // + // A limit on the number of jobs returned in the search results. + // Increasing this value above the default value of 10 can increase search + // response time. The value can be between 1 and 100. + int32 page_size = 10; + + // Optional. + // + // The token specifying the current offset within + // search results. See + // [SearchJobsResponse.next_page_token][google.cloud.talent.v4beta1.SearchJobsResponse.next_page_token] + // for an explanation of how to obtain the next set of query results. + string page_token = 11; + + // Optional. + // + // The criteria determining how search results are sorted. Default is + // "relevance desc". + // + // Supported options are: + // + // * "relevance desc": By relevance descending, as determined by the API + // algorithms. Relevance thresholding of query results is only available + // with this ordering. + // * "posting`_`publish`_`time desc": By + // [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time] + // descending. + // * "posting`_`update`_`time desc": By + // [Job.posting_update_time][google.cloud.talent.v4beta1.Job.posting_update_time] + // descending. + // * "title": By [Job.title][google.cloud.talent.v4beta1.Job.title] ascending. + // * "title desc": By [Job.title][google.cloud.talent.v4beta1.Job.title] + // descending. + // * "annualized`_`base`_`compensation": By job's + // [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range] + // ascending. Jobs whose annualized base compensation is unspecified are put + // at the end of search results. + // * "annualized`_`base`_`compensation desc": By job's + // [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range] + // descending. Jobs whose annualized base compensation is unspecified are put + // at the end of search results. + // * "annualized`_`total`_`compensation": By job's + // [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range] + // ascending. Jobs whose annualized base compensation is unspecified are put + // at the end of search results. + // * "annualized`_`total`_`compensation desc": By job's + // [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range] + // descending. Jobs whose annualized base compensation is unspecified are put + // at the end of search results. + // * "custom`_`ranking desc": By the relevance score adjusted to the + // [SearchJobsRequest.custom_ranking_info.ranking_expression][] with weight + // factor assigned by + // [SearchJobsRequest.custom_ranking_info.importance_level][] in descending + // order. + // * "location`_`distance": By the distance between the location on jobs and + // locations specified in the + // [SearchJobsRequest.job_query.location_filters][]. + // When this order is selected, the + // [SearchJobsRequest.job_query.location_filters][] must not be empty. When + // a job has multiple locations, the location closest to one of the locations + // specified in the location filter will be used to calculate location + // distance. Distance is calculated by the distance between two lat/long + // coordinates, with a precision of 10e-4 degrees (11.3 meters). + // Jobs that don't have locations specified will be ranked below jobs having + // locations. + // Diversification strategy is still applied unless explicitly disabled in + // [SearchJobsRequest.diversification_level][google.cloud.talent.v4beta1.SearchJobsRequest.diversification_level]. + string order_by = 12; + + // Optional. + // + // Controls whether highly similar jobs are returned next to each other in + // the search results. Jobs are identified as highly similar based on + // their titles, job categories, and locations. Highly similar results are + // clustered so that only one representative job of the cluster is + // displayed to the job seeker higher up in the results, with the other jobs + // being displayed lower down in the results. + // + // Defaults to + // [DiversificationLevel.SIMPLE][google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel.SIMPLE] + // if no value is specified. + DiversificationLevel diversification_level = 13; + + // Optional. + // + // Controls over how job documents get ranked on top of existing relevance + // score (determined by API algorithm). + CustomRankingInfo custom_ranking_info = 14; + + // Optional. + // + // Controls whether to disable exact keyword match on [Job.job_title][], + // [Job.description][google.cloud.talent.v4beta1.Job.description], + // [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name], + // [Job.locations][0], + // [Job.qualifications][google.cloud.talent.v4beta1.Job.qualifications]. When + // disable keyword match is turned off, a keyword match returns jobs that do + // not match given category filters when there are matching keywords. For + // example, for the query "program manager," a result is returned even if the + // job posting has the title "software developer," which doesn't fall into + // "program manager" ontology, but does have "program manager" appearing in + // its description. + // + // For queries like "cloud" that don't contain title or + // location specific ontology, jobs with "cloud" keyword matches are returned + // regardless of this flag's value. + // + // Please use [Company.keyword_searchable_custom_fields][] or + // [Company.keyword_searchable_custom_attributes][] if company specific + // globally matched custom field/attribute string values is needed. Enabling + // keyword match improves recall of subsequent search requests. + // + // Defaults to false. + bool disable_keyword_match = 16; +} + +// Output only. +// +// Response for SearchJob method. +message SearchJobsResponse { + // Output only. + // + // Job entry with metadata inside + // [SearchJobsResponse][google.cloud.talent.v4beta1.SearchJobsResponse]. + message MatchingJob { + // Job resource that matches the specified + // [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest]. + Job job = 1; + + // A summary of the job with core information that's displayed on the search + // results listing page. + string job_summary = 2; + + // Contains snippets of text from the [Job.job_title][] field most + // closely matching a search query's keywords, if available. The matching + // query keywords are enclosed in HTML bold tags. + string job_title_snippet = 3; + + // Contains snippets of text from the + // [Job.description][google.cloud.talent.v4beta1.Job.description] and + // similar fields that most closely match a search query's keywords, if + // available. All HTML tags in the original fields are stripped when + // returned in this field, and matching query keywords are enclosed in HTML + // bold tags. + string search_text_snippet = 4; + + // Commute information which is generated based on specified + // [CommuteFilter][google.cloud.talent.v4beta1.CommuteFilter]. + CommuteInfo commute_info = 5; + } + + // Output only. + // + // Commute details related to this job. + message CommuteInfo { + // Location used as the destination in the commute calculation. + Location job_location = 1; + + // The number of seconds required to travel to the job location from the + // query location. A duration of 0 seconds indicates that the job isn't + // reachable within the requested duration, but was returned as part of an + // expanded query. + google.protobuf.Duration travel_duration = 2; + } + + // The Job entities that match the specified + // [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest]. + repeated MatchingJob matching_jobs = 1; + + // The histogram results that match with specified + // [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries]. + repeated HistogramQueryResult histogram_query_results = 2; + + // The token that specifies the starting position of the next page of results. + // This field is empty if there are no more results. + string next_page_token = 3; + + // The location filters that the service applied to the specified query. If + // any filters are lat-lng based, the [JobLocation.location_type][] is + // [JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED][]. + repeated Location location_filters = 4; + + // An estimation of the number of jobs that match the specified query. + // + // This number isn't guaranteed to be accurate. For accurate results, + // see [enable_precise_result_size][]. + int32 estimated_total_size = 5; + + // The precise result count, which is available only if the client set + // [enable_precise_result_size][] to `true`, or if the response + // is the last page of results. Otherwise, the value is `-1`. + int32 total_size = 6; + + // Additional information for the API invocation, such as the request + // tracking id. + ResponseMetadata metadata = 7; + + // If query broadening is enabled, we may append additional results from the + // broadened query. This number indicates how many of the jobs returned in the + // jobs field are from the broadened query. These results are always at the + // end of the jobs list. In particular, a value of 0, or if the field isn't + // set, all the jobs in the jobs list are from the original + // (without broadening) query. If this field is non-zero, subsequent requests + // with offset after this result set should contain all broadened results. + int32 broadened_query_jobs_count = 8; + + // The spell checking result, and correction. + SpellingCorrection spell_correction = 9; +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/profile.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/profile.proto new file mode 100644 index 000000000000..a3c19f58a0ca --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/profile.proto @@ -0,0 +1,1149 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.talent.v4beta1; + +import "google/api/annotations.proto"; +import "google/cloud/talent/v4beta1/common.proto"; +import "google/cloud/talent/v4beta1/job.proto"; +import "google/protobuf/timestamp.proto"; +import "google/protobuf/wrappers.proto"; +import "google/type/date.proto"; +import "google/type/postal_address.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option java_multiple_files = true; +option java_outer_classname = "ProfileResourceProto"; +option java_package = "com.google.cloud.talent.v4beta1"; +option objc_class_prefix = "CTS"; + +// Cloud Profile Discovery API definition + +// A resource that represents the profile for a job candidate (also referred to +// as a "single-source profile"). A profile belongs to a +// [Tenant][google.cloud.talent.v4beta1.Tenant], which is an isolated instance +// of the customer that owns the profile. +message Profile { + // Required during profile update. + // + // Resource name assigned to a profile by the API. + // + // The format is + // "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", + // for example, "projects/api-test-project/tenants/foo/profiles/bar". + string name = 1; + + // Optional. + // + // Profile's id in client system if available. + // + // The maximum number of bytes allowed is 100. + string external_id = 2; + + // Optional. + // + // The source description indicating where the profile is acquired. + // + // For example, if a candidate profile is acquired from a resume, the user can + // input "resume" here to indicate the source. + // + // The maximum number of bytes allowed is 100. + string source = 3; + + // Optional. + // + // The URI set by clients that links to this profile's client-side copy. + // + // The maximum number of bytes allowed is 4000. + string uri = 4; + + // Optional. + // + // The cluster id of the profile to associate with other profile(s) for the + // same candidate. + // + // A random UUID is assigned if + // [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't provided. To + // ensure global uniqueness, customized + // [group_id][google.cloud.talent.v4beta1.Profile.group_id] isn't supported. + // If [group_id][google.cloud.talent.v4beta1.Profile.group_id] is set, there + // must be at least one other profile with the same system generated + // [group_id][google.cloud.talent.v4beta1.Profile.group_id], otherwise an + // error is thrown. + // + // This is used to link multiple profiles to the same candidate. For example, + // a client has a candidate with two profiles, where one was created recently + // and the other one was created 5 years ago. These two profiles may be very + // different. The clients can create the first profile and get a generated + // [group_id][google.cloud.talent.v4beta1.Profile.group_id], and assign it + // when the second profile is created, indicating these two profiles are + // referring to the same candidate. + string group_id = 5; + + // Optional. + // + // Indicates the hirable status of the candidate. + google.protobuf.BoolValue is_hirable = 6; + + // Optional. + // + // The timestamp when the profile was first created at this source. + google.protobuf.Timestamp create_time = 7; + + // Optional. + // + // The timestamp when the profile was last updated at this source. + google.protobuf.Timestamp update_time = 8; + + // Optional. + // + // The profile contents in HR-XML format. + // See http://schemas.liquid-technologies.com/hr-xml/2007-04-15/ for more + // information about Human Resources XML. + // + // Users can create a profile with only + // [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] field. For + // example, the API parses the + // [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] and + // creates a profile with all structured fields populated, for example. + // [EmploymentRecord][google.cloud.talent.v4beta1.EmploymentRecord], + // [EducationRecord][google.cloud.talent.v4beta1.EducationRecord], etc. An + // error is thrown if the + // [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] can't be + // parsed. + // + // If the [resume_hrxml][google.cloud.talent.v4beta1.Profile.resume_hrxml] is + // provided during profile creation or update, any other structured data + // provided in the profile is ignored. The API populates these fields by + // parsing the HR-XML. + string resume_hrxml = 10; + + // Optional. + // + // The names of the candidate this profile references. + // + // Currently only one person name is supported. + repeated PersonName person_names = 11; + + // Optional. + // + // The candidate's postal addresses. + repeated Address addresses = 12; + + // Optional. + // + // The candidate's email addresses. + repeated Email email_addresses = 13; + + // Optional. + // + // The candidate's phone number(s). + repeated Phone phone_numbers = 14; + + // Optional. + // + // The candidate's personal URIs. + repeated PersonalUri personal_uris = 15; + + // Optional. + // + // Available contact information besides + // [addresses][google.cloud.talent.v4beta1.Profile.addresses], + // [email_addresses][google.cloud.talent.v4beta1.Profile.email_addresses], + // [phone_numbers][google.cloud.talent.v4beta1.Profile.phone_numbers] and + // [personal_uris][google.cloud.talent.v4beta1.Profile.personal_uris]. For + // example, Hang-out, Skype. + repeated AdditionalContactInfo additional_contact_info = 16; + + // Optional. + // + // The employment history records of the candidate. It's highly recommended + // to input this information as accurately as possible to help improve search + // quality. Here are some recommendations: + // + // * Specify the start and end dates of the employment records. + // * List different employment types separately, no matter how minor the + // change is. + // For example, only job title is changed from "software engineer" to "senior + // software engineer". + // * Provide + // [EmploymentRecord.is_current][google.cloud.talent.v4beta1.EmploymentRecord.is_current] + // for the current employment if possible. If not, it's inferred from user + // inputs. + repeated EmploymentRecord employment_records = 17; + + // Optional. + // + // The education history record of the candidate. It's highly recommended to + // input this information as accurately as possible to help improve search + // quality. Here are some recommendations: + // + // * Specify the start and end dates of the education records. + // * List each education type separately, no matter how minor the change is. + // For example, the profile contains the education experience from the same + // school but different degrees. + // * Provide + // [EducationRecord.is_current][google.cloud.talent.v4beta1.EducationRecord.is_current] + // for the current education if possible. If not, it's inferred from user + // inputs. + repeated EducationRecord education_records = 18; + + // Optional. + // + // The skill set of the candidate. It's highly recommended to provide as + // much information as possible to help improve the search quality. + repeated Skill skills = 19; + + // Optional. + // + // The individual or collaborative activities which the candidate has + // participated in, for example, open-source projects, class assignments that + // aren't listed in + // [employment_records][google.cloud.talent.v4beta1.Profile.employment_records]. + repeated Activity activities = 20; + + // Optional. + // + // The publications published by the candidate. + repeated Publication publications = 21; + + // Optional. + // + // The patents acquired by the candidate. + repeated Patent patents = 22; + + // Optional. + // + // The certifications acquired by the candidate. + repeated Certification certifications = 23; + + // Optional. + // + // The job applications of the candidate. + repeated JobApplication job_applications = 24; + + // Optional. + // + // The recruiting notes added for the candidate. + // + // For example, the recruiter can add some unstructured comments for this + // candidate like "this candidate also has experiences in volunteer work". + repeated RecruitingNote recruiting_notes = 25; + + // Optional. + // + // A map of fields to hold both filterable and non-filterable custom profile + // attributes that aren't covered by the provided structured fields. See + // [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more + // details. + // + // At most 100 filterable and at most 100 unfilterable keys are supported. If + // limit is exceeded, an error is thrown. + // + // Numeric custom attributes: each key can only map to one numeric value, + // otherwise an error is thrown. + // + // String custom attributes: each key can map up to 50 string values. For + // filterable string value, each value has a byte size of no more than 256B. + // For unfilterable string values, the maximum byte size of a single key is + // 64B. An error is thrown for any request exceeding the limit. + // The maximum total byte size is 10KB. + // + // Currently filterable numeric custom attributes are not supported, and + // they automatically set to unfilterable. + map custom_attributes = 26; + + // Output only. Indicates if the profile is fully processed and searchable. + bool processed = 27; + + // Output only. Keyword snippet shows how the search result is related to a + // search query. + string keyword_snippet = 28; +} + +// Resource that represents the name of a person. +message PersonName { + // Resource that represents a person's structured name. + message PersonStructuredName { + // Optional. + // + // Given/first name. + // + // It's derived from + // [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name] + // if not provided. + // + // Number of characters allowed is 100. + string given_name = 1; + + // Optional. + // + // Middle initial. + // + // It's derived from + // [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name] + // if not provided. + // + // Number of characters allowed is 20. + string middle_initial = 2; + + // Optional. + // + // Family/last name. + // + // It's derived from + // [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name] + // if not provided. + // + // Number of characters allowed is 100. + string family_name = 3; + + // Optional. + // + // Suffixes. + // + // Number of characters allowed is 20. + repeated string suffixes = 4; + + // Optional. + // + // Prefixes. + // + // Number of characters allowed is 20. + repeated string prefixes = 5; + } + + // The name of a person. It can be one of [formatted_name][] or + // [structured_name][]. + oneof person_name { + // Optional. + // + // A string represents a person's full name. For example, "Dr. John Smith". + // + // Number of characters allowed is 100. + string formatted_name = 1; + + // Optional. + // + // A person's name in a structured way (last name, first name, suffix, etc.) + PersonStructuredName structured_name = 2; + } + + // Optional. + // + // Preferred name for the person. + string preferred_name = 3; +} + +// Resource that represents a address. +message Address { + // Optional. + // + // The usage of the address. For example, SCHOOL, WORK, PERSONAL. + ContactInfoUsage usage = 1; + + // The address of a person. It can be one of [unstructured_address][] or + // [structured_address][]. + oneof address { + // Optional. + // + // Unstructured address. + // + // For example, "1600 Amphitheatre Pkwy, Mountain View, CA 94043", + // "Sunnyvale, California". + // + // Number of characters allowed is 100. + string unstructured_address = 2; + + // Optional. + // + // Structured address that contains street address, city, state, country, + // etc. + google.type.PostalAddress structured_address = 3; + } + + // Optional. + // + // Indicates if it's the person's current address. + google.protobuf.BoolValue is_current = 4; +} + +// Resource that represents a person's email address. +message Email { + // Optional. + // + // The usage of the email address. For example, SCHOOL, WORK, PERSONAL. + ContactInfoUsage usage = 1; + + // Optional. + // + // Email address. + // + // Number of characters allowed is 4,000. + string email_address = 2; +} + +// Resource that represents a person's telephone number. +message Phone { + // Enum that represents the type of the telephone. + enum PhoneType { + // Default value. + PHONE_TYPE_UNSPECIFIED = 0; + + // A landline. + LANDLINE = 1; + + // A mobile. + MOBILE = 2; + + // A fax. + FAX = 3; + + // A pager. + PAGER = 4; + + // A TTY (test telephone) or TDD (telecommunication device for the deaf). + TTY_OR_TDD = 5; + + // A voicemail. + VOICEMAIL = 6; + + // A virtual telephone number is a number that can be routed to another + // number and managed by the user via Web, SMS, IVR, etc. It is associated + // with a particular person, and may be routed to either a MOBILE or + // LANDLINE number. The phone usage (see ContactInfoUsage above) should be + // set to PERSONAL for these phone types. Some more information can be + // found here: http://en.wikipedia.org/wiki/Personal_Numbers + VIRTUAL = 7; + + // Voice over IP numbers. This includes TSoIP (Telephony Service over IP). + VOIP = 8; + + // In some regions (e.g. the USA), it is impossible to distinguish between + // fixed-line and mobile numbers by looking at the phone number itself. + MOBILE_OR_LANDLINE = 9; + } + + // Optional. + // + // The usage of the phone. For example, SCHOOL, WORK, PERSONAL. + ContactInfoUsage usage = 1; + + // Optional. + // + // The phone type. For example, LANDLINE, MOBILE, FAX. + PhoneType type = 2; + + // Optional. + // + // Phone number. + // + // Any phone formats are supported and only exact matches are performed on + // searches. For example, if a phone number in profile is provided in the + // format of "(xxx)xxx-xxxx", in profile searches the same phone format + // has to be provided. + // + // Number of characters allowed is 20. + string number = 3; + + // Optional. + // + // When this number is available. Any descriptive string is expected. + // + // Number of characters allowed is 100. + string when_available = 4; +} + +// Resource that represents a valid URI for a personal use. +message PersonalUri { + // Optional. + // + // The personal URI. + // + // Number of characters allowed is 4,000. + string uri = 1; +} + +// Resource that represents contact information other than phone, email, +// URI and addresses. +message AdditionalContactInfo { + // Optional. + // + // The usage of this contact method. For example, SCHOOL, WORK, PERSONAL. + ContactInfoUsage usage = 1; + + // Optional. + // + // The name of the contact method. + // + // For example, "hangout", "skype". + // + // Number of characters allowed is 100. + string name = 2; + + // Optional. + // + // The contact id. + // + // Number of characters allowed is 100. + string contact_id = 3; +} + +// Resource that represents an employment record of a candidate. +message EmploymentRecord { + // Optional. + // + // Start date of the employment. + // + // It can be a partial date (only year, or only year and month), but must be + // valid. Otherwise an error is thrown. + // + // Examples: + // {"year": 2017, "month": 2, "day": 28} is valid. + // {"year": 2020, "month": 1, "date": 31} is valid. + // {"year": 2018, "month": 12} is valid (partial date). + // {"year": 2018} is valid (partial date). + // {"year": 2015, "day": 21} is not valid (month is missing but day is + // presented). + // {"year": 2018, "month": 13} is not valid (invalid month). + // {"year": 2017, "month": 1, "day": 32} is not valid (invalid day). + google.type.Date start_date = 1; + + // Optional. + // + // End date of the employment. + google.type.Date end_date = 2; + + // Optional. + // + // The name of the employer company/organization. + // + // For example, "Google", "Alphabet", etc. + // + // Number of characters allowed is 100. + string employer_name = 3; + + // Optional. + // + // The division name of the employment. + // + // For example, division, department, client, etc. + // + // Number of characters allowed is 100. + string division_name = 4; + + // Optional. + // + // The physical address of the employer. + Address address = 5; + + // Optional. + // + // The job title of the employment. + // + // For example, "Software Engineer", "Data Scientist", etc. + // + // Number of characters allowed is 100. + string job_title = 6; + + // Optional. + // + // The description of job content. + // + // Number of characters allowed is 100,000. + string job_description = 7; + + // Optional. + // + // If it's a supervised position. + google.protobuf.BoolValue is_supervised_position = 8; + + // Optional. + // + // If this employment is self-employed. + google.protobuf.BoolValue is_self_employed = 9; + + // Optional. + // + // If this employment is current. + google.protobuf.BoolValue is_current = 10; + + // Output only. The job title snippet shows how the + // [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] is + // related to a search query. It's empty if the + // [job_title][google.cloud.talent.v4beta1.EmploymentRecord.job_title] isn't + // related to the search query. + string job_title_snippet = 11; + + // Output only. The job description snippet shows how the + // [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description] + // is related to a search query. It's empty if the + // [job_description][google.cloud.talent.v4beta1.EmploymentRecord.job_description] + // isn't related to the search query. + string job_description_snippet = 12; + + // Output only. The employer name snippet shows how the + // [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name] + // is related to a search query. It's empty if the + // [employer_name][google.cloud.talent.v4beta1.EmploymentRecord.employer_name] + // isn't related to the search query. + string employer_name_snippet = 13; +} + +// Resource that represents an education record of a candidate. +message EducationRecord { + // Optional. + // + // The start date of the education. + google.type.Date start_date = 1; + + // Optional. + // + // The end date of the education. + google.type.Date end_date = 2; + + // Optional. + // + // The expected graduation date if currently pursuing a degree. + google.type.Date expected_graduation_date = 3; + + // Optional. + // + // The name of the school or institution. + // + // For example, "Stanford University", "UC Berkeley", etc. + // + // Number of characters allowed is 100. + string school_name = 4; + + // Optional. + // + // The physical address of the education institution. + Address address = 5; + + // The degree information. It can be one of [degree_description][] or + // [structured_degree][]. + oneof degree { + // Optional. + // + // The full description of the degree. + // + // For example, "Master of Science in Computer Science", "B.S in Math". + // + // Number of characters allowed is 100. + string degree_description = 6; + + // Optional. + // + // The structured notation of the degree. + Degree structured_degree = 7; + } + + // Optional. + // + // The description of the education. + // + // Number of characters allowed is 100,000. + string description = 8; + + // Optional. + // + // If this education is current. + google.protobuf.BoolValue is_current = 9; + + // Output only. The school name snippet shows how the + // [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name] is + // related to a search query in search result. It's empty if the + // [school_name][google.cloud.talent.v4beta1.EducationRecord.school_name] + // isn't related to the search query. + string school_name_snippet = 10; + + // Output only. The job description snippet shows how the + // [degree][google.cloud.talent.v4beta1.degree] is related to a search query + // in search result. It's empty if the + // [degree][google.cloud.talent.v4beta1.degree] isn't related to the search + // query. + string degree_snippet = 11; +} + +// Resource that represents a degree pursuing or acquired by a candidate. +message Degree { + // Optional. + // + // ISCED degree type. + DegreeType degree_type = 1; + + // Optional. + // + // Full Degree name. + // + // For example, "B.S.", "Master of Arts", etc. + // + // Number of characters allowed is 100. + string degree_name = 2; + + // Optional. + // + // Fields of study for the degree. + // + // For example, "Computer science", "engineering". + // + // Number of characters allowed is 100. + repeated string fields_of_study = 3; +} + +// Resource that represents a skill of a candidate. +message Skill { + // Enum that represents the skill proficiency level. + enum SkillProficiencyLevel { + // Default value. + SKILL_PROFICIENCY_LEVEL_UNSPECIFIED = 0; + + // Have a common knowledge or an understanding of basic techniques and + // concepts. + FUNDAMENTAL_AWARENESS = 1; + + // Have the level of experience gained in a classroom and/or experimental + // scenarios or as a trainee on-the-job. + NOVICE = 2; + + // Be able to successfully complete tasks in this skill as requested. Help + // from an expert may be required from time to time, but can usually perform + // skill independently. + INTERMEDIATE = 3; + + // Can perform the actions associated with this skill without assistance. + ADVANCED = 4; + + // Known as an expert in this area. + EXPERT = 5; + } + + // Optional. + // + // Skill display name. + // + // For example, "Java", "Python". + // + // Number of characters allowed is 100. + string display_name = 1; + + // Optional. + // + // The last time this skill was used. + google.type.Date last_used_date = 2; + + // Optional. + // + // Skill proficiency level which indicates how proficient the candidate is at + // this skill. + SkillProficiencyLevel level = 3; + + // Optional. + // + // A paragraph describes context of this skill. + // + // Number of characters allowed is 100,000. + string context = 4; + + // Output only. Skill name snippet shows how the + // [display_name][google.cloud.talent.v4beta1.Skill.display_name] is related + // to a search query. It's empty if the + // [display_name][google.cloud.talent.v4beta1.Skill.display_name] isn't + // related to the search query. + string skill_name_snippet = 5; +} + +// Resource that represents an individual or collaborative activity participated +// in by a candidate, for example, an open-source project, a class assignment, +// etc. +message Activity { + // Optional. + // + // Activity display name. + // + // Number of characters allowed is 100. + string display_name = 1; + + // Optional. + // + // Activity description. + // + // Number of characters allowed is 100,000. + string description = 2; + + // Optional. + // + // Activity URI. + // + // Number of characters allowed is 4,000. + string uri = 3; + + // Optional. + // + // The first creation date of the activity. + google.type.Date create_date = 4; + + // Optional. + // + // The last update date of the activity. + google.type.Date update_date = 5; + + // Optional. + // + // A list of team members involved in this activity. + // + // Number of characters allowed is 100. + repeated string team_members = 6; + + // Optional. + // + // A list of skills used in this activity. + repeated Skill skills_used = 7; + + // Output only. Activity name snippet shows how the + // [display_name][google.cloud.talent.v4beta1.Activity.display_name] is + // related to a search query. It's empty if the + // [display_name][google.cloud.talent.v4beta1.Activity.display_name] isn't + // related to the search query. + string activity_name_snippet = 8; + + // Output only. Activity description snippet shows how the + // [description][google.cloud.talent.v4beta1.Activity.description] is related + // to a search query. It's empty if the + // [description][google.cloud.talent.v4beta1.Activity.description] isn't + // related to the search query. + string activity_description_snippet = 9; + + // Output only. Skill used snippet shows how the corresponding + // [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are related + // to a search query. It's empty if the corresponding + // [skills_used][google.cloud.talent.v4beta1.Activity.skills_used] are not + // related to the search query. + repeated string skills_used_snippet = 10; +} + +// Resource that represents a publication resource of a candidate. +message Publication { + // Optional. + // + // A list of author names. + // + // Number of characters allowed is 100. + repeated string authors = 1; + + // Optional. + // + // The title of the publication. + // + // Number of characters allowed is 100. + string title = 2; + + // Optional. + // + // The description of the publication. + // + // Number of characters allowed is 100,000. + string description = 3; + + // Optional. + // + // The journal name of the publication. + // + // Number of characters allowed is 100. + string journal = 4; + + // Optional. + // + // Volume number. + // + // Number of characters allowed is 100. + string volume = 5; + + // Optional. + // + // The publisher of the journal. + // + // Number of characters allowed is 100. + string publisher = 6; + + // Optional. + // + // The publication date. + google.type.Date publication_date = 7; + + // Optional. + // + // The publication type. + // + // Number of characters allowed is 100. + string publication_type = 8; + + // Optional. + // + // ISBN number. + // + // Number of characters allowed is 100. + string isbn = 9; +} + +// Resource that represents the patent acquired by a candidate. +message Patent { + // Optional. + // + // Name of the patent. + // + // Number of characters allowed is 100. + string display_name = 1; + + // Optional. + // + // A list of inventors' names. + // + // Number of characters allowed for each is 100. + repeated string inventors = 2; + + // Optional. + // + // The status of the patent. + // + // Number of characters allowed is 100. + string patent_status = 3; + + // Optional. + // + // The date the last time the status of the patent was checked. + google.type.Date patent_status_date = 4; + + // Optional. + // + // The date that the patent was filed. + google.type.Date patent_filing_date = 5; + + // Optional. + // + // The name of the patent office. + // + // Number of characters allowed is 100. + string patent_office = 6; + + // Optional. + // + // The number of the patent. + // + // Number of characters allowed is 100. + string patent_number = 7; + + // Optional. + // + // The description of the patent. + // + // Number of characters allowed is 100,000. + string patent_description = 8; + + // Optional. + // + // The skills used in this patent. + repeated Skill skills_used = 9; +} + +// Resource that represents a job application record of a candidate. +message JobApplication { + // Enum that represents the application status. + enum ApplicationStatus { + // Default value. + APPLICATION_STATUS_UNSPECIFIED = 0; + + // The offer is extended. + OFFER_EXTENDED = 1; + + // The offer is rejected by candidate. + REJECTED_BY_CANDIDATE = 2; + + // The application is active. + ACTIVE = 3; + + // The candidate is rejected by employer. + REJECTED_BY_EMPLOYER = 4; + + // The candidate is hired and hasn't started the new job. + HIRED_PENDING_DATE = 5; + + // The candidate is hired started. + HIRED_STARTED = 6; + + // The candidate is a prospect candidate. + PROSPECTED = 7; + } + + // Optional. + // + // The information of job which the candidate applied for. + // + // If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the + // corresponding [Job][google.cloud.talent.v4beta1.Job] must be created. + // + // Otherwise, only + // [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id], + // [Job.title][google.cloud.talent.v4beta1.Job.title], + // [Job.description][google.cloud.talent.v4beta1.Job.description] and + // [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here + // are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job] + // entity is created in this case. + Job job = 1; + + // Optional. + // + // The job application id. + // + // Number of characters allowed is 100. + string application_id = 2; + + // Optional. + // + // The application date. + google.type.Date application_date = 3; + + // Optional. + // + // The last stage the candidate reached in the application progress. + // For example, "new", "phone screen", "interview". + string last_stage = 4; + + // Optional. + // + // The application state. + ApplicationStatus state = 5; + + // Optional. + // + // The average interview score. + double average_interview_score = 6; + + // Optional. + // + // The scale id of the interview score. + // + // Number of characters allowed is 100. + string interview_score_scale_id = 7; + + // Optional. + // + // The number of interviews. + int32 number_of_interviews = 8; + + // Optional. + // + // If the candidate is referred by a employee. + google.protobuf.BoolValue is_employee_referred = 9; + + // Optional. + // + // The last update timestamp. + google.protobuf.Timestamp update_time = 10; + + // Optional. + // + // The outcome reason for the job application. + // + // Number of characters allowed is 100. + string outcome_reason = 11; + + // Optional. + // + // Outcome positiveness shows how positive the outcome is. + // + // Currently only -1, 0 and 1 are accepted, where -1 means not positive, 0 + // means neutral and 1 means positive. An error is thrown if other value is + // set. + double outcome_positiveness = 12; + + // Output only. Indicates whether this job application is a match to + // application related filters. This value is only applicable in profile + // search response. + google.protobuf.BoolValue is_match = 13; + + // Output only. Job title snippet shows how the job title is related to a + // search query. It's empty if the job title isn't related to the search + // query. + string job_title_snippet = 14; +} + +// Resource that represents a license or certification. +message Certification { + // Optional. + // + // Name of license or certification. + // + // Number of characters allowed is 100. + string display_name = 1; + + // Optional. + // + // Acquirement date or effective date of license or certification. + google.type.Date acquire_date = 2; + + // Optional. + // + // Expiration date of license of certification. + google.type.Date expire_date = 3; + + // Optional. + // + // Authority of license, such as government. + // + // Number of characters allowed is 100. + string authority = 4; + + // Optional. + // + // Description of license or certification. + // + // Number of characters allowed is 100,000. + string description = 5; +} + +// RecruitingNote represents a note/comment regarding the recruiting for a +// candidate. For example, "This candidate is a potential match for a frontend +// engineer at SF". +message RecruitingNote { + // Optional. + // + // The content of note. + // + // Number of characters allowed is 4,000. + string note = 1; + + // Optional. + // + // The person who wrote the notes. + // + // Number of characters allowed is 100. + string commenter = 2; + + // Optional. + // + // The create date of the note. + google.type.Date create_date = 3; + + // Optional. + // + // The note type. + // + // Number of characters allowed is 100. + string type = 4; +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/profile_service.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/profile_service.proto new file mode 100644 index 000000000000..aa6f5c5440b5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/profile_service.proto @@ -0,0 +1,458 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.talent.v4beta1; + +import "google/api/annotations.proto"; +import "google/cloud/talent/v4beta1/common.proto"; +import "google/cloud/talent/v4beta1/filters.proto"; +import "google/cloud/talent/v4beta1/histogram.proto"; +import "google/cloud/talent/v4beta1/profile.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option java_multiple_files = true; +option java_outer_classname = "ProfileServiceProto"; +option java_package = "com.google.cloud.talent.v4beta1"; +option objc_class_prefix = "CTS"; + +// A service that handles profile management, including profile CRUD, +// enumeration and search. +service ProfileService { + // Lists profiles by filter. The order is unspecified. + rpc ListProfiles(ListProfilesRequest) returns (ListProfilesResponse) { + option (google.api.http) = { + get: "/v4beta1/{parent=projects/*/tenants/*}/profiles" + }; + } + + // Creates and returns a new profile. + rpc CreateProfile(CreateProfileRequest) returns (Profile) { + option (google.api.http) = { + post: "/v4beta1/{parent=projects/*/tenants/*}/profiles" + body: "*" + }; + } + + // Gets the specified profile. + rpc GetProfile(GetProfileRequest) returns (Profile) { + option (google.api.http) = { + get: "/v4beta1/{name=projects/*/tenants/*/profiles/*}" + }; + } + + // Updates the specified profile and returns the updated result. + rpc UpdateProfile(UpdateProfileRequest) returns (Profile) { + option (google.api.http) = { + patch: "/v4beta1/{profile.name=projects/*/tenants/*/profiles/*}" + body: "*" + }; + } + + // Deletes the specified profile. + rpc DeleteProfile(DeleteProfileRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v4beta1/{name=projects/*/tenants/*/profiles/*}" + }; + } + + // Searches for profiles within a tenant. + // + // For example, search by raw queries "software engineer in Mountain View" or + // search by structured filters (location filter, education filter, etc.). + // + // See + // [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest] + // for more information. + rpc SearchProfiles(SearchProfilesRequest) returns (SearchProfilesResponse) { + option (google.api.http) = { + post: "/v4beta1/{parent=projects/*/tenants/*}:search" + body: "*" + }; + } +} + +// List profiles request. +message ListProfilesRequest { + // Required. + // + // The resource name of the tenant under which the job is created. + // + // The format is "projects/{project_id}/tenants/{tenant_id}", for example, + // "projects/api-test-project/tenants/foo". + string parent = 1; + + // Optional. + // + // The token that specifies the current offset (that is, starting result). + // + // Please set the value to + // [ListProfilesResponse.next_page_token][google.cloud.talent.v4beta1.ListProfilesResponse.next_page_token] + // to continue the list. + string page_token = 2; + + // Optional. + // + // The maximum number of profiles to be returned, at most 100. + // + // Default is 100 unless a positive number smaller than 100 is specified. + int32 page_size = 3; + + // Optional. + // + // A field mask to specify the profile fields to be listed in response. + // All fields are listed if it is unset. + // + // Valid values are: + // + // * name + google.protobuf.FieldMask field_mask = 4; +} + +// The List profiles response object. +message ListProfilesResponse { + // Profiles for the specific tenant. + repeated Profile profiles = 1; + + // A token to retrieve the next page of results. This is empty if there are no + // more results. + string next_page_token = 2; +} + +// Create profile request. +message CreateProfileRequest { + // Required. + // + // The name of the tenant this profile belongs to. + // + // The format is "projects/{project_id}/tenants/{tenant_id}", for example, + // "projects/api-test-project/tenants/foo". + string parent = 1; + + // Required. + // + // The profile to be created. + Profile profile = 2; +} + +// Get profile request. +message GetProfileRequest { + // Required. + // + // Resource name of the profile to get. + // + // The format is + // "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", + // for example, "projects/api-test-project/tenants/foo/profiles/bar". + string name = 1; +} + +// Update profile request +message UpdateProfileRequest { + // Required. + // + // Profile to be updated. + Profile profile = 1; + + // Optional. + // + // A field mask to specify the profile fields to update. + // + // A full update is performed if it is unset. + // + // Valid values are: + // + // * externalId + // * source + // * uri + // * isHirable + // * createTime + // * updateTime + // * resumeHrxml + // * personNames + // * addresses + // * emailAddresses + // * phoneNumbers + // * personalUris + // * additionalContactInfo + // * employmentRecords + // * educationRecords + // * skills + // * projects + // * publications + // * patents + // * certifications + // * jobApplications + // * recruitingNotes + // * customAttributes + google.protobuf.FieldMask update_mask = 2; +} + +// Delete profile request. +message DeleteProfileRequest { + // Required. + // + // Resource name of the profile to be deleted. + // + // The format is + // "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", + // for example, "projects/api-test-project/tenants/foo/profiles/bar". + string name = 1; +} + +// The request body of the `SearchProfiles` call. +message SearchProfilesRequest { + // Required. + // + // The resource name of the tenant to search within. + // + // The format is "projects/{project_id}/tenants/{tenant_id}", for example, + // "projects/api-test-project/tenants/foo". + string parent = 1; + + // Required. + // + // The meta information collected about the profile search user. This is used + // to improve the search quality of the service. These values are provided by + // users, and must be precise and consistent. + RequestMetadata request_metadata = 2; + + // Optional. + // + // Search query to execute. See + // [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details. + ProfileQuery profile_query = 3; + + // Optional. + // + // A limit on the number of profiles returned in the search results. + // A value above the default value 10 can increase search response time. + // + // The maximum value allowed is 100. Otherwise an error is thrown. + int32 page_size = 4; + + // Optional. + // + // The pageToken, similar to offset enables users of the API to paginate + // through the search results. To retrieve the first page of results, set the + // pageToken to empty. The search response includes a + // [nextPageToken][google.cloud.talent.v4beta1.SearchProfilesResponse.next_page_token] + // field that can be used to populate the pageToken field for the next page of + // results. Using pageToken instead of offset increases the performance of the + // API, especially compared to larger offset values. + string page_token = 5; + + // Optional. + // + // An integer that specifies the current offset (that is, starting result) in + // search results. This field is only considered if + // [page_token][google.cloud.talent.v4beta1.SearchProfilesRequest.page_token] + // is unset. + // + // The maximum allowed value is 5000. Otherwise an error is thrown. + // + // For example, 0 means to search from the first profile, and 10 means to + // search from the 11th profile. This can be used for pagination, for example + // pageSize = 10 and offset = 10 means to search from the second page. + int32 offset = 6; + + // Optional. + // + // This flag controls the spell-check feature. If `false`, the + // service attempts to correct a misspelled query. + // + // For example, "enginee" is corrected to "engineer". + bool disable_spell_check = 7; + + // Optional. + // + // The criteria that determines how search results are sorted. + // Defaults is "relevance desc" if no value is specified. + // + // Supported options are: + // + // * "relevance desc": By descending relevance, as determined by the API + // algorithms. + // * "update_date desc": Sort by [Profile.update_date][] in descending order + // (recently updated profiles first). + // * "create_date desc": Sort by [Profile.create_date][] in descending order + // (recently created profiles first). + // * "first_name": Sort by [PersonStrcuturedName.given_name][] in ascending + // order. + // * "first_name desc": Sort by [PersonStrcuturedName.given_name][] in + // descending order. + // * "last_name": Sort by [PersonStrcuturedName.family_name][] in ascending + // order. + // * "last_name desc": Sort by [PersonStrcuturedName.family_name][] in + // ascending order. + string order_by = 8; + + // Optional. + // + // When sort by field is based on alphabetical order, sort values case + // sensitively (based on ASCII) when the value is set to true. Default value + // is case in-sensitive sort (false). + bool case_sensitive_sort = 9; + + // Optional. + // + // A list of expressions specifies histogram requests against matching + // profiles for + // [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest]. + // + // The expression syntax looks like a function definition with optional + // parameters. + // + // Function syntax: function_name(histogram_facet[, list of buckets]) + // + // Data types: + // + // * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+. + // * String: string like "any string with backslash escape for quote(\")." + // * Number: whole number and floating point number like 10, -1 and -0.01. + // * List: list of elements with comma(,) separator surrounded by square + // brackets. For example, [1, 2, 3] and ["one", "two", "three"]. + // + // Built-in constants: + // + // * MIN (minimum number similar to java Double.MIN_VALUE) + // * MAX (maximum number similar to java Double.MAX_VALUE) + // + // Built-in functions: + // + // * bucket(start, end[, label]) + // Bucket build-in function creates a bucket with range of [start, end). Note + // that the end is exclusive. + // For example, bucket(1, MAX, "positive number") or bucket(1, 10). + // + // Histogram Facets: + // + // * admin1: Admin1 is a global placeholder for referring to state, province, + // or the particular term a country uses to define the geographic structure + // below the country level. Examples include states codes such as "CA", "IL", + // "NY", and provinces, such as "BC". + // * locality: Locality is a global placeholder for referring to city, town, + // or the particular term a country uses to define the geographic structure + // below the admin1 level. Examples include city names such as + // "Mountain View" and "New York". + // * extended_locality: Extended locality is concatenated version of admin1 + // and locality with comma separator. For example, "Mountain View, CA" and + // "New York, NY". + // * postal_code: Postal code of profile which follows locale code. + // * country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US, + // JP, GB. + // * job_title: Normalized job titles specified in EmploymentHistory. + // * company_name: Normalized company name of profiles to match on. + // * institution: The school name. For example, "MIT", + // "University of California, Berkeley" + // * degree: Highest education degree in ISCED code. Each value in degree + // covers specific level of education, without any expansion to upper nor + // lower levels of education degree. + // * experience_in_months: experience in months. 0 means 0 month to 1 month + // (exclusive). + // * application_date: The application date specifies application start dates. + // See + // [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter] + // for more details. + // * application_outcome_reason: The application outcome reason specifies the + // outcome reasons of job application. + // See + // [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter] + // for more details. + // * application_last_stage: The application last stage specifies the last + // stage of job application. + // See + // [ApplicationLastStageFilter][google.cloud.talent.v4beta1.ApplicationLastStageFilter] + // for more details. + // * application_job_title: The application job title specifies the job + // applied for in the application. + // See + // [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter] + // for more details. + // * application_status: The application status specifies the status of job + // application. + // See + // [ApplicationStatusFilter][google.cloud.talent.v4beta1.ApplicationStatusFilter] + // for more details. + // * hirable_status: Hirable status specifies the profile's hirable status. + // * string_custom_attribute: String custom attributes. Values can be accessed + // via square bracket notation like string_custom_attribute["key1"]. + // * numeric_custom_attribute: Numeric custom attributes. Values can be + // accessed via square bracket notation like numeric_custom_attribute["key1"]. + // + // Example expressions: + // + // * count(admin1) + // * count(experience_in_months, [bucket(0, 12, "1 year"), + // bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")]) + // * count(string_custom_attribute["assigned_recruiter"]) + // * count(numeric_custom_attribute["favorite_number"], + // [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")]) + repeated HistogramQuery histogram_queries = 10; +} + +// Response of SearchProfiles method. +message SearchProfilesResponse { + // An estimation of the number of profiles that match the specified query. + // + // This number isn't guaranteed to be accurate. + int64 estimated_total_size = 1; + + // The spell checking result, and correction. + SpellingCorrection spell_correction = 2; + + // Additional information for the API invocation, such as the request + // tracking id. + ResponseMetadata metadata = 3; + + // A token to retrieve the next page of results. This is empty if there are no + // more results. + string next_page_token = 4; + + // The histogram results that match with specified + // [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries]. + repeated HistogramQueryResult histogram_query_results = 5; + + // The profile entities that match the specified + // [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest]. + repeated SummarizedProfile summarized_profiles = 6; +} + +// Output only. +// +// Profile entry with metadata inside +// [SearchProfilesResponse][google.cloud.talent.v4beta1.SearchProfilesResponse]. +message SummarizedProfile { + // A list of profiles that are linked by [Profile.cluster_id][]. + repeated Profile profiles = 1; + + // A profile summary shows the profile summary and how the profile matches the + // search query. + // + // In profile summary, the profiles with the same [Profile.cluster_id][] are + // merged together. Among profiles, same education/employment records may be + // slightly different but they are merged into one with best efforts. + // + // For example, in one profile the school name is "UC Berkeley" and the field + // study is "Computer Science" and in another one the school name is + // "University of California at Berkeley" and the field study is "CS". The API + // merges these two inputs into one and selects one value for each field. For + // example, the school name in summary is set to "University of California at + // Berkeley" and the field of study is set to "Computer Science". + Profile summary = 2; +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/resume_service.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/resume_service.proto new file mode 100644 index 000000000000..76530577671c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/resume_service.proto @@ -0,0 +1,142 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.talent.v4beta1; + +import "google/api/annotations.proto"; +import "google/cloud/talent/v4beta1/profile.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option java_multiple_files = true; +option java_outer_classname = "ResumeServiceProto"; +option java_package = "com.google.cloud.talent.v4beta1"; +option objc_class_prefix = "CTS"; + +// A service that handles resume parsing. +service ResumeService { + // Parses a resume into a [Profile][google.cloud.talent.v4beta1.Profile]. The + // API attempts to fill out the following profile fields if present within the + // resume: + // + // * personNames + // * addresses + // * emailAddress + // * phoneNumbers + // * personalUris + // * employmentRecords + // * educationRecords + // * skills + // + // Note that some attributes in these fields may not be populated if they're + // not present within the resume or unrecognizable by the resume parser. + // + // This API does not save the resume or profile. To create a profile from this + // resume, clients need to call the CreateProfile method again with the + // profile returned. + // + // The following list of formats are supported: + // + // * PDF + // * TXT + // * DOC + // * RTF + // * DOCX + // * PNG (only when [ParseResumeRequest.enable_ocr][] is set to `true`, + // otherwise an error is thrown) + rpc ParseResume(ParseResumeRequest) returns (ParseResumeResponse) { + option (google.api.http) = { + post: "/v4beta1/{parent=projects/*}/resumes:parse" + body: "*" + }; + } +} + +// Parse resume request. +message ParseResumeRequest { + // Required. + // + // The resource name of the project. + // + // The format is "projects/{project_id}", for example, + // "projects/api-test-project". + string parent = 1; + + // Required. + // + // The bytes of the resume file in common format, for example, PDF, TXT. + // UTF-8 encoding is required if the resume is text-based, otherwise an error + // is thrown. + bytes resume = 2; + + // Optional. + // + // The region code indicating where the resume is from. Values + // are as per the ISO-3166-2 format. For example, US, FR, DE. + // + // This value is optional, but providing this value improves the resume + // parsing quality and performance. + // + // An error is thrown if the regionCode is invalid. + string region_code = 3; + + // Optional. + // + // The language code of contents in the resume. + // + // Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn". + // For more information, see + // [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){: + // class="external" target="_blank" }. + string language_code = 4; + + // Optional. + // + // Options that change how the resume parse is performed. + ParseResumeOptions options = 5; +} + +// Options that change how the resume parse is performed. +message ParseResumeOptions { + // Optional. + // + // Controls whether Optical Character Recognition (OCR) is enabled. + // + // OCR is used to decipher pictorial resumes, or resumes that have some + // element of pictorial detail (for example, contact information placed within + // an image in a pdf). Note that the API call has a higher latency if OCR is + // enabled. + bool enable_ocr = 1; + + // Optional. + // + // Controls whether detected skills are included in the parsed profile from + // sections of the resume other than just skills sections. + // + // Normally, returned skills are limited to those taken from a resume section + // intended to list skills. When enabled, this feature causes detected + // skills in other sections to also be included in the returned profile. + bool enable_full_skill_detection = 2; +} + +// Parse resume response. +message ParseResumeResponse { + // The profile parsed from resume. + Profile profile = 1; + + // Raw text from resume. + string raw_text = 2; +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/tenant.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/tenant.proto new file mode 100644 index 000000000000..f2f2ee496aa2 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/tenant.proto @@ -0,0 +1,73 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.talent.v4beta1; + +import "google/api/annotations.proto"; +import "google/cloud/talent/v4beta1/common.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option java_multiple_files = true; +option java_outer_classname = "TenantResourceProto"; +option java_package = "com.google.cloud.talent.v4beta1"; +option objc_class_prefix = "CTS"; + +// A Tenant resource represents a tenant in the service. A tenant is a group or +// entity that shares common access with specific privileges for resources like +// profiles. Customer may create multiple tenants to provide data isolation for +// different groups. +message Tenant { + // Enum that represents how user data owned by the tenant is used. + enum DataUsageType { + // Default value. + DATA_USAGE_TYPE_UNSPECIFIED = 0; + + // Data owned by this tenant is used to improve search/recommendation + // quality across tenants. + AGGREGATED = 1; + + // Data owned by this tenant is used to improve search/recommendation + // quality for this tenant only. + ISOLATED = 2; + } + + // Required during tenant update. + // + // The resource name for a tenant. This is generated by the service when a + // tenant is created. + // + // The format is "projects/{project_id}/tenants/{tenant_id}", for example, + // "projects/api-test-project/tenants/foo". + string name = 1; + + // Required. + // + // Client side tenant identifier, used to uniquely identify the tenant. + // + // The maximum number of allowed characters is 255. + string external_id = 2; + + // Optional. + // + // Indicates whether data owned by this tenant may be used to provide product + // improvements across other tenants. + // + // Defaults behavior is + // [DataUsageType.ISOLATED][google.cloud.talent.v4beta1.Tenant.DataUsageType.ISOLATED] + // if it's unset. + DataUsageType usage_type = 3; +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/tenant_service.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/tenant_service.proto new file mode 100644 index 000000000000..18de6cd094c3 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/tenant_service.proto @@ -0,0 +1,167 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.talent.v4beta1; + +import "google/api/annotations.proto"; +import "google/cloud/talent/v4beta1/common.proto"; +import "google/cloud/talent/v4beta1/tenant.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option java_multiple_files = true; +option java_outer_classname = "TenantServiceProto"; +option java_package = "com.google.cloud.talent.v4beta1"; +option objc_class_prefix = "CTS"; + +// A service that handles tenant management, including CRUD and enumeration. +service TenantService { + // Creates a new tenant entity. + rpc CreateTenant(CreateTenantRequest) returns (Tenant) { + option (google.api.http) = { + post: "/v4beta1/{parent=projects/*}/tenants" + body: "*" + }; + } + + // Retrieves specified tenant. + rpc GetTenant(GetTenantRequest) returns (Tenant) { + option (google.api.http) = { + get: "/v4beta1/{name=projects/*/tenants/*}" + }; + } + + // Updates specified tenant. + rpc UpdateTenant(UpdateTenantRequest) returns (Tenant) { + option (google.api.http) = { + patch: "/v4beta1/{tenant.name=projects/*/tenants/*}" + body: "*" + }; + } + + // Deletes specified tenant. + rpc DeleteTenant(DeleteTenantRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v4beta1/{name=projects/*/tenants/*}" + }; + } + + // Lists all tenants associated with the project. + rpc ListTenants(ListTenantsRequest) returns (ListTenantsResponse) { + option (google.api.http) = { + get: "/v4beta1/{parent=projects/*}/tenants" + }; + } +} + +// The Request of the CreateTenant method. +message CreateTenantRequest { + // Required. + // + // Resource name of the project under which the tenant is created. + // + // The format is "projects/{project_id}", for example, + // "projects/api-test-project". + string parent = 1; + + // Required. + // + // The tenant to be created. + Tenant tenant = 2; +} + +// Request for getting a tenant by name. +message GetTenantRequest { + // Required. + // + // The resource name of the tenant to be retrieved. + // + // The format is "projects/{project_id}/tenants/{tenant_id}", for example, + // "projects/api-test-project/tenants/foo". + string name = 1; +} + +// Request for updating a specified tenant. +message UpdateTenantRequest { + // Required. + // + // The tenant resource to replace the current resource in the system. + Tenant tenant = 1; + + // Optional but strongly recommended for the best service + // experience. + // + // If + // [update_mask][google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask] + // is provided, only the specified fields in + // [tenant][google.cloud.talent.v4beta1.UpdateTenantRequest.tenant] are + // updated. Otherwise all the fields are updated. + // + // A field mask to specify the tenant fields to be updated. Only + // top level fields of [Tenant][google.cloud.talent.v4beta1.Tenant] are + // supported. + google.protobuf.FieldMask update_mask = 2; +} + +// Request to delete a tenant. +message DeleteTenantRequest { + // Required. + // + // The resource name of the tenant to be deleted. + // + // The format is "projects/{project_id}/tenants/{tenant_id}", for example, + // "projects/api-test-project/tenants/foo". + string name = 1; +} + +// List tenants for which the client has ACL visibility. +message ListTenantsRequest { + // Required. + // + // Resource name of the project under which the tenant is created. + // + // The format is "projects/{project_id}", for example, + // "projects/api-test-project". + string parent = 1; + + // Optional. + // + // The starting indicator from which to return results. + string page_token = 2; + + // Optional. + // + // The maximum number of tenants to be returned, at most 100. + // Default is 100 if a non-positive number is provided. + int32 page_size = 3; +} + +// Output only. +// +// The List tenants response object. +message ListTenantsResponse { + // Tenants for the current client. + repeated Tenant tenants = 1; + + // A token to retrieve the next page of results. + string next_page_token = 2; + + // Additional information for the API invocation, such as the request + // tracking id. + ResponseMetadata metadata = 3; +} diff --git a/google-cloud-bom/pom.xml b/google-cloud-bom/pom.xml index bad21c38538a..f4f29438e5de 100644 --- a/google-cloud-bom/pom.xml +++ b/google-cloud-bom/pom.xml @@ -960,6 +960,21 @@ google-cloud-iamcredentials 0.10.1-alpha-SNAPSHOT + + com.google.api.grpc + proto-google-cloud-talent-v4beta1 + 0.0.1-beta-SNAPSHOT + + + com.google.api.grpc + grpc-google-cloud-talent-v4beta1 + 0.0.1-beta-SNAPSHOT + + + com.google.cloud + google-cloud-talent + 0.0.1-beta-SNAPSHOT + diff --git a/google-cloud-clients/google-cloud-talent/README.md b/google-cloud-clients/google-cloud-talent/README.md new file mode 100644 index 000000000000..534bcbecefb4 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/README.md @@ -0,0 +1,100 @@ +Google Cloud Java Client for Cloud Talent Solution +=================================================== + +Java idiomatic client for [Cloud Talent Solution][product-overview]. + +[![Kokoro CI](http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/master.svg)](http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/master.html) +[![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-talent.svg)](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-talent.svg) +[![Codacy Badge](https://api.codacy.com/project/badge/grade/9da006ad7c3a4fe1abd142e77c003917)](https://www.codacy.com/app/mziccard/google-cloud-java) + +- [Product Documentation][product-docs] +- [Client Library Documentation][lib-docs] + +> Note: This client is a work-in-progress, and may occasionally +> make backwards-incompatible changes. + +Quickstart +---------- + +[//]: # ({x-version-update-start:google-cloud-talent:released}) +If you are using Maven, add this to your pom.xml file +```xml + + com.google.cloud + google-cloud-talent + 0.1.0-beta + +``` +If you are using Gradle, add this to your dependencies +```Groovy +compile 'com.google.cloud:google-cloud-talent:0.1.0-beta' +``` +If you are using SBT, add this to your dependencies +```Scala +libraryDependencies += "com.google.cloud" % "google-cloud-talent" % "0.1.0-beta" +``` +[//]: # ({x-version-update-end}) + +Authentication +-------------- + +See the [Authentication](https://github.com/GoogleCloudPlatform/google-cloud-java#authentication) section in the base directory's README. + +About Cloud Talent Solution +---------------------------- + +[Cloud Talent Solution][product-overview] + +See the [Cloud Talent Solution client library docs][lib-docs] to learn how to use this Cloud Talent Solution Client Library. + +Getting Started +--------------- +#### Prerequisites +You will need a [Google Developers Console](https://console.developers.google.com/) project with the Cloud Talent Solution API enabled. [Follow these instructions](https://cloud.google.com/resource-manager/docs/creating-managing-projects) to get your project set up. You will also need to set up the local development environment by [installing the Google Cloud SDK](https://cloud.google.com/sdk/) and running the following commands in command line: `gcloud auth login` and `gcloud config set project [YOUR PROJECT ID]`. + +#### Installation and setup +You'll need to obtain the `google-cloud-talent` library. See the [Quickstart](#quickstart) section to add `google-cloud-talent` as a dependency in your code. + +Troubleshooting +--------------- + +To get help, follow the instructions in the [shared Troubleshooting document](https://github.com/googleapis/google-cloud-common/blob/master/troubleshooting/readme.md#troubleshooting). + +Transport +--------- +Cloud Talent Solution uses gRPC for the transport layer. + +Java Versions +------------- + +Java 7 or above is required for using this client. + +Versioning +---------- + +This library follows [Semantic Versioning](http://semver.org/). + +It is currently in major version zero (``0.y.z``), which means that anything may change at any time and the public API should not be considered stable. + +Contributing +------------ + +Contributions to this library are always welcome and highly encouraged. + +See `google-cloud`'s [CONTRIBUTING] documentation and the [shared documentation](https://github.com/googleapis/google-cloud-common/blob/master/contributing/readme.md#how-to-contribute-to-gcloud) for more information on how to get started. + +Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms. See [Code of Conduct][code-of-conduct] for more information. + +License +------- + +Apache 2.0 - See [LICENSE] for more information. + + +[CONTRIBUTING]:https://github.com/GoogleCloudPlatform/google-cloud-java/blob/master/CONTRIBUTING.md +[code-of-conduct]:https://github.com/GoogleCloudPlatform/google-cloud-java/blob/master/CODE_OF_CONDUCT.md#contributor-code-of-conduct +[LICENSE]: https://github.com/GoogleCloudPlatform/google-cloud-java/blob/master/LICENSE +[cloud-platform]: https://cloud.google.com/ +[product-overview]: https://cloud.google.com/solutions/talent-solution/ +[product-docs]: https://cloud.google.com/talent-solution/docs/ +[lib-docs]: https://googleapis.github.io/google-cloud-java/google-cloud-clients/apidocs/index.html?com/google/cloud/talent/v4beta1/package-summary.html \ No newline at end of file diff --git a/google-cloud-clients/google-cloud-talent/pom.xml b/google-cloud-clients/google-cloud-talent/pom.xml new file mode 100644 index 000000000000..0f6dddd4d22f --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/pom.xml @@ -0,0 +1,87 @@ + + + 4.0.0 + google-cloud-talent + 0.0.1-beta-SNAPSHOT + jar + Google Cloud Talent Solution + https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-talent + + Java idiomatic client for Google Cloud Talent Solution. + + + com.google.cloud + google-cloud-clients + 0.83.1-alpha-SNAPSHOT + + + google-cloud-talent + + + + ${project.groupId} + google-cloud-core + + + ${project.groupId} + google-cloud-core-grpc + + + com.google.api.grpc + proto-google-cloud-talent-v4beta1 + + + com.google.api.grpc + grpc-google-cloud-talent-v4beta1 + + + io.grpc + grpc-netty-shaded + + + io.grpc + grpc-stub + + + io.grpc + grpc-auth + + + ${project.groupId} + google-cloud-core + test-jar + test + + + junit + junit + test + + + org.easymock + easymock + test + + + org.objenesis + objenesis + test + + + com.google.truth + truth + test + + + com.google.api.grpc + grpc-google-iam-v1 + test + + + com.google.api + gax-grpc + testlib + test + + + \ No newline at end of file diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceClient.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceClient.java new file mode 100644 index 000000000000..1ab9b9204e93 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceClient.java @@ -0,0 +1,770 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4beta1.stub.CompanyServiceStub; +import com.google.cloud.talent.v4beta1.stub.CompanyServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND SERVICE +/** + * Service Description: A service that handles company management, including CRUD and enumeration. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

+ * 
+ * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+ *   ProjectName parent = ProjectName.of("[PROJECT]");
+ *   Company company = Company.newBuilder().build();
+ *   Company response = companyServiceClient.createCompany(parent, company);
+ * }
+ * 
+ * 
+ * + *

Note: close() needs to be called on the companyServiceClient object to clean up resources such + * as threads. In the example above, try-with-resources is used, which automatically calls close(). + * + *

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

    + *
  1. A "flattened" method. With this type of method, the fields of the request type have been + * converted into function parameters. It may be the case that not all fields are available as + * parameters, and not every API method will have a flattened method entry point. + *
  2. A "request object" method. This type of method only takes one parameter, a request object, + * which must be constructed before the call. Not every API method will have a request object + * method. + *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API + * callable object, which can be used to initiate calls to the service. + *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of CompanyServiceSettings to + * create(). For example: + * + *

To customize credentials: + * + *

+ * 
+ * CompanyServiceSettings companyServiceSettings =
+ *     CompanyServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * CompanyServiceClient companyServiceClient =
+ *     CompanyServiceClient.create(companyServiceSettings);
+ * 
+ * 
+ * + * To customize the endpoint: + * + *
+ * 
+ * CompanyServiceSettings companyServiceSettings =
+ *     CompanyServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * CompanyServiceClient companyServiceClient =
+ *     CompanyServiceClient.create(companyServiceSettings);
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class CompanyServiceClient implements BackgroundResource { + private final CompanyServiceSettings settings; + private final CompanyServiceStub stub; + + /** Constructs an instance of CompanyServiceClient with default settings. */ + public static final CompanyServiceClient create() throws IOException { + return create(CompanyServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of CompanyServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final CompanyServiceClient create(CompanyServiceSettings settings) + throws IOException { + return new CompanyServiceClient(settings); + } + + /** + * Constructs an instance of CompanyServiceClient, using the given stub for making calls. This is + * for advanced usage - prefer to use CompanyServiceSettings}. + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public static final CompanyServiceClient create(CompanyServiceStub stub) { + return new CompanyServiceClient(stub); + } + + /** + * Constructs an instance of CompanyServiceClient, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected CompanyServiceClient(CompanyServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((CompanyServiceStubSettings) settings.getStubSettings()).createStub(); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected CompanyServiceClient(CompanyServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final CompanyServiceSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public CompanyServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a new company entity. + * + *

Sample code: + * + *


+   * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   Company company = Company.newBuilder().build();
+   *   Company response = companyServiceClient.createCompany(parent, company);
+   * }
+   * 
+ * + * @param parent Required. + *

Resource name of the project under which the company is created. + *

The format is "projects/{project_id}", for example, "projects/api-test-project". + * @param company Required. + *

The company to be created. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Company createCompany(ProjectName parent, Company company) { + + CreateCompanyRequest request = + CreateCompanyRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setCompany(company) + .build(); + return createCompany(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a new company entity. + * + *

Sample code: + * + *


+   * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   Company company = Company.newBuilder().build();
+   *   Company response = companyServiceClient.createCompany(parent.toString(), company);
+   * }
+   * 
+ * + * @param parent Required. + *

Resource name of the project under which the company is created. + *

The format is "projects/{project_id}", for example, "projects/api-test-project". + * @param company Required. + *

The company to be created. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Company createCompany(String parent, Company company) { + + CreateCompanyRequest request = + CreateCompanyRequest.newBuilder().setParent(parent).setCompany(company).build(); + return createCompany(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a new company entity. + * + *

Sample code: + * + *


+   * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   Company company = Company.newBuilder().build();
+   *   CreateCompanyRequest request = CreateCompanyRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setCompany(company)
+   *     .build();
+   *   Company response = companyServiceClient.createCompany(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Company createCompany(CreateCompanyRequest request) { + return createCompanyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a new company entity. + * + *

Sample code: + * + *


+   * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   Company company = Company.newBuilder().build();
+   *   CreateCompanyRequest request = CreateCompanyRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setCompany(company)
+   *     .build();
+   *   ApiFuture<Company> future = companyServiceClient.createCompanyCallable().futureCall(request);
+   *   // Do something
+   *   Company response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable createCompanyCallable() { + return stub.createCompanyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Retrieves specified company. + * + *

Sample code: + * + *


+   * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+   *   CompanyName name = CompanyName.of("[PROJECT]", "[COMPANY]");
+   *   Company response = companyServiceClient.getCompany(name);
+   * }
+   * 
+ * + * @param name Required. + *

The resource name of the company to be retrieved. + *

The format is "projects/{project_id}/companies/{company_id}", for example, + * "projects/api-test-project/companies/foo". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Company getCompany(CompanyName name) { + + GetCompanyRequest request = + GetCompanyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getCompany(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Retrieves specified company. + * + *

Sample code: + * + *


+   * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+   *   CompanyName name = CompanyName.of("[PROJECT]", "[COMPANY]");
+   *   Company response = companyServiceClient.getCompany(name.toString());
+   * }
+   * 
+ * + * @param name Required. + *

The resource name of the company to be retrieved. + *

The format is "projects/{project_id}/companies/{company_id}", for example, + * "projects/api-test-project/companies/foo". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Company getCompany(String name) { + + GetCompanyRequest request = GetCompanyRequest.newBuilder().setName(name).build(); + return getCompany(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Retrieves specified company. + * + *

Sample code: + * + *


+   * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+   *   CompanyName name = CompanyName.of("[PROJECT]", "[COMPANY]");
+   *   GetCompanyRequest request = GetCompanyRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   Company response = companyServiceClient.getCompany(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Company getCompany(GetCompanyRequest request) { + return getCompanyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Retrieves specified company. + * + *

Sample code: + * + *


+   * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+   *   CompanyName name = CompanyName.of("[PROJECT]", "[COMPANY]");
+   *   GetCompanyRequest request = GetCompanyRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<Company> future = companyServiceClient.getCompanyCallable().futureCall(request);
+   *   // Do something
+   *   Company response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable getCompanyCallable() { + return stub.getCompanyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates specified company. + * + *

Sample code: + * + *


+   * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+   *   Company company = Company.newBuilder().build();
+   *   Company response = companyServiceClient.updateCompany(company);
+   * }
+   * 
+ * + * @param company Required. + *

The company resource to replace the current resource in the system. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Company updateCompany(Company company) { + + UpdateCompanyRequest request = UpdateCompanyRequest.newBuilder().setCompany(company).build(); + return updateCompany(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates specified company. + * + *

Sample code: + * + *


+   * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+   *   Company company = Company.newBuilder().build();
+   *   UpdateCompanyRequest request = UpdateCompanyRequest.newBuilder()
+   *     .setCompany(company)
+   *     .build();
+   *   Company response = companyServiceClient.updateCompany(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Company updateCompany(UpdateCompanyRequest request) { + return updateCompanyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates specified company. + * + *

Sample code: + * + *


+   * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+   *   Company company = Company.newBuilder().build();
+   *   UpdateCompanyRequest request = UpdateCompanyRequest.newBuilder()
+   *     .setCompany(company)
+   *     .build();
+   *   ApiFuture<Company> future = companyServiceClient.updateCompanyCallable().futureCall(request);
+   *   // Do something
+   *   Company response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable updateCompanyCallable() { + return stub.updateCompanyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes specified company. Prerequisite: The company has no jobs associated with it. + * + *

Sample code: + * + *


+   * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+   *   CompanyName name = CompanyName.of("[PROJECT]", "[COMPANY]");
+   *   companyServiceClient.deleteCompany(name);
+   * }
+   * 
+ * + * @param name Required. + *

The resource name of the company to be deleted. + *

The format is "projects/{project_id}/companies/{company_id}", for example, + * "projects/api-test-project/companies/foo". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteCompany(CompanyName name) { + + DeleteCompanyRequest request = + DeleteCompanyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteCompany(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes specified company. Prerequisite: The company has no jobs associated with it. + * + *

Sample code: + * + *


+   * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+   *   CompanyName name = CompanyName.of("[PROJECT]", "[COMPANY]");
+   *   companyServiceClient.deleteCompany(name.toString());
+   * }
+   * 
+ * + * @param name Required. + *

The resource name of the company to be deleted. + *

The format is "projects/{project_id}/companies/{company_id}", for example, + * "projects/api-test-project/companies/foo". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteCompany(String name) { + + DeleteCompanyRequest request = DeleteCompanyRequest.newBuilder().setName(name).build(); + deleteCompany(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes specified company. Prerequisite: The company has no jobs associated with it. + * + *

Sample code: + * + *


+   * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+   *   CompanyName name = CompanyName.of("[PROJECT]", "[COMPANY]");
+   *   DeleteCompanyRequest request = DeleteCompanyRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   companyServiceClient.deleteCompany(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteCompany(DeleteCompanyRequest request) { + deleteCompanyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes specified company. Prerequisite: The company has no jobs associated with it. + * + *

Sample code: + * + *


+   * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+   *   CompanyName name = CompanyName.of("[PROJECT]", "[COMPANY]");
+   *   DeleteCompanyRequest request = DeleteCompanyRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<Void> future = companyServiceClient.deleteCompanyCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + public final UnaryCallable deleteCompanyCallable() { + return stub.deleteCompanyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists all companies associated with the project. + * + *

Sample code: + * + *


+   * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   for (Company element : companyServiceClient.listCompanies(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. + *

Resource name of the project under which the company is created. + *

The format is "projects/{project_id}", for example, "projects/api-test-project". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCompaniesPagedResponse listCompanies(ProjectName parent) { + ListCompaniesRequest request = + ListCompaniesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listCompanies(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists all companies associated with the project. + * + *

Sample code: + * + *


+   * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   for (Company element : companyServiceClient.listCompanies(parent.toString()).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. + *

Resource name of the project under which the company is created. + *

The format is "projects/{project_id}", for example, "projects/api-test-project". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCompaniesPagedResponse listCompanies(String parent) { + ListCompaniesRequest request = ListCompaniesRequest.newBuilder().setParent(parent).build(); + return listCompanies(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists all companies associated with the project. + * + *

Sample code: + * + *


+   * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   ListCompaniesRequest request = ListCompaniesRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   for (Company element : companyServiceClient.listCompanies(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCompaniesPagedResponse listCompanies(ListCompaniesRequest request) { + return listCompaniesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists all companies associated with the project. + * + *

Sample code: + * + *


+   * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   ListCompaniesRequest request = ListCompaniesRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   ApiFuture<ListCompaniesPagedResponse> future = companyServiceClient.listCompaniesPagedCallable().futureCall(request);
+   *   // Do something
+   *   for (Company element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable + listCompaniesPagedCallable() { + return stub.listCompaniesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists all companies associated with the project. + * + *

Sample code: + * + *


+   * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   ListCompaniesRequest request = ListCompaniesRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   while (true) {
+   *     ListCompaniesResponse response = companyServiceClient.listCompaniesCallable().call(request);
+   *     for (Company element : response.getCompaniesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable listCompaniesCallable() { + return stub.listCompaniesCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListCompaniesPagedResponse + extends AbstractPagedListResponse< + ListCompaniesRequest, + ListCompaniesResponse, + Company, + ListCompaniesPage, + ListCompaniesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListCompaniesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public ListCompaniesPagedResponse apply(ListCompaniesPage input) { + return new ListCompaniesPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private ListCompaniesPagedResponse(ListCompaniesPage page) { + super(page, ListCompaniesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListCompaniesPage + extends AbstractPage< + ListCompaniesRequest, ListCompaniesResponse, Company, ListCompaniesPage> { + + private ListCompaniesPage( + PageContext context, + ListCompaniesResponse response) { + super(context, response); + } + + private static ListCompaniesPage createEmptyPage() { + return new ListCompaniesPage(null, null); + } + + @Override + protected ListCompaniesPage createPage( + PageContext context, + ListCompaniesResponse response) { + return new ListCompaniesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListCompaniesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListCompaniesRequest, + ListCompaniesResponse, + Company, + ListCompaniesPage, + ListCompaniesFixedSizeCollection> { + + private ListCompaniesFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListCompaniesFixedSizeCollection createEmptyCollection() { + return new ListCompaniesFixedSizeCollection(null, 0); + } + + @Override + protected ListCompaniesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListCompaniesFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceSettings.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceSettings.java new file mode 100644 index 000000000000..474c83cd8f5e --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceSettings.java @@ -0,0 +1,221 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import static com.google.cloud.talent.v4beta1.CompanyServiceClient.ListCompaniesPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.talent.v4beta1.stub.CompanyServiceStubSettings; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link CompanyServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (jobs.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of createCompany to 30 seconds: + * + *

+ * 
+ * CompanyServiceSettings.Builder companyServiceSettingsBuilder =
+ *     CompanyServiceSettings.newBuilder();
+ * companyServiceSettingsBuilder.createCompanySettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * CompanyServiceSettings companyServiceSettings = companyServiceSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class CompanyServiceSettings extends ClientSettings { + /** Returns the object with the settings used for calls to createCompany. */ + public UnaryCallSettings createCompanySettings() { + return ((CompanyServiceStubSettings) getStubSettings()).createCompanySettings(); + } + + /** Returns the object with the settings used for calls to getCompany. */ + public UnaryCallSettings getCompanySettings() { + return ((CompanyServiceStubSettings) getStubSettings()).getCompanySettings(); + } + + /** Returns the object with the settings used for calls to updateCompany. */ + public UnaryCallSettings updateCompanySettings() { + return ((CompanyServiceStubSettings) getStubSettings()).updateCompanySettings(); + } + + /** Returns the object with the settings used for calls to deleteCompany. */ + public UnaryCallSettings deleteCompanySettings() { + return ((CompanyServiceStubSettings) getStubSettings()).deleteCompanySettings(); + } + + /** Returns the object with the settings used for calls to listCompanies. */ + public PagedCallSettings + listCompaniesSettings() { + return ((CompanyServiceStubSettings) getStubSettings()).listCompaniesSettings(); + } + + public static final CompanyServiceSettings create(CompanyServiceStubSettings stub) + throws IOException { + return new CompanyServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return CompanyServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return CompanyServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return CompanyServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return CompanyServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return CompanyServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return CompanyServiceStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return CompanyServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected CompanyServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for CompanyServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + protected Builder() throws IOException { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(CompanyServiceStubSettings.newBuilder(clientContext)); + } + + private static Builder createDefault() { + return new Builder(CompanyServiceStubSettings.newBuilder()); + } + + protected Builder(CompanyServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(CompanyServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + public CompanyServiceStubSettings.Builder getStubSettingsBuilder() { + return ((CompanyServiceStubSettings.Builder) getStubSettings()); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to createCompany. */ + public UnaryCallSettings.Builder createCompanySettings() { + return getStubSettingsBuilder().createCompanySettings(); + } + + /** Returns the builder for the settings used for calls to getCompany. */ + public UnaryCallSettings.Builder getCompanySettings() { + return getStubSettingsBuilder().getCompanySettings(); + } + + /** Returns the builder for the settings used for calls to updateCompany. */ + public UnaryCallSettings.Builder updateCompanySettings() { + return getStubSettingsBuilder().updateCompanySettings(); + } + + /** Returns the builder for the settings used for calls to deleteCompany. */ + public UnaryCallSettings.Builder deleteCompanySettings() { + return getStubSettingsBuilder().deleteCompanySettings(); + } + + /** Returns the builder for the settings used for calls to listCompanies. */ + public PagedCallSettings.Builder< + ListCompaniesRequest, ListCompaniesResponse, ListCompaniesPagedResponse> + listCompaniesSettings() { + return getStubSettingsBuilder().listCompaniesSettings(); + } + + @Override + public CompanyServiceSettings build() throws IOException { + return new CompanyServiceSettings(this); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompletionClient.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompletionClient.java new file mode 100644 index 000000000000..4b77e3f1cb57 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompletionClient.java @@ -0,0 +1,236 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4beta1.stub.CompletionStub; +import com.google.cloud.talent.v4beta1.stub.CompletionStubSettings; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND SERVICE +/** + * Service Description: A service handles auto completion. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

+ * 
+ * try (CompletionClient completionClient = CompletionClient.create()) {
+ *   ProjectName name = ProjectName.of("[PROJECT]");
+ *   String query = "";
+ *   int pageSize = 0;
+ *   CompleteQueryRequest request = CompleteQueryRequest.newBuilder()
+ *     .setName(name.toString())
+ *     .setQuery(query)
+ *     .setPageSize(pageSize)
+ *     .build();
+ *   CompleteQueryResponse response = completionClient.completeQuery(request);
+ * }
+ * 
+ * 
+ * + *

Note: close() needs to be called on the completionClient object to clean up resources such as + * threads. In the example above, try-with-resources is used, which automatically calls close(). + * + *

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

    + *
  1. A "flattened" method. With this type of method, the fields of the request type have been + * converted into function parameters. It may be the case that not all fields are available as + * parameters, and not every API method will have a flattened method entry point. + *
  2. A "request object" method. This type of method only takes one parameter, a request object, + * which must be constructed before the call. Not every API method will have a request object + * method. + *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API + * callable object, which can be used to initiate calls to the service. + *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of CompletionSettings to + * create(). For example: + * + *

To customize credentials: + * + *

+ * 
+ * CompletionSettings completionSettings =
+ *     CompletionSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * CompletionClient completionClient =
+ *     CompletionClient.create(completionSettings);
+ * 
+ * 
+ * + * To customize the endpoint: + * + *
+ * 
+ * CompletionSettings completionSettings =
+ *     CompletionSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * CompletionClient completionClient =
+ *     CompletionClient.create(completionSettings);
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class CompletionClient implements BackgroundResource { + private final CompletionSettings settings; + private final CompletionStub stub; + + /** Constructs an instance of CompletionClient with default settings. */ + public static final CompletionClient create() throws IOException { + return create(CompletionSettings.newBuilder().build()); + } + + /** + * Constructs an instance of CompletionClient, using the given settings. The channels are created + * based on the settings passed in, or defaults for any settings that are not set. + */ + public static final CompletionClient create(CompletionSettings settings) throws IOException { + return new CompletionClient(settings); + } + + /** + * Constructs an instance of CompletionClient, using the given stub for making calls. This is for + * advanced usage - prefer to use CompletionSettings}. + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public static final CompletionClient create(CompletionStub stub) { + return new CompletionClient(stub); + } + + /** + * Constructs an instance of CompletionClient, using the given settings. This is protected so that + * it is easy to make a subclass, but otherwise, the static factory methods should be preferred. + */ + protected CompletionClient(CompletionSettings settings) throws IOException { + this.settings = settings; + this.stub = ((CompletionStubSettings) settings.getStubSettings()).createStub(); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected CompletionClient(CompletionStub stub) { + this.settings = null; + this.stub = stub; + } + + public final CompletionSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public CompletionStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Completes the specified prefix with keyword suggestions. Intended for use by a job search + * auto-complete search box. + * + *

Sample code: + * + *


+   * try (CompletionClient completionClient = CompletionClient.create()) {
+   *   ProjectName name = ProjectName.of("[PROJECT]");
+   *   String query = "";
+   *   int pageSize = 0;
+   *   CompleteQueryRequest request = CompleteQueryRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .setQuery(query)
+   *     .setPageSize(pageSize)
+   *     .build();
+   *   CompleteQueryResponse response = completionClient.completeQuery(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CompleteQueryResponse completeQuery(CompleteQueryRequest request) { + return completeQueryCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Completes the specified prefix with keyword suggestions. Intended for use by a job search + * auto-complete search box. + * + *

Sample code: + * + *


+   * try (CompletionClient completionClient = CompletionClient.create()) {
+   *   ProjectName name = ProjectName.of("[PROJECT]");
+   *   String query = "";
+   *   int pageSize = 0;
+   *   CompleteQueryRequest request = CompleteQueryRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .setQuery(query)
+   *     .setPageSize(pageSize)
+   *     .build();
+   *   ApiFuture<CompleteQueryResponse> future = completionClient.completeQueryCallable().futureCall(request);
+   *   // Do something
+   *   CompleteQueryResponse response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable completeQueryCallable() { + return stub.completeQueryCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompletionSettings.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompletionSettings.java new file mode 100644 index 000000000000..44855c7568b2 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompletionSettings.java @@ -0,0 +1,174 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.talent.v4beta1.stub.CompletionStubSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link CompletionClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (jobs.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of completeQuery to 30 seconds: + * + *

+ * 
+ * CompletionSettings.Builder completionSettingsBuilder =
+ *     CompletionSettings.newBuilder();
+ * completionSettingsBuilder.completeQuerySettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * CompletionSettings completionSettings = completionSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class CompletionSettings extends ClientSettings { + /** Returns the object with the settings used for calls to completeQuery. */ + public UnaryCallSettings completeQuerySettings() { + return ((CompletionStubSettings) getStubSettings()).completeQuerySettings(); + } + + public static final CompletionSettings create(CompletionStubSettings stub) throws IOException { + return new CompletionSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return CompletionStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return CompletionStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return CompletionStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return CompletionStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return CompletionStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return CompletionStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return CompletionStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected CompletionSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for CompletionSettings. */ + public static class Builder extends ClientSettings.Builder { + protected Builder() throws IOException { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(CompletionStubSettings.newBuilder(clientContext)); + } + + private static Builder createDefault() { + return new Builder(CompletionStubSettings.newBuilder()); + } + + protected Builder(CompletionSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(CompletionStubSettings.Builder stubSettings) { + super(stubSettings); + } + + public CompletionStubSettings.Builder getStubSettingsBuilder() { + return ((CompletionStubSettings.Builder) getStubSettings()); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to completeQuery. */ + public UnaryCallSettings.Builder + completeQuerySettings() { + return getStubSettingsBuilder().completeQuerySettings(); + } + + @Override + public CompletionSettings build() throws IOException { + return new CompletionSettings(this); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/EventServiceClient.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/EventServiceClient.java new file mode 100644 index 000000000000..d4f49b7208ec --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/EventServiceClient.java @@ -0,0 +1,294 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4beta1.stub.EventServiceStub; +import com.google.cloud.talent.v4beta1.stub.EventServiceStubSettings; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND SERVICE +/** + * Service Description: A service handles client event report. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

+ * 
+ * try (EventServiceClient eventServiceClient = EventServiceClient.create()) {
+ *   ProjectName parent = ProjectName.of("[PROJECT]");
+ *   ClientEvent clientEvent = ClientEvent.newBuilder().build();
+ *   ClientEvent response = eventServiceClient.createClientEvent(parent, clientEvent);
+ * }
+ * 
+ * 
+ * + *

Note: close() needs to be called on the eventServiceClient object to clean up resources such + * as threads. In the example above, try-with-resources is used, which automatically calls close(). + * + *

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

    + *
  1. A "flattened" method. With this type of method, the fields of the request type have been + * converted into function parameters. It may be the case that not all fields are available as + * parameters, and not every API method will have a flattened method entry point. + *
  2. A "request object" method. This type of method only takes one parameter, a request object, + * which must be constructed before the call. Not every API method will have a request object + * method. + *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API + * callable object, which can be used to initiate calls to the service. + *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of EventServiceSettings to + * create(). For example: + * + *

To customize credentials: + * + *

+ * 
+ * EventServiceSettings eventServiceSettings =
+ *     EventServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * EventServiceClient eventServiceClient =
+ *     EventServiceClient.create(eventServiceSettings);
+ * 
+ * 
+ * + * To customize the endpoint: + * + *
+ * 
+ * EventServiceSettings eventServiceSettings =
+ *     EventServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * EventServiceClient eventServiceClient =
+ *     EventServiceClient.create(eventServiceSettings);
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class EventServiceClient implements BackgroundResource { + private final EventServiceSettings settings; + private final EventServiceStub stub; + + /** Constructs an instance of EventServiceClient with default settings. */ + public static final EventServiceClient create() throws IOException { + return create(EventServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of EventServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final EventServiceClient create(EventServiceSettings settings) throws IOException { + return new EventServiceClient(settings); + } + + /** + * Constructs an instance of EventServiceClient, using the given stub for making calls. This is + * for advanced usage - prefer to use EventServiceSettings}. + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public static final EventServiceClient create(EventServiceStub stub) { + return new EventServiceClient(stub); + } + + /** + * Constructs an instance of EventServiceClient, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected EventServiceClient(EventServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((EventServiceStubSettings) settings.getStubSettings()).createStub(); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected EventServiceClient(EventServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final EventServiceSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public EventServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Report events issued when end user interacts with customer's application that uses Cloud Talent + * Solution. You may inspect the created events in [self service + * tools](https://console.cloud.google.com/talent-solution/overview). [Learn + * more](https://cloud.google.com/talent-solution/docs/management-tools) about self service tools. + * + *

Sample code: + * + *


+   * try (EventServiceClient eventServiceClient = EventServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   ClientEvent clientEvent = ClientEvent.newBuilder().build();
+   *   ClientEvent response = eventServiceClient.createClientEvent(parent, clientEvent);
+   * }
+   * 
+ * + * @param parent Parent project name. + * @param clientEvent Required. + *

Events issued when end user interacts with customer's application that uses Cloud Talent + * Solution. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ClientEvent createClientEvent(ProjectName parent, ClientEvent clientEvent) { + + CreateClientEventRequest request = + CreateClientEventRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setClientEvent(clientEvent) + .build(); + return createClientEvent(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Report events issued when end user interacts with customer's application that uses Cloud Talent + * Solution. You may inspect the created events in [self service + * tools](https://console.cloud.google.com/talent-solution/overview). [Learn + * more](https://cloud.google.com/talent-solution/docs/management-tools) about self service tools. + * + *

Sample code: + * + *


+   * try (EventServiceClient eventServiceClient = EventServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   ClientEvent clientEvent = ClientEvent.newBuilder().build();
+   *   ClientEvent response = eventServiceClient.createClientEvent(parent.toString(), clientEvent);
+   * }
+   * 
+ * + * @param parent Parent project name. + * @param clientEvent Required. + *

Events issued when end user interacts with customer's application that uses Cloud Talent + * Solution. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ClientEvent createClientEvent(String parent, ClientEvent clientEvent) { + + CreateClientEventRequest request = + CreateClientEventRequest.newBuilder().setParent(parent).setClientEvent(clientEvent).build(); + return createClientEvent(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Report events issued when end user interacts with customer's application that uses Cloud Talent + * Solution. You may inspect the created events in [self service + * tools](https://console.cloud.google.com/talent-solution/overview). [Learn + * more](https://cloud.google.com/talent-solution/docs/management-tools) about self service tools. + * + *

Sample code: + * + *


+   * try (EventServiceClient eventServiceClient = EventServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   ClientEvent clientEvent = ClientEvent.newBuilder().build();
+   *   CreateClientEventRequest request = CreateClientEventRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setClientEvent(clientEvent)
+   *     .build();
+   *   ClientEvent response = eventServiceClient.createClientEvent(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ClientEvent createClientEvent(CreateClientEventRequest request) { + return createClientEventCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Report events issued when end user interacts with customer's application that uses Cloud Talent + * Solution. You may inspect the created events in [self service + * tools](https://console.cloud.google.com/talent-solution/overview). [Learn + * more](https://cloud.google.com/talent-solution/docs/management-tools) about self service tools. + * + *

Sample code: + * + *


+   * try (EventServiceClient eventServiceClient = EventServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   ClientEvent clientEvent = ClientEvent.newBuilder().build();
+   *   CreateClientEventRequest request = CreateClientEventRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setClientEvent(clientEvent)
+   *     .build();
+   *   ApiFuture<ClientEvent> future = eventServiceClient.createClientEventCallable().futureCall(request);
+   *   // Do something
+   *   ClientEvent response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable createClientEventCallable() { + return stub.createClientEventCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/EventServiceSettings.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/EventServiceSettings.java new file mode 100644 index 000000000000..b8080c5aa228 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/EventServiceSettings.java @@ -0,0 +1,175 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.talent.v4beta1.stub.EventServiceStubSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link EventServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (jobs.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of createClientEvent to 30 seconds: + * + *

+ * 
+ * EventServiceSettings.Builder eventServiceSettingsBuilder =
+ *     EventServiceSettings.newBuilder();
+ * eventServiceSettingsBuilder.createClientEventSettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * EventServiceSettings eventServiceSettings = eventServiceSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class EventServiceSettings extends ClientSettings { + /** Returns the object with the settings used for calls to createClientEvent. */ + public UnaryCallSettings createClientEventSettings() { + return ((EventServiceStubSettings) getStubSettings()).createClientEventSettings(); + } + + public static final EventServiceSettings create(EventServiceStubSettings stub) + throws IOException { + return new EventServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return EventServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return EventServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return EventServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return EventServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return EventServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return EventServiceStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return EventServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected EventServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for EventServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + protected Builder() throws IOException { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(EventServiceStubSettings.newBuilder(clientContext)); + } + + private static Builder createDefault() { + return new Builder(EventServiceStubSettings.newBuilder()); + } + + protected Builder(EventServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(EventServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + public EventServiceStubSettings.Builder getStubSettingsBuilder() { + return ((EventServiceStubSettings.Builder) getStubSettings()); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to createClientEvent. */ + public UnaryCallSettings.Builder + createClientEventSettings() { + return getStubSettingsBuilder().createClientEventSettings(); + } + + @Override + public EventServiceSettings build() throws IOException { + return new EventServiceSettings(this); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/JobServiceClient.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/JobServiceClient.java new file mode 100644 index 000000000000..a68ef80c827d --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/JobServiceClient.java @@ -0,0 +1,1307 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4beta1.stub.JobServiceStub; +import com.google.cloud.talent.v4beta1.stub.JobServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND SERVICE +/** + * Service Description: A service handles job management, including job CRUD, enumeration and + * search. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

+ * 
+ * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+ *   ProjectName parent = ProjectName.of("[PROJECT]");
+ *   Job job = Job.newBuilder().build();
+ *   Job response = jobServiceClient.createJob(parent, job);
+ * }
+ * 
+ * 
+ * + *

Note: close() needs to be called on the jobServiceClient object to clean up resources such as + * threads. In the example above, try-with-resources is used, which automatically calls close(). + * + *

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

    + *
  1. A "flattened" method. With this type of method, the fields of the request type have been + * converted into function parameters. It may be the case that not all fields are available as + * parameters, and not every API method will have a flattened method entry point. + *
  2. A "request object" method. This type of method only takes one parameter, a request object, + * which must be constructed before the call. Not every API method will have a request object + * method. + *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API + * callable object, which can be used to initiate calls to the service. + *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of JobServiceSettings to + * create(). For example: + * + *

To customize credentials: + * + *

+ * 
+ * JobServiceSettings jobServiceSettings =
+ *     JobServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * JobServiceClient jobServiceClient =
+ *     JobServiceClient.create(jobServiceSettings);
+ * 
+ * 
+ * + * To customize the endpoint: + * + *
+ * 
+ * JobServiceSettings jobServiceSettings =
+ *     JobServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * JobServiceClient jobServiceClient =
+ *     JobServiceClient.create(jobServiceSettings);
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class JobServiceClient implements BackgroundResource { + private final JobServiceSettings settings; + private final JobServiceStub stub; + + /** Constructs an instance of JobServiceClient with default settings. */ + public static final JobServiceClient create() throws IOException { + return create(JobServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of JobServiceClient, using the given settings. The channels are created + * based on the settings passed in, or defaults for any settings that are not set. + */ + public static final JobServiceClient create(JobServiceSettings settings) throws IOException { + return new JobServiceClient(settings); + } + + /** + * Constructs an instance of JobServiceClient, using the given stub for making calls. This is for + * advanced usage - prefer to use JobServiceSettings}. + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public static final JobServiceClient create(JobServiceStub stub) { + return new JobServiceClient(stub); + } + + /** + * Constructs an instance of JobServiceClient, using the given settings. This is protected so that + * it is easy to make a subclass, but otherwise, the static factory methods should be preferred. + */ + protected JobServiceClient(JobServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((JobServiceStubSettings) settings.getStubSettings()).createStub(); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected JobServiceClient(JobServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final JobServiceSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public JobServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a new job. + * + *

Typically, the job becomes searchable within 10 seconds, but it may take up to 5 minutes. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   Job job = Job.newBuilder().build();
+   *   Job response = jobServiceClient.createJob(parent, job);
+   * }
+   * 
+ * + * @param parent Required. + *

The resource name of the project under which the job is created. + *

The format is "projects/{project_id}", for example, "projects/api-test-project". + * @param job Required. + *

The Job to be created. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Job createJob(ProjectName parent, Job job) { + + CreateJobRequest request = + CreateJobRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setJob(job) + .build(); + return createJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a new job. + * + *

Typically, the job becomes searchable within 10 seconds, but it may take up to 5 minutes. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   Job job = Job.newBuilder().build();
+   *   Job response = jobServiceClient.createJob(parent.toString(), job);
+   * }
+   * 
+ * + * @param parent Required. + *

The resource name of the project under which the job is created. + *

The format is "projects/{project_id}", for example, "projects/api-test-project". + * @param job Required. + *

The Job to be created. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Job createJob(String parent, Job job) { + + CreateJobRequest request = CreateJobRequest.newBuilder().setParent(parent).setJob(job).build(); + return createJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a new job. + * + *

Typically, the job becomes searchable within 10 seconds, but it may take up to 5 minutes. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   Job job = Job.newBuilder().build();
+   *   CreateJobRequest request = CreateJobRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setJob(job)
+   *     .build();
+   *   Job response = jobServiceClient.createJob(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Job createJob(CreateJobRequest request) { + return createJobCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a new job. + * + *

Typically, the job becomes searchable within 10 seconds, but it may take up to 5 minutes. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   Job job = Job.newBuilder().build();
+   *   CreateJobRequest request = CreateJobRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setJob(job)
+   *     .build();
+   *   ApiFuture<Job> future = jobServiceClient.createJobCallable().futureCall(request);
+   *   // Do something
+   *   Job response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable createJobCallable() { + return stub.createJobCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Retrieves the specified job, whose status is OPEN or recently EXPIRED within the last 90 days. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   JobName name = JobName.of("[PROJECT]", "[JOBS]");
+   *   Job response = jobServiceClient.getJob(name);
+   * }
+   * 
+ * + * @param name Required. + *

The resource name of the job to retrieve. + *

The format is "projects/{project_id}/jobs/{job_id}", for example, + * "projects/api-test-project/jobs/1234". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Job getJob(JobName name) { + + GetJobRequest request = + GetJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Retrieves the specified job, whose status is OPEN or recently EXPIRED within the last 90 days. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   JobName name = JobName.of("[PROJECT]", "[JOBS]");
+   *   Job response = jobServiceClient.getJob(name.toString());
+   * }
+   * 
+ * + * @param name Required. + *

The resource name of the job to retrieve. + *

The format is "projects/{project_id}/jobs/{job_id}", for example, + * "projects/api-test-project/jobs/1234". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Job getJob(String name) { + + GetJobRequest request = GetJobRequest.newBuilder().setName(name).build(); + return getJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Retrieves the specified job, whose status is OPEN or recently EXPIRED within the last 90 days. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   JobName name = JobName.of("[PROJECT]", "[JOBS]");
+   *   GetJobRequest request = GetJobRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   Job response = jobServiceClient.getJob(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Job getJob(GetJobRequest request) { + return getJobCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Retrieves the specified job, whose status is OPEN or recently EXPIRED within the last 90 days. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   JobName name = JobName.of("[PROJECT]", "[JOBS]");
+   *   GetJobRequest request = GetJobRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<Job> future = jobServiceClient.getJobCallable().futureCall(request);
+   *   // Do something
+   *   Job response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable getJobCallable() { + return stub.getJobCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates specified job. + * + *

Typically, updated contents become visible in search results within 10 seconds, but it may + * take up to 5 minutes. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   Job job = Job.newBuilder().build();
+   *   Job response = jobServiceClient.updateJob(job);
+   * }
+   * 
+ * + * @param job Required. + *

The Job to be updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Job updateJob(Job job) { + + UpdateJobRequest request = UpdateJobRequest.newBuilder().setJob(job).build(); + return updateJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates specified job. + * + *

Typically, updated contents become visible in search results within 10 seconds, but it may + * take up to 5 minutes. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   Job job = Job.newBuilder().build();
+   *   UpdateJobRequest request = UpdateJobRequest.newBuilder()
+   *     .setJob(job)
+   *     .build();
+   *   Job response = jobServiceClient.updateJob(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Job updateJob(UpdateJobRequest request) { + return updateJobCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates specified job. + * + *

Typically, updated contents become visible in search results within 10 seconds, but it may + * take up to 5 minutes. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   Job job = Job.newBuilder().build();
+   *   UpdateJobRequest request = UpdateJobRequest.newBuilder()
+   *     .setJob(job)
+   *     .build();
+   *   ApiFuture<Job> future = jobServiceClient.updateJobCallable().futureCall(request);
+   *   // Do something
+   *   Job response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable updateJobCallable() { + return stub.updateJobCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified job. + * + *

Typically, the job becomes unsearchable within 10 seconds, but it may take up to 5 minutes. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   JobName name = JobName.of("[PROJECT]", "[JOBS]");
+   *   jobServiceClient.deleteJob(name);
+   * }
+   * 
+ * + * @param name Required. + *

The resource name of the job to be deleted. + *

The format is "projects/{project_id}/jobs/{job_id}", for example, + * "projects/api-test-project/jobs/1234". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteJob(JobName name) { + + DeleteJobRequest request = + DeleteJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified job. + * + *

Typically, the job becomes unsearchable within 10 seconds, but it may take up to 5 minutes. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   JobName name = JobName.of("[PROJECT]", "[JOBS]");
+   *   jobServiceClient.deleteJob(name.toString());
+   * }
+   * 
+ * + * @param name Required. + *

The resource name of the job to be deleted. + *

The format is "projects/{project_id}/jobs/{job_id}", for example, + * "projects/api-test-project/jobs/1234". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteJob(String name) { + + DeleteJobRequest request = DeleteJobRequest.newBuilder().setName(name).build(); + deleteJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified job. + * + *

Typically, the job becomes unsearchable within 10 seconds, but it may take up to 5 minutes. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   JobName name = JobName.of("[PROJECT]", "[JOBS]");
+   *   DeleteJobRequest request = DeleteJobRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   jobServiceClient.deleteJob(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteJob(DeleteJobRequest request) { + deleteJobCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified job. + * + *

Typically, the job becomes unsearchable within 10 seconds, but it may take up to 5 minutes. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   JobName name = JobName.of("[PROJECT]", "[JOBS]");
+   *   DeleteJobRequest request = DeleteJobRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<Void> future = jobServiceClient.deleteJobCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + public final UnaryCallable deleteJobCallable() { + return stub.deleteJobCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists jobs by filter. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   String filter = "";
+   *   for (Job element : jobServiceClient.listJobs(parent, filter).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. + *

The resource name of the project under which the job is created. + *

The format is "projects/{project_id}", for example, "projects/api-test-project". + * @param filter Required. + *

The filter string specifies the jobs to be enumerated. + *

Supported operator: =, AND + *

The fields eligible for filtering are: + *

* `companyName` (Required) * `requisitionId` (Optional) * `status` + * (Optional) Available values: OPEN, EXPIRED, ALL. Defaults to OPEN if no value is specified. + *

Sample Query: + *

* companyName = "projects/api-test-project/companies/123" * companyName = + * "projects/api-test-project/companies/123" AND requisitionId = "req-1" * companyName = + * "projects/api-test-project/companies/123" AND status = "EXPIRED" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListJobsPagedResponse listJobs(ProjectName parent, String filter) { + ListJobsRequest request = + ListJobsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setFilter(filter) + .build(); + return listJobs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists jobs by filter. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   String filter = "";
+   *   for (Job element : jobServiceClient.listJobs(parent.toString(), filter).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. + *

The resource name of the project under which the job is created. + *

The format is "projects/{project_id}", for example, "projects/api-test-project". + * @param filter Required. + *

The filter string specifies the jobs to be enumerated. + *

Supported operator: =, AND + *

The fields eligible for filtering are: + *

* `companyName` (Required) * `requisitionId` (Optional) * `status` + * (Optional) Available values: OPEN, EXPIRED, ALL. Defaults to OPEN if no value is specified. + *

Sample Query: + *

* companyName = "projects/api-test-project/companies/123" * companyName = + * "projects/api-test-project/companies/123" AND requisitionId = "req-1" * companyName = + * "projects/api-test-project/companies/123" AND status = "EXPIRED" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListJobsPagedResponse listJobs(String parent, String filter) { + ListJobsRequest request = + ListJobsRequest.newBuilder().setParent(parent).setFilter(filter).build(); + return listJobs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists jobs by filter. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   String filter = "";
+   *   ListJobsRequest request = ListJobsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setFilter(filter)
+   *     .build();
+   *   for (Job element : jobServiceClient.listJobs(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListJobsPagedResponse listJobs(ListJobsRequest request) { + return listJobsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists jobs by filter. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   String filter = "";
+   *   ListJobsRequest request = ListJobsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setFilter(filter)
+   *     .build();
+   *   ApiFuture<ListJobsPagedResponse> future = jobServiceClient.listJobsPagedCallable().futureCall(request);
+   *   // Do something
+   *   for (Job element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable listJobsPagedCallable() { + return stub.listJobsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists jobs by filter. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   String filter = "";
+   *   ListJobsRequest request = ListJobsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setFilter(filter)
+   *     .build();
+   *   while (true) {
+   *     ListJobsResponse response = jobServiceClient.listJobsCallable().call(request);
+   *     for (Job element : response.getJobsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable listJobsCallable() { + return stub.listJobsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes a list of [Job][google.cloud.talent.v4beta1.Job]s by filter. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   String filter = "";
+   *   jobServiceClient.batchDeleteJobs(parent, filter);
+   * }
+   * 
+ * + * @param parent Required. + *

The resource name of the project under which the job is created. + *

The format is "projects/{project_id}", for example, "projects/api-test-project". + * @param filter Required. + *

The filter string specifies the jobs to be deleted. + *

Supported operator: =, AND + *

The fields eligible for filtering are: + *

* `companyName` (Required) * `requisitionId` (Required) + *

Sample Query: companyName = "projects/api-test-project/companies/123" AND requisitionId + * = "req-1" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void batchDeleteJobs(ProjectName parent, String filter) { + + BatchDeleteJobsRequest request = + BatchDeleteJobsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setFilter(filter) + .build(); + batchDeleteJobs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes a list of [Job][google.cloud.talent.v4beta1.Job]s by filter. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   String filter = "";
+   *   jobServiceClient.batchDeleteJobs(parent.toString(), filter);
+   * }
+   * 
+ * + * @param parent Required. + *

The resource name of the project under which the job is created. + *

The format is "projects/{project_id}", for example, "projects/api-test-project". + * @param filter Required. + *

The filter string specifies the jobs to be deleted. + *

Supported operator: =, AND + *

The fields eligible for filtering are: + *

* `companyName` (Required) * `requisitionId` (Required) + *

Sample Query: companyName = "projects/api-test-project/companies/123" AND requisitionId + * = "req-1" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void batchDeleteJobs(String parent, String filter) { + + BatchDeleteJobsRequest request = + BatchDeleteJobsRequest.newBuilder().setParent(parent).setFilter(filter).build(); + batchDeleteJobs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes a list of [Job][google.cloud.talent.v4beta1.Job]s by filter. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   String filter = "";
+   *   BatchDeleteJobsRequest request = BatchDeleteJobsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setFilter(filter)
+   *     .build();
+   *   jobServiceClient.batchDeleteJobs(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void batchDeleteJobs(BatchDeleteJobsRequest request) { + batchDeleteJobsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes a list of [Job][google.cloud.talent.v4beta1.Job]s by filter. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   String filter = "";
+   *   BatchDeleteJobsRequest request = BatchDeleteJobsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setFilter(filter)
+   *     .build();
+   *   ApiFuture<Void> future = jobServiceClient.batchDeleteJobsCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + public final UnaryCallable batchDeleteJobsCallable() { + return stub.batchDeleteJobsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Searches for jobs using the provided + * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest]. + * + *

This call constrains the [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs + * present in the database, and only returns jobs that the caller has permission to search + * against. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   RequestMetadata requestMetadata = RequestMetadata.newBuilder().build();
+   *   SearchJobsRequest request = SearchJobsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setRequestMetadata(requestMetadata)
+   *     .build();
+   *   for (SearchJobsResponse.MatchingJob element : jobServiceClient.searchJobs(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchJobsPagedResponse searchJobs(SearchJobsRequest request) { + return searchJobsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Searches for jobs using the provided + * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest]. + * + *

This call constrains the [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs + * present in the database, and only returns jobs that the caller has permission to search + * against. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   RequestMetadata requestMetadata = RequestMetadata.newBuilder().build();
+   *   SearchJobsRequest request = SearchJobsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setRequestMetadata(requestMetadata)
+   *     .build();
+   *   ApiFuture<SearchJobsPagedResponse> future = jobServiceClient.searchJobsPagedCallable().futureCall(request);
+   *   // Do something
+   *   for (SearchJobsResponse.MatchingJob element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable searchJobsPagedCallable() { + return stub.searchJobsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Searches for jobs using the provided + * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest]. + * + *

This call constrains the [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs + * present in the database, and only returns jobs that the caller has permission to search + * against. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   RequestMetadata requestMetadata = RequestMetadata.newBuilder().build();
+   *   SearchJobsRequest request = SearchJobsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setRequestMetadata(requestMetadata)
+   *     .build();
+   *   while (true) {
+   *     SearchJobsResponse response = jobServiceClient.searchJobsCallable().call(request);
+   *     for (SearchJobsResponse.MatchingJob element : response.getMatchingJobsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable searchJobsCallable() { + return stub.searchJobsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Searches for jobs using the provided + * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest]. + * + *

This API call is intended for the use case of targeting passive job seekers (for example, + * job seekers who have signed up to receive email alerts about potential job opportunities), and + * has different algorithmic adjustments that are targeted to passive job seekers. + * + *

This call constrains the [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs + * present in the database, and only returns jobs the caller has permission to search against. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   RequestMetadata requestMetadata = RequestMetadata.newBuilder().build();
+   *   SearchJobsRequest request = SearchJobsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setRequestMetadata(requestMetadata)
+   *     .build();
+   *   for (SearchJobsResponse.MatchingJob element : jobServiceClient.searchJobsForAlert(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchJobsForAlertPagedResponse searchJobsForAlert(SearchJobsRequest request) { + return searchJobsForAlertPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Searches for jobs using the provided + * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest]. + * + *

This API call is intended for the use case of targeting passive job seekers (for example, + * job seekers who have signed up to receive email alerts about potential job opportunities), and + * has different algorithmic adjustments that are targeted to passive job seekers. + * + *

This call constrains the [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs + * present in the database, and only returns jobs the caller has permission to search against. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   RequestMetadata requestMetadata = RequestMetadata.newBuilder().build();
+   *   SearchJobsRequest request = SearchJobsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setRequestMetadata(requestMetadata)
+   *     .build();
+   *   ApiFuture<SearchJobsForAlertPagedResponse> future = jobServiceClient.searchJobsForAlertPagedCallable().futureCall(request);
+   *   // Do something
+   *   for (SearchJobsResponse.MatchingJob element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable + searchJobsForAlertPagedCallable() { + return stub.searchJobsForAlertPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Searches for jobs using the provided + * [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest]. + * + *

This API call is intended for the use case of targeting passive job seekers (for example, + * job seekers who have signed up to receive email alerts about potential job opportunities), and + * has different algorithmic adjustments that are targeted to passive job seekers. + * + *

This call constrains the [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs + * present in the database, and only returns jobs the caller has permission to search against. + * + *

Sample code: + * + *


+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   RequestMetadata requestMetadata = RequestMetadata.newBuilder().build();
+   *   SearchJobsRequest request = SearchJobsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setRequestMetadata(requestMetadata)
+   *     .build();
+   *   while (true) {
+   *     SearchJobsResponse response = jobServiceClient.searchJobsForAlertCallable().call(request);
+   *     for (SearchJobsResponse.MatchingJob element : response.getMatchingJobsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable searchJobsForAlertCallable() { + return stub.searchJobsForAlertCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListJobsPagedResponse + extends AbstractPagedListResponse< + ListJobsRequest, ListJobsResponse, Job, ListJobsPage, ListJobsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListJobsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public ListJobsPagedResponse apply(ListJobsPage input) { + return new ListJobsPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private ListJobsPagedResponse(ListJobsPage page) { + super(page, ListJobsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListJobsPage + extends AbstractPage { + + private ListJobsPage( + PageContext context, ListJobsResponse response) { + super(context, response); + } + + private static ListJobsPage createEmptyPage() { + return new ListJobsPage(null, null); + } + + @Override + protected ListJobsPage createPage( + PageContext context, ListJobsResponse response) { + return new ListJobsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListJobsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListJobsRequest, ListJobsResponse, Job, ListJobsPage, ListJobsFixedSizeCollection> { + + private ListJobsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListJobsFixedSizeCollection createEmptyCollection() { + return new ListJobsFixedSizeCollection(null, 0); + } + + @Override + protected ListJobsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListJobsFixedSizeCollection(pages, collectionSize); + } + } + + public static class SearchJobsPagedResponse + extends AbstractPagedListResponse< + SearchJobsRequest, + SearchJobsResponse, + SearchJobsResponse.MatchingJob, + SearchJobsPage, + SearchJobsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + SearchJobsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public SearchJobsPagedResponse apply(SearchJobsPage input) { + return new SearchJobsPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private SearchJobsPagedResponse(SearchJobsPage page) { + super(page, SearchJobsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class SearchJobsPage + extends AbstractPage< + SearchJobsRequest, SearchJobsResponse, SearchJobsResponse.MatchingJob, SearchJobsPage> { + + private SearchJobsPage( + PageContext context, + SearchJobsResponse response) { + super(context, response); + } + + private static SearchJobsPage createEmptyPage() { + return new SearchJobsPage(null, null); + } + + @Override + protected SearchJobsPage createPage( + PageContext context, + SearchJobsResponse response) { + return new SearchJobsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class SearchJobsFixedSizeCollection + extends AbstractFixedSizeCollection< + SearchJobsRequest, + SearchJobsResponse, + SearchJobsResponse.MatchingJob, + SearchJobsPage, + SearchJobsFixedSizeCollection> { + + private SearchJobsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static SearchJobsFixedSizeCollection createEmptyCollection() { + return new SearchJobsFixedSizeCollection(null, 0); + } + + @Override + protected SearchJobsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new SearchJobsFixedSizeCollection(pages, collectionSize); + } + } + + public static class SearchJobsForAlertPagedResponse + extends AbstractPagedListResponse< + SearchJobsRequest, + SearchJobsResponse, + SearchJobsResponse.MatchingJob, + SearchJobsForAlertPage, + SearchJobsForAlertFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + SearchJobsForAlertPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public SearchJobsForAlertPagedResponse apply(SearchJobsForAlertPage input) { + return new SearchJobsForAlertPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private SearchJobsForAlertPagedResponse(SearchJobsForAlertPage page) { + super(page, SearchJobsForAlertFixedSizeCollection.createEmptyCollection()); + } + } + + public static class SearchJobsForAlertPage + extends AbstractPage< + SearchJobsRequest, + SearchJobsResponse, + SearchJobsResponse.MatchingJob, + SearchJobsForAlertPage> { + + private SearchJobsForAlertPage( + PageContext context, + SearchJobsResponse response) { + super(context, response); + } + + private static SearchJobsForAlertPage createEmptyPage() { + return new SearchJobsForAlertPage(null, null); + } + + @Override + protected SearchJobsForAlertPage createPage( + PageContext context, + SearchJobsResponse response) { + return new SearchJobsForAlertPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class SearchJobsForAlertFixedSizeCollection + extends AbstractFixedSizeCollection< + SearchJobsRequest, + SearchJobsResponse, + SearchJobsResponse.MatchingJob, + SearchJobsForAlertPage, + SearchJobsForAlertFixedSizeCollection> { + + private SearchJobsForAlertFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static SearchJobsForAlertFixedSizeCollection createEmptyCollection() { + return new SearchJobsForAlertFixedSizeCollection(null, 0); + } + + @Override + protected SearchJobsForAlertFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new SearchJobsForAlertFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/JobServiceSettings.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/JobServiceSettings.java new file mode 100644 index 000000000000..a5852b0ccb83 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/JobServiceSettings.java @@ -0,0 +1,256 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import static com.google.cloud.talent.v4beta1.JobServiceClient.ListJobsPagedResponse; +import static com.google.cloud.talent.v4beta1.JobServiceClient.SearchJobsForAlertPagedResponse; +import static com.google.cloud.talent.v4beta1.JobServiceClient.SearchJobsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.talent.v4beta1.stub.JobServiceStubSettings; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link JobServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (jobs.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of createJob to 30 seconds: + * + *

+ * 
+ * JobServiceSettings.Builder jobServiceSettingsBuilder =
+ *     JobServiceSettings.newBuilder();
+ * jobServiceSettingsBuilder.createJobSettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * JobServiceSettings jobServiceSettings = jobServiceSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class JobServiceSettings extends ClientSettings { + /** Returns the object with the settings used for calls to createJob. */ + public UnaryCallSettings createJobSettings() { + return ((JobServiceStubSettings) getStubSettings()).createJobSettings(); + } + + /** Returns the object with the settings used for calls to getJob. */ + public UnaryCallSettings getJobSettings() { + return ((JobServiceStubSettings) getStubSettings()).getJobSettings(); + } + + /** Returns the object with the settings used for calls to updateJob. */ + public UnaryCallSettings updateJobSettings() { + return ((JobServiceStubSettings) getStubSettings()).updateJobSettings(); + } + + /** Returns the object with the settings used for calls to deleteJob. */ + public UnaryCallSettings deleteJobSettings() { + return ((JobServiceStubSettings) getStubSettings()).deleteJobSettings(); + } + + /** Returns the object with the settings used for calls to listJobs. */ + public PagedCallSettings + listJobsSettings() { + return ((JobServiceStubSettings) getStubSettings()).listJobsSettings(); + } + + /** Returns the object with the settings used for calls to batchDeleteJobs. */ + public UnaryCallSettings batchDeleteJobsSettings() { + return ((JobServiceStubSettings) getStubSettings()).batchDeleteJobsSettings(); + } + + /** Returns the object with the settings used for calls to searchJobs. */ + public PagedCallSettings + searchJobsSettings() { + return ((JobServiceStubSettings) getStubSettings()).searchJobsSettings(); + } + + /** Returns the object with the settings used for calls to searchJobsForAlert. */ + public PagedCallSettings + searchJobsForAlertSettings() { + return ((JobServiceStubSettings) getStubSettings()).searchJobsForAlertSettings(); + } + + public static final JobServiceSettings create(JobServiceStubSettings stub) throws IOException { + return new JobServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return JobServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return JobServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return JobServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return JobServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return JobServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return JobServiceStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return JobServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected JobServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for JobServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + protected Builder() throws IOException { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(JobServiceStubSettings.newBuilder(clientContext)); + } + + private static Builder createDefault() { + return new Builder(JobServiceStubSettings.newBuilder()); + } + + protected Builder(JobServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(JobServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + public JobServiceStubSettings.Builder getStubSettingsBuilder() { + return ((JobServiceStubSettings.Builder) getStubSettings()); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to createJob. */ + public UnaryCallSettings.Builder createJobSettings() { + return getStubSettingsBuilder().createJobSettings(); + } + + /** Returns the builder for the settings used for calls to getJob. */ + public UnaryCallSettings.Builder getJobSettings() { + return getStubSettingsBuilder().getJobSettings(); + } + + /** Returns the builder for the settings used for calls to updateJob. */ + public UnaryCallSettings.Builder updateJobSettings() { + return getStubSettingsBuilder().updateJobSettings(); + } + + /** Returns the builder for the settings used for calls to deleteJob. */ + public UnaryCallSettings.Builder deleteJobSettings() { + return getStubSettingsBuilder().deleteJobSettings(); + } + + /** Returns the builder for the settings used for calls to listJobs. */ + public PagedCallSettings.Builder + listJobsSettings() { + return getStubSettingsBuilder().listJobsSettings(); + } + + /** Returns the builder for the settings used for calls to batchDeleteJobs. */ + public UnaryCallSettings.Builder batchDeleteJobsSettings() { + return getStubSettingsBuilder().batchDeleteJobsSettings(); + } + + /** Returns the builder for the settings used for calls to searchJobs. */ + public PagedCallSettings.Builder + searchJobsSettings() { + return getStubSettingsBuilder().searchJobsSettings(); + } + + /** Returns the builder for the settings used for calls to searchJobsForAlert. */ + public PagedCallSettings.Builder< + SearchJobsRequest, SearchJobsResponse, SearchJobsForAlertPagedResponse> + searchJobsForAlertSettings() { + return getStubSettingsBuilder().searchJobsForAlertSettings(); + } + + @Override + public JobServiceSettings build() throws IOException { + return new JobServiceSettings(this); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceClient.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceClient.java new file mode 100644 index 000000000000..5686cf18dd78 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceClient.java @@ -0,0 +1,961 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4beta1.stub.ProfileServiceStub; +import com.google.cloud.talent.v4beta1.stub.ProfileServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND SERVICE +/** + * Service Description: A service that handles profile management, including profile CRUD, + * enumeration and search. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

+ * 
+ * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
+ *   TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
+ *   Profile profile = Profile.newBuilder().build();
+ *   Profile response = profileServiceClient.createProfile(parent, profile);
+ * }
+ * 
+ * 
+ * + *

Note: close() needs to be called on the profileServiceClient object to clean up resources such + * as threads. In the example above, try-with-resources is used, which automatically calls close(). + * + *

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

    + *
  1. A "flattened" method. With this type of method, the fields of the request type have been + * converted into function parameters. It may be the case that not all fields are available as + * parameters, and not every API method will have a flattened method entry point. + *
  2. A "request object" method. This type of method only takes one parameter, a request object, + * which must be constructed before the call. Not every API method will have a request object + * method. + *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API + * callable object, which can be used to initiate calls to the service. + *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of ProfileServiceSettings to + * create(). For example: + * + *

To customize credentials: + * + *

+ * 
+ * ProfileServiceSettings profileServiceSettings =
+ *     ProfileServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * ProfileServiceClient profileServiceClient =
+ *     ProfileServiceClient.create(profileServiceSettings);
+ * 
+ * 
+ * + * To customize the endpoint: + * + *
+ * 
+ * ProfileServiceSettings profileServiceSettings =
+ *     ProfileServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * ProfileServiceClient profileServiceClient =
+ *     ProfileServiceClient.create(profileServiceSettings);
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class ProfileServiceClient implements BackgroundResource { + private final ProfileServiceSettings settings; + private final ProfileServiceStub stub; + + /** Constructs an instance of ProfileServiceClient with default settings. */ + public static final ProfileServiceClient create() throws IOException { + return create(ProfileServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of ProfileServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final ProfileServiceClient create(ProfileServiceSettings settings) + throws IOException { + return new ProfileServiceClient(settings); + } + + /** + * Constructs an instance of ProfileServiceClient, using the given stub for making calls. This is + * for advanced usage - prefer to use ProfileServiceSettings}. + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public static final ProfileServiceClient create(ProfileServiceStub stub) { + return new ProfileServiceClient(stub); + } + + /** + * Constructs an instance of ProfileServiceClient, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected ProfileServiceClient(ProfileServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((ProfileServiceStubSettings) settings.getStubSettings()).createStub(); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected ProfileServiceClient(ProfileServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final ProfileServiceSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public ProfileServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists profiles by filter. The order is unspecified. + * + *

Sample code: + * + *


+   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
+   *   TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
+   *   for (Profile element : profileServiceClient.listProfiles(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. + *

The resource name of the tenant under which the job is created. + *

The format is "projects/{project_id}/tenants/{tenant_id}", for example, + * "projects/api-test-project/tenants/foo". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListProfilesPagedResponse listProfiles(TenantName parent) { + ListProfilesRequest request = + ListProfilesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listProfiles(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists profiles by filter. The order is unspecified. + * + *

Sample code: + * + *


+   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
+   *   TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
+   *   for (Profile element : profileServiceClient.listProfiles(parent.toString()).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. + *

The resource name of the tenant under which the job is created. + *

The format is "projects/{project_id}/tenants/{tenant_id}", for example, + * "projects/api-test-project/tenants/foo". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListProfilesPagedResponse listProfiles(String parent) { + ListProfilesRequest request = ListProfilesRequest.newBuilder().setParent(parent).build(); + return listProfiles(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists profiles by filter. The order is unspecified. + * + *

Sample code: + * + *


+   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
+   *   TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
+   *   ListProfilesRequest request = ListProfilesRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   for (Profile element : profileServiceClient.listProfiles(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListProfilesPagedResponse listProfiles(ListProfilesRequest request) { + return listProfilesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists profiles by filter. The order is unspecified. + * + *

Sample code: + * + *


+   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
+   *   TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
+   *   ListProfilesRequest request = ListProfilesRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   ApiFuture<ListProfilesPagedResponse> future = profileServiceClient.listProfilesPagedCallable().futureCall(request);
+   *   // Do something
+   *   for (Profile element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable + listProfilesPagedCallable() { + return stub.listProfilesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists profiles by filter. The order is unspecified. + * + *

Sample code: + * + *


+   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
+   *   TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
+   *   ListProfilesRequest request = ListProfilesRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   while (true) {
+   *     ListProfilesResponse response = profileServiceClient.listProfilesCallable().call(request);
+   *     for (Profile element : response.getProfilesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable listProfilesCallable() { + return stub.listProfilesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates and returns a new profile. + * + *

Sample code: + * + *


+   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
+   *   TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
+   *   Profile profile = Profile.newBuilder().build();
+   *   Profile response = profileServiceClient.createProfile(parent, profile);
+   * }
+   * 
+ * + * @param parent Required. + *

The name of the tenant this profile belongs to. + *

The format is "projects/{project_id}/tenants/{tenant_id}", for example, + * "projects/api-test-project/tenants/foo". + * @param profile Required. + *

The profile to be created. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Profile createProfile(TenantName parent, Profile profile) { + + CreateProfileRequest request = + CreateProfileRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setProfile(profile) + .build(); + return createProfile(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates and returns a new profile. + * + *

Sample code: + * + *


+   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
+   *   TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
+   *   Profile profile = Profile.newBuilder().build();
+   *   Profile response = profileServiceClient.createProfile(parent.toString(), profile);
+   * }
+   * 
+ * + * @param parent Required. + *

The name of the tenant this profile belongs to. + *

The format is "projects/{project_id}/tenants/{tenant_id}", for example, + * "projects/api-test-project/tenants/foo". + * @param profile Required. + *

The profile to be created. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Profile createProfile(String parent, Profile profile) { + + CreateProfileRequest request = + CreateProfileRequest.newBuilder().setParent(parent).setProfile(profile).build(); + return createProfile(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates and returns a new profile. + * + *

Sample code: + * + *


+   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
+   *   TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
+   *   Profile profile = Profile.newBuilder().build();
+   *   CreateProfileRequest request = CreateProfileRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setProfile(profile)
+   *     .build();
+   *   Profile response = profileServiceClient.createProfile(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Profile createProfile(CreateProfileRequest request) { + return createProfileCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates and returns a new profile. + * + *

Sample code: + * + *


+   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
+   *   TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
+   *   Profile profile = Profile.newBuilder().build();
+   *   CreateProfileRequest request = CreateProfileRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setProfile(profile)
+   *     .build();
+   *   ApiFuture<Profile> future = profileServiceClient.createProfileCallable().futureCall(request);
+   *   // Do something
+   *   Profile response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable createProfileCallable() { + return stub.createProfileCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the specified profile. + * + *

Sample code: + * + *


+   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
+   *   ProfileName name = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]");
+   *   Profile response = profileServiceClient.getProfile(name);
+   * }
+   * 
+ * + * @param name Required. + *

Resource name of the profile to get. + *

The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", for + * example, "projects/api-test-project/tenants/foo/profiles/bar". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Profile getProfile(ProfileName name) { + + GetProfileRequest request = + GetProfileRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getProfile(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the specified profile. + * + *

Sample code: + * + *


+   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
+   *   ProfileName name = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]");
+   *   Profile response = profileServiceClient.getProfile(name.toString());
+   * }
+   * 
+ * + * @param name Required. + *

Resource name of the profile to get. + *

The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", for + * example, "projects/api-test-project/tenants/foo/profiles/bar". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Profile getProfile(String name) { + + GetProfileRequest request = GetProfileRequest.newBuilder().setName(name).build(); + return getProfile(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the specified profile. + * + *

Sample code: + * + *


+   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
+   *   ProfileName name = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]");
+   *   GetProfileRequest request = GetProfileRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   Profile response = profileServiceClient.getProfile(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Profile getProfile(GetProfileRequest request) { + return getProfileCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the specified profile. + * + *

Sample code: + * + *


+   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
+   *   ProfileName name = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]");
+   *   GetProfileRequest request = GetProfileRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<Profile> future = profileServiceClient.getProfileCallable().futureCall(request);
+   *   // Do something
+   *   Profile response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable getProfileCallable() { + return stub.getProfileCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates the specified profile and returns the updated result. + * + *

Sample code: + * + *


+   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
+   *   Profile profile = Profile.newBuilder().build();
+   *   Profile response = profileServiceClient.updateProfile(profile);
+   * }
+   * 
+ * + * @param profile Required. + *

Profile to be updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Profile updateProfile(Profile profile) { + + UpdateProfileRequest request = UpdateProfileRequest.newBuilder().setProfile(profile).build(); + return updateProfile(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates the specified profile and returns the updated result. + * + *

Sample code: + * + *


+   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
+   *   Profile profile = Profile.newBuilder().build();
+   *   UpdateProfileRequest request = UpdateProfileRequest.newBuilder()
+   *     .setProfile(profile)
+   *     .build();
+   *   Profile response = profileServiceClient.updateProfile(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Profile updateProfile(UpdateProfileRequest request) { + return updateProfileCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates the specified profile and returns the updated result. + * + *

Sample code: + * + *


+   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
+   *   Profile profile = Profile.newBuilder().build();
+   *   UpdateProfileRequest request = UpdateProfileRequest.newBuilder()
+   *     .setProfile(profile)
+   *     .build();
+   *   ApiFuture<Profile> future = profileServiceClient.updateProfileCallable().futureCall(request);
+   *   // Do something
+   *   Profile response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable updateProfileCallable() { + return stub.updateProfileCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified profile. + * + *

Sample code: + * + *


+   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
+   *   ProfileName name = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]");
+   *   profileServiceClient.deleteProfile(name);
+   * }
+   * 
+ * + * @param name Required. + *

Resource name of the profile to be deleted. + *

The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", for + * example, "projects/api-test-project/tenants/foo/profiles/bar". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteProfile(ProfileName name) { + + DeleteProfileRequest request = + DeleteProfileRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteProfile(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified profile. + * + *

Sample code: + * + *


+   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
+   *   ProfileName name = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]");
+   *   profileServiceClient.deleteProfile(name.toString());
+   * }
+   * 
+ * + * @param name Required. + *

Resource name of the profile to be deleted. + *

The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", for + * example, "projects/api-test-project/tenants/foo/profiles/bar". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteProfile(String name) { + + DeleteProfileRequest request = DeleteProfileRequest.newBuilder().setName(name).build(); + deleteProfile(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified profile. + * + *

Sample code: + * + *


+   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
+   *   ProfileName name = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]");
+   *   DeleteProfileRequest request = DeleteProfileRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   profileServiceClient.deleteProfile(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteProfile(DeleteProfileRequest request) { + deleteProfileCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified profile. + * + *

Sample code: + * + *


+   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
+   *   ProfileName name = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]");
+   *   DeleteProfileRequest request = DeleteProfileRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<Void> future = profileServiceClient.deleteProfileCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + public final UnaryCallable deleteProfileCallable() { + return stub.deleteProfileCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Searches for profiles within a tenant. + * + *

For example, search by raw queries "software engineer in Mountain View" or search by + * structured filters (location filter, education filter, etc.). + * + *

See [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest] for more + * information. + * + *

Sample code: + * + *


+   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
+   *   TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
+   *   RequestMetadata requestMetadata = RequestMetadata.newBuilder().build();
+   *   SearchProfilesRequest request = SearchProfilesRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setRequestMetadata(requestMetadata)
+   *     .build();
+   *   for (HistogramQueryResult element : profileServiceClient.searchProfiles(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchProfilesPagedResponse searchProfiles(SearchProfilesRequest request) { + return searchProfilesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Searches for profiles within a tenant. + * + *

For example, search by raw queries "software engineer in Mountain View" or search by + * structured filters (location filter, education filter, etc.). + * + *

See [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest] for more + * information. + * + *

Sample code: + * + *


+   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
+   *   TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
+   *   RequestMetadata requestMetadata = RequestMetadata.newBuilder().build();
+   *   SearchProfilesRequest request = SearchProfilesRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setRequestMetadata(requestMetadata)
+   *     .build();
+   *   ApiFuture<SearchProfilesPagedResponse> future = profileServiceClient.searchProfilesPagedCallable().futureCall(request);
+   *   // Do something
+   *   for (HistogramQueryResult element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable + searchProfilesPagedCallable() { + return stub.searchProfilesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Searches for profiles within a tenant. + * + *

For example, search by raw queries "software engineer in Mountain View" or search by + * structured filters (location filter, education filter, etc.). + * + *

See [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest] for more + * information. + * + *

Sample code: + * + *


+   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
+   *   TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
+   *   RequestMetadata requestMetadata = RequestMetadata.newBuilder().build();
+   *   SearchProfilesRequest request = SearchProfilesRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setRequestMetadata(requestMetadata)
+   *     .build();
+   *   while (true) {
+   *     SearchProfilesResponse response = profileServiceClient.searchProfilesCallable().call(request);
+   *     for (HistogramQueryResult element : response.getHistogramQueryResultsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable + searchProfilesCallable() { + return stub.searchProfilesCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListProfilesPagedResponse + extends AbstractPagedListResponse< + ListProfilesRequest, + ListProfilesResponse, + Profile, + ListProfilesPage, + ListProfilesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListProfilesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public ListProfilesPagedResponse apply(ListProfilesPage input) { + return new ListProfilesPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private ListProfilesPagedResponse(ListProfilesPage page) { + super(page, ListProfilesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListProfilesPage + extends AbstractPage { + + private ListProfilesPage( + PageContext context, + ListProfilesResponse response) { + super(context, response); + } + + private static ListProfilesPage createEmptyPage() { + return new ListProfilesPage(null, null); + } + + @Override + protected ListProfilesPage createPage( + PageContext context, + ListProfilesResponse response) { + return new ListProfilesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListProfilesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListProfilesRequest, + ListProfilesResponse, + Profile, + ListProfilesPage, + ListProfilesFixedSizeCollection> { + + private ListProfilesFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListProfilesFixedSizeCollection createEmptyCollection() { + return new ListProfilesFixedSizeCollection(null, 0); + } + + @Override + protected ListProfilesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListProfilesFixedSizeCollection(pages, collectionSize); + } + } + + public static class SearchProfilesPagedResponse + extends AbstractPagedListResponse< + SearchProfilesRequest, + SearchProfilesResponse, + HistogramQueryResult, + SearchProfilesPage, + SearchProfilesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + SearchProfilesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public SearchProfilesPagedResponse apply(SearchProfilesPage input) { + return new SearchProfilesPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private SearchProfilesPagedResponse(SearchProfilesPage page) { + super(page, SearchProfilesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class SearchProfilesPage + extends AbstractPage< + SearchProfilesRequest, SearchProfilesResponse, HistogramQueryResult, SearchProfilesPage> { + + private SearchProfilesPage( + PageContext context, + SearchProfilesResponse response) { + super(context, response); + } + + private static SearchProfilesPage createEmptyPage() { + return new SearchProfilesPage(null, null); + } + + @Override + protected SearchProfilesPage createPage( + PageContext context, + SearchProfilesResponse response) { + return new SearchProfilesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class SearchProfilesFixedSizeCollection + extends AbstractFixedSizeCollection< + SearchProfilesRequest, + SearchProfilesResponse, + HistogramQueryResult, + SearchProfilesPage, + SearchProfilesFixedSizeCollection> { + + private SearchProfilesFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static SearchProfilesFixedSizeCollection createEmptyCollection() { + return new SearchProfilesFixedSizeCollection(null, 0); + } + + @Override + protected SearchProfilesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new SearchProfilesFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceSettings.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceSettings.java new file mode 100644 index 000000000000..20a2b3d6adaf --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceSettings.java @@ -0,0 +1,236 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import static com.google.cloud.talent.v4beta1.ProfileServiceClient.ListProfilesPagedResponse; +import static com.google.cloud.talent.v4beta1.ProfileServiceClient.SearchProfilesPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.talent.v4beta1.stub.ProfileServiceStubSettings; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link ProfileServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (jobs.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of createProfile to 30 seconds: + * + *

+ * 
+ * ProfileServiceSettings.Builder profileServiceSettingsBuilder =
+ *     ProfileServiceSettings.newBuilder();
+ * profileServiceSettingsBuilder.createProfileSettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * ProfileServiceSettings profileServiceSettings = profileServiceSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class ProfileServiceSettings extends ClientSettings { + /** Returns the object with the settings used for calls to listProfiles. */ + public PagedCallSettings + listProfilesSettings() { + return ((ProfileServiceStubSettings) getStubSettings()).listProfilesSettings(); + } + + /** Returns the object with the settings used for calls to createProfile. */ + public UnaryCallSettings createProfileSettings() { + return ((ProfileServiceStubSettings) getStubSettings()).createProfileSettings(); + } + + /** Returns the object with the settings used for calls to getProfile. */ + public UnaryCallSettings getProfileSettings() { + return ((ProfileServiceStubSettings) getStubSettings()).getProfileSettings(); + } + + /** Returns the object with the settings used for calls to updateProfile. */ + public UnaryCallSettings updateProfileSettings() { + return ((ProfileServiceStubSettings) getStubSettings()).updateProfileSettings(); + } + + /** Returns the object with the settings used for calls to deleteProfile. */ + public UnaryCallSettings deleteProfileSettings() { + return ((ProfileServiceStubSettings) getStubSettings()).deleteProfileSettings(); + } + + /** Returns the object with the settings used for calls to searchProfiles. */ + public PagedCallSettings< + SearchProfilesRequest, SearchProfilesResponse, SearchProfilesPagedResponse> + searchProfilesSettings() { + return ((ProfileServiceStubSettings) getStubSettings()).searchProfilesSettings(); + } + + public static final ProfileServiceSettings create(ProfileServiceStubSettings stub) + throws IOException { + return new ProfileServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return ProfileServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return ProfileServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return ProfileServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return ProfileServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return ProfileServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return ProfileServiceStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ProfileServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected ProfileServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for ProfileServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + protected Builder() throws IOException { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(ProfileServiceStubSettings.newBuilder(clientContext)); + } + + private static Builder createDefault() { + return new Builder(ProfileServiceStubSettings.newBuilder()); + } + + protected Builder(ProfileServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(ProfileServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + public ProfileServiceStubSettings.Builder getStubSettingsBuilder() { + return ((ProfileServiceStubSettings.Builder) getStubSettings()); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to listProfiles. */ + public PagedCallSettings.Builder< + ListProfilesRequest, ListProfilesResponse, ListProfilesPagedResponse> + listProfilesSettings() { + return getStubSettingsBuilder().listProfilesSettings(); + } + + /** Returns the builder for the settings used for calls to createProfile. */ + public UnaryCallSettings.Builder createProfileSettings() { + return getStubSettingsBuilder().createProfileSettings(); + } + + /** Returns the builder for the settings used for calls to getProfile. */ + public UnaryCallSettings.Builder getProfileSettings() { + return getStubSettingsBuilder().getProfileSettings(); + } + + /** Returns the builder for the settings used for calls to updateProfile. */ + public UnaryCallSettings.Builder updateProfileSettings() { + return getStubSettingsBuilder().updateProfileSettings(); + } + + /** Returns the builder for the settings used for calls to deleteProfile. */ + public UnaryCallSettings.Builder deleteProfileSettings() { + return getStubSettingsBuilder().deleteProfileSettings(); + } + + /** Returns the builder for the settings used for calls to searchProfiles. */ + public PagedCallSettings.Builder< + SearchProfilesRequest, SearchProfilesResponse, SearchProfilesPagedResponse> + searchProfilesSettings() { + return getStubSettingsBuilder().searchProfilesSettings(); + } + + @Override + public ProfileServiceSettings build() throws IOException { + return new ProfileServiceSettings(this); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ResumeServiceClient.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ResumeServiceClient.java new file mode 100644 index 000000000000..487c99b20299 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ResumeServiceClient.java @@ -0,0 +1,348 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4beta1.stub.ResumeServiceStub; +import com.google.cloud.talent.v4beta1.stub.ResumeServiceStubSettings; +import com.google.protobuf.ByteString; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND SERVICE +/** + * Service Description: A service that handles resume parsing. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

+ * 
+ * try (ResumeServiceClient resumeServiceClient = ResumeServiceClient.create()) {
+ *   ProjectName parent = ProjectName.of("[PROJECT]");
+ *   ByteString resume = ByteString.copyFromUtf8("");
+ *   ParseResumeResponse response = resumeServiceClient.parseResume(parent, resume);
+ * }
+ * 
+ * 
+ * + *

Note: close() needs to be called on the resumeServiceClient object to clean up resources such + * as threads. In the example above, try-with-resources is used, which automatically calls close(). + * + *

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

    + *
  1. A "flattened" method. With this type of method, the fields of the request type have been + * converted into function parameters. It may be the case that not all fields are available as + * parameters, and not every API method will have a flattened method entry point. + *
  2. A "request object" method. This type of method only takes one parameter, a request object, + * which must be constructed before the call. Not every API method will have a request object + * method. + *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API + * callable object, which can be used to initiate calls to the service. + *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of ResumeServiceSettings to + * create(). For example: + * + *

To customize credentials: + * + *

+ * 
+ * ResumeServiceSettings resumeServiceSettings =
+ *     ResumeServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * ResumeServiceClient resumeServiceClient =
+ *     ResumeServiceClient.create(resumeServiceSettings);
+ * 
+ * 
+ * + * To customize the endpoint: + * + *
+ * 
+ * ResumeServiceSettings resumeServiceSettings =
+ *     ResumeServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * ResumeServiceClient resumeServiceClient =
+ *     ResumeServiceClient.create(resumeServiceSettings);
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class ResumeServiceClient implements BackgroundResource { + private final ResumeServiceSettings settings; + private final ResumeServiceStub stub; + + /** Constructs an instance of ResumeServiceClient with default settings. */ + public static final ResumeServiceClient create() throws IOException { + return create(ResumeServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of ResumeServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final ResumeServiceClient create(ResumeServiceSettings settings) + throws IOException { + return new ResumeServiceClient(settings); + } + + /** + * Constructs an instance of ResumeServiceClient, using the given stub for making calls. This is + * for advanced usage - prefer to use ResumeServiceSettings}. + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public static final ResumeServiceClient create(ResumeServiceStub stub) { + return new ResumeServiceClient(stub); + } + + /** + * Constructs an instance of ResumeServiceClient, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected ResumeServiceClient(ResumeServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((ResumeServiceStubSettings) settings.getStubSettings()).createStub(); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected ResumeServiceClient(ResumeServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final ResumeServiceSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public ResumeServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Parses a resume into a [Profile][google.cloud.talent.v4beta1.Profile]. The API attempts to fill + * out the following profile fields if present within the resume: + * + *

* personNames * addresses * emailAddress * phoneNumbers * personalUris + * * employmentRecords * educationRecords * skills + * + *

Note that some attributes in these fields may not be populated if they're not present within + * the resume or unrecognizable by the resume parser. + * + *

This API does not save the resume or profile. To create a profile from this resume, clients + * need to call the CreateProfile method again with the profile returned. + * + *

The following list of formats are supported: + * + *

* PDF * TXT * DOC * RTF * DOCX * PNG (only when + * [ParseResumeRequest.enable_ocr][] is set to `true`, otherwise an error is thrown) + * + *

Sample code: + * + *


+   * try (ResumeServiceClient resumeServiceClient = ResumeServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   ByteString resume = ByteString.copyFromUtf8("");
+   *   ParseResumeResponse response = resumeServiceClient.parseResume(parent, resume);
+   * }
+   * 
+ * + * @param parent Required. + *

The resource name of the project. + *

The format is "projects/{project_id}", for example, "projects/api-test-project". + * @param resume Required. + *

The bytes of the resume file in common format, for example, PDF, TXT. UTF-8 encoding is + * required if the resume is text-based, otherwise an error is thrown. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ParseResumeResponse parseResume(ProjectName parent, ByteString resume) { + + ParseResumeRequest request = + ParseResumeRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setResume(resume) + .build(); + return parseResume(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Parses a resume into a [Profile][google.cloud.talent.v4beta1.Profile]. The API attempts to fill + * out the following profile fields if present within the resume: + * + *

* personNames * addresses * emailAddress * phoneNumbers * personalUris + * * employmentRecords * educationRecords * skills + * + *

Note that some attributes in these fields may not be populated if they're not present within + * the resume or unrecognizable by the resume parser. + * + *

This API does not save the resume or profile. To create a profile from this resume, clients + * need to call the CreateProfile method again with the profile returned. + * + *

The following list of formats are supported: + * + *

* PDF * TXT * DOC * RTF * DOCX * PNG (only when + * [ParseResumeRequest.enable_ocr][] is set to `true`, otherwise an error is thrown) + * + *

Sample code: + * + *


+   * try (ResumeServiceClient resumeServiceClient = ResumeServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   ByteString resume = ByteString.copyFromUtf8("");
+   *   ParseResumeResponse response = resumeServiceClient.parseResume(parent.toString(), resume);
+   * }
+   * 
+ * + * @param parent Required. + *

The resource name of the project. + *

The format is "projects/{project_id}", for example, "projects/api-test-project". + * @param resume Required. + *

The bytes of the resume file in common format, for example, PDF, TXT. UTF-8 encoding is + * required if the resume is text-based, otherwise an error is thrown. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ParseResumeResponse parseResume(String parent, ByteString resume) { + + ParseResumeRequest request = + ParseResumeRequest.newBuilder().setParent(parent).setResume(resume).build(); + return parseResume(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Parses a resume into a [Profile][google.cloud.talent.v4beta1.Profile]. The API attempts to fill + * out the following profile fields if present within the resume: + * + *

* personNames * addresses * emailAddress * phoneNumbers * personalUris + * * employmentRecords * educationRecords * skills + * + *

Note that some attributes in these fields may not be populated if they're not present within + * the resume or unrecognizable by the resume parser. + * + *

This API does not save the resume or profile. To create a profile from this resume, clients + * need to call the CreateProfile method again with the profile returned. + * + *

The following list of formats are supported: + * + *

* PDF * TXT * DOC * RTF * DOCX * PNG (only when + * [ParseResumeRequest.enable_ocr][] is set to `true`, otherwise an error is thrown) + * + *

Sample code: + * + *


+   * try (ResumeServiceClient resumeServiceClient = ResumeServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   ByteString resume = ByteString.copyFromUtf8("");
+   *   ParseResumeRequest request = ParseResumeRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setResume(resume)
+   *     .build();
+   *   ParseResumeResponse response = resumeServiceClient.parseResume(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ParseResumeResponse parseResume(ParseResumeRequest request) { + return parseResumeCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Parses a resume into a [Profile][google.cloud.talent.v4beta1.Profile]. The API attempts to fill + * out the following profile fields if present within the resume: + * + *

* personNames * addresses * emailAddress * phoneNumbers * personalUris + * * employmentRecords * educationRecords * skills + * + *

Note that some attributes in these fields may not be populated if they're not present within + * the resume or unrecognizable by the resume parser. + * + *

This API does not save the resume or profile. To create a profile from this resume, clients + * need to call the CreateProfile method again with the profile returned. + * + *

The following list of formats are supported: + * + *

* PDF * TXT * DOC * RTF * DOCX * PNG (only when + * [ParseResumeRequest.enable_ocr][] is set to `true`, otherwise an error is thrown) + * + *

Sample code: + * + *


+   * try (ResumeServiceClient resumeServiceClient = ResumeServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   ByteString resume = ByteString.copyFromUtf8("");
+   *   ParseResumeRequest request = ParseResumeRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setResume(resume)
+   *     .build();
+   *   ApiFuture<ParseResumeResponse> future = resumeServiceClient.parseResumeCallable().futureCall(request);
+   *   // Do something
+   *   ParseResumeResponse response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable parseResumeCallable() { + return stub.parseResumeCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ResumeServiceSettings.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ResumeServiceSettings.java new file mode 100644 index 000000000000..bf411c4f0f48 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ResumeServiceSettings.java @@ -0,0 +1,175 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.talent.v4beta1.stub.ResumeServiceStubSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link ResumeServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (jobs.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of parseResume to 30 seconds: + * + *

+ * 
+ * ResumeServiceSettings.Builder resumeServiceSettingsBuilder =
+ *     ResumeServiceSettings.newBuilder();
+ * resumeServiceSettingsBuilder.parseResumeSettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * ResumeServiceSettings resumeServiceSettings = resumeServiceSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class ResumeServiceSettings extends ClientSettings { + /** Returns the object with the settings used for calls to parseResume. */ + public UnaryCallSettings parseResumeSettings() { + return ((ResumeServiceStubSettings) getStubSettings()).parseResumeSettings(); + } + + public static final ResumeServiceSettings create(ResumeServiceStubSettings stub) + throws IOException { + return new ResumeServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return ResumeServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return ResumeServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return ResumeServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return ResumeServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return ResumeServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return ResumeServiceStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ResumeServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected ResumeServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for ResumeServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + protected Builder() throws IOException { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(ResumeServiceStubSettings.newBuilder(clientContext)); + } + + private static Builder createDefault() { + return new Builder(ResumeServiceStubSettings.newBuilder()); + } + + protected Builder(ResumeServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(ResumeServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + public ResumeServiceStubSettings.Builder getStubSettingsBuilder() { + return ((ResumeServiceStubSettings.Builder) getStubSettings()); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to parseResume. */ + public UnaryCallSettings.Builder + parseResumeSettings() { + return getStubSettingsBuilder().parseResumeSettings(); + } + + @Override + public ResumeServiceSettings build() throws IOException { + return new ResumeServiceSettings(this); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceClient.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceClient.java new file mode 100644 index 000000000000..65476dc57674 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceClient.java @@ -0,0 +1,769 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4beta1.stub.TenantServiceStub; +import com.google.cloud.talent.v4beta1.stub.TenantServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND SERVICE +/** + * Service Description: A service that handles tenant management, including CRUD and enumeration. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

+ * 
+ * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) {
+ *   ProjectName parent = ProjectName.of("[PROJECT]");
+ *   Tenant tenant = Tenant.newBuilder().build();
+ *   Tenant response = tenantServiceClient.createTenant(parent, tenant);
+ * }
+ * 
+ * 
+ * + *

Note: close() needs to be called on the tenantServiceClient object to clean up resources such + * as threads. In the example above, try-with-resources is used, which automatically calls close(). + * + *

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

    + *
  1. A "flattened" method. With this type of method, the fields of the request type have been + * converted into function parameters. It may be the case that not all fields are available as + * parameters, and not every API method will have a flattened method entry point. + *
  2. A "request object" method. This type of method only takes one parameter, a request object, + * which must be constructed before the call. Not every API method will have a request object + * method. + *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API + * callable object, which can be used to initiate calls to the service. + *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of TenantServiceSettings to + * create(). For example: + * + *

To customize credentials: + * + *

+ * 
+ * TenantServiceSettings tenantServiceSettings =
+ *     TenantServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * TenantServiceClient tenantServiceClient =
+ *     TenantServiceClient.create(tenantServiceSettings);
+ * 
+ * 
+ * + * To customize the endpoint: + * + *
+ * 
+ * TenantServiceSettings tenantServiceSettings =
+ *     TenantServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * TenantServiceClient tenantServiceClient =
+ *     TenantServiceClient.create(tenantServiceSettings);
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class TenantServiceClient implements BackgroundResource { + private final TenantServiceSettings settings; + private final TenantServiceStub stub; + + /** Constructs an instance of TenantServiceClient with default settings. */ + public static final TenantServiceClient create() throws IOException { + return create(TenantServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of TenantServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final TenantServiceClient create(TenantServiceSettings settings) + throws IOException { + return new TenantServiceClient(settings); + } + + /** + * Constructs an instance of TenantServiceClient, using the given stub for making calls. This is + * for advanced usage - prefer to use TenantServiceSettings}. + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public static final TenantServiceClient create(TenantServiceStub stub) { + return new TenantServiceClient(stub); + } + + /** + * Constructs an instance of TenantServiceClient, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected TenantServiceClient(TenantServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((TenantServiceStubSettings) settings.getStubSettings()).createStub(); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected TenantServiceClient(TenantServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final TenantServiceSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public TenantServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a new tenant entity. + * + *

Sample code: + * + *


+   * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   Tenant tenant = Tenant.newBuilder().build();
+   *   Tenant response = tenantServiceClient.createTenant(parent, tenant);
+   * }
+   * 
+ * + * @param parent Required. + *

Resource name of the project under which the tenant is created. + *

The format is "projects/{project_id}", for example, "projects/api-test-project". + * @param tenant Required. + *

The tenant to be created. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Tenant createTenant(ProjectName parent, Tenant tenant) { + + CreateTenantRequest request = + CreateTenantRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setTenant(tenant) + .build(); + return createTenant(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a new tenant entity. + * + *

Sample code: + * + *


+   * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   Tenant tenant = Tenant.newBuilder().build();
+   *   Tenant response = tenantServiceClient.createTenant(parent.toString(), tenant);
+   * }
+   * 
+ * + * @param parent Required. + *

Resource name of the project under which the tenant is created. + *

The format is "projects/{project_id}", for example, "projects/api-test-project". + * @param tenant Required. + *

The tenant to be created. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Tenant createTenant(String parent, Tenant tenant) { + + CreateTenantRequest request = + CreateTenantRequest.newBuilder().setParent(parent).setTenant(tenant).build(); + return createTenant(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a new tenant entity. + * + *

Sample code: + * + *


+   * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   Tenant tenant = Tenant.newBuilder().build();
+   *   CreateTenantRequest request = CreateTenantRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setTenant(tenant)
+   *     .build();
+   *   Tenant response = tenantServiceClient.createTenant(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Tenant createTenant(CreateTenantRequest request) { + return createTenantCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a new tenant entity. + * + *

Sample code: + * + *


+   * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   Tenant tenant = Tenant.newBuilder().build();
+   *   CreateTenantRequest request = CreateTenantRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setTenant(tenant)
+   *     .build();
+   *   ApiFuture<Tenant> future = tenantServiceClient.createTenantCallable().futureCall(request);
+   *   // Do something
+   *   Tenant response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable createTenantCallable() { + return stub.createTenantCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Retrieves specified tenant. + * + *

Sample code: + * + *


+   * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) {
+   *   TenantName name = TenantName.of("[PROJECT]", "[TENANT]");
+   *   Tenant response = tenantServiceClient.getTenant(name);
+   * }
+   * 
+ * + * @param name Required. + *

The resource name of the tenant to be retrieved. + *

The format is "projects/{project_id}/tenants/{tenant_id}", for example, + * "projects/api-test-project/tenants/foo". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Tenant getTenant(TenantName name) { + + GetTenantRequest request = + GetTenantRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getTenant(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Retrieves specified tenant. + * + *

Sample code: + * + *


+   * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) {
+   *   TenantName name = TenantName.of("[PROJECT]", "[TENANT]");
+   *   Tenant response = tenantServiceClient.getTenant(name.toString());
+   * }
+   * 
+ * + * @param name Required. + *

The resource name of the tenant to be retrieved. + *

The format is "projects/{project_id}/tenants/{tenant_id}", for example, + * "projects/api-test-project/tenants/foo". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Tenant getTenant(String name) { + + GetTenantRequest request = GetTenantRequest.newBuilder().setName(name).build(); + return getTenant(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Retrieves specified tenant. + * + *

Sample code: + * + *


+   * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) {
+   *   TenantName name = TenantName.of("[PROJECT]", "[TENANT]");
+   *   GetTenantRequest request = GetTenantRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   Tenant response = tenantServiceClient.getTenant(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Tenant getTenant(GetTenantRequest request) { + return getTenantCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Retrieves specified tenant. + * + *

Sample code: + * + *


+   * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) {
+   *   TenantName name = TenantName.of("[PROJECT]", "[TENANT]");
+   *   GetTenantRequest request = GetTenantRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<Tenant> future = tenantServiceClient.getTenantCallable().futureCall(request);
+   *   // Do something
+   *   Tenant response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable getTenantCallable() { + return stub.getTenantCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates specified tenant. + * + *

Sample code: + * + *


+   * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) {
+   *   Tenant tenant = Tenant.newBuilder().build();
+   *   Tenant response = tenantServiceClient.updateTenant(tenant);
+   * }
+   * 
+ * + * @param tenant Required. + *

The tenant resource to replace the current resource in the system. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Tenant updateTenant(Tenant tenant) { + + UpdateTenantRequest request = UpdateTenantRequest.newBuilder().setTenant(tenant).build(); + return updateTenant(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates specified tenant. + * + *

Sample code: + * + *


+   * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) {
+   *   Tenant tenant = Tenant.newBuilder().build();
+   *   UpdateTenantRequest request = UpdateTenantRequest.newBuilder()
+   *     .setTenant(tenant)
+   *     .build();
+   *   Tenant response = tenantServiceClient.updateTenant(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Tenant updateTenant(UpdateTenantRequest request) { + return updateTenantCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates specified tenant. + * + *

Sample code: + * + *


+   * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) {
+   *   Tenant tenant = Tenant.newBuilder().build();
+   *   UpdateTenantRequest request = UpdateTenantRequest.newBuilder()
+   *     .setTenant(tenant)
+   *     .build();
+   *   ApiFuture<Tenant> future = tenantServiceClient.updateTenantCallable().futureCall(request);
+   *   // Do something
+   *   Tenant response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable updateTenantCallable() { + return stub.updateTenantCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes specified tenant. + * + *

Sample code: + * + *


+   * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) {
+   *   TenantName name = TenantName.of("[PROJECT]", "[TENANT]");
+   *   tenantServiceClient.deleteTenant(name);
+   * }
+   * 
+ * + * @param name Required. + *

The resource name of the tenant to be deleted. + *

The format is "projects/{project_id}/tenants/{tenant_id}", for example, + * "projects/api-test-project/tenants/foo". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteTenant(TenantName name) { + + DeleteTenantRequest request = + DeleteTenantRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteTenant(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes specified tenant. + * + *

Sample code: + * + *


+   * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) {
+   *   TenantName name = TenantName.of("[PROJECT]", "[TENANT]");
+   *   tenantServiceClient.deleteTenant(name.toString());
+   * }
+   * 
+ * + * @param name Required. + *

The resource name of the tenant to be deleted. + *

The format is "projects/{project_id}/tenants/{tenant_id}", for example, + * "projects/api-test-project/tenants/foo". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteTenant(String name) { + + DeleteTenantRequest request = DeleteTenantRequest.newBuilder().setName(name).build(); + deleteTenant(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes specified tenant. + * + *

Sample code: + * + *


+   * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) {
+   *   TenantName name = TenantName.of("[PROJECT]", "[TENANT]");
+   *   DeleteTenantRequest request = DeleteTenantRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   tenantServiceClient.deleteTenant(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteTenant(DeleteTenantRequest request) { + deleteTenantCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes specified tenant. + * + *

Sample code: + * + *


+   * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) {
+   *   TenantName name = TenantName.of("[PROJECT]", "[TENANT]");
+   *   DeleteTenantRequest request = DeleteTenantRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<Void> future = tenantServiceClient.deleteTenantCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + public final UnaryCallable deleteTenantCallable() { + return stub.deleteTenantCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists all tenants associated with the project. + * + *

Sample code: + * + *


+   * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   for (Tenant element : tenantServiceClient.listTenants(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. + *

Resource name of the project under which the tenant is created. + *

The format is "projects/{project_id}", for example, "projects/api-test-project". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListTenantsPagedResponse listTenants(ProjectName parent) { + ListTenantsRequest request = + ListTenantsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listTenants(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists all tenants associated with the project. + * + *

Sample code: + * + *


+   * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   for (Tenant element : tenantServiceClient.listTenants(parent.toString()).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. + *

Resource name of the project under which the tenant is created. + *

The format is "projects/{project_id}", for example, "projects/api-test-project". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListTenantsPagedResponse listTenants(String parent) { + ListTenantsRequest request = ListTenantsRequest.newBuilder().setParent(parent).build(); + return listTenants(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists all tenants associated with the project. + * + *

Sample code: + * + *


+   * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   ListTenantsRequest request = ListTenantsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   for (Tenant element : tenantServiceClient.listTenants(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListTenantsPagedResponse listTenants(ListTenantsRequest request) { + return listTenantsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists all tenants associated with the project. + * + *

Sample code: + * + *


+   * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   ListTenantsRequest request = ListTenantsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   ApiFuture<ListTenantsPagedResponse> future = tenantServiceClient.listTenantsPagedCallable().futureCall(request);
+   *   // Do something
+   *   for (Tenant element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable + listTenantsPagedCallable() { + return stub.listTenantsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists all tenants associated with the project. + * + *

Sample code: + * + *


+   * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   ListTenantsRequest request = ListTenantsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   while (true) {
+   *     ListTenantsResponse response = tenantServiceClient.listTenantsCallable().call(request);
+   *     for (Tenant element : response.getTenantsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable listTenantsCallable() { + return stub.listTenantsCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListTenantsPagedResponse + extends AbstractPagedListResponse< + ListTenantsRequest, + ListTenantsResponse, + Tenant, + ListTenantsPage, + ListTenantsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListTenantsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public ListTenantsPagedResponse apply(ListTenantsPage input) { + return new ListTenantsPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private ListTenantsPagedResponse(ListTenantsPage page) { + super(page, ListTenantsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListTenantsPage + extends AbstractPage { + + private ListTenantsPage( + PageContext context, + ListTenantsResponse response) { + super(context, response); + } + + private static ListTenantsPage createEmptyPage() { + return new ListTenantsPage(null, null); + } + + @Override + protected ListTenantsPage createPage( + PageContext context, + ListTenantsResponse response) { + return new ListTenantsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListTenantsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListTenantsRequest, + ListTenantsResponse, + Tenant, + ListTenantsPage, + ListTenantsFixedSizeCollection> { + + private ListTenantsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListTenantsFixedSizeCollection createEmptyCollection() { + return new ListTenantsFixedSizeCollection(null, 0); + } + + @Override + protected ListTenantsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListTenantsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceSettings.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceSettings.java new file mode 100644 index 000000000000..fb6b8ec0e43a --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceSettings.java @@ -0,0 +1,221 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import static com.google.cloud.talent.v4beta1.TenantServiceClient.ListTenantsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.talent.v4beta1.stub.TenantServiceStubSettings; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link TenantServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (jobs.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of createTenant to 30 seconds: + * + *

+ * 
+ * TenantServiceSettings.Builder tenantServiceSettingsBuilder =
+ *     TenantServiceSettings.newBuilder();
+ * tenantServiceSettingsBuilder.createTenantSettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * TenantServiceSettings tenantServiceSettings = tenantServiceSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class TenantServiceSettings extends ClientSettings { + /** Returns the object with the settings used for calls to createTenant. */ + public UnaryCallSettings createTenantSettings() { + return ((TenantServiceStubSettings) getStubSettings()).createTenantSettings(); + } + + /** Returns the object with the settings used for calls to getTenant. */ + public UnaryCallSettings getTenantSettings() { + return ((TenantServiceStubSettings) getStubSettings()).getTenantSettings(); + } + + /** Returns the object with the settings used for calls to updateTenant. */ + public UnaryCallSettings updateTenantSettings() { + return ((TenantServiceStubSettings) getStubSettings()).updateTenantSettings(); + } + + /** Returns the object with the settings used for calls to deleteTenant. */ + public UnaryCallSettings deleteTenantSettings() { + return ((TenantServiceStubSettings) getStubSettings()).deleteTenantSettings(); + } + + /** Returns the object with the settings used for calls to listTenants. */ + public PagedCallSettings + listTenantsSettings() { + return ((TenantServiceStubSettings) getStubSettings()).listTenantsSettings(); + } + + public static final TenantServiceSettings create(TenantServiceStubSettings stub) + throws IOException { + return new TenantServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return TenantServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return TenantServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return TenantServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return TenantServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return TenantServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return TenantServiceStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return TenantServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected TenantServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for TenantServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + protected Builder() throws IOException { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(TenantServiceStubSettings.newBuilder(clientContext)); + } + + private static Builder createDefault() { + return new Builder(TenantServiceStubSettings.newBuilder()); + } + + protected Builder(TenantServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(TenantServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + public TenantServiceStubSettings.Builder getStubSettingsBuilder() { + return ((TenantServiceStubSettings.Builder) getStubSettings()); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to createTenant. */ + public UnaryCallSettings.Builder createTenantSettings() { + return getStubSettingsBuilder().createTenantSettings(); + } + + /** Returns the builder for the settings used for calls to getTenant. */ + public UnaryCallSettings.Builder getTenantSettings() { + return getStubSettingsBuilder().getTenantSettings(); + } + + /** Returns the builder for the settings used for calls to updateTenant. */ + public UnaryCallSettings.Builder updateTenantSettings() { + return getStubSettingsBuilder().updateTenantSettings(); + } + + /** Returns the builder for the settings used for calls to deleteTenant. */ + public UnaryCallSettings.Builder deleteTenantSettings() { + return getStubSettingsBuilder().deleteTenantSettings(); + } + + /** Returns the builder for the settings used for calls to listTenants. */ + public PagedCallSettings.Builder< + ListTenantsRequest, ListTenantsResponse, ListTenantsPagedResponse> + listTenantsSettings() { + return getStubSettingsBuilder().listTenantsSettings(); + } + + @Override + public TenantServiceSettings build() throws IOException { + return new TenantServiceSettings(this); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/package-info.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/package-info.java new file mode 100644 index 000000000000..746d4bd63803 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/package-info.java @@ -0,0 +1,143 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * A client to Cloud Talent Solution API. + * + *

The interfaces provided are listed below, along with usage samples. + * + *

==================== CompanyServiceClient ==================== + * + *

Service Description: A service that handles company management, including CRUD and + * enumeration. + * + *

Sample for CompanyServiceClient: + * + *

+ * 
+ * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+ *   ProjectName parent = ProjectName.of("[PROJECT]");
+ *   Company company = Company.newBuilder().build();
+ *   Company response = companyServiceClient.createCompany(parent, company);
+ * }
+ * 
+ * 
+ * + * ================ CompletionClient ================ + * + *

Service Description: A service handles auto completion. + * + *

Sample for CompletionClient: + * + *

+ * 
+ * try (CompletionClient completionClient = CompletionClient.create()) {
+ *   ProjectName name = ProjectName.of("[PROJECT]");
+ *   String query = "";
+ *   int pageSize = 0;
+ *   CompleteQueryRequest request = CompleteQueryRequest.newBuilder()
+ *     .setName(name.toString())
+ *     .setQuery(query)
+ *     .setPageSize(pageSize)
+ *     .build();
+ *   CompleteQueryResponse response = completionClient.completeQuery(request);
+ * }
+ * 
+ * 
+ * + * ================== EventServiceClient ================== + * + *

Service Description: A service handles client event report. + * + *

Sample for EventServiceClient: + * + *

+ * 
+ * try (EventServiceClient eventServiceClient = EventServiceClient.create()) {
+ *   ProjectName parent = ProjectName.of("[PROJECT]");
+ *   ClientEvent clientEvent = ClientEvent.newBuilder().build();
+ *   ClientEvent response = eventServiceClient.createClientEvent(parent, clientEvent);
+ * }
+ * 
+ * 
+ * + * ================ JobServiceClient ================ + * + *

Service Description: A service handles job management, including job CRUD, enumeration and + * search. + * + *

Sample for JobServiceClient: + * + *

+ * 
+ * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+ *   ProjectName parent = ProjectName.of("[PROJECT]");
+ *   Job job = Job.newBuilder().build();
+ *   Job response = jobServiceClient.createJob(parent, job);
+ * }
+ * 
+ * 
+ * + * ==================== ProfileServiceClient ==================== + * + *

Service Description: A service that handles profile management, including profile CRUD, + * enumeration and search. + * + *

Sample for ProfileServiceClient: + * + *

+ * 
+ * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
+ *   TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
+ *   Profile profile = Profile.newBuilder().build();
+ *   Profile response = profileServiceClient.createProfile(parent, profile);
+ * }
+ * 
+ * 
+ * + * =================== ResumeServiceClient =================== + * + *

Service Description: A service that handles resume parsing. + * + *

Sample for ResumeServiceClient: + * + *

+ * 
+ * try (ResumeServiceClient resumeServiceClient = ResumeServiceClient.create()) {
+ *   ProjectName parent = ProjectName.of("[PROJECT]");
+ *   ByteString resume = ByteString.copyFromUtf8("");
+ *   ParseResumeResponse response = resumeServiceClient.parseResume(parent, resume);
+ * }
+ * 
+ * 
+ * + * =================== TenantServiceClient =================== + * + *

Service Description: A service that handles tenant management, including CRUD and enumeration. + * + *

Sample for TenantServiceClient: + * + *

+ * 
+ * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) {
+ *   ProjectName parent = ProjectName.of("[PROJECT]");
+ *   Tenant tenant = Tenant.newBuilder().build();
+ *   Tenant response = tenantServiceClient.createTenant(parent, tenant);
+ * }
+ * 
+ * 
+ */ +package com.google.cloud.talent.v4beta1; diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompanyServiceStub.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompanyServiceStub.java new file mode 100644 index 000000000000..c0cf65b78025 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompanyServiceStub.java @@ -0,0 +1,70 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import static com.google.cloud.talent.v4beta1.CompanyServiceClient.ListCompaniesPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4beta1.Company; +import com.google.cloud.talent.v4beta1.CreateCompanyRequest; +import com.google.cloud.talent.v4beta1.DeleteCompanyRequest; +import com.google.cloud.talent.v4beta1.GetCompanyRequest; +import com.google.cloud.talent.v4beta1.ListCompaniesRequest; +import com.google.cloud.talent.v4beta1.ListCompaniesResponse; +import com.google.cloud.talent.v4beta1.UpdateCompanyRequest; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Base stub class for Cloud Talent Solution API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public abstract class CompanyServiceStub implements BackgroundResource { + + public UnaryCallable createCompanyCallable() { + throw new UnsupportedOperationException("Not implemented: createCompanyCallable()"); + } + + public UnaryCallable getCompanyCallable() { + throw new UnsupportedOperationException("Not implemented: getCompanyCallable()"); + } + + public UnaryCallable updateCompanyCallable() { + throw new UnsupportedOperationException("Not implemented: updateCompanyCallable()"); + } + + public UnaryCallable deleteCompanyCallable() { + throw new UnsupportedOperationException("Not implemented: deleteCompanyCallable()"); + } + + public UnaryCallable + listCompaniesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listCompaniesPagedCallable()"); + } + + public UnaryCallable listCompaniesCallable() { + throw new UnsupportedOperationException("Not implemented: listCompaniesCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompanyServiceStubSettings.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompanyServiceStubSettings.java new file mode 100644 index 000000000000..6d5f5fb20676 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompanyServiceStubSettings.java @@ -0,0 +1,436 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import static com.google.cloud.talent.v4beta1.CompanyServiceClient.ListCompaniesPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4beta1.Company; +import com.google.cloud.talent.v4beta1.CreateCompanyRequest; +import com.google.cloud.talent.v4beta1.DeleteCompanyRequest; +import com.google.cloud.talent.v4beta1.GetCompanyRequest; +import com.google.cloud.talent.v4beta1.ListCompaniesRequest; +import com.google.cloud.talent.v4beta1.ListCompaniesResponse; +import com.google.cloud.talent.v4beta1.UpdateCompanyRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link CompanyServiceStub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (jobs.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of createCompany to 30 seconds: + * + *

+ * 
+ * CompanyServiceStubSettings.Builder companyServiceSettingsBuilder =
+ *     CompanyServiceStubSettings.newBuilder();
+ * companyServiceSettingsBuilder.createCompanySettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * CompanyServiceStubSettings companyServiceSettings = companyServiceSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class CompanyServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/jobs") + .build(); + + private final UnaryCallSettings createCompanySettings; + private final UnaryCallSettings getCompanySettings; + private final UnaryCallSettings updateCompanySettings; + private final UnaryCallSettings deleteCompanySettings; + private final PagedCallSettings< + ListCompaniesRequest, ListCompaniesResponse, ListCompaniesPagedResponse> + listCompaniesSettings; + + /** Returns the object with the settings used for calls to createCompany. */ + public UnaryCallSettings createCompanySettings() { + return createCompanySettings; + } + + /** Returns the object with the settings used for calls to getCompany. */ + public UnaryCallSettings getCompanySettings() { + return getCompanySettings; + } + + /** Returns the object with the settings used for calls to updateCompany. */ + public UnaryCallSettings updateCompanySettings() { + return updateCompanySettings; + } + + /** Returns the object with the settings used for calls to deleteCompany. */ + public UnaryCallSettings deleteCompanySettings() { + return deleteCompanySettings; + } + + /** Returns the object with the settings used for calls to listCompanies. */ + public PagedCallSettings + listCompaniesSettings() { + return listCompaniesSettings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public CompanyServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcCompanyServiceStub.create(this); + } else { + throw new UnsupportedOperationException( + "Transport not supported: " + getTransportChannelProvider().getTransportName()); + } + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "jobs.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(CompanyServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected CompanyServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + createCompanySettings = settingsBuilder.createCompanySettings().build(); + getCompanySettings = settingsBuilder.getCompanySettings().build(); + updateCompanySettings = settingsBuilder.updateCompanySettings().build(); + deleteCompanySettings = settingsBuilder.deleteCompanySettings().build(); + listCompaniesSettings = settingsBuilder.listCompaniesSettings().build(); + } + + private static final PagedListDescriptor + LIST_COMPANIES_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListCompaniesRequest injectToken(ListCompaniesRequest payload, String token) { + return ListCompaniesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListCompaniesRequest injectPageSize(ListCompaniesRequest payload, int pageSize) { + return ListCompaniesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListCompaniesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListCompaniesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListCompaniesResponse payload) { + return payload.getCompaniesList() != null + ? payload.getCompaniesList() + : ImmutableList.of(); + } + }; + + private static final PagedListResponseFactory< + ListCompaniesRequest, ListCompaniesResponse, ListCompaniesPagedResponse> + LIST_COMPANIES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListCompaniesRequest, ListCompaniesResponse, ListCompaniesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListCompaniesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_COMPANIES_PAGE_STR_DESC, request, context); + return ListCompaniesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Builder for CompanyServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + + private final UnaryCallSettings.Builder createCompanySettings; + private final UnaryCallSettings.Builder getCompanySettings; + private final UnaryCallSettings.Builder updateCompanySettings; + private final UnaryCallSettings.Builder deleteCompanySettings; + private final PagedCallSettings.Builder< + ListCompaniesRequest, ListCompaniesResponse, ListCompaniesPagedResponse> + listCompaniesSettings; + + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "idempotent", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(20000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(20000L)) + .setTotalTimeout(Duration.ofMillis(600000L)) + .build(); + definitions.put("default", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + createCompanySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + getCompanySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + updateCompanySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + deleteCompanySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + listCompaniesSettings = PagedCallSettings.newBuilder(LIST_COMPANIES_PAGE_STR_FACT); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createCompanySettings, + getCompanySettings, + updateCompanySettings, + deleteCompanySettings, + listCompaniesSettings); + + initDefaults(this); + } + + private static Builder createDefault() { + Builder builder = new Builder((ClientContext) null); + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + + builder + .createCompanySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .getCompanySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .updateCompanySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .deleteCompanySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .listCompaniesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + return builder; + } + + protected Builder(CompanyServiceStubSettings settings) { + super(settings); + + createCompanySettings = settings.createCompanySettings.toBuilder(); + getCompanySettings = settings.getCompanySettings.toBuilder(); + updateCompanySettings = settings.updateCompanySettings.toBuilder(); + deleteCompanySettings = settings.deleteCompanySettings.toBuilder(); + listCompaniesSettings = settings.listCompaniesSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createCompanySettings, + getCompanySettings, + updateCompanySettings, + deleteCompanySettings, + listCompaniesSettings); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to createCompany. */ + public UnaryCallSettings.Builder createCompanySettings() { + return createCompanySettings; + } + + /** Returns the builder for the settings used for calls to getCompany. */ + public UnaryCallSettings.Builder getCompanySettings() { + return getCompanySettings; + } + + /** Returns the builder for the settings used for calls to updateCompany. */ + public UnaryCallSettings.Builder updateCompanySettings() { + return updateCompanySettings; + } + + /** Returns the builder for the settings used for calls to deleteCompany. */ + public UnaryCallSettings.Builder deleteCompanySettings() { + return deleteCompanySettings; + } + + /** Returns the builder for the settings used for calls to listCompanies. */ + public PagedCallSettings.Builder< + ListCompaniesRequest, ListCompaniesResponse, ListCompaniesPagedResponse> + listCompaniesSettings() { + return listCompaniesSettings; + } + + @Override + public CompanyServiceStubSettings build() throws IOException { + return new CompanyServiceStubSettings(this); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompletionStub.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompletionStub.java new file mode 100644 index 000000000000..92b5598a8e2b --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompletionStub.java @@ -0,0 +1,41 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4beta1.CompleteQueryRequest; +import com.google.cloud.talent.v4beta1.CompleteQueryResponse; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Base stub class for Cloud Talent Solution API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public abstract class CompletionStub implements BackgroundResource { + + public UnaryCallable completeQueryCallable() { + throw new UnsupportedOperationException("Not implemented: completeQueryCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompletionStubSettings.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompletionStubSettings.java new file mode 100644 index 000000000000..da761e929260 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompletionStubSettings.java @@ -0,0 +1,270 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.talent.v4beta1.CompleteQueryRequest; +import com.google.cloud.talent.v4beta1.CompleteQueryResponse; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link CompletionStub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (jobs.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of completeQuery to 30 seconds: + * + *

+ * 
+ * CompletionStubSettings.Builder completionSettingsBuilder =
+ *     CompletionStubSettings.newBuilder();
+ * completionSettingsBuilder.completeQuerySettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * CompletionStubSettings completionSettings = completionSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class CompletionStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/jobs") + .build(); + + private final UnaryCallSettings + completeQuerySettings; + + /** Returns the object with the settings used for calls to completeQuery. */ + public UnaryCallSettings completeQuerySettings() { + return completeQuerySettings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public CompletionStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcCompletionStub.create(this); + } else { + throw new UnsupportedOperationException( + "Transport not supported: " + getTransportChannelProvider().getTransportName()); + } + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "jobs.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(CompletionStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected CompletionStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + completeQuerySettings = settingsBuilder.completeQuerySettings().build(); + } + + /** Builder for CompletionStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + + private final UnaryCallSettings.Builder + completeQuerySettings; + + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "idempotent", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(20000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(20000L)) + .setTotalTimeout(Duration.ofMillis(600000L)) + .build(); + definitions.put("default", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + completeQuerySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of(completeQuerySettings); + + initDefaults(this); + } + + private static Builder createDefault() { + Builder builder = new Builder((ClientContext) null); + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + + builder + .completeQuerySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + return builder; + } + + protected Builder(CompletionStubSettings settings) { + super(settings); + + completeQuerySettings = settings.completeQuerySettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of(completeQuerySettings); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to completeQuery. */ + public UnaryCallSettings.Builder + completeQuerySettings() { + return completeQuerySettings; + } + + @Override + public CompletionStubSettings build() throws IOException { + return new CompletionStubSettings(this); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/EventServiceStub.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/EventServiceStub.java new file mode 100644 index 000000000000..c397c6956219 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/EventServiceStub.java @@ -0,0 +1,41 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4beta1.ClientEvent; +import com.google.cloud.talent.v4beta1.CreateClientEventRequest; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Base stub class for Cloud Talent Solution API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public abstract class EventServiceStub implements BackgroundResource { + + public UnaryCallable createClientEventCallable() { + throw new UnsupportedOperationException("Not implemented: createClientEventCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/EventServiceStubSettings.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/EventServiceStubSettings.java new file mode 100644 index 000000000000..03eb9aacbc5a --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/EventServiceStubSettings.java @@ -0,0 +1,269 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.talent.v4beta1.ClientEvent; +import com.google.cloud.talent.v4beta1.CreateClientEventRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link EventServiceStub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (jobs.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of createClientEvent to 30 seconds: + * + *

+ * 
+ * EventServiceStubSettings.Builder eventServiceSettingsBuilder =
+ *     EventServiceStubSettings.newBuilder();
+ * eventServiceSettingsBuilder.createClientEventSettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * EventServiceStubSettings eventServiceSettings = eventServiceSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class EventServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/jobs") + .build(); + + private final UnaryCallSettings createClientEventSettings; + + /** Returns the object with the settings used for calls to createClientEvent. */ + public UnaryCallSettings createClientEventSettings() { + return createClientEventSettings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public EventServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcEventServiceStub.create(this); + } else { + throw new UnsupportedOperationException( + "Transport not supported: " + getTransportChannelProvider().getTransportName()); + } + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "jobs.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(EventServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected EventServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + createClientEventSettings = settingsBuilder.createClientEventSettings().build(); + } + + /** Builder for EventServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + + private final UnaryCallSettings.Builder + createClientEventSettings; + + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "idempotent", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(20000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(20000L)) + .setTotalTimeout(Duration.ofMillis(600000L)) + .build(); + definitions.put("default", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + createClientEventSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of(createClientEventSettings); + + initDefaults(this); + } + + private static Builder createDefault() { + Builder builder = new Builder((ClientContext) null); + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + + builder + .createClientEventSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + return builder; + } + + protected Builder(EventServiceStubSettings settings) { + super(settings); + + createClientEventSettings = settings.createClientEventSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of(createClientEventSettings); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to createClientEvent. */ + public UnaryCallSettings.Builder + createClientEventSettings() { + return createClientEventSettings; + } + + @Override + public EventServiceStubSettings build() throws IOException { + return new EventServiceStubSettings(this); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcCompanyServiceCallableFactory.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcCompanyServiceCallableFactory.java new file mode 100644 index 000000000000..b33c6c9267a3 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcCompanyServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC callable factory implementation for Cloud Talent Solution API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator") +@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") +public class GrpcCompanyServiceCallableFactory implements GrpcStubCallableFactory { + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings pagedCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable( + grpcCallSettings, pagedCallSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings batchingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, batchingCallSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, operationCallSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcCompanyServiceStub.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcCompanyServiceStub.java new file mode 100644 index 000000000000..0ab9ddff7728 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcCompanyServiceStub.java @@ -0,0 +1,242 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import static com.google.cloud.talent.v4beta1.CompanyServiceClient.ListCompaniesPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4beta1.Company; +import com.google.cloud.talent.v4beta1.CreateCompanyRequest; +import com.google.cloud.talent.v4beta1.DeleteCompanyRequest; +import com.google.cloud.talent.v4beta1.GetCompanyRequest; +import com.google.cloud.talent.v4beta1.ListCompaniesRequest; +import com.google.cloud.talent.v4beta1.ListCompaniesResponse; +import com.google.cloud.talent.v4beta1.UpdateCompanyRequest; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC stub implementation for Cloud Talent Solution API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public class GrpcCompanyServiceStub extends CompanyServiceStub { + + private static final MethodDescriptor + createCompanyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.CompanyService/CreateCompany") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateCompanyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Company.getDefaultInstance())) + .build(); + private static final MethodDescriptor getCompanyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.CompanyService/GetCompany") + .setRequestMarshaller(ProtoUtils.marshaller(GetCompanyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Company.getDefaultInstance())) + .build(); + private static final MethodDescriptor + updateCompanyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.CompanyService/UpdateCompany") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateCompanyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Company.getDefaultInstance())) + .build(); + private static final MethodDescriptor deleteCompanyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.CompanyService/DeleteCompany") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteCompanyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + private static final MethodDescriptor + listCompaniesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.CompanyService/ListCompanies") + .setRequestMarshaller( + ProtoUtils.marshaller(ListCompaniesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListCompaniesResponse.getDefaultInstance())) + .build(); + + private final BackgroundResource backgroundResources; + + private final UnaryCallable createCompanyCallable; + private final UnaryCallable getCompanyCallable; + private final UnaryCallable updateCompanyCallable; + private final UnaryCallable deleteCompanyCallable; + private final UnaryCallable listCompaniesCallable; + private final UnaryCallable + listCompaniesPagedCallable; + + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcCompanyServiceStub create(CompanyServiceStubSettings settings) + throws IOException { + return new GrpcCompanyServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcCompanyServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcCompanyServiceStub( + CompanyServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcCompanyServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcCompanyServiceStub( + CompanyServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcCompanyServiceStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcCompanyServiceStub(CompanyServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcCompanyServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcCompanyServiceStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcCompanyServiceStub( + CompanyServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + GrpcCallSettings createCompanyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createCompanyMethodDescriptor) + .build(); + GrpcCallSettings getCompanyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getCompanyMethodDescriptor) + .build(); + GrpcCallSettings updateCompanyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateCompanyMethodDescriptor) + .build(); + GrpcCallSettings deleteCompanyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteCompanyMethodDescriptor) + .build(); + GrpcCallSettings listCompaniesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listCompaniesMethodDescriptor) + .build(); + + this.createCompanyCallable = + callableFactory.createUnaryCallable( + createCompanyTransportSettings, settings.createCompanySettings(), clientContext); + this.getCompanyCallable = + callableFactory.createUnaryCallable( + getCompanyTransportSettings, settings.getCompanySettings(), clientContext); + this.updateCompanyCallable = + callableFactory.createUnaryCallable( + updateCompanyTransportSettings, settings.updateCompanySettings(), clientContext); + this.deleteCompanyCallable = + callableFactory.createUnaryCallable( + deleteCompanyTransportSettings, settings.deleteCompanySettings(), clientContext); + this.listCompaniesCallable = + callableFactory.createUnaryCallable( + listCompaniesTransportSettings, settings.listCompaniesSettings(), clientContext); + this.listCompaniesPagedCallable = + callableFactory.createPagedCallable( + listCompaniesTransportSettings, settings.listCompaniesSettings(), clientContext); + + backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public UnaryCallable createCompanyCallable() { + return createCompanyCallable; + } + + public UnaryCallable getCompanyCallable() { + return getCompanyCallable; + } + + public UnaryCallable updateCompanyCallable() { + return updateCompanyCallable; + } + + public UnaryCallable deleteCompanyCallable() { + return deleteCompanyCallable; + } + + public UnaryCallable + listCompaniesPagedCallable() { + return listCompaniesPagedCallable; + } + + public UnaryCallable listCompaniesCallable() { + return listCompaniesCallable; + } + + @Override + public final void close() { + shutdown(); + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcCompletionCallableFactory.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcCompletionCallableFactory.java new file mode 100644 index 000000000000..50efe115f23f --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcCompletionCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC callable factory implementation for Cloud Talent Solution API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator") +@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") +public class GrpcCompletionCallableFactory implements GrpcStubCallableFactory { + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings pagedCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable( + grpcCallSettings, pagedCallSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings batchingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, batchingCallSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, operationCallSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcCompletionStub.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcCompletionStub.java new file mode 100644 index 000000000000..edf86b24d416 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcCompletionStub.java @@ -0,0 +1,142 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4beta1.CompleteQueryRequest; +import com.google.cloud.talent.v4beta1.CompleteQueryResponse; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC stub implementation for Cloud Talent Solution API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public class GrpcCompletionStub extends CompletionStub { + + private static final MethodDescriptor + completeQueryMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.Completion/CompleteQuery") + .setRequestMarshaller( + ProtoUtils.marshaller(CompleteQueryRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(CompleteQueryResponse.getDefaultInstance())) + .build(); + + private final BackgroundResource backgroundResources; + + private final UnaryCallable completeQueryCallable; + + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcCompletionStub create(CompletionStubSettings settings) + throws IOException { + return new GrpcCompletionStub(settings, ClientContext.create(settings)); + } + + public static final GrpcCompletionStub create(ClientContext clientContext) throws IOException { + return new GrpcCompletionStub(CompletionStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcCompletionStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcCompletionStub( + CompletionStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcCompletionStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcCompletionStub(CompletionStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcCompletionCallableFactory()); + } + + /** + * Constructs an instance of GrpcCompletionStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcCompletionStub( + CompletionStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + GrpcCallSettings completeQueryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(completeQueryMethodDescriptor) + .build(); + + this.completeQueryCallable = + callableFactory.createUnaryCallable( + completeQueryTransportSettings, settings.completeQuerySettings(), clientContext); + + backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public UnaryCallable completeQueryCallable() { + return completeQueryCallable; + } + + @Override + public final void close() { + shutdown(); + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcEventServiceCallableFactory.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcEventServiceCallableFactory.java new file mode 100644 index 000000000000..8fd94eabbba4 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcEventServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC callable factory implementation for Cloud Talent Solution API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator") +@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") +public class GrpcEventServiceCallableFactory implements GrpcStubCallableFactory { + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings pagedCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable( + grpcCallSettings, pagedCallSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings batchingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, batchingCallSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, operationCallSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcEventServiceStub.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcEventServiceStub.java new file mode 100644 index 000000000000..8ff57ed4fe80 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcEventServiceStub.java @@ -0,0 +1,143 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4beta1.ClientEvent; +import com.google.cloud.talent.v4beta1.CreateClientEventRequest; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC stub implementation for Cloud Talent Solution API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public class GrpcEventServiceStub extends EventServiceStub { + + private static final MethodDescriptor + createClientEventMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.EventService/CreateClientEvent") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateClientEventRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ClientEvent.getDefaultInstance())) + .build(); + + private final BackgroundResource backgroundResources; + + private final UnaryCallable createClientEventCallable; + + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcEventServiceStub create(EventServiceStubSettings settings) + throws IOException { + return new GrpcEventServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcEventServiceStub create(ClientContext clientContext) throws IOException { + return new GrpcEventServiceStub(EventServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcEventServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcEventServiceStub( + EventServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcEventServiceStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcEventServiceStub(EventServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcEventServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcEventServiceStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcEventServiceStub( + EventServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + GrpcCallSettings createClientEventTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createClientEventMethodDescriptor) + .build(); + + this.createClientEventCallable = + callableFactory.createUnaryCallable( + createClientEventTransportSettings, + settings.createClientEventSettings(), + clientContext); + + backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public UnaryCallable createClientEventCallable() { + return createClientEventCallable; + } + + @Override + public final void close() { + shutdown(); + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcJobServiceCallableFactory.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcJobServiceCallableFactory.java new file mode 100644 index 000000000000..b92637440121 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcJobServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC callable factory implementation for Cloud Talent Solution API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator") +@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") +public class GrpcJobServiceCallableFactory implements GrpcStubCallableFactory { + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings pagedCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable( + grpcCallSettings, pagedCallSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings batchingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, batchingCallSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, operationCallSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcJobServiceStub.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcJobServiceStub.java new file mode 100644 index 000000000000..d6a9cad3729f --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcJobServiceStub.java @@ -0,0 +1,320 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import static com.google.cloud.talent.v4beta1.JobServiceClient.ListJobsPagedResponse; +import static com.google.cloud.talent.v4beta1.JobServiceClient.SearchJobsForAlertPagedResponse; +import static com.google.cloud.talent.v4beta1.JobServiceClient.SearchJobsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest; +import com.google.cloud.talent.v4beta1.CreateJobRequest; +import com.google.cloud.talent.v4beta1.DeleteJobRequest; +import com.google.cloud.talent.v4beta1.GetJobRequest; +import com.google.cloud.talent.v4beta1.Job; +import com.google.cloud.talent.v4beta1.ListJobsRequest; +import com.google.cloud.talent.v4beta1.ListJobsResponse; +import com.google.cloud.talent.v4beta1.SearchJobsRequest; +import com.google.cloud.talent.v4beta1.SearchJobsResponse; +import com.google.cloud.talent.v4beta1.UpdateJobRequest; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC stub implementation for Cloud Talent Solution API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public class GrpcJobServiceStub extends JobServiceStub { + + private static final MethodDescriptor createJobMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.JobService/CreateJob") + .setRequestMarshaller(ProtoUtils.marshaller(CreateJobRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Job.getDefaultInstance())) + .build(); + private static final MethodDescriptor getJobMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.JobService/GetJob") + .setRequestMarshaller(ProtoUtils.marshaller(GetJobRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Job.getDefaultInstance())) + .build(); + private static final MethodDescriptor updateJobMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.JobService/UpdateJob") + .setRequestMarshaller(ProtoUtils.marshaller(UpdateJobRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Job.getDefaultInstance())) + .build(); + private static final MethodDescriptor deleteJobMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.JobService/DeleteJob") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteJobRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + private static final MethodDescriptor + listJobsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.JobService/ListJobs") + .setRequestMarshaller(ProtoUtils.marshaller(ListJobsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ListJobsResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor + batchDeleteJobsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.JobService/BatchDeleteJobs") + .setRequestMarshaller( + ProtoUtils.marshaller(BatchDeleteJobsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + private static final MethodDescriptor + searchJobsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.JobService/SearchJobs") + .setRequestMarshaller(ProtoUtils.marshaller(SearchJobsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(SearchJobsResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor + searchJobsForAlertMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.JobService/SearchJobsForAlert") + .setRequestMarshaller(ProtoUtils.marshaller(SearchJobsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(SearchJobsResponse.getDefaultInstance())) + .build(); + + private final BackgroundResource backgroundResources; + + private final UnaryCallable createJobCallable; + private final UnaryCallable getJobCallable; + private final UnaryCallable updateJobCallable; + private final UnaryCallable deleteJobCallable; + private final UnaryCallable listJobsCallable; + private final UnaryCallable listJobsPagedCallable; + private final UnaryCallable batchDeleteJobsCallable; + private final UnaryCallable searchJobsCallable; + private final UnaryCallable searchJobsPagedCallable; + private final UnaryCallable searchJobsForAlertCallable; + private final UnaryCallable + searchJobsForAlertPagedCallable; + + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcJobServiceStub create(JobServiceStubSettings settings) + throws IOException { + return new GrpcJobServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcJobServiceStub create(ClientContext clientContext) throws IOException { + return new GrpcJobServiceStub(JobServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcJobServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcJobServiceStub( + JobServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcJobServiceStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcJobServiceStub(JobServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcJobServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcJobServiceStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcJobServiceStub( + JobServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + GrpcCallSettings createJobTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createJobMethodDescriptor) + .build(); + GrpcCallSettings getJobTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getJobMethodDescriptor) + .build(); + GrpcCallSettings updateJobTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateJobMethodDescriptor) + .build(); + GrpcCallSettings deleteJobTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteJobMethodDescriptor) + .build(); + GrpcCallSettings listJobsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listJobsMethodDescriptor) + .build(); + GrpcCallSettings batchDeleteJobsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(batchDeleteJobsMethodDescriptor) + .build(); + GrpcCallSettings searchJobsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(searchJobsMethodDescriptor) + .build(); + GrpcCallSettings searchJobsForAlertTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(searchJobsForAlertMethodDescriptor) + .build(); + + this.createJobCallable = + callableFactory.createUnaryCallable( + createJobTransportSettings, settings.createJobSettings(), clientContext); + this.getJobCallable = + callableFactory.createUnaryCallable( + getJobTransportSettings, settings.getJobSettings(), clientContext); + this.updateJobCallable = + callableFactory.createUnaryCallable( + updateJobTransportSettings, settings.updateJobSettings(), clientContext); + this.deleteJobCallable = + callableFactory.createUnaryCallable( + deleteJobTransportSettings, settings.deleteJobSettings(), clientContext); + this.listJobsCallable = + callableFactory.createUnaryCallable( + listJobsTransportSettings, settings.listJobsSettings(), clientContext); + this.listJobsPagedCallable = + callableFactory.createPagedCallable( + listJobsTransportSettings, settings.listJobsSettings(), clientContext); + this.batchDeleteJobsCallable = + callableFactory.createUnaryCallable( + batchDeleteJobsTransportSettings, settings.batchDeleteJobsSettings(), clientContext); + this.searchJobsCallable = + callableFactory.createUnaryCallable( + searchJobsTransportSettings, settings.searchJobsSettings(), clientContext); + this.searchJobsPagedCallable = + callableFactory.createPagedCallable( + searchJobsTransportSettings, settings.searchJobsSettings(), clientContext); + this.searchJobsForAlertCallable = + callableFactory.createUnaryCallable( + searchJobsForAlertTransportSettings, + settings.searchJobsForAlertSettings(), + clientContext); + this.searchJobsForAlertPagedCallable = + callableFactory.createPagedCallable( + searchJobsForAlertTransportSettings, + settings.searchJobsForAlertSettings(), + clientContext); + + backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public UnaryCallable createJobCallable() { + return createJobCallable; + } + + public UnaryCallable getJobCallable() { + return getJobCallable; + } + + public UnaryCallable updateJobCallable() { + return updateJobCallable; + } + + public UnaryCallable deleteJobCallable() { + return deleteJobCallable; + } + + public UnaryCallable listJobsPagedCallable() { + return listJobsPagedCallable; + } + + public UnaryCallable listJobsCallable() { + return listJobsCallable; + } + + public UnaryCallable batchDeleteJobsCallable() { + return batchDeleteJobsCallable; + } + + public UnaryCallable searchJobsPagedCallable() { + return searchJobsPagedCallable; + } + + public UnaryCallable searchJobsCallable() { + return searchJobsCallable; + } + + public UnaryCallable + searchJobsForAlertPagedCallable() { + return searchJobsForAlertPagedCallable; + } + + public UnaryCallable searchJobsForAlertCallable() { + return searchJobsForAlertCallable; + } + + @Override + public final void close() { + shutdown(); + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcProfileServiceCallableFactory.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcProfileServiceCallableFactory.java new file mode 100644 index 000000000000..bf2bdb1bb25a --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcProfileServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC callable factory implementation for Cloud Talent Solution API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator") +@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") +public class GrpcProfileServiceCallableFactory implements GrpcStubCallableFactory { + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings pagedCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable( + grpcCallSettings, pagedCallSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings batchingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, batchingCallSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, operationCallSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcProfileServiceStub.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcProfileServiceStub.java new file mode 100644 index 000000000000..0206978a9413 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcProfileServiceStub.java @@ -0,0 +1,276 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import static com.google.cloud.talent.v4beta1.ProfileServiceClient.ListProfilesPagedResponse; +import static com.google.cloud.talent.v4beta1.ProfileServiceClient.SearchProfilesPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4beta1.CreateProfileRequest; +import com.google.cloud.talent.v4beta1.DeleteProfileRequest; +import com.google.cloud.talent.v4beta1.GetProfileRequest; +import com.google.cloud.talent.v4beta1.ListProfilesRequest; +import com.google.cloud.talent.v4beta1.ListProfilesResponse; +import com.google.cloud.talent.v4beta1.Profile; +import com.google.cloud.talent.v4beta1.SearchProfilesRequest; +import com.google.cloud.talent.v4beta1.SearchProfilesResponse; +import com.google.cloud.talent.v4beta1.UpdateProfileRequest; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC stub implementation for Cloud Talent Solution API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public class GrpcProfileServiceStub extends ProfileServiceStub { + + private static final MethodDescriptor + listProfilesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.ProfileService/ListProfiles") + .setRequestMarshaller(ProtoUtils.marshaller(ListProfilesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListProfilesResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor + createProfileMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.ProfileService/CreateProfile") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateProfileRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Profile.getDefaultInstance())) + .build(); + private static final MethodDescriptor getProfileMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.ProfileService/GetProfile") + .setRequestMarshaller(ProtoUtils.marshaller(GetProfileRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Profile.getDefaultInstance())) + .build(); + private static final MethodDescriptor + updateProfileMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.ProfileService/UpdateProfile") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateProfileRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Profile.getDefaultInstance())) + .build(); + private static final MethodDescriptor deleteProfileMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.ProfileService/DeleteProfile") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteProfileRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + private static final MethodDescriptor + searchProfilesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.ProfileService/SearchProfiles") + .setRequestMarshaller( + ProtoUtils.marshaller(SearchProfilesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(SearchProfilesResponse.getDefaultInstance())) + .build(); + + private final BackgroundResource backgroundResources; + + private final UnaryCallable listProfilesCallable; + private final UnaryCallable + listProfilesPagedCallable; + private final UnaryCallable createProfileCallable; + private final UnaryCallable getProfileCallable; + private final UnaryCallable updateProfileCallable; + private final UnaryCallable deleteProfileCallable; + private final UnaryCallable searchProfilesCallable; + private final UnaryCallable + searchProfilesPagedCallable; + + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcProfileServiceStub create(ProfileServiceStubSettings settings) + throws IOException { + return new GrpcProfileServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcProfileServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcProfileServiceStub( + ProfileServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcProfileServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcProfileServiceStub( + ProfileServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcProfileServiceStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcProfileServiceStub(ProfileServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcProfileServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcProfileServiceStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcProfileServiceStub( + ProfileServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + GrpcCallSettings listProfilesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listProfilesMethodDescriptor) + .build(); + GrpcCallSettings createProfileTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createProfileMethodDescriptor) + .build(); + GrpcCallSettings getProfileTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getProfileMethodDescriptor) + .build(); + GrpcCallSettings updateProfileTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateProfileMethodDescriptor) + .build(); + GrpcCallSettings deleteProfileTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteProfileMethodDescriptor) + .build(); + GrpcCallSettings + searchProfilesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(searchProfilesMethodDescriptor) + .build(); + + this.listProfilesCallable = + callableFactory.createUnaryCallable( + listProfilesTransportSettings, settings.listProfilesSettings(), clientContext); + this.listProfilesPagedCallable = + callableFactory.createPagedCallable( + listProfilesTransportSettings, settings.listProfilesSettings(), clientContext); + this.createProfileCallable = + callableFactory.createUnaryCallable( + createProfileTransportSettings, settings.createProfileSettings(), clientContext); + this.getProfileCallable = + callableFactory.createUnaryCallable( + getProfileTransportSettings, settings.getProfileSettings(), clientContext); + this.updateProfileCallable = + callableFactory.createUnaryCallable( + updateProfileTransportSettings, settings.updateProfileSettings(), clientContext); + this.deleteProfileCallable = + callableFactory.createUnaryCallable( + deleteProfileTransportSettings, settings.deleteProfileSettings(), clientContext); + this.searchProfilesCallable = + callableFactory.createUnaryCallable( + searchProfilesTransportSettings, settings.searchProfilesSettings(), clientContext); + this.searchProfilesPagedCallable = + callableFactory.createPagedCallable( + searchProfilesTransportSettings, settings.searchProfilesSettings(), clientContext); + + backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public UnaryCallable listProfilesPagedCallable() { + return listProfilesPagedCallable; + } + + public UnaryCallable listProfilesCallable() { + return listProfilesCallable; + } + + public UnaryCallable createProfileCallable() { + return createProfileCallable; + } + + public UnaryCallable getProfileCallable() { + return getProfileCallable; + } + + public UnaryCallable updateProfileCallable() { + return updateProfileCallable; + } + + public UnaryCallable deleteProfileCallable() { + return deleteProfileCallable; + } + + public UnaryCallable + searchProfilesPagedCallable() { + return searchProfilesPagedCallable; + } + + public UnaryCallable searchProfilesCallable() { + return searchProfilesCallable; + } + + @Override + public final void close() { + shutdown(); + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcResumeServiceCallableFactory.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcResumeServiceCallableFactory.java new file mode 100644 index 000000000000..08a5762fb816 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcResumeServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC callable factory implementation for Cloud Talent Solution API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator") +@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") +public class GrpcResumeServiceCallableFactory implements GrpcStubCallableFactory { + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings pagedCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable( + grpcCallSettings, pagedCallSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings batchingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, batchingCallSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, operationCallSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcResumeServiceStub.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcResumeServiceStub.java new file mode 100644 index 000000000000..ea78e65349f1 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcResumeServiceStub.java @@ -0,0 +1,141 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4beta1.ParseResumeRequest; +import com.google.cloud.talent.v4beta1.ParseResumeResponse; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC stub implementation for Cloud Talent Solution API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public class GrpcResumeServiceStub extends ResumeServiceStub { + + private static final MethodDescriptor + parseResumeMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.ResumeService/ParseResume") + .setRequestMarshaller(ProtoUtils.marshaller(ParseResumeRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ParseResumeResponse.getDefaultInstance())) + .build(); + + private final BackgroundResource backgroundResources; + + private final UnaryCallable parseResumeCallable; + + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcResumeServiceStub create(ResumeServiceStubSettings settings) + throws IOException { + return new GrpcResumeServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcResumeServiceStub create(ClientContext clientContext) throws IOException { + return new GrpcResumeServiceStub(ResumeServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcResumeServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcResumeServiceStub( + ResumeServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcResumeServiceStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcResumeServiceStub(ResumeServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcResumeServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcResumeServiceStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcResumeServiceStub( + ResumeServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + GrpcCallSettings parseResumeTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(parseResumeMethodDescriptor) + .build(); + + this.parseResumeCallable = + callableFactory.createUnaryCallable( + parseResumeTransportSettings, settings.parseResumeSettings(), clientContext); + + backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public UnaryCallable parseResumeCallable() { + return parseResumeCallable; + } + + @Override + public final void close() { + shutdown(); + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcTenantServiceCallableFactory.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcTenantServiceCallableFactory.java new file mode 100644 index 000000000000..da22c0c5e10b --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcTenantServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC callable factory implementation for Cloud Talent Solution API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator") +@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") +public class GrpcTenantServiceCallableFactory implements GrpcStubCallableFactory { + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings pagedCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable( + grpcCallSettings, pagedCallSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings batchingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, batchingCallSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, operationCallSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcTenantServiceStub.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcTenantServiceStub.java new file mode 100644 index 000000000000..c561c9c499d1 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcTenantServiceStub.java @@ -0,0 +1,234 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import static com.google.cloud.talent.v4beta1.TenantServiceClient.ListTenantsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4beta1.CreateTenantRequest; +import com.google.cloud.talent.v4beta1.DeleteTenantRequest; +import com.google.cloud.talent.v4beta1.GetTenantRequest; +import com.google.cloud.talent.v4beta1.ListTenantsRequest; +import com.google.cloud.talent.v4beta1.ListTenantsResponse; +import com.google.cloud.talent.v4beta1.Tenant; +import com.google.cloud.talent.v4beta1.UpdateTenantRequest; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC stub implementation for Cloud Talent Solution API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public class GrpcTenantServiceStub extends TenantServiceStub { + + private static final MethodDescriptor createTenantMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.TenantService/CreateTenant") + .setRequestMarshaller(ProtoUtils.marshaller(CreateTenantRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Tenant.getDefaultInstance())) + .build(); + private static final MethodDescriptor getTenantMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.TenantService/GetTenant") + .setRequestMarshaller(ProtoUtils.marshaller(GetTenantRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Tenant.getDefaultInstance())) + .build(); + private static final MethodDescriptor updateTenantMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.TenantService/UpdateTenant") + .setRequestMarshaller(ProtoUtils.marshaller(UpdateTenantRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Tenant.getDefaultInstance())) + .build(); + private static final MethodDescriptor deleteTenantMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.TenantService/DeleteTenant") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteTenantRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + private static final MethodDescriptor + listTenantsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.talent.v4beta1.TenantService/ListTenants") + .setRequestMarshaller(ProtoUtils.marshaller(ListTenantsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListTenantsResponse.getDefaultInstance())) + .build(); + + private final BackgroundResource backgroundResources; + + private final UnaryCallable createTenantCallable; + private final UnaryCallable getTenantCallable; + private final UnaryCallable updateTenantCallable; + private final UnaryCallable deleteTenantCallable; + private final UnaryCallable listTenantsCallable; + private final UnaryCallable + listTenantsPagedCallable; + + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcTenantServiceStub create(TenantServiceStubSettings settings) + throws IOException { + return new GrpcTenantServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcTenantServiceStub create(ClientContext clientContext) throws IOException { + return new GrpcTenantServiceStub(TenantServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcTenantServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcTenantServiceStub( + TenantServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcTenantServiceStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcTenantServiceStub(TenantServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcTenantServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcTenantServiceStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcTenantServiceStub( + TenantServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + GrpcCallSettings createTenantTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createTenantMethodDescriptor) + .build(); + GrpcCallSettings getTenantTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getTenantMethodDescriptor) + .build(); + GrpcCallSettings updateTenantTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateTenantMethodDescriptor) + .build(); + GrpcCallSettings deleteTenantTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteTenantMethodDescriptor) + .build(); + GrpcCallSettings listTenantsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listTenantsMethodDescriptor) + .build(); + + this.createTenantCallable = + callableFactory.createUnaryCallable( + createTenantTransportSettings, settings.createTenantSettings(), clientContext); + this.getTenantCallable = + callableFactory.createUnaryCallable( + getTenantTransportSettings, settings.getTenantSettings(), clientContext); + this.updateTenantCallable = + callableFactory.createUnaryCallable( + updateTenantTransportSettings, settings.updateTenantSettings(), clientContext); + this.deleteTenantCallable = + callableFactory.createUnaryCallable( + deleteTenantTransportSettings, settings.deleteTenantSettings(), clientContext); + this.listTenantsCallable = + callableFactory.createUnaryCallable( + listTenantsTransportSettings, settings.listTenantsSettings(), clientContext); + this.listTenantsPagedCallable = + callableFactory.createPagedCallable( + listTenantsTransportSettings, settings.listTenantsSettings(), clientContext); + + backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public UnaryCallable createTenantCallable() { + return createTenantCallable; + } + + public UnaryCallable getTenantCallable() { + return getTenantCallable; + } + + public UnaryCallable updateTenantCallable() { + return updateTenantCallable; + } + + public UnaryCallable deleteTenantCallable() { + return deleteTenantCallable; + } + + public UnaryCallable listTenantsPagedCallable() { + return listTenantsPagedCallable; + } + + public UnaryCallable listTenantsCallable() { + return listTenantsCallable; + } + + @Override + public final void close() { + shutdown(); + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/JobServiceStub.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/JobServiceStub.java new file mode 100644 index 000000000000..228a90dd5f40 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/JobServiceStub.java @@ -0,0 +1,95 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import static com.google.cloud.talent.v4beta1.JobServiceClient.ListJobsPagedResponse; +import static com.google.cloud.talent.v4beta1.JobServiceClient.SearchJobsForAlertPagedResponse; +import static com.google.cloud.talent.v4beta1.JobServiceClient.SearchJobsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest; +import com.google.cloud.talent.v4beta1.CreateJobRequest; +import com.google.cloud.talent.v4beta1.DeleteJobRequest; +import com.google.cloud.talent.v4beta1.GetJobRequest; +import com.google.cloud.talent.v4beta1.Job; +import com.google.cloud.talent.v4beta1.ListJobsRequest; +import com.google.cloud.talent.v4beta1.ListJobsResponse; +import com.google.cloud.talent.v4beta1.SearchJobsRequest; +import com.google.cloud.talent.v4beta1.SearchJobsResponse; +import com.google.cloud.talent.v4beta1.UpdateJobRequest; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Base stub class for Cloud Talent Solution API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public abstract class JobServiceStub implements BackgroundResource { + + public UnaryCallable createJobCallable() { + throw new UnsupportedOperationException("Not implemented: createJobCallable()"); + } + + public UnaryCallable getJobCallable() { + throw new UnsupportedOperationException("Not implemented: getJobCallable()"); + } + + public UnaryCallable updateJobCallable() { + throw new UnsupportedOperationException("Not implemented: updateJobCallable()"); + } + + public UnaryCallable deleteJobCallable() { + throw new UnsupportedOperationException("Not implemented: deleteJobCallable()"); + } + + public UnaryCallable listJobsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listJobsPagedCallable()"); + } + + public UnaryCallable listJobsCallable() { + throw new UnsupportedOperationException("Not implemented: listJobsCallable()"); + } + + public UnaryCallable batchDeleteJobsCallable() { + throw new UnsupportedOperationException("Not implemented: batchDeleteJobsCallable()"); + } + + public UnaryCallable searchJobsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: searchJobsPagedCallable()"); + } + + public UnaryCallable searchJobsCallable() { + throw new UnsupportedOperationException("Not implemented: searchJobsCallable()"); + } + + public UnaryCallable + searchJobsForAlertPagedCallable() { + throw new UnsupportedOperationException("Not implemented: searchJobsForAlertPagedCallable()"); + } + + public UnaryCallable searchJobsForAlertCallable() { + throw new UnsupportedOperationException("Not implemented: searchJobsForAlertCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/JobServiceStubSettings.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/JobServiceStubSettings.java new file mode 100644 index 000000000000..481aee53a75f --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/JobServiceStubSettings.java @@ -0,0 +1,635 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import static com.google.cloud.talent.v4beta1.JobServiceClient.ListJobsPagedResponse; +import static com.google.cloud.talent.v4beta1.JobServiceClient.SearchJobsForAlertPagedResponse; +import static com.google.cloud.talent.v4beta1.JobServiceClient.SearchJobsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest; +import com.google.cloud.talent.v4beta1.CreateJobRequest; +import com.google.cloud.talent.v4beta1.DeleteJobRequest; +import com.google.cloud.talent.v4beta1.GetJobRequest; +import com.google.cloud.talent.v4beta1.Job; +import com.google.cloud.talent.v4beta1.ListJobsRequest; +import com.google.cloud.talent.v4beta1.ListJobsResponse; +import com.google.cloud.talent.v4beta1.SearchJobsRequest; +import com.google.cloud.talent.v4beta1.SearchJobsResponse; +import com.google.cloud.talent.v4beta1.UpdateJobRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link JobServiceStub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (jobs.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of createJob to 30 seconds: + * + *

+ * 
+ * JobServiceStubSettings.Builder jobServiceSettingsBuilder =
+ *     JobServiceStubSettings.newBuilder();
+ * jobServiceSettingsBuilder.createJobSettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * JobServiceStubSettings jobServiceSettings = jobServiceSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class JobServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/jobs") + .build(); + + private final UnaryCallSettings createJobSettings; + private final UnaryCallSettings getJobSettings; + private final UnaryCallSettings updateJobSettings; + private final UnaryCallSettings deleteJobSettings; + private final PagedCallSettings + listJobsSettings; + private final UnaryCallSettings batchDeleteJobsSettings; + private final PagedCallSettings + searchJobsSettings; + private final PagedCallSettings< + SearchJobsRequest, SearchJobsResponse, SearchJobsForAlertPagedResponse> + searchJobsForAlertSettings; + + /** Returns the object with the settings used for calls to createJob. */ + public UnaryCallSettings createJobSettings() { + return createJobSettings; + } + + /** Returns the object with the settings used for calls to getJob. */ + public UnaryCallSettings getJobSettings() { + return getJobSettings; + } + + /** Returns the object with the settings used for calls to updateJob. */ + public UnaryCallSettings updateJobSettings() { + return updateJobSettings; + } + + /** Returns the object with the settings used for calls to deleteJob. */ + public UnaryCallSettings deleteJobSettings() { + return deleteJobSettings; + } + + /** Returns the object with the settings used for calls to listJobs. */ + public PagedCallSettings + listJobsSettings() { + return listJobsSettings; + } + + /** Returns the object with the settings used for calls to batchDeleteJobs. */ + public UnaryCallSettings batchDeleteJobsSettings() { + return batchDeleteJobsSettings; + } + + /** Returns the object with the settings used for calls to searchJobs. */ + public PagedCallSettings + searchJobsSettings() { + return searchJobsSettings; + } + + /** Returns the object with the settings used for calls to searchJobsForAlert. */ + public PagedCallSettings + searchJobsForAlertSettings() { + return searchJobsForAlertSettings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public JobServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcJobServiceStub.create(this); + } else { + throw new UnsupportedOperationException( + "Transport not supported: " + getTransportChannelProvider().getTransportName()); + } + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "jobs.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(JobServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected JobServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + createJobSettings = settingsBuilder.createJobSettings().build(); + getJobSettings = settingsBuilder.getJobSettings().build(); + updateJobSettings = settingsBuilder.updateJobSettings().build(); + deleteJobSettings = settingsBuilder.deleteJobSettings().build(); + listJobsSettings = settingsBuilder.listJobsSettings().build(); + batchDeleteJobsSettings = settingsBuilder.batchDeleteJobsSettings().build(); + searchJobsSettings = settingsBuilder.searchJobsSettings().build(); + searchJobsForAlertSettings = settingsBuilder.searchJobsForAlertSettings().build(); + } + + private static final PagedListDescriptor + LIST_JOBS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListJobsRequest injectToken(ListJobsRequest payload, String token) { + return ListJobsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListJobsRequest injectPageSize(ListJobsRequest payload, int pageSize) { + return ListJobsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListJobsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListJobsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListJobsResponse payload) { + return payload.getJobsList() != null + ? payload.getJobsList() + : ImmutableList.of(); + } + }; + + private static final PagedListDescriptor< + SearchJobsRequest, SearchJobsResponse, SearchJobsResponse.MatchingJob> + SEARCH_JOBS_PAGE_STR_DESC = + new PagedListDescriptor< + SearchJobsRequest, SearchJobsResponse, SearchJobsResponse.MatchingJob>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public SearchJobsRequest injectToken(SearchJobsRequest payload, String token) { + return SearchJobsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public SearchJobsRequest injectPageSize(SearchJobsRequest payload, int pageSize) { + return SearchJobsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(SearchJobsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(SearchJobsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + SearchJobsResponse payload) { + return payload.getMatchingJobsList() != null + ? payload.getMatchingJobsList() + : ImmutableList.of(); + } + }; + + private static final PagedListDescriptor< + SearchJobsRequest, SearchJobsResponse, SearchJobsResponse.MatchingJob> + SEARCH_JOBS_FOR_ALERT_PAGE_STR_DESC = + new PagedListDescriptor< + SearchJobsRequest, SearchJobsResponse, SearchJobsResponse.MatchingJob>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public SearchJobsRequest injectToken(SearchJobsRequest payload, String token) { + return SearchJobsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public SearchJobsRequest injectPageSize(SearchJobsRequest payload, int pageSize) { + return SearchJobsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(SearchJobsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(SearchJobsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + SearchJobsResponse payload) { + return payload.getMatchingJobsList() != null + ? payload.getMatchingJobsList() + : ImmutableList.of(); + } + }; + + private static final PagedListResponseFactory< + ListJobsRequest, ListJobsResponse, ListJobsPagedResponse> + LIST_JOBS_PAGE_STR_FACT = + new PagedListResponseFactory() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListJobsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_JOBS_PAGE_STR_DESC, request, context); + return ListJobsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + SearchJobsRequest, SearchJobsResponse, SearchJobsPagedResponse> + SEARCH_JOBS_PAGE_STR_FACT = + new PagedListResponseFactory< + SearchJobsRequest, SearchJobsResponse, SearchJobsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + SearchJobsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create(callable, SEARCH_JOBS_PAGE_STR_DESC, request, context); + return SearchJobsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + SearchJobsRequest, SearchJobsResponse, SearchJobsForAlertPagedResponse> + SEARCH_JOBS_FOR_ALERT_PAGE_STR_FACT = + new PagedListResponseFactory< + SearchJobsRequest, SearchJobsResponse, SearchJobsForAlertPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + SearchJobsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, SEARCH_JOBS_FOR_ALERT_PAGE_STR_DESC, request, context); + return SearchJobsForAlertPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Builder for JobServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + + private final UnaryCallSettings.Builder createJobSettings; + private final UnaryCallSettings.Builder getJobSettings; + private final UnaryCallSettings.Builder updateJobSettings; + private final UnaryCallSettings.Builder deleteJobSettings; + private final PagedCallSettings.Builder< + ListJobsRequest, ListJobsResponse, ListJobsPagedResponse> + listJobsSettings; + private final UnaryCallSettings.Builder batchDeleteJobsSettings; + private final PagedCallSettings.Builder< + SearchJobsRequest, SearchJobsResponse, SearchJobsPagedResponse> + searchJobsSettings; + private final PagedCallSettings.Builder< + SearchJobsRequest, SearchJobsResponse, SearchJobsForAlertPagedResponse> + searchJobsForAlertSettings; + + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "idempotent", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(20000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(20000L)) + .setTotalTimeout(Duration.ofMillis(600000L)) + .build(); + definitions.put("default", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + createJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + getJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + updateJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + deleteJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + listJobsSettings = PagedCallSettings.newBuilder(LIST_JOBS_PAGE_STR_FACT); + + batchDeleteJobsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + searchJobsSettings = PagedCallSettings.newBuilder(SEARCH_JOBS_PAGE_STR_FACT); + + searchJobsForAlertSettings = + PagedCallSettings.newBuilder(SEARCH_JOBS_FOR_ALERT_PAGE_STR_FACT); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createJobSettings, + getJobSettings, + updateJobSettings, + deleteJobSettings, + listJobsSettings, + batchDeleteJobsSettings, + searchJobsSettings, + searchJobsForAlertSettings); + + initDefaults(this); + } + + private static Builder createDefault() { + Builder builder = new Builder((ClientContext) null); + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + + builder + .createJobSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .getJobSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .updateJobSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .deleteJobSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .listJobsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .batchDeleteJobsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .searchJobsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .searchJobsForAlertSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + return builder; + } + + protected Builder(JobServiceStubSettings settings) { + super(settings); + + createJobSettings = settings.createJobSettings.toBuilder(); + getJobSettings = settings.getJobSettings.toBuilder(); + updateJobSettings = settings.updateJobSettings.toBuilder(); + deleteJobSettings = settings.deleteJobSettings.toBuilder(); + listJobsSettings = settings.listJobsSettings.toBuilder(); + batchDeleteJobsSettings = settings.batchDeleteJobsSettings.toBuilder(); + searchJobsSettings = settings.searchJobsSettings.toBuilder(); + searchJobsForAlertSettings = settings.searchJobsForAlertSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createJobSettings, + getJobSettings, + updateJobSettings, + deleteJobSettings, + listJobsSettings, + batchDeleteJobsSettings, + searchJobsSettings, + searchJobsForAlertSettings); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to createJob. */ + public UnaryCallSettings.Builder createJobSettings() { + return createJobSettings; + } + + /** Returns the builder for the settings used for calls to getJob. */ + public UnaryCallSettings.Builder getJobSettings() { + return getJobSettings; + } + + /** Returns the builder for the settings used for calls to updateJob. */ + public UnaryCallSettings.Builder updateJobSettings() { + return updateJobSettings; + } + + /** Returns the builder for the settings used for calls to deleteJob. */ + public UnaryCallSettings.Builder deleteJobSettings() { + return deleteJobSettings; + } + + /** Returns the builder for the settings used for calls to listJobs. */ + public PagedCallSettings.Builder + listJobsSettings() { + return listJobsSettings; + } + + /** Returns the builder for the settings used for calls to batchDeleteJobs. */ + public UnaryCallSettings.Builder batchDeleteJobsSettings() { + return batchDeleteJobsSettings; + } + + /** Returns the builder for the settings used for calls to searchJobs. */ + public PagedCallSettings.Builder + searchJobsSettings() { + return searchJobsSettings; + } + + /** Returns the builder for the settings used for calls to searchJobsForAlert. */ + public PagedCallSettings.Builder< + SearchJobsRequest, SearchJobsResponse, SearchJobsForAlertPagedResponse> + searchJobsForAlertSettings() { + return searchJobsForAlertSettings; + } + + @Override + public JobServiceStubSettings build() throws IOException { + return new JobServiceStubSettings(this); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ProfileServiceStub.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ProfileServiceStub.java new file mode 100644 index 000000000000..7e8850e5ea71 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ProfileServiceStub.java @@ -0,0 +1,81 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import static com.google.cloud.talent.v4beta1.ProfileServiceClient.ListProfilesPagedResponse; +import static com.google.cloud.talent.v4beta1.ProfileServiceClient.SearchProfilesPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4beta1.CreateProfileRequest; +import com.google.cloud.talent.v4beta1.DeleteProfileRequest; +import com.google.cloud.talent.v4beta1.GetProfileRequest; +import com.google.cloud.talent.v4beta1.ListProfilesRequest; +import com.google.cloud.talent.v4beta1.ListProfilesResponse; +import com.google.cloud.talent.v4beta1.Profile; +import com.google.cloud.talent.v4beta1.SearchProfilesRequest; +import com.google.cloud.talent.v4beta1.SearchProfilesResponse; +import com.google.cloud.talent.v4beta1.UpdateProfileRequest; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Base stub class for Cloud Talent Solution API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public abstract class ProfileServiceStub implements BackgroundResource { + + public UnaryCallable listProfilesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listProfilesPagedCallable()"); + } + + public UnaryCallable listProfilesCallable() { + throw new UnsupportedOperationException("Not implemented: listProfilesCallable()"); + } + + public UnaryCallable createProfileCallable() { + throw new UnsupportedOperationException("Not implemented: createProfileCallable()"); + } + + public UnaryCallable getProfileCallable() { + throw new UnsupportedOperationException("Not implemented: getProfileCallable()"); + } + + public UnaryCallable updateProfileCallable() { + throw new UnsupportedOperationException("Not implemented: updateProfileCallable()"); + } + + public UnaryCallable deleteProfileCallable() { + throw new UnsupportedOperationException("Not implemented: deleteProfileCallable()"); + } + + public UnaryCallable + searchProfilesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: searchProfilesPagedCallable()"); + } + + public UnaryCallable searchProfilesCallable() { + throw new UnsupportedOperationException("Not implemented: searchProfilesCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ProfileServiceStubSettings.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ProfileServiceStubSettings.java new file mode 100644 index 000000000000..5028c0b85fd1 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ProfileServiceStubSettings.java @@ -0,0 +1,528 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import static com.google.cloud.talent.v4beta1.ProfileServiceClient.ListProfilesPagedResponse; +import static com.google.cloud.talent.v4beta1.ProfileServiceClient.SearchProfilesPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4beta1.CreateProfileRequest; +import com.google.cloud.talent.v4beta1.DeleteProfileRequest; +import com.google.cloud.talent.v4beta1.GetProfileRequest; +import com.google.cloud.talent.v4beta1.HistogramQueryResult; +import com.google.cloud.talent.v4beta1.ListProfilesRequest; +import com.google.cloud.talent.v4beta1.ListProfilesResponse; +import com.google.cloud.talent.v4beta1.Profile; +import com.google.cloud.talent.v4beta1.SearchProfilesRequest; +import com.google.cloud.talent.v4beta1.SearchProfilesResponse; +import com.google.cloud.talent.v4beta1.UpdateProfileRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link ProfileServiceStub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (jobs.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of createProfile to 30 seconds: + * + *

+ * 
+ * ProfileServiceStubSettings.Builder profileServiceSettingsBuilder =
+ *     ProfileServiceStubSettings.newBuilder();
+ * profileServiceSettingsBuilder.createProfileSettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * ProfileServiceStubSettings profileServiceSettings = profileServiceSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class ProfileServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/jobs") + .build(); + + private final PagedCallSettings< + ListProfilesRequest, ListProfilesResponse, ListProfilesPagedResponse> + listProfilesSettings; + private final UnaryCallSettings createProfileSettings; + private final UnaryCallSettings getProfileSettings; + private final UnaryCallSettings updateProfileSettings; + private final UnaryCallSettings deleteProfileSettings; + private final PagedCallSettings< + SearchProfilesRequest, SearchProfilesResponse, SearchProfilesPagedResponse> + searchProfilesSettings; + + /** Returns the object with the settings used for calls to listProfiles. */ + public PagedCallSettings + listProfilesSettings() { + return listProfilesSettings; + } + + /** Returns the object with the settings used for calls to createProfile. */ + public UnaryCallSettings createProfileSettings() { + return createProfileSettings; + } + + /** Returns the object with the settings used for calls to getProfile. */ + public UnaryCallSettings getProfileSettings() { + return getProfileSettings; + } + + /** Returns the object with the settings used for calls to updateProfile. */ + public UnaryCallSettings updateProfileSettings() { + return updateProfileSettings; + } + + /** Returns the object with the settings used for calls to deleteProfile. */ + public UnaryCallSettings deleteProfileSettings() { + return deleteProfileSettings; + } + + /** Returns the object with the settings used for calls to searchProfiles. */ + public PagedCallSettings< + SearchProfilesRequest, SearchProfilesResponse, SearchProfilesPagedResponse> + searchProfilesSettings() { + return searchProfilesSettings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public ProfileServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcProfileServiceStub.create(this); + } else { + throw new UnsupportedOperationException( + "Transport not supported: " + getTransportChannelProvider().getTransportName()); + } + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "jobs.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(ProfileServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected ProfileServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + listProfilesSettings = settingsBuilder.listProfilesSettings().build(); + createProfileSettings = settingsBuilder.createProfileSettings().build(); + getProfileSettings = settingsBuilder.getProfileSettings().build(); + updateProfileSettings = settingsBuilder.updateProfileSettings().build(); + deleteProfileSettings = settingsBuilder.deleteProfileSettings().build(); + searchProfilesSettings = settingsBuilder.searchProfilesSettings().build(); + } + + private static final PagedListDescriptor + LIST_PROFILES_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListProfilesRequest injectToken(ListProfilesRequest payload, String token) { + return ListProfilesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListProfilesRequest injectPageSize(ListProfilesRequest payload, int pageSize) { + return ListProfilesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListProfilesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListProfilesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListProfilesResponse payload) { + return payload.getProfilesList() != null + ? payload.getProfilesList() + : ImmutableList.of(); + } + }; + + private static final PagedListDescriptor< + SearchProfilesRequest, SearchProfilesResponse, HistogramQueryResult> + SEARCH_PROFILES_PAGE_STR_DESC = + new PagedListDescriptor< + SearchProfilesRequest, SearchProfilesResponse, HistogramQueryResult>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public SearchProfilesRequest injectToken(SearchProfilesRequest payload, String token) { + return SearchProfilesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public SearchProfilesRequest injectPageSize( + SearchProfilesRequest payload, int pageSize) { + return SearchProfilesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(SearchProfilesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(SearchProfilesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(SearchProfilesResponse payload) { + return payload.getHistogramQueryResultsList() != null + ? payload.getHistogramQueryResultsList() + : ImmutableList.of(); + } + }; + + private static final PagedListResponseFactory< + ListProfilesRequest, ListProfilesResponse, ListProfilesPagedResponse> + LIST_PROFILES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListProfilesRequest, ListProfilesResponse, ListProfilesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListProfilesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_PROFILES_PAGE_STR_DESC, request, context); + return ListProfilesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + SearchProfilesRequest, SearchProfilesResponse, SearchProfilesPagedResponse> + SEARCH_PROFILES_PAGE_STR_FACT = + new PagedListResponseFactory< + SearchProfilesRequest, SearchProfilesResponse, SearchProfilesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + SearchProfilesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create(callable, SEARCH_PROFILES_PAGE_STR_DESC, request, context); + return SearchProfilesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Builder for ProfileServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + + private final PagedCallSettings.Builder< + ListProfilesRequest, ListProfilesResponse, ListProfilesPagedResponse> + listProfilesSettings; + private final UnaryCallSettings.Builder createProfileSettings; + private final UnaryCallSettings.Builder getProfileSettings; + private final UnaryCallSettings.Builder updateProfileSettings; + private final UnaryCallSettings.Builder deleteProfileSettings; + private final PagedCallSettings.Builder< + SearchProfilesRequest, SearchProfilesResponse, SearchProfilesPagedResponse> + searchProfilesSettings; + + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "idempotent", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(20000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(20000L)) + .setTotalTimeout(Duration.ofMillis(600000L)) + .build(); + definitions.put("default", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + listProfilesSettings = PagedCallSettings.newBuilder(LIST_PROFILES_PAGE_STR_FACT); + + createProfileSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + getProfileSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + updateProfileSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + deleteProfileSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + searchProfilesSettings = PagedCallSettings.newBuilder(SEARCH_PROFILES_PAGE_STR_FACT); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listProfilesSettings, + createProfileSettings, + getProfileSettings, + updateProfileSettings, + deleteProfileSettings, + searchProfilesSettings); + + initDefaults(this); + } + + private static Builder createDefault() { + Builder builder = new Builder((ClientContext) null); + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + + builder + .listProfilesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .createProfileSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .getProfileSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .updateProfileSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .deleteProfileSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .searchProfilesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + return builder; + } + + protected Builder(ProfileServiceStubSettings settings) { + super(settings); + + listProfilesSettings = settings.listProfilesSettings.toBuilder(); + createProfileSettings = settings.createProfileSettings.toBuilder(); + getProfileSettings = settings.getProfileSettings.toBuilder(); + updateProfileSettings = settings.updateProfileSettings.toBuilder(); + deleteProfileSettings = settings.deleteProfileSettings.toBuilder(); + searchProfilesSettings = settings.searchProfilesSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listProfilesSettings, + createProfileSettings, + getProfileSettings, + updateProfileSettings, + deleteProfileSettings, + searchProfilesSettings); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to listProfiles. */ + public PagedCallSettings.Builder< + ListProfilesRequest, ListProfilesResponse, ListProfilesPagedResponse> + listProfilesSettings() { + return listProfilesSettings; + } + + /** Returns the builder for the settings used for calls to createProfile. */ + public UnaryCallSettings.Builder createProfileSettings() { + return createProfileSettings; + } + + /** Returns the builder for the settings used for calls to getProfile. */ + public UnaryCallSettings.Builder getProfileSettings() { + return getProfileSettings; + } + + /** Returns the builder for the settings used for calls to updateProfile. */ + public UnaryCallSettings.Builder updateProfileSettings() { + return updateProfileSettings; + } + + /** Returns the builder for the settings used for calls to deleteProfile. */ + public UnaryCallSettings.Builder deleteProfileSettings() { + return deleteProfileSettings; + } + + /** Returns the builder for the settings used for calls to searchProfiles. */ + public PagedCallSettings.Builder< + SearchProfilesRequest, SearchProfilesResponse, SearchProfilesPagedResponse> + searchProfilesSettings() { + return searchProfilesSettings; + } + + @Override + public ProfileServiceStubSettings build() throws IOException { + return new ProfileServiceStubSettings(this); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ResumeServiceStub.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ResumeServiceStub.java new file mode 100644 index 000000000000..260df6b18e77 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ResumeServiceStub.java @@ -0,0 +1,41 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4beta1.ParseResumeRequest; +import com.google.cloud.talent.v4beta1.ParseResumeResponse; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Base stub class for Cloud Talent Solution API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public abstract class ResumeServiceStub implements BackgroundResource { + + public UnaryCallable parseResumeCallable() { + throw new UnsupportedOperationException("Not implemented: parseResumeCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ResumeServiceStubSettings.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ResumeServiceStubSettings.java new file mode 100644 index 000000000000..fd37031959cf --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ResumeServiceStubSettings.java @@ -0,0 +1,269 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.talent.v4beta1.ParseResumeRequest; +import com.google.cloud.talent.v4beta1.ParseResumeResponse; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link ResumeServiceStub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (jobs.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of parseResume to 30 seconds: + * + *

+ * 
+ * ResumeServiceStubSettings.Builder resumeServiceSettingsBuilder =
+ *     ResumeServiceStubSettings.newBuilder();
+ * resumeServiceSettingsBuilder.parseResumeSettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * ResumeServiceStubSettings resumeServiceSettings = resumeServiceSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class ResumeServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/jobs") + .build(); + + private final UnaryCallSettings parseResumeSettings; + + /** Returns the object with the settings used for calls to parseResume. */ + public UnaryCallSettings parseResumeSettings() { + return parseResumeSettings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public ResumeServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcResumeServiceStub.create(this); + } else { + throw new UnsupportedOperationException( + "Transport not supported: " + getTransportChannelProvider().getTransportName()); + } + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "jobs.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(ResumeServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected ResumeServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + parseResumeSettings = settingsBuilder.parseResumeSettings().build(); + } + + /** Builder for ResumeServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + + private final UnaryCallSettings.Builder + parseResumeSettings; + + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "idempotent", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(20000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(20000L)) + .setTotalTimeout(Duration.ofMillis(600000L)) + .build(); + definitions.put("default", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + parseResumeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of(parseResumeSettings); + + initDefaults(this); + } + + private static Builder createDefault() { + Builder builder = new Builder((ClientContext) null); + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + + builder + .parseResumeSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + return builder; + } + + protected Builder(ResumeServiceStubSettings settings) { + super(settings); + + parseResumeSettings = settings.parseResumeSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of(parseResumeSettings); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to parseResume. */ + public UnaryCallSettings.Builder + parseResumeSettings() { + return parseResumeSettings; + } + + @Override + public ResumeServiceStubSettings build() throws IOException { + return new ResumeServiceStubSettings(this); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/TenantServiceStub.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/TenantServiceStub.java new file mode 100644 index 000000000000..80f642dcf220 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/TenantServiceStub.java @@ -0,0 +1,69 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import static com.google.cloud.talent.v4beta1.TenantServiceClient.ListTenantsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4beta1.CreateTenantRequest; +import com.google.cloud.talent.v4beta1.DeleteTenantRequest; +import com.google.cloud.talent.v4beta1.GetTenantRequest; +import com.google.cloud.talent.v4beta1.ListTenantsRequest; +import com.google.cloud.talent.v4beta1.ListTenantsResponse; +import com.google.cloud.talent.v4beta1.Tenant; +import com.google.cloud.talent.v4beta1.UpdateTenantRequest; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Base stub class for Cloud Talent Solution API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public abstract class TenantServiceStub implements BackgroundResource { + + public UnaryCallable createTenantCallable() { + throw new UnsupportedOperationException("Not implemented: createTenantCallable()"); + } + + public UnaryCallable getTenantCallable() { + throw new UnsupportedOperationException("Not implemented: getTenantCallable()"); + } + + public UnaryCallable updateTenantCallable() { + throw new UnsupportedOperationException("Not implemented: updateTenantCallable()"); + } + + public UnaryCallable deleteTenantCallable() { + throw new UnsupportedOperationException("Not implemented: deleteTenantCallable()"); + } + + public UnaryCallable listTenantsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listTenantsPagedCallable()"); + } + + public UnaryCallable listTenantsCallable() { + throw new UnsupportedOperationException("Not implemented: listTenantsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/TenantServiceStubSettings.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/TenantServiceStubSettings.java new file mode 100644 index 000000000000..e30e3dc00dd7 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/TenantServiceStubSettings.java @@ -0,0 +1,435 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1.stub; + +import static com.google.cloud.talent.v4beta1.TenantServiceClient.ListTenantsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4beta1.CreateTenantRequest; +import com.google.cloud.talent.v4beta1.DeleteTenantRequest; +import com.google.cloud.talent.v4beta1.GetTenantRequest; +import com.google.cloud.talent.v4beta1.ListTenantsRequest; +import com.google.cloud.talent.v4beta1.ListTenantsResponse; +import com.google.cloud.talent.v4beta1.Tenant; +import com.google.cloud.talent.v4beta1.UpdateTenantRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link TenantServiceStub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (jobs.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of createTenant to 30 seconds: + * + *

+ * 
+ * TenantServiceStubSettings.Builder tenantServiceSettingsBuilder =
+ *     TenantServiceStubSettings.newBuilder();
+ * tenantServiceSettingsBuilder.createTenantSettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * TenantServiceStubSettings tenantServiceSettings = tenantServiceSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class TenantServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/jobs") + .build(); + + private final UnaryCallSettings createTenantSettings; + private final UnaryCallSettings getTenantSettings; + private final UnaryCallSettings updateTenantSettings; + private final UnaryCallSettings deleteTenantSettings; + private final PagedCallSettings + listTenantsSettings; + + /** Returns the object with the settings used for calls to createTenant. */ + public UnaryCallSettings createTenantSettings() { + return createTenantSettings; + } + + /** Returns the object with the settings used for calls to getTenant. */ + public UnaryCallSettings getTenantSettings() { + return getTenantSettings; + } + + /** Returns the object with the settings used for calls to updateTenant. */ + public UnaryCallSettings updateTenantSettings() { + return updateTenantSettings; + } + + /** Returns the object with the settings used for calls to deleteTenant. */ + public UnaryCallSettings deleteTenantSettings() { + return deleteTenantSettings; + } + + /** Returns the object with the settings used for calls to listTenants. */ + public PagedCallSettings + listTenantsSettings() { + return listTenantsSettings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public TenantServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcTenantServiceStub.create(this); + } else { + throw new UnsupportedOperationException( + "Transport not supported: " + getTransportChannelProvider().getTransportName()); + } + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "jobs.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(TenantServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected TenantServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + createTenantSettings = settingsBuilder.createTenantSettings().build(); + getTenantSettings = settingsBuilder.getTenantSettings().build(); + updateTenantSettings = settingsBuilder.updateTenantSettings().build(); + deleteTenantSettings = settingsBuilder.deleteTenantSettings().build(); + listTenantsSettings = settingsBuilder.listTenantsSettings().build(); + } + + private static final PagedListDescriptor + LIST_TENANTS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListTenantsRequest injectToken(ListTenantsRequest payload, String token) { + return ListTenantsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListTenantsRequest injectPageSize(ListTenantsRequest payload, int pageSize) { + return ListTenantsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListTenantsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListTenantsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListTenantsResponse payload) { + return payload.getTenantsList() != null + ? payload.getTenantsList() + : ImmutableList.of(); + } + }; + + private static final PagedListResponseFactory< + ListTenantsRequest, ListTenantsResponse, ListTenantsPagedResponse> + LIST_TENANTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListTenantsRequest, ListTenantsResponse, ListTenantsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListTenantsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_TENANTS_PAGE_STR_DESC, request, context); + return ListTenantsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Builder for TenantServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + + private final UnaryCallSettings.Builder createTenantSettings; + private final UnaryCallSettings.Builder getTenantSettings; + private final UnaryCallSettings.Builder updateTenantSettings; + private final UnaryCallSettings.Builder deleteTenantSettings; + private final PagedCallSettings.Builder< + ListTenantsRequest, ListTenantsResponse, ListTenantsPagedResponse> + listTenantsSettings; + + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "idempotent", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(20000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(20000L)) + .setTotalTimeout(Duration.ofMillis(600000L)) + .build(); + definitions.put("default", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + createTenantSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + getTenantSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + updateTenantSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + deleteTenantSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + listTenantsSettings = PagedCallSettings.newBuilder(LIST_TENANTS_PAGE_STR_FACT); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createTenantSettings, + getTenantSettings, + updateTenantSettings, + deleteTenantSettings, + listTenantsSettings); + + initDefaults(this); + } + + private static Builder createDefault() { + Builder builder = new Builder((ClientContext) null); + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + + builder + .createTenantSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .getTenantSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .updateTenantSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .deleteTenantSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .listTenantsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + return builder; + } + + protected Builder(TenantServiceStubSettings settings) { + super(settings); + + createTenantSettings = settings.createTenantSettings.toBuilder(); + getTenantSettings = settings.getTenantSettings.toBuilder(); + updateTenantSettings = settings.updateTenantSettings.toBuilder(); + deleteTenantSettings = settings.deleteTenantSettings.toBuilder(); + listTenantsSettings = settings.listTenantsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createTenantSettings, + getTenantSettings, + updateTenantSettings, + deleteTenantSettings, + listTenantsSettings); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to createTenant. */ + public UnaryCallSettings.Builder createTenantSettings() { + return createTenantSettings; + } + + /** Returns the builder for the settings used for calls to getTenant. */ + public UnaryCallSettings.Builder getTenantSettings() { + return getTenantSettings; + } + + /** Returns the builder for the settings used for calls to updateTenant. */ + public UnaryCallSettings.Builder updateTenantSettings() { + return updateTenantSettings; + } + + /** Returns the builder for the settings used for calls to deleteTenant. */ + public UnaryCallSettings.Builder deleteTenantSettings() { + return deleteTenantSettings; + } + + /** Returns the builder for the settings used for calls to listTenants. */ + public PagedCallSettings.Builder< + ListTenantsRequest, ListTenantsResponse, ListTenantsPagedResponse> + listTenantsSettings() { + return listTenantsSettings; + } + + @Override + public TenantServiceStubSettings build() throws IOException { + return new TenantServiceStubSettings(this); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/CompanyServiceClientTest.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/CompanyServiceClientTest.java new file mode 100644 index 000000000000..0506cc723ac5 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/CompanyServiceClientTest.java @@ -0,0 +1,367 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import static com.google.cloud.talent.v4beta1.CompanyServiceClient.ListCompaniesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.Status; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@javax.annotation.Generated("by GAPIC") +public class CompanyServiceClientTest { + private static MockCompanyService mockCompanyService; + private static MockCompletion mockCompletion; + private static MockEventService mockEventService; + private static MockJobService mockJobService; + private static MockProfileService mockProfileService; + private static MockResumeService mockResumeService; + private static MockTenantService mockTenantService; + private static MockServiceHelper serviceHelper; + private CompanyServiceClient client; + private LocalChannelProvider channelProvider; + + @BeforeClass + public static void startStaticServer() { + mockCompanyService = new MockCompanyService(); + mockCompletion = new MockCompletion(); + mockEventService = new MockEventService(); + mockJobService = new MockJobService(); + mockProfileService = new MockProfileService(); + mockResumeService = new MockResumeService(); + mockTenantService = new MockTenantService(); + serviceHelper = + new MockServiceHelper( + "in-process-1", + Arrays.asList( + mockCompanyService, + mockCompletion, + mockEventService, + mockJobService, + mockProfileService, + mockResumeService, + mockTenantService)); + serviceHelper.start(); + } + + @AfterClass + public static void stopServer() { + serviceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + serviceHelper.reset(); + channelProvider = serviceHelper.createChannelProvider(); + CompanyServiceSettings settings = + CompanyServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = CompanyServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + @SuppressWarnings("all") + public void createCompanyTest() { + CompanyName name = CompanyName.of("[PROJECT]", "[COMPANY]"); + String displayName = "displayName1615086568"; + String externalId = "externalId-1153075697"; + String headquartersAddress = "headquartersAddress-1879520036"; + boolean hiringAgency = false; + String eeoText = "eeoText-1652097123"; + String websiteUri = "websiteUri-2118185016"; + String careerSiteUri = "careerSiteUri1223331861"; + String imageUri = "imageUri-877823864"; + boolean suspended = false; + Company expectedResponse = + Company.newBuilder() + .setName(name.toString()) + .setDisplayName(displayName) + .setExternalId(externalId) + .setHeadquartersAddress(headquartersAddress) + .setHiringAgency(hiringAgency) + .setEeoText(eeoText) + .setWebsiteUri(websiteUri) + .setCareerSiteUri(careerSiteUri) + .setImageUri(imageUri) + .setSuspended(suspended) + .build(); + mockCompanyService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + Company company = Company.newBuilder().build(); + + Company actualResponse = client.createCompany(parent, company); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCompanyService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateCompanyRequest actualRequest = (CreateCompanyRequest) actualRequests.get(0); + + Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); + Assert.assertEquals(company, actualRequest.getCompany()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void createCompanyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockCompanyService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + Company company = Company.newBuilder().build(); + + client.createCompany(parent, company); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void getCompanyTest() { + CompanyName name2 = CompanyName.of("[PROJECT]", "[COMPANY]"); + String displayName = "displayName1615086568"; + String externalId = "externalId-1153075697"; + String headquartersAddress = "headquartersAddress-1879520036"; + boolean hiringAgency = false; + String eeoText = "eeoText-1652097123"; + String websiteUri = "websiteUri-2118185016"; + String careerSiteUri = "careerSiteUri1223331861"; + String imageUri = "imageUri-877823864"; + boolean suspended = false; + Company expectedResponse = + Company.newBuilder() + .setName(name2.toString()) + .setDisplayName(displayName) + .setExternalId(externalId) + .setHeadquartersAddress(headquartersAddress) + .setHiringAgency(hiringAgency) + .setEeoText(eeoText) + .setWebsiteUri(websiteUri) + .setCareerSiteUri(careerSiteUri) + .setImageUri(imageUri) + .setSuspended(suspended) + .build(); + mockCompanyService.addResponse(expectedResponse); + + CompanyName name = CompanyName.of("[PROJECT]", "[COMPANY]"); + + Company actualResponse = client.getCompany(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCompanyService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetCompanyRequest actualRequest = (GetCompanyRequest) actualRequests.get(0); + + Assert.assertEquals(name, CompanyName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void getCompanyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockCompanyService.addException(exception); + + try { + CompanyName name = CompanyName.of("[PROJECT]", "[COMPANY]"); + + client.getCompany(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void updateCompanyTest() { + CompanyName name = CompanyName.of("[PROJECT]", "[COMPANY]"); + String displayName = "displayName1615086568"; + String externalId = "externalId-1153075697"; + String headquartersAddress = "headquartersAddress-1879520036"; + boolean hiringAgency = false; + String eeoText = "eeoText-1652097123"; + String websiteUri = "websiteUri-2118185016"; + String careerSiteUri = "careerSiteUri1223331861"; + String imageUri = "imageUri-877823864"; + boolean suspended = false; + Company expectedResponse = + Company.newBuilder() + .setName(name.toString()) + .setDisplayName(displayName) + .setExternalId(externalId) + .setHeadquartersAddress(headquartersAddress) + .setHiringAgency(hiringAgency) + .setEeoText(eeoText) + .setWebsiteUri(websiteUri) + .setCareerSiteUri(careerSiteUri) + .setImageUri(imageUri) + .setSuspended(suspended) + .build(); + mockCompanyService.addResponse(expectedResponse); + + Company company = Company.newBuilder().build(); + + Company actualResponse = client.updateCompany(company); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCompanyService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateCompanyRequest actualRequest = (UpdateCompanyRequest) actualRequests.get(0); + + Assert.assertEquals(company, actualRequest.getCompany()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void updateCompanyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockCompanyService.addException(exception); + + try { + Company company = Company.newBuilder().build(); + + client.updateCompany(company); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void deleteCompanyTest() { + Empty expectedResponse = Empty.newBuilder().build(); + mockCompanyService.addResponse(expectedResponse); + + CompanyName name = CompanyName.of("[PROJECT]", "[COMPANY]"); + + client.deleteCompany(name); + + List actualRequests = mockCompanyService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteCompanyRequest actualRequest = (DeleteCompanyRequest) actualRequests.get(0); + + Assert.assertEquals(name, CompanyName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void deleteCompanyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockCompanyService.addException(exception); + + try { + CompanyName name = CompanyName.of("[PROJECT]", "[COMPANY]"); + + client.deleteCompany(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void listCompaniesTest() { + String nextPageToken = ""; + Company companiesElement = Company.newBuilder().build(); + List companies = Arrays.asList(companiesElement); + ListCompaniesResponse expectedResponse = + ListCompaniesResponse.newBuilder() + .setNextPageToken(nextPageToken) + .addAllCompanies(companies) + .build(); + mockCompanyService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + + ListCompaniesPagedResponse pagedListResponse = client.listCompanies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCompaniesList().get(0), resources.get(0)); + + List actualRequests = mockCompanyService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListCompaniesRequest actualRequest = (ListCompaniesRequest) actualRequests.get(0); + + Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void listCompaniesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockCompanyService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + + client.listCompanies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/CompletionClientTest.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/CompletionClientTest.java new file mode 100644 index 000000000000..41881e8e74f6 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/CompletionClientTest.java @@ -0,0 +1,86 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import java.io.IOException; +import java.util.Arrays; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Before; +import org.junit.BeforeClass; + +@javax.annotation.Generated("by GAPIC") +public class CompletionClientTest { + private static MockCompanyService mockCompanyService; + private static MockCompletion mockCompletion; + private static MockEventService mockEventService; + private static MockJobService mockJobService; + private static MockProfileService mockProfileService; + private static MockResumeService mockResumeService; + private static MockTenantService mockTenantService; + private static MockServiceHelper serviceHelper; + private CompletionClient client; + private LocalChannelProvider channelProvider; + + @BeforeClass + public static void startStaticServer() { + mockCompanyService = new MockCompanyService(); + mockCompletion = new MockCompletion(); + mockEventService = new MockEventService(); + mockJobService = new MockJobService(); + mockProfileService = new MockProfileService(); + mockResumeService = new MockResumeService(); + mockTenantService = new MockTenantService(); + serviceHelper = + new MockServiceHelper( + "in-process-1", + Arrays.asList( + mockCompanyService, + mockCompletion, + mockEventService, + mockJobService, + mockProfileService, + mockResumeService, + mockTenantService)); + serviceHelper.start(); + } + + @AfterClass + public static void stopServer() { + serviceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + serviceHelper.reset(); + channelProvider = serviceHelper.createChannelProvider(); + CompletionSettings settings = + CompletionSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = CompletionClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/EventServiceClientTest.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/EventServiceClientTest.java new file mode 100644 index 000000000000..10e7f20c526a --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/EventServiceClientTest.java @@ -0,0 +1,139 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.Status; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@javax.annotation.Generated("by GAPIC") +public class EventServiceClientTest { + private static MockCompanyService mockCompanyService; + private static MockCompletion mockCompletion; + private static MockEventService mockEventService; + private static MockJobService mockJobService; + private static MockProfileService mockProfileService; + private static MockResumeService mockResumeService; + private static MockTenantService mockTenantService; + private static MockServiceHelper serviceHelper; + private EventServiceClient client; + private LocalChannelProvider channelProvider; + + @BeforeClass + public static void startStaticServer() { + mockCompanyService = new MockCompanyService(); + mockCompletion = new MockCompletion(); + mockEventService = new MockEventService(); + mockJobService = new MockJobService(); + mockProfileService = new MockProfileService(); + mockResumeService = new MockResumeService(); + mockTenantService = new MockTenantService(); + serviceHelper = + new MockServiceHelper( + "in-process-1", + Arrays.asList( + mockCompanyService, + mockCompletion, + mockEventService, + mockJobService, + mockProfileService, + mockResumeService, + mockTenantService)); + serviceHelper.start(); + } + + @AfterClass + public static void stopServer() { + serviceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + serviceHelper.reset(); + channelProvider = serviceHelper.createChannelProvider(); + EventServiceSettings settings = + EventServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = EventServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + @SuppressWarnings("all") + public void createClientEventTest() { + String requestId = "requestId37109963"; + String eventId = "eventId278118624"; + ClientEvent expectedResponse = + ClientEvent.newBuilder().setRequestId(requestId).setEventId(eventId).build(); + mockEventService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + ClientEvent clientEvent = ClientEvent.newBuilder().build(); + + ClientEvent actualResponse = client.createClientEvent(parent, clientEvent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockEventService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateClientEventRequest actualRequest = (CreateClientEventRequest) actualRequests.get(0); + + Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); + Assert.assertEquals(clientEvent, actualRequest.getClientEvent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void createClientEventExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockEventService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + ClientEvent clientEvent = ClientEvent.newBuilder().build(); + + client.createClientEvent(parent, clientEvent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/JobServiceClientTest.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/JobServiceClientTest.java new file mode 100644 index 000000000000..485ad0618398 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/JobServiceClientTest.java @@ -0,0 +1,419 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import static com.google.cloud.talent.v4beta1.JobServiceClient.ListJobsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.Status; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@javax.annotation.Generated("by GAPIC") +public class JobServiceClientTest { + private static MockCompanyService mockCompanyService; + private static MockCompletion mockCompletion; + private static MockEventService mockEventService; + private static MockJobService mockJobService; + private static MockProfileService mockProfileService; + private static MockResumeService mockResumeService; + private static MockTenantService mockTenantService; + private static MockServiceHelper serviceHelper; + private JobServiceClient client; + private LocalChannelProvider channelProvider; + + @BeforeClass + public static void startStaticServer() { + mockCompanyService = new MockCompanyService(); + mockCompletion = new MockCompletion(); + mockEventService = new MockEventService(); + mockJobService = new MockJobService(); + mockProfileService = new MockProfileService(); + mockResumeService = new MockResumeService(); + mockTenantService = new MockTenantService(); + serviceHelper = + new MockServiceHelper( + "in-process-1", + Arrays.asList( + mockCompanyService, + mockCompletion, + mockEventService, + mockJobService, + mockProfileService, + mockResumeService, + mockTenantService)); + serviceHelper.start(); + } + + @AfterClass + public static void stopServer() { + serviceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + serviceHelper.reset(); + channelProvider = serviceHelper.createChannelProvider(); + JobServiceSettings settings = + JobServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = JobServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + @SuppressWarnings("all") + public void createJobTest() { + JobName name = JobName.of("[PROJECT]", "[JOBS]"); + String companyName = "companyName1429880077"; + String requisitionId = "requisitionId980224926"; + String title = "title110371416"; + String description = "description-1724546052"; + String department = "department848184146"; + String incentives = "incentives-1262874520"; + String languageCode = "languageCode-412800396"; + int promotionValue = 353413845; + String qualifications = "qualifications1903501412"; + String responsibilities = "responsibilities-926952660"; + String companyDisplayName = "companyDisplayName1982424170"; + Job expectedResponse = + Job.newBuilder() + .setName(name.toString()) + .setCompanyName(companyName) + .setRequisitionId(requisitionId) + .setTitle(title) + .setDescription(description) + .setDepartment(department) + .setIncentives(incentives) + .setLanguageCode(languageCode) + .setPromotionValue(promotionValue) + .setQualifications(qualifications) + .setResponsibilities(responsibilities) + .setCompanyDisplayName(companyDisplayName) + .build(); + mockJobService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + Job job = Job.newBuilder().build(); + + Job actualResponse = client.createJob(parent, job); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockJobService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateJobRequest actualRequest = (CreateJobRequest) actualRequests.get(0); + + Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); + Assert.assertEquals(job, actualRequest.getJob()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void createJobExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockJobService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + Job job = Job.newBuilder().build(); + + client.createJob(parent, job); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void getJobTest() { + JobName name2 = JobName.of("[PROJECT]", "[JOBS]"); + String companyName = "companyName1429880077"; + String requisitionId = "requisitionId980224926"; + String title = "title110371416"; + String description = "description-1724546052"; + String department = "department848184146"; + String incentives = "incentives-1262874520"; + String languageCode = "languageCode-412800396"; + int promotionValue = 353413845; + String qualifications = "qualifications1903501412"; + String responsibilities = "responsibilities-926952660"; + String companyDisplayName = "companyDisplayName1982424170"; + Job expectedResponse = + Job.newBuilder() + .setName(name2.toString()) + .setCompanyName(companyName) + .setRequisitionId(requisitionId) + .setTitle(title) + .setDescription(description) + .setDepartment(department) + .setIncentives(incentives) + .setLanguageCode(languageCode) + .setPromotionValue(promotionValue) + .setQualifications(qualifications) + .setResponsibilities(responsibilities) + .setCompanyDisplayName(companyDisplayName) + .build(); + mockJobService.addResponse(expectedResponse); + + JobName name = JobName.of("[PROJECT]", "[JOBS]"); + + Job actualResponse = client.getJob(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockJobService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetJobRequest actualRequest = (GetJobRequest) actualRequests.get(0); + + Assert.assertEquals(name, JobName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void getJobExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockJobService.addException(exception); + + try { + JobName name = JobName.of("[PROJECT]", "[JOBS]"); + + client.getJob(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void updateJobTest() { + JobName name = JobName.of("[PROJECT]", "[JOBS]"); + String companyName = "companyName1429880077"; + String requisitionId = "requisitionId980224926"; + String title = "title110371416"; + String description = "description-1724546052"; + String department = "department848184146"; + String incentives = "incentives-1262874520"; + String languageCode = "languageCode-412800396"; + int promotionValue = 353413845; + String qualifications = "qualifications1903501412"; + String responsibilities = "responsibilities-926952660"; + String companyDisplayName = "companyDisplayName1982424170"; + Job expectedResponse = + Job.newBuilder() + .setName(name.toString()) + .setCompanyName(companyName) + .setRequisitionId(requisitionId) + .setTitle(title) + .setDescription(description) + .setDepartment(department) + .setIncentives(incentives) + .setLanguageCode(languageCode) + .setPromotionValue(promotionValue) + .setQualifications(qualifications) + .setResponsibilities(responsibilities) + .setCompanyDisplayName(companyDisplayName) + .build(); + mockJobService.addResponse(expectedResponse); + + Job job = Job.newBuilder().build(); + + Job actualResponse = client.updateJob(job); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockJobService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateJobRequest actualRequest = (UpdateJobRequest) actualRequests.get(0); + + Assert.assertEquals(job, actualRequest.getJob()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void updateJobExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockJobService.addException(exception); + + try { + Job job = Job.newBuilder().build(); + + client.updateJob(job); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void deleteJobTest() { + Empty expectedResponse = Empty.newBuilder().build(); + mockJobService.addResponse(expectedResponse); + + JobName name = JobName.of("[PROJECT]", "[JOBS]"); + + client.deleteJob(name); + + List actualRequests = mockJobService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteJobRequest actualRequest = (DeleteJobRequest) actualRequests.get(0); + + Assert.assertEquals(name, JobName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void deleteJobExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockJobService.addException(exception); + + try { + JobName name = JobName.of("[PROJECT]", "[JOBS]"); + + client.deleteJob(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void listJobsTest() { + String nextPageToken = ""; + Job jobsElement = Job.newBuilder().build(); + List jobs = Arrays.asList(jobsElement); + ListJobsResponse expectedResponse = + ListJobsResponse.newBuilder().setNextPageToken(nextPageToken).addAllJobs(jobs).build(); + mockJobService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + String filter = "filter-1274492040"; + + ListJobsPagedResponse pagedListResponse = client.listJobs(parent, filter); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getJobsList().get(0), resources.get(0)); + + List actualRequests = mockJobService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListJobsRequest actualRequest = (ListJobsRequest) actualRequests.get(0); + + Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); + Assert.assertEquals(filter, actualRequest.getFilter()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void listJobsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockJobService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + String filter = "filter-1274492040"; + + client.listJobs(parent, filter); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void batchDeleteJobsTest() { + Empty expectedResponse = Empty.newBuilder().build(); + mockJobService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + String filter = "filter-1274492040"; + + client.batchDeleteJobs(parent, filter); + + List actualRequests = mockJobService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchDeleteJobsRequest actualRequest = (BatchDeleteJobsRequest) actualRequests.get(0); + + Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); + Assert.assertEquals(filter, actualRequest.getFilter()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void batchDeleteJobsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockJobService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + String filter = "filter-1274492040"; + + client.batchDeleteJobs(parent, filter); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockCompanyService.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockCompanyService.java new file mode 100644 index 000000000000..486157eb0444 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockCompanyService.java @@ -0,0 +1,57 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.ServerServiceDefinition; +import java.util.List; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockCompanyService implements MockGrpcService { + private final MockCompanyServiceImpl serviceImpl; + + public MockCompanyService() { + serviceImpl = new MockCompanyServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(GeneratedMessageV3 response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockCompanyServiceImpl.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockCompanyServiceImpl.java new file mode 100644 index 000000000000..2aa65fade100 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockCompanyServiceImpl.java @@ -0,0 +1,132 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.BetaApi; +import com.google.cloud.talent.v4beta1.CompanyServiceGrpc.CompanyServiceImplBase; +import com.google.protobuf.Empty; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockCompanyServiceImpl extends CompanyServiceImplBase { + private ArrayList requests; + private Queue responses; + + public MockCompanyServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(GeneratedMessageV3 response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void createCompany( + CreateCompanyRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Company) { + requests.add(request); + responseObserver.onNext((Company) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void getCompany(GetCompanyRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Company) { + requests.add(request); + responseObserver.onNext((Company) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void updateCompany( + UpdateCompanyRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Company) { + requests.add(request); + responseObserver.onNext((Company) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void deleteCompany(DeleteCompanyRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext((Empty) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void listCompanies( + ListCompaniesRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof ListCompaniesResponse) { + requests.add(request); + responseObserver.onNext((ListCompaniesResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockCompletion.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockCompletion.java new file mode 100644 index 000000000000..fb932934b36e --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockCompletion.java @@ -0,0 +1,57 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.ServerServiceDefinition; +import java.util.List; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockCompletion implements MockGrpcService { + private final MockCompletionImpl serviceImpl; + + public MockCompletion() { + serviceImpl = new MockCompletionImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(GeneratedMessageV3 response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockCompletionImpl.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockCompletionImpl.java new file mode 100644 index 000000000000..dd9ce13c6689 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockCompletionImpl.java @@ -0,0 +1,73 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.BetaApi; +import com.google.cloud.talent.v4beta1.CompletionGrpc.CompletionImplBase; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockCompletionImpl extends CompletionImplBase { + private ArrayList requests; + private Queue responses; + + public MockCompletionImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(GeneratedMessageV3 response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void completeQuery( + CompleteQueryRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof CompleteQueryResponse) { + requests.add(request); + responseObserver.onNext((CompleteQueryResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockEventService.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockEventService.java new file mode 100644 index 000000000000..d3ff2ae24c03 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockEventService.java @@ -0,0 +1,57 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.ServerServiceDefinition; +import java.util.List; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockEventService implements MockGrpcService { + private final MockEventServiceImpl serviceImpl; + + public MockEventService() { + serviceImpl = new MockEventServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(GeneratedMessageV3 response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockEventServiceImpl.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockEventServiceImpl.java new file mode 100644 index 000000000000..33edc4e1bbb0 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockEventServiceImpl.java @@ -0,0 +1,73 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.BetaApi; +import com.google.cloud.talent.v4beta1.EventServiceGrpc.EventServiceImplBase; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockEventServiceImpl extends EventServiceImplBase { + private ArrayList requests; + private Queue responses; + + public MockEventServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(GeneratedMessageV3 response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void createClientEvent( + CreateClientEventRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof ClientEvent) { + requests.add(request); + responseObserver.onNext((ClientEvent) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockJobService.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockJobService.java new file mode 100644 index 000000000000..b2627ec50436 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockJobService.java @@ -0,0 +1,57 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.ServerServiceDefinition; +import java.util.List; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockJobService implements MockGrpcService { + private final MockJobServiceImpl serviceImpl; + + public MockJobService() { + serviceImpl = new MockJobServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(GeneratedMessageV3 response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockJobServiceImpl.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockJobServiceImpl.java new file mode 100644 index 000000000000..8bde932a8deb --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockJobServiceImpl.java @@ -0,0 +1,174 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.BetaApi; +import com.google.cloud.talent.v4beta1.JobServiceGrpc.JobServiceImplBase; +import com.google.protobuf.Empty; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockJobServiceImpl extends JobServiceImplBase { + private ArrayList requests; + private Queue responses; + + public MockJobServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(GeneratedMessageV3 response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void createJob(CreateJobRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Job) { + requests.add(request); + responseObserver.onNext((Job) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void getJob(GetJobRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Job) { + requests.add(request); + responseObserver.onNext((Job) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void updateJob(UpdateJobRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Job) { + requests.add(request); + responseObserver.onNext((Job) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void deleteJob(DeleteJobRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext((Empty) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void listJobs(ListJobsRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof ListJobsResponse) { + requests.add(request); + responseObserver.onNext((ListJobsResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void batchDeleteJobs( + BatchDeleteJobsRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext((Empty) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void searchJobs( + SearchJobsRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof SearchJobsResponse) { + requests.add(request); + responseObserver.onNext((SearchJobsResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void searchJobsForAlert( + SearchJobsRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof SearchJobsResponse) { + requests.add(request); + responseObserver.onNext((SearchJobsResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockProfileService.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockProfileService.java new file mode 100644 index 000000000000..ac7562ebe9b4 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockProfileService.java @@ -0,0 +1,57 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.ServerServiceDefinition; +import java.util.List; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockProfileService implements MockGrpcService { + private final MockProfileServiceImpl serviceImpl; + + public MockProfileService() { + serviceImpl = new MockProfileServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(GeneratedMessageV3 response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockProfileServiceImpl.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockProfileServiceImpl.java new file mode 100644 index 000000000000..9f29331ef48e --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockProfileServiceImpl.java @@ -0,0 +1,147 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.BetaApi; +import com.google.cloud.talent.v4beta1.ProfileServiceGrpc.ProfileServiceImplBase; +import com.google.protobuf.Empty; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockProfileServiceImpl extends ProfileServiceImplBase { + private ArrayList requests; + private Queue responses; + + public MockProfileServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(GeneratedMessageV3 response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void listProfiles( + ListProfilesRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof ListProfilesResponse) { + requests.add(request); + responseObserver.onNext((ListProfilesResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void createProfile( + CreateProfileRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Profile) { + requests.add(request); + responseObserver.onNext((Profile) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void getProfile(GetProfileRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Profile) { + requests.add(request); + responseObserver.onNext((Profile) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void updateProfile( + UpdateProfileRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Profile) { + requests.add(request); + responseObserver.onNext((Profile) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void deleteProfile(DeleteProfileRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext((Empty) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void searchProfiles( + SearchProfilesRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof SearchProfilesResponse) { + requests.add(request); + responseObserver.onNext((SearchProfilesResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockResumeService.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockResumeService.java new file mode 100644 index 000000000000..98b0befccbe7 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockResumeService.java @@ -0,0 +1,57 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.ServerServiceDefinition; +import java.util.List; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockResumeService implements MockGrpcService { + private final MockResumeServiceImpl serviceImpl; + + public MockResumeService() { + serviceImpl = new MockResumeServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(GeneratedMessageV3 response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockResumeServiceImpl.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockResumeServiceImpl.java new file mode 100644 index 000000000000..a4e5c340b825 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockResumeServiceImpl.java @@ -0,0 +1,73 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.BetaApi; +import com.google.cloud.talent.v4beta1.ResumeServiceGrpc.ResumeServiceImplBase; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockResumeServiceImpl extends ResumeServiceImplBase { + private ArrayList requests; + private Queue responses; + + public MockResumeServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(GeneratedMessageV3 response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void parseResume( + ParseResumeRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof ParseResumeResponse) { + requests.add(request); + responseObserver.onNext((ParseResumeResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockTenantService.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockTenantService.java new file mode 100644 index 000000000000..cd1ee604db7f --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockTenantService.java @@ -0,0 +1,57 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.ServerServiceDefinition; +import java.util.List; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockTenantService implements MockGrpcService { + private final MockTenantServiceImpl serviceImpl; + + public MockTenantService() { + serviceImpl = new MockTenantServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(GeneratedMessageV3 response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockTenantServiceImpl.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockTenantServiceImpl.java new file mode 100644 index 000000000000..90afb0cad258 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockTenantServiceImpl.java @@ -0,0 +1,130 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.core.BetaApi; +import com.google.cloud.talent.v4beta1.TenantServiceGrpc.TenantServiceImplBase; +import com.google.protobuf.Empty; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockTenantServiceImpl extends TenantServiceImplBase { + private ArrayList requests; + private Queue responses; + + public MockTenantServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(GeneratedMessageV3 response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void createTenant(CreateTenantRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Tenant) { + requests.add(request); + responseObserver.onNext((Tenant) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void getTenant(GetTenantRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Tenant) { + requests.add(request); + responseObserver.onNext((Tenant) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void updateTenant(UpdateTenantRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Tenant) { + requests.add(request); + responseObserver.onNext((Tenant) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void deleteTenant(DeleteTenantRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext((Empty) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void listTenants( + ListTenantsRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof ListTenantsResponse) { + requests.add(request); + responseObserver.onNext((ListTenantsResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/ProfileServiceClientTest.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/ProfileServiceClientTest.java new file mode 100644 index 000000000000..a57b9f9d8e43 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/ProfileServiceClientTest.java @@ -0,0 +1,355 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import static com.google.cloud.talent.v4beta1.ProfileServiceClient.ListProfilesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.Status; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@javax.annotation.Generated("by GAPIC") +public class ProfileServiceClientTest { + private static MockCompanyService mockCompanyService; + private static MockCompletion mockCompletion; + private static MockEventService mockEventService; + private static MockJobService mockJobService; + private static MockProfileService mockProfileService; + private static MockResumeService mockResumeService; + private static MockTenantService mockTenantService; + private static MockServiceHelper serviceHelper; + private ProfileServiceClient client; + private LocalChannelProvider channelProvider; + + @BeforeClass + public static void startStaticServer() { + mockCompanyService = new MockCompanyService(); + mockCompletion = new MockCompletion(); + mockEventService = new MockEventService(); + mockJobService = new MockJobService(); + mockProfileService = new MockProfileService(); + mockResumeService = new MockResumeService(); + mockTenantService = new MockTenantService(); + serviceHelper = + new MockServiceHelper( + "in-process-1", + Arrays.asList( + mockCompanyService, + mockCompletion, + mockEventService, + mockJobService, + mockProfileService, + mockResumeService, + mockTenantService)); + serviceHelper.start(); + } + + @AfterClass + public static void stopServer() { + serviceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + serviceHelper.reset(); + channelProvider = serviceHelper.createChannelProvider(); + ProfileServiceSettings settings = + ProfileServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ProfileServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + @SuppressWarnings("all") + public void listProfilesTest() { + String nextPageToken = ""; + Profile profilesElement = Profile.newBuilder().build(); + List profiles = Arrays.asList(profilesElement); + ListProfilesResponse expectedResponse = + ListProfilesResponse.newBuilder() + .setNextPageToken(nextPageToken) + .addAllProfiles(profiles) + .build(); + mockProfileService.addResponse(expectedResponse); + + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + + ListProfilesPagedResponse pagedListResponse = client.listProfiles(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getProfilesList().get(0), resources.get(0)); + + List actualRequests = mockProfileService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListProfilesRequest actualRequest = (ListProfilesRequest) actualRequests.get(0); + + Assert.assertEquals(parent, TenantName.parse(actualRequest.getParent())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void listProfilesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockProfileService.addException(exception); + + try { + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + + client.listProfiles(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void createProfileTest() { + ProfileName name = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]"); + String externalId = "externalId-1153075697"; + String source = "source-896505829"; + String uri = "uri116076"; + String groupId = "groupId506361563"; + String resumeHrxml = "resumeHrxml1834730555"; + boolean processed = true; + String keywordSnippet = "keywordSnippet1325317319"; + Profile expectedResponse = + Profile.newBuilder() + .setName(name.toString()) + .setExternalId(externalId) + .setSource(source) + .setUri(uri) + .setGroupId(groupId) + .setResumeHrxml(resumeHrxml) + .setProcessed(processed) + .setKeywordSnippet(keywordSnippet) + .build(); + mockProfileService.addResponse(expectedResponse); + + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + Profile profile = Profile.newBuilder().build(); + + Profile actualResponse = client.createProfile(parent, profile); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockProfileService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateProfileRequest actualRequest = (CreateProfileRequest) actualRequests.get(0); + + Assert.assertEquals(parent, TenantName.parse(actualRequest.getParent())); + Assert.assertEquals(profile, actualRequest.getProfile()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void createProfileExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockProfileService.addException(exception); + + try { + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + Profile profile = Profile.newBuilder().build(); + + client.createProfile(parent, profile); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void getProfileTest() { + ProfileName name2 = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]"); + String externalId = "externalId-1153075697"; + String source = "source-896505829"; + String uri = "uri116076"; + String groupId = "groupId506361563"; + String resumeHrxml = "resumeHrxml1834730555"; + boolean processed = true; + String keywordSnippet = "keywordSnippet1325317319"; + Profile expectedResponse = + Profile.newBuilder() + .setName(name2.toString()) + .setExternalId(externalId) + .setSource(source) + .setUri(uri) + .setGroupId(groupId) + .setResumeHrxml(resumeHrxml) + .setProcessed(processed) + .setKeywordSnippet(keywordSnippet) + .build(); + mockProfileService.addResponse(expectedResponse); + + ProfileName name = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]"); + + Profile actualResponse = client.getProfile(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockProfileService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetProfileRequest actualRequest = (GetProfileRequest) actualRequests.get(0); + + Assert.assertEquals(name, ProfileName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void getProfileExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockProfileService.addException(exception); + + try { + ProfileName name = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]"); + + client.getProfile(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void updateProfileTest() { + ProfileName name = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]"); + String externalId = "externalId-1153075697"; + String source = "source-896505829"; + String uri = "uri116076"; + String groupId = "groupId506361563"; + String resumeHrxml = "resumeHrxml1834730555"; + boolean processed = true; + String keywordSnippet = "keywordSnippet1325317319"; + Profile expectedResponse = + Profile.newBuilder() + .setName(name.toString()) + .setExternalId(externalId) + .setSource(source) + .setUri(uri) + .setGroupId(groupId) + .setResumeHrxml(resumeHrxml) + .setProcessed(processed) + .setKeywordSnippet(keywordSnippet) + .build(); + mockProfileService.addResponse(expectedResponse); + + Profile profile = Profile.newBuilder().build(); + + Profile actualResponse = client.updateProfile(profile); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockProfileService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateProfileRequest actualRequest = (UpdateProfileRequest) actualRequests.get(0); + + Assert.assertEquals(profile, actualRequest.getProfile()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void updateProfileExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockProfileService.addException(exception); + + try { + Profile profile = Profile.newBuilder().build(); + + client.updateProfile(profile); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void deleteProfileTest() { + Empty expectedResponse = Empty.newBuilder().build(); + mockProfileService.addResponse(expectedResponse); + + ProfileName name = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]"); + + client.deleteProfile(name); + + List actualRequests = mockProfileService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteProfileRequest actualRequest = (DeleteProfileRequest) actualRequests.get(0); + + Assert.assertEquals(name, ProfileName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void deleteProfileExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockProfileService.addException(exception); + + try { + ProfileName name = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]"); + + client.deleteProfile(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/ResumeServiceClientTest.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/ResumeServiceClientTest.java new file mode 100644 index 000000000000..4cfe84007cf1 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/ResumeServiceClientTest.java @@ -0,0 +1,139 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.protobuf.ByteString; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.Status; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@javax.annotation.Generated("by GAPIC") +public class ResumeServiceClientTest { + private static MockCompanyService mockCompanyService; + private static MockCompletion mockCompletion; + private static MockEventService mockEventService; + private static MockJobService mockJobService; + private static MockProfileService mockProfileService; + private static MockResumeService mockResumeService; + private static MockTenantService mockTenantService; + private static MockServiceHelper serviceHelper; + private ResumeServiceClient client; + private LocalChannelProvider channelProvider; + + @BeforeClass + public static void startStaticServer() { + mockCompanyService = new MockCompanyService(); + mockCompletion = new MockCompletion(); + mockEventService = new MockEventService(); + mockJobService = new MockJobService(); + mockProfileService = new MockProfileService(); + mockResumeService = new MockResumeService(); + mockTenantService = new MockTenantService(); + serviceHelper = + new MockServiceHelper( + "in-process-1", + Arrays.asList( + mockCompanyService, + mockCompletion, + mockEventService, + mockJobService, + mockProfileService, + mockResumeService, + mockTenantService)); + serviceHelper.start(); + } + + @AfterClass + public static void stopServer() { + serviceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + serviceHelper.reset(); + channelProvider = serviceHelper.createChannelProvider(); + ResumeServiceSettings settings = + ResumeServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ResumeServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + @SuppressWarnings("all") + public void parseResumeTest() { + String rawText = "rawText503586532"; + ParseResumeResponse expectedResponse = + ParseResumeResponse.newBuilder().setRawText(rawText).build(); + mockResumeService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + ByteString resume = ByteString.copyFromUtf8("45"); + + ParseResumeResponse actualResponse = client.parseResume(parent, resume); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockResumeService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ParseResumeRequest actualRequest = (ParseResumeRequest) actualRequests.get(0); + + Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); + Assert.assertEquals(resume, actualRequest.getResume()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void parseResumeExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockResumeService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + ByteString resume = ByteString.copyFromUtf8("45"); + + client.parseResume(parent, resume); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/TenantServiceClientTest.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/TenantServiceClientTest.java new file mode 100644 index 000000000000..e364a4be2411 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/TenantServiceClientTest.java @@ -0,0 +1,310 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.talent.v4beta1; + +import static com.google.cloud.talent.v4beta1.TenantServiceClient.ListTenantsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.Status; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@javax.annotation.Generated("by GAPIC") +public class TenantServiceClientTest { + private static MockCompanyService mockCompanyService; + private static MockCompletion mockCompletion; + private static MockEventService mockEventService; + private static MockJobService mockJobService; + private static MockProfileService mockProfileService; + private static MockResumeService mockResumeService; + private static MockTenantService mockTenantService; + private static MockServiceHelper serviceHelper; + private TenantServiceClient client; + private LocalChannelProvider channelProvider; + + @BeforeClass + public static void startStaticServer() { + mockCompanyService = new MockCompanyService(); + mockCompletion = new MockCompletion(); + mockEventService = new MockEventService(); + mockJobService = new MockJobService(); + mockProfileService = new MockProfileService(); + mockResumeService = new MockResumeService(); + mockTenantService = new MockTenantService(); + serviceHelper = + new MockServiceHelper( + "in-process-1", + Arrays.asList( + mockCompanyService, + mockCompletion, + mockEventService, + mockJobService, + mockProfileService, + mockResumeService, + mockTenantService)); + serviceHelper.start(); + } + + @AfterClass + public static void stopServer() { + serviceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + serviceHelper.reset(); + channelProvider = serviceHelper.createChannelProvider(); + TenantServiceSettings settings = + TenantServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = TenantServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + @SuppressWarnings("all") + public void createTenantTest() { + TenantName name = TenantName.of("[PROJECT]", "[TENANT]"); + String externalId = "externalId-1153075697"; + Tenant expectedResponse = + Tenant.newBuilder().setName(name.toString()).setExternalId(externalId).build(); + mockTenantService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + Tenant tenant = Tenant.newBuilder().build(); + + Tenant actualResponse = client.createTenant(parent, tenant); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTenantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateTenantRequest actualRequest = (CreateTenantRequest) actualRequests.get(0); + + Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); + Assert.assertEquals(tenant, actualRequest.getTenant()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void createTenantExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockTenantService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + Tenant tenant = Tenant.newBuilder().build(); + + client.createTenant(parent, tenant); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void getTenantTest() { + TenantName name2 = TenantName.of("[PROJECT]", "[TENANT]"); + String externalId = "externalId-1153075697"; + Tenant expectedResponse = + Tenant.newBuilder().setName(name2.toString()).setExternalId(externalId).build(); + mockTenantService.addResponse(expectedResponse); + + TenantName name = TenantName.of("[PROJECT]", "[TENANT]"); + + Tenant actualResponse = client.getTenant(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTenantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetTenantRequest actualRequest = (GetTenantRequest) actualRequests.get(0); + + Assert.assertEquals(name, TenantName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void getTenantExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockTenantService.addException(exception); + + try { + TenantName name = TenantName.of("[PROJECT]", "[TENANT]"); + + client.getTenant(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void updateTenantTest() { + TenantName name = TenantName.of("[PROJECT]", "[TENANT]"); + String externalId = "externalId-1153075697"; + Tenant expectedResponse = + Tenant.newBuilder().setName(name.toString()).setExternalId(externalId).build(); + mockTenantService.addResponse(expectedResponse); + + Tenant tenant = Tenant.newBuilder().build(); + + Tenant actualResponse = client.updateTenant(tenant); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTenantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateTenantRequest actualRequest = (UpdateTenantRequest) actualRequests.get(0); + + Assert.assertEquals(tenant, actualRequest.getTenant()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void updateTenantExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockTenantService.addException(exception); + + try { + Tenant tenant = Tenant.newBuilder().build(); + + client.updateTenant(tenant); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void deleteTenantTest() { + Empty expectedResponse = Empty.newBuilder().build(); + mockTenantService.addResponse(expectedResponse); + + TenantName name = TenantName.of("[PROJECT]", "[TENANT]"); + + client.deleteTenant(name); + + List actualRequests = mockTenantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteTenantRequest actualRequest = (DeleteTenantRequest) actualRequests.get(0); + + Assert.assertEquals(name, TenantName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void deleteTenantExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockTenantService.addException(exception); + + try { + TenantName name = TenantName.of("[PROJECT]", "[TENANT]"); + + client.deleteTenant(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void listTenantsTest() { + String nextPageToken = ""; + Tenant tenantsElement = Tenant.newBuilder().build(); + List tenants = Arrays.asList(tenantsElement); + ListTenantsResponse expectedResponse = + ListTenantsResponse.newBuilder() + .setNextPageToken(nextPageToken) + .addAllTenants(tenants) + .build(); + mockTenantService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + + ListTenantsPagedResponse pagedListResponse = client.listTenants(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTenantsList().get(0), resources.get(0)); + + List actualRequests = mockTenantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListTenantsRequest actualRequest = (ListTenantsRequest) actualRequests.get(0); + + Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void listTenantsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockTenantService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + + client.listTenants(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/synth.py b/google-cloud-clients/google-cloud-talent/synth.py new file mode 100644 index 000000000000..4e7f3014f927 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/synth.py @@ -0,0 +1,40 @@ +# Copyright 2018 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +"""This script is used to synthesize generated parts of this library.""" + +import synthtool as s +import synthtool.gcp as gcp +import synthtool.languages.java as java + +gapic = gcp.GAPICGenerator() +common_templates = gcp.CommonTemplates() + +versions = ['v4beta1'] +service = 'talent' + +for version in versions: + library = gapic.java_library( + service=service, + version=version, + config_path=f'/google/cloud/talent/artman_talent_v4beta1.yaml', + artman_output_name='') + + s.copy(library / f'gapic-google-cloud-{service}-{version}/src', 'src') + s.copy(library / f'grpc-google-cloud-{service}-{version}/src', f'../../google-api-grpc/grpc-google-cloud-{service}-{version}/src') + s.copy(library / f'proto-google-cloud-{service}-{version}/src', f'../../google-api-grpc/proto-google-cloud-{service}-{version}/src') + + java.format_code('./src') + java.format_code(f'../../google-api-grpc/grpc-google-cloud-{service}-{version}/src') + java.format_code(f'../../google-api-grpc/proto-google-cloud-{service}-{version}/src') \ No newline at end of file diff --git a/google-cloud-clients/pom.xml b/google-cloud-clients/pom.xml index 6329f703ed28..4ab56ff7a62e 100644 --- a/google-cloud-clients/pom.xml +++ b/google-cloud-clients/pom.xml @@ -453,6 +453,7 @@ google-cloud-spanner google-cloud-speech google-cloud-storage + google-cloud-talent google-cloud-tasks google-cloud-texttospeech google-cloud-trace @@ -784,7 +785,7 @@ Stub packages - com.google.cloud.asset.v1beta1.stub:com.google.cloud.automl.v1beta1.stub:com.google.cloud.bigquerydatatransfer.v1.stub:com.google.cloud.bigquerystorage.v1beta1.stub:com.google.cloud.bigtable-admin.v2.stub:com.google.cloud.bigtable.v2.stub:com.google.cloud.container.v1.stub:com.google.cloud.containeranalysis.v1beta1.stub:com.google.cloud.dataproc.v1.stub:com.google.cloud.dataproc.v1beta2.stub:com.google.cloud.dialogflow.v2.stub:com.google.cloud.dialogflow.v2beta1.stub:com.google.cloud.dlp.v2.stub:com.google.cloud.error-reporting.v1beta1.stub:com.google.cloud.firestore.v1.stub:com.google.cloud.firestore.v1beta1.stub:com.google.cloud.iamcredentials.v1.stub:com.google.cloud.iot.v1.stub:com.google.cloud.kms.v1.stub:com.google.cloud.language.v1.stub:com.google.cloud.language.v1beta2.stub:com.google.cloud.logging.v2.stub:com.google.cloud.monitoring.v3.stub:com.google.cloud.os-login.v1.stub:com.google.cloud.pubsub.v1.stub:com.google.cloud.redis.v1.stub:com.google.cloud.redis.v1beta1.stub:com.google.cloud.scheduler.v1beta1.stub:com.google.cloud.securitycenter.v1beta1.stub:com.google.cloud.spanner-admin-database.v1.stub:com.google.cloud.spanner-admin-instance.v1.stub:com.google.cloud.spanner.v1.stub:com.google.cloud.speech.v1.stub:com.google.cloud.speech.v1beta1.stub:com.google.cloud.speech.v1p1beta1.stub:com.google.cloud.tasks.v2beta2.stub:com.google.cloud.tasks.v2beta3.stub:com.google.cloud.texttospeech.v1.stub:com.google.cloud.texttospeech.v1beta1.stub:com.google.cloud.trace.v1.stub:com.google.cloud.trace.v2.stub:com.google.cloud.video-intelligence.v1.stub:com.google.cloud.video-intelligence.v1beta1.stub:com.google.cloud.video-intelligence.v1beta2.stub:com.google.cloud.video-intelligence.v1p1beta1.stub:com.google.cloud.video-intelligence.v1p2beta1.stub:com.google.cloud.vision.v1.stub:com.google.cloud.vision.v1p1beta1.stub:com.google.cloud.vision.v1p2beta1.stub:com.google.cloud.vision.v1p3beta1.stub:com.google.cloud.vision.v1p4beta1.stub:com.google.cloud.websecurityscanner.v1alpha.stub + com.google.cloud.asset.v1beta1.stub:com.google.cloud.automl.v1beta1.stub:com.google.cloud.bigquerydatatransfer.v1.stub:com.google.cloud.bigquerystorage.v1beta1.stub:com.google.cloud.bigtable-admin.v2.stub:com.google.cloud.bigtable.v2.stub:com.google.cloud.container.v1.stub:com.google.cloud.containeranalysis.v1beta1.stub:com.google.cloud.dataproc.v1.stub:com.google.cloud.dataproc.v1beta2.stub:com.google.cloud.dialogflow.v2.stub:com.google.cloud.dialogflow.v2beta1.stub:com.google.cloud.dlp.v2.stub:com.google.cloud.error-reporting.v1beta1.stub:com.google.cloud.firestore.v1.stub:com.google.cloud.firestore.v1beta1.stub:com.google.cloud.iamcredentials.v1.stub:com.google.cloud.iot.v1.stub:com.google.cloud.kms.v1.stub:com.google.cloud.language.v1.stub:com.google.cloud.language.v1beta2.stub:com.google.cloud.logging.v2.stub:com.google.cloud.monitoring.v3.stub:com.google.cloud.os-login.v1.stub:com.google.cloud.pubsub.v1.stub:com.google.cloud.redis.v1.stub:com.google.cloud.redis.v1beta1.stub:com.google.cloud.scheduler.v1.stub:com.google.cloud.scheduler.v1beta1.stub:com.google.cloud.securitycenter.v1.stub:com.google.cloud.securitycenter.v1beta1.stub:com.google.cloud.spanner-admin-database.v1.stub:com.google.cloud.spanner-admin-instance.v1.stub:com.google.cloud.spanner.v1.stub:com.google.cloud.speech.v1.stub:com.google.cloud.speech.v1beta1.stub:com.google.cloud.speech.v1p1beta1.stub:com.google.cloud.talent.v4beta1.stub:com.google.cloud.tasks.v2beta2.stub:com.google.cloud.tasks.v2beta3.stub:com.google.cloud.texttospeech.v1.stub:com.google.cloud.texttospeech.v1beta1.stub:com.google.cloud.trace.v1.stub:com.google.cloud.trace.v2.stub:com.google.cloud.video-intelligence.v1.stub:com.google.cloud.video-intelligence.v1beta1.stub:com.google.cloud.video-intelligence.v1beta2.stub:com.google.cloud.video-intelligence.v1p1beta1.stub:com.google.cloud.video-intelligence.v1p2beta1.stub:com.google.cloud.video-intelligence.v1p3beta1.stub:com.google.cloud.vision.v1.stub:com.google.cloud.vision.v1p1beta1.stub:com.google.cloud.vision.v1p2beta1.stub:com.google.cloud.vision.v1p3beta1.stub:com.google.cloud.vision.v1p4beta1.stub:com.google.cloud.websecurityscanner.v1alpha.stub Deprecated packages diff --git a/versions.txt b/versions.txt index 22870c7dd649..081f21b9178d 100644 --- a/versions.txt +++ b/versions.txt @@ -53,6 +53,7 @@ google-cloud-securitycenter:0.83.0-alpha:0.83.1-alpha-SNAPSHOT google-cloud-spanner:1.10.0:1.10.1-SNAPSHOT google-cloud-speech:0.83.0-beta:0.83.1-beta-SNAPSHOT google-cloud-storage:1.65.0:1.65.1-SNAPSHOT +google-cloud-talent:0.0.0-beta:0.0.1-beta-SNAPSHOT google-cloud-tasks:0.83.0-beta:0.83.1-beta-SNAPSHOT google-cloud-testing:0.83.0-alpha:0.83.1-alpha-SNAPSHOT google-cloud-texttospeech:0.83.0-beta:0.83.1-beta-SNAPSHOT @@ -76,8 +77,8 @@ grpc-google-cloud-dialogflow-v2:0.48.0:0.48.1-SNAPSHOT grpc-google-cloud-dialogflow-v2beta1:0.48.0:0.48.1-SNAPSHOT grpc-google-cloud-dlp-v2:0.48.0:0.48.1-SNAPSHOT grpc-google-cloud-error-reporting-v1beta1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-firestore-v1beta1:0.48.0:0.48.1-SNAPSHOT grpc-google-cloud-firestore-v1:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-firestore-v1beta1:0.48.0:0.48.1-SNAPSHOT grpc-google-cloud-iamcredentials-v1:0.10.0-alpha:0.10.1-alpha-SNAPSHOT grpc-google-cloud-iot-v1:0.48.0:0.48.1-SNAPSHOT grpc-google-cloud-kms-v1:0.48.0:0.48.1-SNAPSHOT @@ -89,16 +90,17 @@ grpc-google-cloud-os-login-v1:0.48.0:0.48.1-SNAPSHOT grpc-google-cloud-pubsub-v1:1.47.0:1.47.1-SNAPSHOT grpc-google-cloud-redis-v1:0.48.0:0.48.1-SNAPSHOT grpc-google-cloud-redis-v1beta1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-scheduler-v1beta1:0.48.0:0.48.1-SNAPSHOT grpc-google-cloud-scheduler-v1:0.48.0:0.48.1-SNAPSHOT -grpc-google-cloud-securitycenter-v1beta1:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-scheduler-v1beta1:0.48.0:0.48.1-SNAPSHOT grpc-google-cloud-securitycenter-v1:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-securitycenter-v1beta1:0.48.0:0.48.1-SNAPSHOT grpc-google-cloud-spanner-admin-database-v1:1.10.0:1.10.1-SNAPSHOT grpc-google-cloud-spanner-admin-instance-v1:1.10.0:1.10.1-SNAPSHOT grpc-google-cloud-spanner-v1:1.10.0:1.10.1-SNAPSHOT grpc-google-cloud-speech-v1:0.48.0:0.48.1-SNAPSHOT grpc-google-cloud-speech-v1beta1:0.48.0:0.48.1-SNAPSHOT grpc-google-cloud-speech-v1p1beta1:0.48.0:0.48.1-SNAPSHOT +grpc-google-cloud-talent-v4beta1:0.0.0-beta:0.0.1-beta-SNAPSHOT grpc-google-cloud-tasks-v2beta2:0.48.0:0.48.1-SNAPSHOT grpc-google-cloud-tasks-v2beta3:0.48.0:0.48.1-SNAPSHOT grpc-google-cloud-texttospeech-v1:0.48.0:0.48.1-SNAPSHOT @@ -132,8 +134,8 @@ proto-google-cloud-dialogflow-v2:0.48.0:0.48.1-SNAPSHOT proto-google-cloud-dialogflow-v2beta1:0.48.0:0.48.1-SNAPSHOT proto-google-cloud-dlp-v2:0.48.0:0.48.1-SNAPSHOT proto-google-cloud-error-reporting-v1beta1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-firestore-v1beta1:0.48.0:0.48.1-SNAPSHOT proto-google-cloud-firestore-v1:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-firestore-v1beta1:0.48.0:0.48.1-SNAPSHOT proto-google-cloud-iamcredentials-v1:0.10.0-alpha:0.10.1-alpha-SNAPSHOT proto-google-cloud-iot-v1:0.48.0:0.48.1-SNAPSHOT proto-google-cloud-kms-v1:0.48.0:0.48.1-SNAPSHOT @@ -145,16 +147,17 @@ proto-google-cloud-os-login-v1:0.48.0:0.48.1-SNAPSHOT proto-google-cloud-pubsub-v1:1.47.0:1.47.1-SNAPSHOT proto-google-cloud-redis-v1:0.48.0:0.48.1-SNAPSHOT proto-google-cloud-redis-v1beta1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-scheduler-v1beta1:0.48.0:0.48.1-SNAPSHOT proto-google-cloud-scheduler-v1:0.48.0:0.48.1-SNAPSHOT -proto-google-cloud-securitycenter-v1beta1:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-scheduler-v1beta1:0.48.0:0.48.1-SNAPSHOT proto-google-cloud-securitycenter-v1:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-securitycenter-v1beta1:0.48.0:0.48.1-SNAPSHOT proto-google-cloud-spanner-admin-database-v1:1.10.0:1.10.1-SNAPSHOT proto-google-cloud-spanner-admin-instance-v1:1.10.0:1.10.1-SNAPSHOT proto-google-cloud-spanner-v1:1.10.0:1.10.1-SNAPSHOT proto-google-cloud-speech-v1:0.48.0:0.48.1-SNAPSHOT proto-google-cloud-speech-v1beta1:0.48.0:0.48.1-SNAPSHOT proto-google-cloud-speech-v1p1beta1:0.48.0:0.48.1-SNAPSHOT +proto-google-cloud-talent-v4beta1:0.0.0-beta:0.0.1-beta-SNAPSHOT proto-google-cloud-tasks-v2beta2:0.48.0:0.48.1-SNAPSHOT proto-google-cloud-tasks-v2beta3:0.48.0:0.48.1-SNAPSHOT proto-google-cloud-texttospeech-v1:0.48.0:0.48.1-SNAPSHOT